isnan*: Separate the AC_LIBOBJ invocations.
[gnulib.git] / ChangeLog
1 2011-05-20  Bruno Haible  <bruno@clisp.org>
2
3         isnan*: Separate the AC_LIBOBJ invocations.
4         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5         AC_LIBOBJ invocation.
6         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7         here.
8         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9         AC_LIBOBJ invocation.
10         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11         here.
12         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13         AC_LIBOBJ invocation.
14         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15         here.
16         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17
18 2011-05-08  Bruno Haible  <bruno@clisp.org>
19
20         isinf: Move AC_LIBOBJ invocations to module description.
21         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
22         * modules/isinf (configure.ac): ... to here.
23
24 2011-05-08  Bruno Haible  <bruno@clisp.org>
25
26         isfinite: Move AC_LIBOBJ invocations to module description.
27         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
28         * modules/isfinite (configure.ac): ... to here.
29
30 2011-05-08  Bruno Haible  <bruno@clisp.org>
31
32         isblank: Move AC_LIBOBJ invocations to module description.
33         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
34         here...
35         * modules/isblank (configure.ac): ... to here.
36
37 2011-05-08  Bruno Haible  <bruno@clisp.org>
38
39         isapipe: Move AC_LIBOBJ invocations to module description.
40         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
41         gl_PREREQ_ISAPIPE invocations from here...
42         * modules/isapipe (configure.ac): ... to here.
43         (Depends-on): Update condition.
44
45 2011-05-08  Bruno Haible  <bruno@clisp.org>
46
47         ioctl: Move AC_LIBOBJ invocations to module description.
48         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
49         invocations from here...
50         * modules/ioctl (configure.ac): ... to here.
51         (Depends-on): Update condition.
52
53 2011-05-08  Bruno Haible  <bruno@clisp.org>
54
55         imaxdiv: Move AC_LIBOBJ invocations to module description.
56         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
57         invocations from here...
58         * modules/imaxdiv (configure.ac): ... to here.
59
60 2011-05-08  Bruno Haible  <bruno@clisp.org>
61
62         imaxabs: Move AC_LIBOBJ invocations to module description.
63         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
64         invocations from here...
65         * modules/imaxabs (configure.ac): ... to here.
66
67 2011-05-08  Bruno Haible  <bruno@clisp.org>
68
69         getaddrinfo: Move AC_LIBOBJ invocations to module description.
70         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
71         AC_LIBOBJ invocations from here...
72         * modules/getaddrinfo (configure.ac): ... to here.
73         (Depends-on): Add conditions.
74
75 2011-05-08  Bruno Haible  <bruno@clisp.org>
76
77         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
78         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
79         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
80         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
81         (gl_PREREQ_INET_PTON): ... from here.
82         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
83         gl_PREREQ_INET_PTON here.
84         (Depends-on): Update condition.
85
86 2011-05-08  Bruno Haible  <bruno@clisp.org>
87
88         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
89         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
90         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
91         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
92         (gl_PREREQ_INET_NTOP): ... from here.
93         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
94         gl_PREREQ_INET_NTOP here.
95         (Depends-on): Update condition.
96
97 2011-05-08  Bruno Haible  <bruno@clisp.org>
98
99         iconv_open: Move AC_LIBOBJ invocations to module description.
100         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
101         AC_LIBOBJ invocations from here...
102         * modules/iconv_open (configure.ac): ... to here.
103
104 2011-05-08  Bruno Haible  <bruno@clisp.org>
105
106         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
107         If module 'iconv_open' is among the main modules and module
108         'iconv_open-utf' is among the tests dependencies, then
109         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
110         return the special iconv_t values. Therefore iconv() and iconv_close()
111         must support these special iconv_t values, already in lib, not only in
112         tests.
113         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
114         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
115         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
116         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
117         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
118         (Depends-on): Add the dependencies of iconv_open-utf.
119         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
120         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
121         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
122
123 2011-05-08  Bruno Haible  <bruno@clisp.org>
124
125         group-member: Move AC_LIBOBJ invocations to module description.
126         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
127         gl_PREREQ_GROUP_MEMBER invocations from here...
128         * modules/group-member (configure.ac): ... to here.
129
130 2011-05-08  Bruno Haible  <bruno@clisp.org>
131
132         grantpt: Move AC_LIBOBJ invocations to module description.
133         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
134         invocations from here...
135         * modules/grantpt (configure.ac): ... to here.
136
137 2011-05-08  Bruno Haible  <bruno@clisp.org>
138
139         glob: Move AC_LIBOBJ invocations to module description.
140         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
141         from here...
142         * modules/glob (configure.ac): ... to here.
143
144 2011-05-08  Bruno Haible  <bruno@clisp.org>
145
146         getusershell: Move AC_LIBOBJ invocations to module description.
147         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
148         Move AC_LIBOBJ invocation from here...
149         * modules/getusershell (configure.ac): ... to here.
150         (Depends-on): Update condition.
151
152 2011-05-08  Bruno Haible  <bruno@clisp.org>
153
154         gettimeofday: Move AC_LIBOBJ invocations to module description.
155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
156         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
157         gl_PREREQ_GETTIMEOFDAY invocations from here...
158         * modules/gettimeofday (configure.ac): ... to here.
159
160 2011-05-08  Bruno Haible  <bruno@clisp.org>
161
162         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
163         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
164         just gl_FUNC_TZSET.
165         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
166         (gl_FUNC_TZSET_CLOBBER): Remove actions.
167         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
168         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
169
170 2011-05-08  Bruno Haible  <bruno@clisp.org>
171
172         getsubopt: Move AC_LIBOBJ invocations to module description.
173         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
174         gl_PREREQ_GETSUBOPT invocations from here...
175         * modules/getsubopt (configure.ac): ... to here.
176
177 2011-05-08  Bruno Haible  <bruno@clisp.org>
178
179         getpass-gnu: Move AC_LIBOBJ invocations to module description.
180         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
181         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
182         * modules/getpass-gnu (configure.ac): ... to here.
183
184 2011-05-08  Bruno Haible  <bruno@clisp.org>
185
186         getpass: Move AC_LIBOBJ invocations to module description.
187         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
188         gl_PREREQ_GETPASS invocations from here...
189         * modules/getpass (configure.ac): ... to here.
190
191 2011-05-08  Bruno Haible  <bruno@clisp.org>
192
193         getpagesize: Move AC_LIBOBJ invocations to module description.
194         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
195         from here...
196         * modules/getpagesize (configure.ac): ... to here.
197
198 2011-05-08  Bruno Haible  <bruno@clisp.org>
199
200         getopt: Move AC_LIBOBJ invocations to module description.
201         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
202         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
203         invocations from here...
204         * modules/getopt-gnu (configure.ac): ... to here.
205         * modules/getopt-posix (configure.ac): ... and here.
206         (Depends-on): Update condition.
207
208 2011-05-08  Bruno Haible  <bruno@clisp.org>
209
210         getopt, argp: Respect rules for use of AC_LIBOBJ.
211         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
212         (gl_REPLACE_GETOPT_ALWAYS): New macro.
213         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
214         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
215
216 2011-05-08  Bruno Haible  <bruno@clisp.org>
217
218         getlogin_r: Move AC_LIBOBJ invocations to module description.
219         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
220         gl_PREREQ_GETLOGIN_R invocations from here...
221         * modules/getlogin_r (configure.ac): ... to here.
222
223 2011-05-08  Bruno Haible  <bruno@clisp.org>
224
225         getlogin: Move AC_LIBOBJ invocations to module description.
226         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
227         here...
228         * modules/getlogin (configure.ac): ... to here.
229
230 2011-05-08  Bruno Haible  <bruno@clisp.org>
231
232         getloadavg: Move AC_LIBOBJ invocations to module description.
233         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
234         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
235         * modules/getloadavg (configure.ac): ... to here.
236
237 2011-05-08  Bruno Haible  <bruno@clisp.org>
238
239         gethrxtime: Move AC_LIBOBJ invocations to module description.
240         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
241         LIB_GETHRXTIME from here...
242         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
243         invocations from here...
244         * modules/gethrxtime (configure.ac): ... to here.
245
246 2011-05-08  Bruno Haible  <bruno@clisp.org>
247
248         gethostname: Move AC_LIBOBJ invocations to module description.
249         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
250         gl_PREREQ_GETHOSTNAME invocations from here...
251         * modules/gethostname (configure.ac): ... to here.
252
253 2011-05-08  Bruno Haible  <bruno@clisp.org>
254
255         getgroups: Move AC_LIBOBJ invocations to module description.
256         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
257         here...
258         * modules/getgroups (configure.ac): ... to here.
259
260 2011-05-08  Bruno Haible  <bruno@clisp.org>
261
262         getdtablesize: Move AC_LIBOBJ invocations to module description.
263         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
264         invocation from here...
265         * modules/getdtablesize (configure.ac): ... to here.
266
267 2011-05-08  Bruno Haible  <bruno@clisp.org>
268
269         getdomainname: Move AC_LIBOBJ invocations to module description.
270         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
271         gl_PREREQ_GETDOMAINNAME invocations from here...
272         * modules/getdomainname (configure.ac): ... to here.
273
274 2011-05-08  Bruno Haible  <bruno@clisp.org>
275
276         getline: Move AC_LIBOBJ invocations to module description.
277         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
278         invocations from here...
279         * modules/getline (configure.ac): ... to here.
280
281 2011-05-08  Bruno Haible  <bruno@clisp.org>
282
283         getline: Simplify.
284         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
285         It's already handled through the module dependency.
286
287 2011-05-08  Bruno Haible  <bruno@clisp.org>
288
289         getdelim: Move AC_LIBOBJ invocations to module description.
290         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
291         and gl_PREREQ_GETDELIM invocations from here...
292         * modules/getdelim (configure.ac): ... to here.
293         (Depends-on): Fix condition.
294
295 2011-05-08  Bruno Haible  <bruno@clisp.org>
296
297         getcwd: Move AC_LIBOBJ invocations to module description.
298         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
299         invocations from here...
300         * modules/getcwd (configure.ac): ... to here.
301
302 2011-05-08  Bruno Haible  <bruno@clisp.org>
303
304         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
305         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
306         here...
307         * modules/getcwd-lgpl (configure.ac): ... to here.
308
309 2011-05-07  Bruno Haible  <bruno@clisp.org>
310
311         crypto/gc: Move AC_LIBOBJ invocations to module description.
312         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
313         * modules/crypto/gc (configure.ac): ... to here.
314
315 2011-05-07  Bruno Haible  <bruno@clisp.org>
316
317         fwriting: Move AC_LIBOBJ invocations to module description.
318         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
319         here...
320         * modules/fwriting (configure.ac): ... to here.
321
322 2011-05-07  Bruno Haible  <bruno@clisp.org>
323
324         fwritable: Move AC_LIBOBJ invocations to module description.
325         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
326         here...
327         * modules/fwritable (configure.ac): ... to here.
328
329 2011-05-07  Bruno Haible  <bruno@clisp.org>
330
331         futimens: Move AC_LIBOBJ invocations to module description.
332         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
333         here...
334         * modules/futimens (configure.ac): ... to here.
335
336 2011-05-07  Bruno Haible  <bruno@clisp.org>
337
338         ftruncate: Move AC_LIBOBJ invocations to module description.
339         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
340         gl_PREREQ_FTRUNCATE invocations from here...
341         * modules/ftruncate (configure.ac): ... to here.
342
343 2011-05-07  Bruno Haible  <bruno@clisp.org>
344
345         fsync: Move AC_LIBOBJ invocations to module description.
346         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
347         invocations from here...
348         * modules/fsync (configure.ac): ... to here.
349
350 2011-05-07  Bruno Haible  <bruno@clisp.org>
351
352         fsusage: Move AC_LIBOBJ invocations to module description.
353         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
354         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
355         * modules/fsusage (configure.ac): ... to here.
356
357 2011-05-07  Bruno Haible  <bruno@clisp.org>
358
359         freopen: Move AC_LIBOBJ invocations to module description.
360         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
361         invocations from here...
362         * modules/freopen (configure.ac): ... to here.
363
364 2011-05-07  Bruno Haible  <bruno@clisp.org>
365
366         free: Move AC_LIBOBJ invocations to module description.
367         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
368         invocations from here...
369         * modules/free (configure.ac): ... to here.
370
371 2011-05-07  Bruno Haible  <bruno@clisp.org>
372
373         freadable: Move AC_LIBOBJ invocations to module description.
374         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
375         here...
376         * modules/freadable (configure.ac): ... to here.
377
378 2011-05-07  Bruno Haible  <bruno@clisp.org>
379
380         fpurge: Move AC_LIBOBJ invocations to module description.
381         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
382         invocations from here...
383         * modules/fpurge (configure.ac): ... to here.
384
385 2011-05-07  Bruno Haible  <bruno@clisp.org>
386
387         fpending: Move AC_LIBOBJ invocations to module description.
388         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
389         gl_FUNC_FPENDING.
390         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
391         invocations from here...
392         * modules/fpending (configure.ac): ... to here.
393
394 2011-05-07  Bruno Haible  <bruno@clisp.org>
395
396         fopen: Move AC_LIBOBJ invocations to module description.
397         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
398         invocations from here...
399         * modules/fopen (configure.ac): ... to here.
400
401 2011-05-07  Bruno Haible  <bruno@clisp.org>
402
403         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
404         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
405         gl_FUNC_FNMATCH_POSIX.
406         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
407         invocations from here...
408         * modules/fnmatch (configure.ac): ... to here.
409         * modules/fnmatch-gnu (configure.ac): ... and here.
410
411 2011-05-07  Bruno Haible  <bruno@clisp.org>
412
413         flock: Move AC_LIBOBJ invocations to module description.
414         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
415         invocations from here...
416         * modules/flock (configure.ac): ... to here.
417
418 2011-05-07  Bruno Haible  <bruno@clisp.org>
419
420         fileblocks: Move AC_LIBOBJ invocations to module description.
421         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
422         gl_PREREQ_FILEBLOCKS invocations from here...
423         * modules/fileblocks (configure.ac): ... to here.
424
425 2011-05-06  Bruno Haible  <bruno@clisp.org>
426
427         fflush: Move AC_LIBOBJ invocations to module description.
428         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
429         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
430         invocations from here...
431         * modules/fflush (configure.ac): ... to here.
432
433 2011-05-06  Bruno Haible  <bruno@clisp.org>
434
435         fdopendir: Move AC_LIBOBJ invocations to module description.
436         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
437         here...
438         * modules/fdopendir (configure.ac): ... to here.
439         (Depends-on): Improve conditions.
440
441 2011-05-06  Bruno Haible  <bruno@clisp.org>
442
443         _Exit: Move AC_LIBOBJ invocations to module description.
444         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
445         invocations from here...
446         * modules/_Exit (configure.ac): ... to here.
447
448 2011-05-21  Bruno Haible  <bruno@clisp.org>
449
450         euidaccess: Respect rules for use of AC_LIBOBJ.
451         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
452         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
453         from here...
454         * modules/euidaccess (configure.ac): ... to here.
455
456 2011-05-06  Bruno Haible  <bruno@clisp.org>
457
458         error: Move AC_LIBOBJ invocations to module description.
459         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
460         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
461         invocations from here...
462         * modules/error (configure.ac): ... to here.
463
464 2011-05-06  Bruno Haible  <bruno@clisp.org>
465
466         duplocale: Move AC_LIBOBJ invocations to module description.
467         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
468         gl_PREREQ_DUPLOCALE invocations from here...
469         * modules/duplocale (configure.ac): ... to here.
470
471 2011-05-05  Bruno Haible  <bruno@clisp.org>
472
473         dirfd: Move AC_LIBOBJ invocations to module description.
474         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
475         gl_FUNC_DIRFD.
476         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
477         here...
478         * modules/dirfd (configure.ac): ... to here.
479         (Depends-on): Fix condition.
480
481 2011-05-05  Bruno Haible  <bruno@clisp.org>
482
483         chown: Respect rules for use of AC_LIBOBJ.
484         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
485         * modules/chown (configure.ac): ... to here.
486
487 2011-05-05  Bruno Haible  <bruno@clisp.org>
488
489         chdir-long: Move AC_LIBOBJ invocations to module description.
490         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
491         gl_PREREQ_CHDIR_LONG invocations from here...
492         * modules/chdir-long (configure.ac): ... to here.
493
494 2011-05-05  Bruno Haible  <bruno@clisp.org>
495
496         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
497         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
498         from here...
499         * modules/canonicalize-lgpl (configure.ac): ... to here.
500
501 2011-05-05  Bruno Haible  <bruno@clisp.org>
502
503         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
504         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
505         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
506         REPLACE_CALLOC.
507         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
508         * modules/calloc-gnu (configure.ac): Likewise.
509
510 2011-05-05  Bruno Haible  <bruno@clisp.org>
511
512         btowc: Move AC_LIBOBJ invocations to module description.
513         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
514         invocations from here...
515         * modules/btowc (configure.ac): ... to here.
516
517 2011-05-21  Bruno Haible  <bruno@clisp.org>
518
519         atexit: Move AC_LIBOBJ invocations to module description.
520         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
521         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
522         here...
523         * modules/atexit (configure.ac): ... to here.
524
525 2011-05-05  Bruno Haible  <bruno@clisp.org>
526
527         atoll: Move AC_LIBOBJ invocations to module description.
528         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
529         invocations from here...
530         * modules/atoll (configure.ac): ... to here.
531
532 2011-05-05  Bruno Haible  <bruno@clisp.org>
533
534         argz: Move AC_LIBOBJ invocations to module description.
535         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
536         * modules/argz (configure.ac): ... to here.
537
538 2011-05-05  Bruno Haible  <bruno@clisp.org>
539
540         alphasort: Move AC_LIBOBJ invocations to module description.
541         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
542         gl_PREREQ_ALPHASORT invocations from here...
543         * modules/alphasort (configure.ac): ... to here.
544
545 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
546
547         verify: new macro verify_expr; verify_true deprecated
548         * NEWS: Mention this.
549         * doc/verify.texi (Compile-time Assertions): Document this.
550         * lib/verify.h (verify_true): Deprecate.
551         (verify_expr): New macro.
552         * tests/test-verify.c (function): Test verify_expr.
553
554 2011-06-14  Jim Meyering  <meyering@redhat.com>
555
556         init.sh: give more portable redirection-related advice in a comment
557         * tests/init.sh (stderr_fileno_): Update the advice in comments.
558         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
559         for lots of discussion.  Stefano Lattarini suggested the solution
560         of putting "9>&2" after the command.  Reported by Bruno Haible.
561
562 2011-06-13  Bruno Haible  <bruno@clisp.org>
563
564         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
565         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
566         'none'.
567
568 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
569
570         ftoastr: use strtof only if HAVE_STRTOF
571         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
573         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
574         * modules/ftoastr (configure.ac): Check for strtof.
575
576 2011-06-13  Bruno Haible  <bruno@clisp.org>
577
578         gnulib-tool: Addendum to 2011-06-08 commit.
579         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
580         and --witness-c-macro have been given, augment AM_CPPFLAGS.
581
582 2011-06-13  Bruno Haible  <bruno@clisp.org>
583
584         fseeko: Provide a non-inline replacement of fseek().
585         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
586         * modules/fseeko (Depends-on): Add fseek.
587         * modules/fseek (License): Change to LGPLv2+.
588
589 2011-06-13  Bruno Haible  <bruno@clisp.org>
590
591         ftello: Provide a non-inline replacement of ftell().
592         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
593         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
594         not have ftello() (such as on mingw).
595         * modules/ftello (Depends-on): Add ftell.
596         * modules/ftell (License): Change to LGPLv2+.
597
598 2011-05-07  Bruno Haible  <bruno@clisp.org>
599
600         ftell: Move AC_LIBOBJ invocations to module description.
601         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
602         * modules/ftell (configure.ac): ... to here.
603
604 2011-05-07  Bruno Haible  <bruno@clisp.org>
605
606         ftello: Respect rules for use of AC_LIBOBJ.
607         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
608         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
609         here...
610         * modules/ftello (configure.ac): ... to here.
611
612 2011-05-07  Bruno Haible  <bruno@clisp.org>
613
614         fseeko: Simplify.
615         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
616         (gl_FUNC_FSEEKO): Inline it here.
617
618 2011-05-07  Bruno Haible  <bruno@clisp.org>
619
620         fseek: Move AC_LIBOBJ invocations to module description.
621         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
622         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
623         * modules/fseek (configure.ac): ... to here.
624
625 2011-05-07  Bruno Haible  <bruno@clisp.org>
626
627         fseek: Respect rules for use of AC_LIBOBJ.
628         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
629         here...
630         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
631
632 2011-05-07  Bruno Haible  <bruno@clisp.org>
633
634         fseeko: Respect rules for use of AC_LIBOBJ.
635         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
636         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
637         here...
638         * modules/fseeko (configure.ac): ... to here.
639
640 2011-06-13  Bruno Haible  <bruno@clisp.org>
641
642         gnulib-tool: Allow comments in the 'Depends-on' section.
643         * doc/gnulib.texi (Module description): Mention comment syntax in the
644         Depends-on section.
645         * gnulib-tool (func_get_dependencies): Filter out comment lines.
646
647 2011-06-13  Bruno Haible  <bruno@clisp.org>
648
649         file-set.h: guard __attibute__ use, now that it's not always defined
650         * lib/file-set.h (record_file): Use __attribute__ only with compiler
651         versions that support it.  This fixes a coreutils build failure with
652         the vendor cc on HP-UX 11.31.
653
654 2011-06-12  Bruno Haible  <bruno@clisp.org>
655
656         acl: Add support for HP-UX >= 11.11 JFS ACLs.
657         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
658         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
659         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
660         (acl, aclsort): New declarations.
661         (aclv_nontrivial): New declaration.
662         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
663         (file_has_acl): Read also the second kind of HP-UX ACLs.
664         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
665         kind of HP-UX ACLs if the first kind fails.
666         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
667         second kind of HP-UX ACLs.
668         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
669         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
670         agree.
671         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
672         hpuxjfs.
673         Handle hpuxjfs.
674         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
675         hpuxjfs.
676         Handle hpuxjfs.
677         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
678         (func_test_same_acls): Use both lsacl and getacl.
679         Handle hpuxjfs.
680         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
681         (func_test_same_acls): Use both lsacl and getacl.
682         Handle hpuxjfs.
683
684 2011-06-12  Bruno Haible  <bruno@clisp.org>
685
686         acl: Complete the 2010-08-10 fix.
687         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
688         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
689         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
690         explicitly.
691         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
692         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
693
694 2011-06-12  Bruno Haible  <bruno@clisp.org>
695
696         spawn-pipe tests: Comments.
697         * tests/test-spawn-pipe-child.c (main): Update comment.
698         Reported by James Youngman <jay@gnu.org>.
699
700 2011-06-11  James Youngman  <jay@gnu.org>
701
702         New module 'stat-size'.
703         * modules/stat-size: New module.  Provides macros for accessing
704         file size information in instances of struct stat.  Depends on the
705         fileblocks module because it calls st_blocks.
706         * lib/stat-size.h: New file, adapted from coreutils' system.h.
707         * doc/gnulib.texi: Include stat-size.texi.
708         * doc/stat-size.texi: Documentation for this module.
709         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
710         * m4/fileblocks.m4: Mention that stat-size depends on the call to
711         AC_STRUCT_ST_BLOCKS.
712
713 2011-06-09  Bruno Haible  <bruno@clisp.org>
714
715         thread: Support pthreads-win32.
716         * lib/glthread/thread.h (gl_thread_self): Define differently on
717         pthreads-win32.
718         (gl_null_thread): New declaration.
719         (gl_thread_self_pointer): New macro.
720         * lib/glthread/thread.c (gl_null_thread): New constant.
721         * tests/test-lock.c: Use gl_thread_self_pointer instead of
722         gl_thread_self.
723         * tests/test-tls.c: Likewise.
724         Suggested by Paul Eggert. Reported by Eric Blake.
725
726 2011-06-09  Bruno Haible  <bruno@clisp.org>
727
728         thread: Fix confusion between NULL and 0.
729         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
730         Reported by Paul Eggert.
731
732 2011-06-09  Bruno Haible  <bruno@clisp.org>
733
734         spawn-pipe tests: Avoid test failure on HP-UX 11.
735         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
736         is closed.
737
738 2011-06-09  Bruno Haible  <bruno@clisp.org>
739
740         acl tests: Fix compilation error on HP-UX 11.
741         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
742
743 2011-06-09  Bruno Haible  <bruno@clisp.org>
744
745         rmdir: Avoid test failure on HP-UX 10.20.
746         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
747         EEXIST.
748
749 2011-06-08  Eric Blake  <eblake@redhat.com>
750
751         perror: fix test on mingw
752         * modules/perror-tests (Depends-on): Add dup2.
753
754         strerror_r-posix: fix on MacOS
755         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
756         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
757         logic bug.
758         * lib/strerror_r.c (strerror_r): Fix the bug.
759         * lib/strerror.c (strerror): Likewise.
760         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
761         problem.
762         * doc/posix-functions/strerror.texi (strerror): Likewise.
763         * doc/posix-functions/perror.texi (perror): Likewise.
764         * tests/test-strerror.c (main): Enhance test.
765         * tests/test-strerror_r.c (main): Likewise.
766
767 2011-06-08  Bruno Haible  <bruno@clisp.org>
768
769         gnulib-tool: Better isolation between different gnulib-tool invocations.
770         * gnulib-tool: New option --witness-c-macro.
771         (witness_c_macro): New variable.
772         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
773         AM_CPPFLAGS define it as a C macro.
774         (func_emit_tests_Makefile_am): Likewise.
775         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
776         read it from there.
777         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
778         m4_define, not AC_DEFUN.
779         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
780         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
781         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
782         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
783         s|...|...|, to substitute the values of the GNULIB_* module indicator
784         variables.
785         * modules/dirent (Makefile.am): Likewise.
786         * modules/fcntl-h (Makefile.am): Likewise.
787         * modules/iconv-h (Makefile.am): Likewise.
788         * modules/langinfo (Makefile.am): Likewise.
789         * modules/locale (Makefile.am): Likewise.
790         * modules/math (Makefile.am): Likewise.
791         * modules/netdb (Makefile.am): Likewise.
792         * modules/poll-h (Makefile.am): Likewise.
793         * modules/pty (Makefile.am): Likewise.
794         * modules/search (Makefile.am): Likewise.
795         * modules/signal (Makefile.am): Likewise.
796         * modules/spawn (Makefile.am): Likewise.
797         * modules/stdio (Makefile.am): Likewise.
798         * modules/stdlib (Makefile.am): Likewise.
799         * modules/string (Makefile.am): Likewise.
800         * modules/sys_ioctl (Makefile.am): Likewise.
801         * modules/sys_select (Makefile.am): Likewise.
802         * modules/sys_socket (Makefile.am): Likewise.
803         * modules/sys_stat (Makefile.am): Likewise.
804         * modules/sys_times (Makefile.am): Likewise.
805         * modules/sys_utsname (Makefile.am): Likewise.
806         * modules/sys_wait (Makefile.am): Likewise.
807         * modules/termios (Makefile.am): Likewise.
808         * modules/time (Makefile.am): Likewise.
809         * modules/unistd (Makefile.am): Likewise.
810         * modules/wchar (Makefile.am): Likewise.
811
812 2011-06-08  Eric Blake  <eblake@redhat.com>
813
814         strerror: simplify replacement
815         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
816         * modules/strerror (configure.ac): No prereqs needed here...
817         * modules/strerror-override (configure.ac): ...but this needs it.
818         (Files): Add file for needed prereq macro.
819
820 2011-06-08  Bruno Haible  <bruno@clisp.org>
821
822         strerror_r-posix: Tweaks.
823         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
824         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
825         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
826         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
827         (gl_FUNC_STRERROR_R): ... to here.
828         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
829
830 2011-06-07  Eric Blake  <eblake@redhat.com>
831
832         perror: document fixed bugs
833         * doc/posix-functions/perror.texi (perror): Document recent
834         patches.
835
836 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
837
838         stat-time: get_stat_birthtime failure is better-defined
839         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
840         return a timestamp whose tv_sec and tv_nsec values are both -1.
841         Previously, the spec said only that the tv_nsec value was negative.
842         This upward-compatible change simplifies GNU tar a bit.
843
844 2011-06-07  Eric Blake  <eblake@redhat.com>
845
846         strerror_r-posix: work around cygwin 1.7.9
847         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
848         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
849         bug without replacing strerror_r.
850         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
851         strerror_r is buggy, but without requiring strerror_r compilation.
852         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
853
854         test-perror: relax test to ignore cygwin bug
855         * tests/test-perror2.c (main): Relax test on requiring detection
856         of stream errors, and use unbuffered stream.
857         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
858         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
859         * doc/posix-functions/fputc.texi (fputc): Likewise.
860         * doc/posix-functions/fputs.texi (fputs): Likewise.
861         * doc/posix-functions/fputws.texi (fputws): Likewise.
862         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
863         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
864         * doc/posix-functions/getopt.texi (getopt): Likewise.
865         * doc/posix-functions/perror.texi (perror): Likewise.
866         * doc/posix-functions/printf.texi (printf): Likewise.
867         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
868         * doc/posix-functions/psignal.texi (psignal): Likewise.
869         * doc/posix-functions/putc.texi (putc): Likewise.
870         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
871         Likewise.
872         * doc/posix-functions/putchar.texi (putchar): Likewise.
873         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
874         Likewise.
875         * doc/posix-functions/puts.texi (puts): Likewise.
876         * doc/posix-functions/putwc.texi (putwc): Likewise.
877         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
878         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
879         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
880         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
881         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
882         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
883         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
884         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
885
886 2011-05-22  Bruno Haible  <bruno@clisp.org>
887
888         strerror: Move AC_LIBOBJ invocations to module description.
889         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
890         gl_PREREQ_STRERROR invocations from here...
891         * modules/strerror (configure.ac): ... to here.
892
893 2011-05-21  Bruno Haible  <bruno@clisp.org>
894
895         perror: Use common idiom.
896         * modules/perror (configure.ac): Reorder statements.
897
898 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
899
900         tests: fix usage message in 'mktempd_'
901         * tests/init.sh (mktempd_): In the usage message, use literal
902         'mktempd_', not '$ME' (which is even undefined), as the name of
903         the subroutine.
904
905 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
906
907         tests init: new function 'fatal_', for hard errors
908         Before this patch, the only way offered by tests/init.sh to
909         properly signal a hard error was the `framework_failure_'
910         function.  But the error message issued by that function,
911         as its name would suggest, refers to a set-up failure in the
912         testsuite, while hard errors can obviously also be due to
913         other reasons.  The best way to fix this inconsistency is to
914         introduce a new function with a more general error message.
915         * tests/init.sh (fatal_): New function.
916
917 2011-06-06  Eric Blake  <eblake@redhat.com>
918
919         canonicalize-lgpl: use common idiom
920         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
921         over newer POSIX -Rf.
922         Reported by Bruno Haible.
923
924         canonicalize-lgpl: work around AIX realpath bug
925         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
926         * doc/posix-functions/realpath.texi (realpath): Document it.
927         Reported by Bruno Haible.
928
929         strerror: work around FreeBSD bug
930         * lib/strerror.c (strerror): Special case 0.
931         Reported by Bruno Haible.
932
933         strerror-override: avoid bloating errno module
934         * modules/errno (Files, configure.ac): Move replacement strings...
935         * modules/strerror-override: ...to new module.
936         * modules/strerror (Depends-on): Add strerror-override.
937         * modules/strerror_r-posix (Depends-on): Likewise.
938         * MODULES.html.sh: Document new module.
939         Reported by Bruno Haible.
940
941 2011-06-06  Bruno Haible  <bruno@clisp.org>
942
943         spawn-pipe tests: Rename program.
944         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
945         * tests/test-spawn-pipe-child.c: Update comment.
946         * tests/test-spawn-pipe.sh: Update.
947         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
948
949         spawn-pipe tests: Link the child program only against libc.
950         * tests/test-spawn-pipe-child.c: New file, extracted from
951         tests/test-spawn-pipe.c.
952         (main): Expect only one argument.
953         (is_open): New function, copied from tests/test-pipe.c.
954         * tests/test-spawn-pipe.c: Don't include <errno.h>.
955         (child_main): Remove function.
956         (test_pipe): Pass only one argument to the child program.
957         (main): Remove child process code. Expect the child program's name as
958         first argument.
959         * tests/test-spawn-pipe.sh: Pass the child program's name as first
960         argument.
961         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
962         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
963         test-spawn-pipe-child against no libraries.
964
965 2011-06-06  Bruno Haible  <bruno@clisp.org>
966
967         careadlinkat: Avoid mismatch between ssize_t and int.
968         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
969         * lib/careadlinkat.c (careadlinkatcwd): Define always.
970
971 2011-06-06  Jim Meyering  <meyering@redhat.com>
972
973         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
974         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
975         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
976
977 2011-06-05  Bruno Haible  <bruno@clisp.org>
978
979         ansi-c++-opt: Interoperability with libtool.
980         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
981         set the variable to "no", not to ":".
982         * NEWS: Mention the change.
983
984 2011-06-05  Bruno Haible  <bruno@clisp.org>
985
986         acl: Fix test failure on AIX 7.
987         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
988         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
989
990 2011-06-05  Bruno Haible  <bruno@clisp.org>
991
992         pipe-filter-ii: Fix test failure on AIX and IRIX.
993         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
994         with EAGAIN, retry with a smaller buffer size.
995
996 2011-06-05  Bruno Haible  <bruno@clisp.org>
997
998         localename: Fix link dependencies.
999         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1000         * modules/localename-tests (Makefile.am): Link test-localename with
1001         $(LIBTHREAD).
1002
1003 2011-06-05  Bruno Haible  <bruno@clisp.org>
1004
1005         error: Avoid gcc warning.
1006         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1007
1008 2011-06-05  Bruno Haible  <bruno@clisp.org>
1009
1010         unsetenv: Avoid gcc warning.
1011         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1012
1013 2011-06-05  Bruno Haible  <bruno@clisp.org>
1014
1015         setenv: Avoid gcc warning.
1016         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1017
1018 2011-06-05  Bruno Haible  <bruno@clisp.org>
1019
1020         sys_select: Ensure memset is declared also on AIX 7.
1021         * lib/sys_select.in.h: Include <string.h> also on AIX.
1022         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1023         self-contained also on AIX 7.1.
1024
1025 2011-06-04  Jim Meyering  <meyering@redhat.com>
1026
1027         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1028         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1029         function name, "error".
1030         (_gl_translatable_diag_func_re): New configurable variable.
1031
1032 2011-06-04  Bruno Haible  <bruno@clisp.org>
1033
1034         getopt: Avoid gcc warning.
1035         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1036
1037 2011-06-04  Bruno Haible  <bruno@clisp.org>
1038
1039         strerror_r: Fix comments.
1040         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1041         commit.
1042
1043 2011-06-04  Bruno Haible  <bruno@clisp.org>
1044
1045         perror: Fix compilation error.
1046         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1047         Undefine fprintf, not sprintf.
1048         * modules/perror (Depends-on): Remove intprops, verify.
1049
1050 2011-06-04  Bruno Haible  <bruno@clisp.org>
1051
1052         setlocale: Enable replacement on Cygwin 1.5.
1053         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1054         Cygwin 1.5.x.
1055         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1056         LC_CTYPE category also exists on Cygwin 1.5.x.
1057
1058 2011-06-04  Bruno Haible  <bruno@clisp.org>
1059
1060         strerror-override: Don't disable symbol renamings.
1061         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1062         * lib/strerror-override.c: Include config.h.
1063         (strerror_override): Don't undefine.
1064
1065 2011-06-03  Bruno Haible  <bruno@clisp.org>
1066
1067         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1068         * lib/localename.h: Update copyright header.
1069         * lib/localename.c: Likewise.
1070         * lib/relocatable.h: Likewise.
1071         * lib/relocatable.c: Likewise.
1072
1073 2011-06-02  Bruno Haible  <bruno@clisp.org>
1074
1075         doc: Fix a module name.
1076         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1077
1078 2011-06-02  Bruno Haible  <bruno@clisp.org>
1079
1080         pipe2: Remove dependency on 'nonblocking' module.
1081         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1082         O_NONBLOCK is defined by gnulib.
1083         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1084         is zero.
1085         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1086         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1087         defined by gnulib.
1088         (get_nonblocking_flag): New function.
1089         (main): Test O_NONBLOCK flag only if it is nonzero.
1090         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1091
1092 2011-06-03  Jim Meyering  <meyering@redhat.com>
1093
1094         maint: three new prohibit-header-without-use rules
1095         Prohibit use of cloexec.h, posixver.h, same.h without use.
1096         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1097         (sc_prohibit_posixver_without_use): Likewise.
1098         (sc_prohibit_same_without_use): Likewise.
1099
1100 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1101
1102         allocator: 'die' routine is now given requested size
1103         * lib/allocator.h (struct allocator.die): New size arg.
1104         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1105         If the actual problem is an ssize_t limitation, not a size_t or
1106         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1107
1108 2011-06-01  Eric Blake  <eblake@redhat.com>
1109
1110         strerror: drop strerror_r dependency
1111         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1112         * lib/strerror-override.c (strerror_override): ...to new file.
1113         * lib/strerror-override.h: Add prototype.
1114         * lib/strerror-impl.h: Delete.
1115         * lib/strerror.c (strerror): New implementation.
1116         * modules/errno (Files): Add new files.
1117         (configure.ac): Compile new file as appropriate.
1118         * modules/strerror (Files): Drop unused file.
1119         (Depends-on): Drop strerror_r-posix.
1120         * MODULES.html.sh: Document strerror_r-posix.
1121         Requested by Sam Steingold.
1122
1123         perror: call strerror_r directly
1124         * modules/perror (Files): Drop strerror-impl.h.
1125         * lib/perror.c (perror): Use our own stack buffer, rather than
1126         calling a wrapper that uses static storage.
1127         * doc/posix-functions/perror.texi (perror): Document a limitation
1128         of our replacement.
1129
1130         strerror_r: fix includes for FreeBSD
1131         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1132         since we use abort on some platforms.
1133         Reported by Matthias Bolte.
1134
1135 2011-05-31  Bruno Haible  <bruno@clisp.org>
1136
1137         Fix link errors in tests: openat-die uses gettext-h.
1138         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1139         against $(LIBINTL).
1140         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1141         against $(LIBINTL).
1142         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1143         $(LIBINTL).
1144         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1145         against $(LIBINTL).
1146         * modules/linkat-tests (Makefile.am): Link test-linkat against
1147         $(LIBINTL).
1148         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1149         $(LIBINTL).
1150         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1151         against $(LIBINTL).
1152         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1153         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1154         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1155         $(LIBINTL).
1156         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1157         $(LIBINTL).
1158         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1159         $(LIBINTL).
1160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1161
1162 2011-05-31  Bruno Haible  <bruno@clisp.org>
1163
1164         Fix link errors in tests: wait-process uses gettext-h.
1165         * modules/nonblocking-pipe-tests (Makefile.am): Set
1166         test_nonblocking_pipe_main_LDADD.
1167         * modules/nonblocking-socket-tests (Makefile.am): Link
1168         test-nonblocking-socket-main against $(LIBINTL).
1169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1170
1171 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1172
1173         assert-h: work around 'verify' incompatibility
1174         * lib/verify.h: Use @...@ directives, not ifdef.
1175         * modules/assert-h (assert.h): Implement the directives.
1176         (assert.h): Substitute the symbol-prefix more consistently.
1177
1178 2011-05-29  Jim Meyering  <meyering@redhat.com>
1179
1180         trim: remove three superfluous assignments
1181         * lib/trim.c (trim2): Remove three superfluous assignments
1182         and correct brace positioning.
1183
1184 2011-05-29  Bruno Haible  <bruno@clisp.org>
1185
1186         wctype-h: Avoid namespace pollution on Solaris 2.6.
1187         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1188         identifiers.
1189         * doc/posix-headers/wctype.texi: Mention the problem.
1190         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1191
1192 2011-05-28  Jim Meyering  <meyering@redhat.com>
1193
1194         parse-datetime.y: accommodate -Wstrict-overflow
1195         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1196         placate -Wstrict-overflow.
1197
1198         trim: avoid a warning from -O2 -Wstrict-overflow
1199         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
1200
1201 2011-05-29  Bruno Haible  <bruno@clisp.org>
1202
1203         gnulib-tool: Fix bug in yesterday's commit.
1204         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
1205         twice.
1206
1207 2011-05-29  Bruno Haible  <bruno@clisp.org>
1208
1209         Allow multiple gnulib generated include files to be combined.
1210         * gnulib-tool (func_compute_include_guard_prefix): New function.
1211         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
1212         ${gl_include_guard_prefix} references.
1213         (func_import, func_create_testdir): Invoke
1214         func_compute_include_guard_prefix.
1215         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
1216         * lib/ctype.in.h: Likewise.
1217         * lib/dirent.in.h: Likewise.
1218         * lib/errno.in.h: Likewise.
1219         * lib/fcntl.in.h: Likewise.
1220         * lib/float.in.h: Likewise.
1221         * lib/getopt.in.h: Likewise.
1222         * lib/iconv.in.h: Likewise.
1223         * lib/langinfo.in.h: Likewise.
1224         * lib/locale.in.h: Likewise.
1225         * lib/math.in.h: Likewise.
1226         * lib/netdb.in.h: Likewise.
1227         * lib/netinet_in.in.h: Likewise.
1228         * lib/poll.in.h: Likewise.
1229         * lib/pthread.in.h: Likewise.
1230         * lib/pty.in.h: Likewise.
1231         * lib/sched.in.h: Likewise.
1232         * lib/se-selinux.in.h: Likewise.
1233         * lib/search.in.h: Likewise.
1234         * lib/signal.in.h: Likewise.
1235         * lib/spawn.in.h: Likewise.
1236         * lib/stdarg.in.h: Likewise.
1237         * lib/stddef.in.h: Likewise.
1238         * lib/stdint.in.h: Likewise.
1239         * lib/stdio.in.h: Likewise.
1240         * lib/stdlib.in.h: Likewise.
1241         * lib/string.in.h: Likewise.
1242         * lib/strings.in.h: Likewise.
1243         * lib/sys_file.in.h: Likewise.
1244         * lib/sys_ioctl.in.h: Likewise.
1245         * lib/sys_select.in.h: Likewise.
1246         * lib/sys_socket.in.h: Likewise.
1247         * lib/sys_stat.in.h: Likewise.
1248         * lib/sys_time.in.h: Likewise.
1249         * lib/sys_times.in.h: Likewise.
1250         * lib/sys_uio.in.h: Likewise.
1251         * lib/sys_utsname.in.h: Likewise.
1252         * lib/sys_wait.in.h: Likewise.
1253         * lib/sysexits.in.h: Likewise.
1254         * lib/termios.in.h: Likewise.
1255         * lib/time.in.h: Likewise.
1256         * lib/unistd.in.h: Likewise.
1257         * lib/wchar.in.h: Likewise.
1258         * lib/wctype.in.h: Likewise.
1259         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
1260         * modules/ctype (Makefile.am): Likewise.
1261         * modules/dirent (Makefile.am): Likewise.
1262         * modules/errno (Makefile.am): Likewise.
1263         * modules/fcntl-h (Makefile.am): Likewise.
1264         * modules/float (Makefile.am): Likewise.
1265         * modules/getopt-posix (Makefile.am): Likewise.
1266         * modules/iconv-h (Makefile.am): Likewise.
1267         * modules/langinfo (Makefile.am): Likewise.
1268         * modules/locale (Makefile.am): Likewise.
1269         * modules/math (Makefile.am): Likewise.
1270         * modules/netdb (Makefile.am): Likewise.
1271         * modules/netinet_in (Makefile.am): Likewise.
1272         * modules/poll-h (Makefile.am): Likewise.
1273         * modules/pthread (Makefile.am): Likewise.
1274         * modules/pty (Makefile.am): Likewise.
1275         * modules/sched (Makefile.am): Likewise.
1276         * modules/search (Makefile.am): Likewise.
1277         * modules/selinux-h (Makefile.am): Likewise.
1278         * modules/signal (Makefile.am): Likewise.
1279         * modules/spawn (Makefile.am): Likewise.
1280         * modules/stdarg (Makefile.am): Likewise.
1281         * modules/stddef (Makefile.am): Likewise.
1282         * modules/stdint (Makefile.am): Likewise.
1283         * modules/stdio (Makefile.am): Likewise.
1284         * modules/stdlib (Makefile.am): Likewise.
1285         * modules/string (Makefile.am): Likewise.
1286         * modules/strings (Makefile.am): Likewise.
1287         * modules/sys_file (Makefile.am): Likewise.
1288         * modules/sys_ioctl (Makefile.am): Likewise.
1289         * modules/sys_select (Makefile.am): Likewise.
1290         * modules/sys_socket (Makefile.am): Likewise.
1291         * modules/sys_stat (Makefile.am): Likewise.
1292         * modules/sys_time (Makefile.am): Likewise.
1293         * modules/sys_times (Makefile.am): Likewise.
1294         * modules/sys_uio (Makefile.am): Likewise.
1295         * modules/sys_utsname (Makefile.am): Likewise.
1296         * modules/sys_wait (Makefile.am): Likewise.
1297         * modules/sysexits (Makefile.am): Likewise.
1298         * modules/termios (Makefile.am): Likewise.
1299         * modules/time (Makefile.am): Likewise.
1300         * modules/unistd (Makefile.am): Likewise.
1301         * modules/wchar (Makefile.am): Likewise.
1302         * modules/wctype-h (Makefile.am): Likewise.
1303         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1304
1305 2011-05-29  Bruno Haible  <bruno@clisp.org>
1306
1307         assert-h: Allow multiple gnulib generated replacements to coexist.
1308         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1309
1310 2011-05-29  Bruno Haible  <bruno@clisp.org>
1311
1312         argp: Allow coexistence with strerror_r-posix module.
1313         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1314         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1315         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1316         not the glibc signature.
1317
1318 2011-05-28  Bruno Haible  <bruno@clisp.org>
1319
1320         gnulib-tool: Alternative structure of testdirs, similar to --import.
1321         * gnulib-tool: New option --single-configure.
1322         (func_usage): Document it.
1323         (single_configure): New variable.
1324         (func_modules_transitive_closure_separately,
1325         func_modules_transitive_closure_separately,
1326         func_determine_use_libtests, func_modules_add_dummy_separately,
1327         func_modules_to_filelist_separately): New functions, extracted from
1328         func_import.
1329         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
1330         (func_import): Use the new functions.
1331         (func_create_testdir): Set final_modules. Handle $single_configure =
1332         true case.
1333
1334 2011-05-28  Bruno Haible  <bruno@clisp.org>
1335
1336         getloadavg: Remove an unreliable safety check.
1337         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
1338         getloadavg.c is in place.
1339         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
1340         Reported by Sam Steingold <sds@gnu.org>.
1341
1342 2011-05-28  Bruno Haible  <bruno@clisp.org>
1343
1344         doc: Cleanup yet another file produced by texinfo.tex.
1345         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
1346
1347 2011-05-28  Bruno Haible  <bruno@clisp.org>
1348
1349         Finish the conditional dependencies mechanism.
1350         * gnulib-tool: New option --no-conditional-dependencies.
1351         (func_usage): Document it. Don't mark --conditional-dependencies as
1352         experimental.
1353         (cond_dependencies): The possible values can now be true, false, empty.
1354         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
1355         (func_import): Store setting in gnulib-cache.m4 and read it from there.
1356         * doc/gnulib-tool.texi (Conditional dependencies): New section.
1357
1358 2011-05-28  Bruno Haible  <bruno@clisp.org>
1359
1360         doc: Use a recent texinfo.tex.
1361         * doc/Makefile (tex_opts): New variable.
1362         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
1363
1364 2011-05-28  Jim Meyering  <meyering@redhat.com>
1365
1366         intprops.h: adjust comment to match code change
1367         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
1368         only once, it *may* have side effects.  Also fix an unrelated typo.
1369         (_GL_INT_SIGNED): Likewise.
1370
1371 2011-05-26  Simon Josefsson  <simon@josefsson.org>
1372
1373         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
1374
1375 2011-05-26  Bruno Haible  <bruno@clisp.org>
1376
1377         mbsrchr: Avoid collision with system function on Interix.
1378         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1379         Reported by Markus Duft <mduft@gentoo.org>.
1380
1381 2011-05-15  James Youngman  <jay@gnu.org>
1382
1383         getopt: for ambiguous options, enumerate the possibilities.
1384         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1385         the ambiguous options when an ambiguous prefix is given. This was
1386         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1387         glibc change was
1388         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1389
1390 2011-05-25  Eric Blake  <eblake@redhat.com>
1391
1392         getcwd: work around mingw bug
1393         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1394         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1395         Reported by Matthias Bolte.
1396
1397 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1398
1399         test-intprops: disable -Wtype-limits diagnostics
1400         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1401         diagnostics.  Otherwise, the integer overflow macros generate many
1402         diagnostics.  Reported by Jim Meyering in
1403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1404
1405         intprops: shorten, to pacify gcc -Woverlength-strings
1406         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1407         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1408         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1409         likely to run afoul of C compiler limits for string constant lengths.
1410         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1411
1412 2011-05-24  Eric Blake  <eblake@redhat.com>
1413
1414         docs: document recently fixed glibc printf bug
1415         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1416         * doc/posix-functions/printf.texi (printf): Likewise.
1417         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1418         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1419
1420         closein-tests: convert to init.sh
1421         * modules/closein-tests (Files): Add init.sh
1422         * tests/test-closein.sh Use it.
1423
1424         yesno-tests: convert to init.sh
1425         * modules/yesno-tests (Files): Add init.sh.
1426         * tests/test-yesno.sh: Use it.
1427
1428         atexit-tests: ensure reliable exit status
1429         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1430         Reported by Bruno Haible.
1431
1432 2011-05-24  Bruno Haible  <bruno@clisp.org>
1433
1434         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1435         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1436         gl_PREREQ_STRERROR_R invocations from here...
1437         * modules/strerror_r-posix (configure.ac): ... to here.
1438
1439 2011-05-24  Eric Blake  <eblake@redhat.com>
1440
1441         strerror_r: fix missing header
1442         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1443
1444         strerror_r: fix AIX test failures
1445         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1446         ERANGE failure.
1447
1448         strerror_r: fix Solaris test failures
1449         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1450         failures.
1451         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1452
1453         strerror_r: enforce POSIX recommendations
1454         * lib/strerror_r.c (safe_copy): New helper method.
1455         (strerror_r): Guarantee a non-empty string.
1456         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1457         recent POSIX rulings and to match our strerror guarantees.
1458         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1459
1460 2011-05-24  Jim Meyering  <meyering@redhat.com>
1461
1462         test-perror2.c: avoid warning about unused variable
1463         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1464
1465 2011-05-24  Eric Blake  <eblake@redhat.com>
1466
1467         perror: avoid spurious test failure on HP-UX
1468         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1469
1470         tests: fix logic bug in init.sh
1471         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1472         shell.
1473
1474 2011-05-24  Jim Meyering  <meyering@redhat.com>
1475
1476         utimensat: do not reference an out-of-scope buffer
1477         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1478         declared in an inner scope, yet "times" would be dereferenced outside
1479         the scope in which "ts" was valid.
1480         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1481         of ts[2] "out/up", so that the use of aliased "times" (via
1482         "times = ts;") does not end up referencing an out-of-scope "ts"
1483
1484         opendir-safer.c: don't clobber errno; don't close negative FD
1485         * lib/opendir-safer.c (opendir_safer):
1486         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1487         file descriptor, and more importantly, don't clobber the
1488         offending errno value with EINVAL.  Before, upon failure
1489         of dup_safer, we would pass the negative file descriptor to
1490         fdopendir, which would clobber errno.
1491
1492 2011-05-23  Bruno Haible  <bruno@clisp.org>
1493
1494         idcache: Fix module description.
1495         * modules/idcache (Include): Set to "idcache.h".
1496
1497 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1498
1499         gnulib-tool: fix portability problem with MacOS sed
1500         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1501         before the "}".  Problem reported by Leo in
1502         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1503         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1504         sed_extract_condition1, sed_extract_condition2.
1505
1506 2011-05-23  Bruno Haible  <bruno@clisp.org>
1507
1508         hash: Simplify autoconf macro.
1509         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1510
1511 2011-05-23  Bruno Haible  <bruno@clisp.org>
1512
1513         getugroups: Fix module description.
1514         * modules/getugroups (Include): Set to "getugroups.h".
1515
1516 2011-05-23  Bruno Haible  <bruno@clisp.org>
1517
1518         linkat: Simplify autoconf macro.
1519         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1520
1521 2011-05-23  Bruno Haible  <bruno@clisp.org>
1522             Eric Blake  <eblake@redhat.com>
1523
1524         linkat, renameat: Update dependencies.
1525         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1526         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1527         symlinkat.
1528
1529 2011-05-23  Jim Meyering  <meyering@redhat.com>
1530
1531         maint.mk: more tight_scope improvements
1532         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1533         (_gl_TS_headers): Define only in if-0'd block.
1534         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1535         sometimes we must *not* use it.  Adjust uses accordingly.
1536         (sc_tight_scope): Use much simpler grep-based test to determine
1537         whether we skip this rule.
1538
1539         maint.mk: generalize/improve the tight-scope rule
1540         * top/maint.mk: Emit a warning when the test is skipped.
1541         (_gl_TS_dir): Add $(srcdir)/ prefix.
1542         (_gl_TS_function_match): Simplify, rather than trying
1543         to enumerate common types.  Otherwise, it would fail to match an
1544         "extern unsigned char const *" declaration in idutils.
1545         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1546         a way to support use of that type of macro.
1547         (_gl_TS_var_match): Simplify regexp.
1548         (_gl_TS_obj_files): New configurable variable.
1549         (_gl_TS_headers): Likewise.
1550
1551 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1552
1553         verify: fix bug when gnulib <assert.h> is also included
1554         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1555         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1556         Perhaps there's a better way, but this fixes the immediate problem.
1557         Problem reported by Bruno Haible in
1558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1559
1560 2011-05-22  Bruno Haible  <bruno@clisp.org>
1561
1562         xgetcwd: Simplify autoconf macro.
1563         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1564
1565 2011-05-22  Bruno Haible  <bruno@clisp.org>
1566
1567         New module 'mktime-internal'.
1568         * modules/mktime-internal: New file.
1569         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1570         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1571         mktime_internal as a C macro if libc has __mktime_internal.
1572         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1573         conditions.
1574         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1575
1576 2011-05-22  Bruno Haible  <bruno@clisp.org>
1577
1578         timegm: Correct mktime replacement statements.
1579         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1580         defining mktime as a C macro. This completes a 2009-07-28 commit.
1581
1582 2011-05-22  Bruno Haible  <bruno@clisp.org>
1583
1584         timegm: Simplify autoconf macro.
1585         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1586
1587 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1588
1589         clock-time: change to LGPLv2+.
1590         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1591         BSD-like but we have no mark for that; this is good enough for now.
1592
1593 2011-05-21  Bruno Haible  <bruno@clisp.org>
1594
1595         strerror_r: Fix comments.
1596         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1597
1598 2011-05-21  Bruno Haible  <bruno@clisp.org>
1599
1600         relocatable-prog-wrapper: Fix possible link error.
1601         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1602         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1603         (gl_FUNC_SETENV): ... to here.
1604         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1605         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1606
1607 2011-05-21  Bruno Haible  <bruno@clisp.org>
1608
1609         relocatable-prog-wrapper: Assume strerror() exists.
1610         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1611         m4/strerror.m4.
1612         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1613         * lib/relocwrapper.c: Remove mention of strerror module.
1614         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1615         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1616         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1617         C macro.
1618
1619 2011-05-21  Bruno Haible  <bruno@clisp.org>
1620
1621         select: Simplify replacement idiom.
1622         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1623         Win32 platforms.
1624         * lib/sys_select.in.h (select): Simplify accordingly.
1625         * modules/select (Depends-on): Likewise.
1626
1627 2011-05-21  Bruno Haible  <bruno@clisp.org>
1628
1629         mkdir-p: Simplify autoconf macro.
1630         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1631         gl_FUNC_LCHOWN.
1632
1633 2011-05-21  Eric Blake  <eblake@redhat.com>
1634
1635         strerror_r: avoid clobbering strerror on cygwin
1636         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1637         fall back instead to sys_errlist.
1638         * modules/strerror (configure.ac): Add witness.
1639         * tests/test-strerror_r.c (main): Enhance test.
1640         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1641         * tests/test-perror2.c (main): Free memory before exit.
1642
1643 2011-05-21  Bruno Haible  <bruno@clisp.org>
1644
1645         mkdtemp: Use gnulib naming conventions.
1646         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1647         * modules/mkdtemp (configure.ac): Update.
1648
1649 2011-05-20  Eric Blake  <eblake@redhat.com>
1650
1651         strerror_r: avoid corrupting errno on Solaris
1652         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1653         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1654
1655         strerror_r: avoid compiler warning
1656         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1657
1658         strerror_r: simplify AIX code
1659         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1660
1661         test-perror: avoid spurious failure on FreeBSD
1662         * modules/perror-tests (Depends-on): Add strerror, now that
1663         strerror_r no longer pulls it in.
1664
1665 2011-05-20  Bruno Haible  <bruno@clisp.org>
1666
1667         strerror_r-posix: Remove unused dependencies.
1668         * modules/strerror_r-posix (Depends-on): Remove strerror.
1669         Reported by Eric Blake.
1670
1671 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1672
1673         intprops: remove assumption about A|B representation
1674         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1675         is a valid integer if both A and B are.  Although this is true for
1676         all known practical hosts, the C standard doesn't guarantee it,
1677         and the code need not assume it.  Also, this change may work around
1678         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1680
1681 2011-05-20  Eric Blake  <eblake@redhat.com>
1682
1683         perror: work around FreeBSD bug
1684         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1685         is broken.  Move AC_LIBOBJ...
1686         * modules/perror (configure.ac): Here.
1687         * doc/posix-functions/perror.texi (perror): Document this.
1688         * tests/test-perror2.c (main): Enhance test.
1689
1690         test-perror: check for strerror interactions
1691         * tests/macros.h (STREQ): Add macro.
1692         * modules/perror-tests (Files): Add second test.
1693         * tests/test-perror2.c (main): New file.
1694         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1695
1696         test-perror: rewrite to use init script
1697         * modules/perror-tests (Files): Add init.sh.
1698         * tests/test-perror.sh: Use temporary directory.
1699
1700 2011-05-20  Jim Meyering  <meyering@redhat.com>
1701
1702         maint: replace misused "a" with "an"
1703         * doc/intprops.texi: "a integer"
1704         * doc/regex.texi: "a explanation"
1705         * lib/alignof.h: "a object"
1706         * lib/argmatch.h: "a explanation"
1707         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1708         * lib/stdint.in.h: "a integer"
1709         * lib/userspec.c: "a owner"
1710         * doc/gnulib.texi: Fix "a idea", and reword.
1711
1712 2011-05-19  Jim Meyering  <meyering@redhat.com>
1713
1714         maint: correct misuse of "a" and "an"
1715         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1716         * lib/argp-help.c: "an docum...": s/an/a/
1717         * lib/argp-parse.c: "An vector": s/An/A/
1718         * lib/execute.c: "an native": s/an/a/
1719         * lib/spawn-pipe.c: Likewise.
1720         * lib/gc.h: "an Gc_rc": s/an/a/
1721         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1722         * lib/fts.c: "an stat.st_dev": s/an/a/
1723
1724 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1725
1726         intprops-tests: work around HP-UX 11.23 cc bug with constants
1727         * tests/test-intprops.c (VERIFY): New macro.
1728         (main): Use it, instead of verify, to work around the compiler bug; see
1729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1730
1731         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1732         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1733         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1734         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1735         (_GL_REMAINDER_OVERFLOW): Use it.
1736
1737         intprops-tests: revert unsigned part of previous change
1738         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1739         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1740         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1742
1743 2011-05-19  Bruno Haible  <bruno@clisp.org>
1744
1745         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1746         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1747         strerror_r() returned without filling the buffer.
1748         Reported by Eric Blake.
1749
1750 2011-05-19  Eric Blake  <eblake@redhat.com>
1751
1752         strerror_r: guarantee unchanged errno
1753         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1754         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1755         failure.
1756         * tests/test-strerror_r.c (main): Enhance test.
1757
1758 2011-05-19  Bruno Haible  <bruno@clisp.org>
1759
1760         strerror_r: Reorder #if blocks.
1761         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1762         for consistency with the previous commit.
1763
1764 2011-05-19  Bruno Haible  <bruno@clisp.org>
1765
1766         perror: Avoid clobbering the strerror buffer when possible.
1767         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1768         * lib/strerror.c: Include it.
1769         * modules/strerror (Files): Add lib/strerror-impl.h.
1770         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1771         (my_strerror): New function, defined through lib/strerror-impl.h.
1772         (perror): Use it instead of strerror.
1773         * modules/perror (Files): Add lib/strerror-impl.h.
1774         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1775
1776 2011-05-19  Eric Blake  <eblake@redhat.com>
1777
1778         strerror_r: fix on newer cygwin
1779         * lib/strerror_r.c (strerror_r): Cygwin now has
1780         __xpg_strerror_r, use it.
1781
1782 2011-05-19  Bruno Haible  <bruno@clisp.org>
1783
1784         strerror_r: Avoid clobbering the strerror buffer when possible.
1785         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1786         (sys_nerr, sys_errlist): New declarations.
1787         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1788         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1789         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1790
1791 2011-05-19  Bruno Haible  <bruno@clisp.org>
1792
1793         strerror_r: Fix test failure on mingw.
1794         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1795         EXTEND_STRERROR_R.
1796         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1797         macros from errno.in.h instead.
1798
1799 2011-05-19  Eric Blake  <eblake@redhat.com>
1800
1801         strerror: relax test for Solaris
1802         * tests/test-strerror.c (main): Permit Solaris behavior.
1803         * tests/test-strerror_r.c (main): Likewise.
1804
1805         strerror: enforce POSIX ruling on strerror(0)
1806         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1807         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1808         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1809         * doc/posix-functions/strerror.texi (strerror): Document it.
1810         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1811         * tests/test-strerror.c (main): Strengthen test.
1812         * tests/test-strerror_r.c (main): Likewise.
1813
1814 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1815
1816         intprop-tests: port to older and more-pedantic compilers
1817         * modules/intprops-tests (Files): Add tests/macros.h.
1818         * tests/test-intprops.c: Include macros.h.
1819         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1820         it's no longer documented to expand to an integer constant expression.
1821         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1822         argument is floating point, as it's no longer documented to expand
1823         to an integer constant expression in that case.
1824         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1825         compiler bugs reported by Bruno Haible.  See
1826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1827         (U0, U1): New constants, to work around the same bugs.  Also,
1828         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1829
1830         intprops: work around C compiler bugs
1831         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1832         bug in Sun C 5.11 2010/08/13 and other compilers; see
1833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1834
1835         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1836         * doc/intprops.texi (Integer Type Determination): Fix
1837         documentation for TYPE_IS_INTEGER: it returns an constant
1838         expression, not an integer constant expression.  Fix doc for
1839         TYPE_SIGNED: it returns an integer constant expression only if its
1840         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1841         hardly worth documented that way....)
1842
1843 2011-05-18  Bruno Haible  <bruno@clisp.org>
1844
1845         strerror_r: Avoid clobbering the strerror buffer when possible.
1846         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1847         Handle gnulib defined errno values here. When strerror() returns NULL
1848         or an empty string, return EINVAL.
1849         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1850         gnulib defined errno values here.
1851         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1852
1853 2011-05-18  Eric Blake  <eblake@redhat.com>
1854
1855         fnmatch: avoid compiler warning
1856         * lib/fnmatch_loop.c (FCT): Use correct type.
1857         Reported by Matthias Bolte.
1858
1859 2011-05-13  Jim Meyering  <meyering@redhat.com>
1860
1861         maint.mk: three new prohibit_<HDR>_without_use rules
1862         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1863         (sc_prohibit_stdio-safer_without_use): Likewise.
1864         (sc_prohibit_xfreopen_without_use): Likewise.
1865
1866 2011-05-17  Jim Meyering  <meyering@redhat.com>
1867
1868         announce-gen: fail if the NEWS delta is empty
1869         If there's nothing noteworthy in NEWS, then either you forgot
1870         or you shouldn't be releasing.
1871         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1872
1873 2011-05-17  Pádraig Brady <P@draigBrady.com>
1874
1875         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1876         reserved symbols starting with double underscore from the check.
1877
1878 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1879
1880         intprops: add doc
1881         * doc/intprops.texi: New file, documenting intprops.
1882         * doc/gnulib.texi (Particular Modules): Include it.
1883
1884         verify: add doc to gnulib manual and fix example
1885         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1886         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1887         (Compile-time Assertions): Fix example so it can't overflow.
1888
1889 2011-05-17  Jim Meyering  <meyering@redhat.com>
1890
1891         warnings.m4: don't usurp save_CPPFLAGS variable name
1892         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1893
1894         doc: fix typo
1895         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1896
1897 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1898             Bruno Haible  <bruno@clisp.org>
1899
1900         doc: Tweak recent change.
1901         * README (Portability guidelines): Tweak new text.
1902         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1903         Interix 6.1.
1904
1905 2011-05-16  Eric Blake  <eblake@redhat.com>
1906
1907         inttypes: avoid autoconf warning
1908         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1909         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1910
1911 2011-05-16  Sam Steingold <sds@gnu.org>
1912         and Eric Blake  <eblake@redhat.com>
1913
1914         vc-list-files: accept multiple directory operands
1915         * build-aux/vc-list-files: Iterate over all remaining operands.
1916
1917 2011-05-16  Bruno Haible  <bruno@clisp.org>
1918
1919         Fix confusion regarding deprecated modules.
1920         * modules/calloc (Status, Notice): Mark module as deprecated, not
1921         obsolete.
1922         * modules/fnmatch-posix (Status, Notice): Likewise.
1923         * modules/getdate (Status, Notice): Likewise.
1924         * modules/getopt (Status, Notice): Likewise.
1925         * modules/malloc (Status, Notice): Likewise.
1926         * modules/pipe (Status, Notice): Likewise.
1927         * modules/realloc (Status, Notice): Likewise.
1928         * modules/rename-dest-slash (Status, Notice): Likewise.
1929         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1930         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1931         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1932         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1933         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1934
1935 2011-05-16  Bruno Haible  <bruno@clisp.org>
1936
1937         doc: List the target platforms.
1938         * doc/gnulib-intro.texi (Target Platforms): New section.
1939         * doc/gnulib.texi (Introduction): Update menu.
1940         * README (Portability guidelines): Refer to the new section. Update
1941         statement about oldest supported environment. Remove rationale why
1942         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1943         unportable C89 function.
1944         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1945         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1946
1947 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1948
1949         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1950
1951 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1952
1953         intprops-tests: new module
1954         * modules/intprops-tests, tests/test-intprops.c: New files.
1955
1956         intprops: add safe, portable integer overflow checking
1957         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1958         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1959         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1960         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1961         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1962         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1963         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1964         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1965         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1966         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1967         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1968
1969 2011-05-12  James Youngman  <jay@gnu.org>
1970
1971         Add a test for glibc's Bugzilla bug #12378.
1972         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1973         doesn't allow the literal matching of a lone "[" (which is
1974         required by POSIX).
1975         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1976
1977 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1978
1979         Sync glibc change fixing Bugzilla bug #12378.
1980         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1981         beginning and fall back to matching as normal character if the
1982         string ends before the matching ']' is found.  This is what POSIX
1983         requires.
1984
1985 2011-05-13  Eric Blake  <eblake@redhat.com>
1986
1987         getcwd-lgpl: relax test for FreeBSD
1988         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1989         issue.
1990         * tests/test-getcwd-lgpl.c (main): Relax test.
1991         Reported by Matthias Bolte.
1992
1993 2011-05-11  Eric Blake  <eblake@redhat.com>
1994
1995         test-fflush: silence compiler warning
1996         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1997
1998 2011-05-11  Bruno Haible  <bruno@clisp.org>
1999
2000         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2001         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2002         * modules/canonicalize (Depends-on): Add 'nocrash'.
2003         * modules/canonicalize-lgpl (Depends-on): Likewise.
2004         * doc/posix-functions/realpath.texi: Update platforms list.
2005         Reported by Ryan Schmidt <ryandesign@macports.org>.
2006
2007 2011-05-11  Bruno Haible  <bruno@clisp.org>
2008
2009         group-member: Declare function in <unistd.h>.
2010         * lib/unistd.in.h (group_member): New declaration.
2011         * lib/group-member.h: Remove file.
2012         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2013         * tests/test-unistd-c++.cc: Check signature of group_member.
2014         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2015         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2016         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2017         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2018         HAVE_GROUP_MEMBER.
2019         * modules/group-member (Files): Remove lib/group-member.h.
2020         (Depends-on): Add unistd. Specify conditions.
2021         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2022         (Include): Change to <unistd.h>.
2023         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2024         HAVE_GROUP_MEMBER.
2025         * NEWS: Mention the change.
2026         * lib/euidaccess.c: Don't include group-member.h.
2027
2028 2011-05-11  Bruno Haible  <bruno@clisp.org>
2029
2030         group-member: Document module.
2031         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2032         module.
2033
2034 2011-05-11  Bruno Haible  <bruno@clisp.org>
2035
2036         fclose: Fix mistake earlier today.
2037         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2038
2039 2011-05-11  Eric Blake  <eblake@redhat.com>
2040
2041         fclose: preserve fflush errors
2042         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2043         Reported by Jim Meyering.
2044
2045         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2046         * build-aux/bootstrap (check_versions): When no specific version
2047         is required, merely check that the app produces an exit status
2048         that indicates its existence.
2049
2050         maint.mk: drop redundant check
2051         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2052         the same but better.
2053
2054 2011-05-11  Bruno Haible  <bruno@clisp.org>
2055
2056         fclose: Fix possible link error.
2057         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2058         unregister_shadow_fd. Improve comments.
2059         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2060         Eric Blake.
2061
2062 2011-05-11  Jim Meyering  <meyering@redhat.com>
2063
2064         maint.mk: improve "can not" detection and generalize rule name
2065         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2066         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2067         Use the same technique as in sc_prohibit_doubled_word, so that
2068         we recognize "can not" also when the words are separated by a newline.
2069         Suggested by Eric Blake.
2070         (perl_filename_lineno_text_): Define.  Factored out of...
2071         (prohibit_doubled_word_): ...here.  Use the new definition.
2072         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2073         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2074         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2075
2076 2011-05-10  Eric Blake  <eblake@redhat.com>
2077
2078         fclose: avoid double close race when possible
2079         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2080         all but WINDOWS_SOCKETS.
2081
2082 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2083
2084         openat: correct new comment
2085         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2086
2087 2011-05-10  Jim Meyering  <meyering@redhat.com>
2088
2089         openat: add comments
2090         * lib/openat-proc.c (openat_proc_name): Add comments,
2091         mostly from Eric Blake.
2092
2093 2011-05-09  Eric Blake  <eblake@redhat.com>
2094
2095         openat: reduce syscalls in first probe of /proc
2096         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2097         be a directory.  Simplify the probe for .. bugs.
2098         * modules/openat (Depends-on): Drop same-inode.
2099         Reported by Bastien ROUCARIES.
2100
2101 2011-05-09  Jim Meyering  <meyering@redhat.com>
2102
2103         maint.mk: change semantics/name of tight_scope variables
2104         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2105         Rename variables to align with semantics that make them more useful.
2106
2107         maint.mk: tweak new rule's name not to impinge
2108         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2109         (sc_tight_scope): Use new rule name rather than $@-0.
2110
2111         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2112         * top/maint.mk (sc_tight_scope): New rule.
2113         (sc_tight_scope-0): New rule, ifdef'd out.
2114         (_gl_TS_dir): Default.
2115         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2116         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2117
2118 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2119
2120         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2121         Haible <bruno@clisp.org>.
2122
2123 2011-05-08  Bruno Haible  <bruno@clisp.org>
2124
2125         Comments.
2126         * m4/isnanf.m4: Add comment.
2127         * m4/isnanl.m4: Likewise.
2128
2129 2011-05-08  Bruno Haible  <bruno@clisp.org>
2130
2131         glob: Remove obsolete macro.
2132         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2133
2134 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2135
2136         intprops: Sun C 5.11 supports __typeof__
2137         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2138         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2139         which is new.
2140         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2141
2142         intprops: switch to usual gnulib indenting and naming
2143         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2144         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2145
2146         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2147
2148 2011-05-08  Jim Meyering  <meyering@redhat.com>
2149
2150         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2151         * top/maint.mk (release-prep): Use make's --no-print-directory
2152         option when generating the announcement.  This eliminates the
2153         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2154         generated announcement template.
2155
2156 2011-05-08  Bruno Haible  <bruno@clisp.org>
2157
2158         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2159         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2160         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2161
2162 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2163
2164         ignore-value, verify: Omit include files from lib_SOURCES.
2165         * modules/ignore-value, modules/verify (Makefile.am):
2166         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2167         that leads Automake to duplicate use of am__objects_... variables
2168         in Makefile.in.  See
2169         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2170
2171 2011-05-07  Bruno Haible  <bruno@clisp.org>
2172
2173         fclose: Simplify autoconf macro.
2174         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2175         defined.
2176
2177 2011-05-07  Bruno Haible  <bruno@clisp.org>
2178
2179         canonicalize-lgpl: Fix autoconf macro ordering bug.
2180         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2181         gl_STDLIB_H_DEFAULTS.
2182
2183 2011-05-06  Eric Blake  <eblake@redhat.com>
2184
2185         maintainer-makefile: make sc_po_check easier to tune
2186         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2187         to probe for strings, such as an alternate location for gnulib.
2188
2189         fclose: guarantee behavior on seekable stdin
2190         * modules/fclose (Depends-on): Add fflush.
2191         * doc/posix-functions/fclose.texi (fclose): Document this.
2192         * tests/test-fclose.c (main): Make test for this unconditional.
2193
2194 2011-05-06  Bruno Haible  <bruno@clisp.org>
2195
2196         fflush, fpurge: Relicense under LGPLv2+.
2197         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2198         * modules/fpurge (License): Likewise.
2199         With permission from Eric Blake and Jim Meyering.
2200         Suggested by Eric Blake.
2201
2202 2011-05-06  Karl Berry  <karl@gnu.org>
2203
2204         * MODULES.html.sh (func_all_modules): remove exit.
2205
2206 2011-05-06  Jim Meyering  <meyering@redhat.com>
2207
2208         maint.mk: use info-gnu@ as the default only for a stable release
2209         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
2210         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
2211         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
2212         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
2213
2214 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2215
2216         assert-h: new module, which supports C1X-style static_assert
2217         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
2218         * lib/verify.h: Revamp so that this can be copied into assert.h,
2219         while retaining the ability to use it standalone as before.
2220         Rename private identifiers so as not to encroach on the
2221         standard C namespace, since this is now used by assert.h.
2222         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
2223         the old verify_true.
2224         (_GL_VERIFY_TRUE): New macro, with much of the contents of
2225         the old verify_true.  Use _GL_VERIFY_TYPE.
2226         (_GL_VERIFY): New macro, with much of the contents of the old verify.
2227         (static_assert): New macro, if _GL_STATIC_ASSERT_H
2228         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
2229         defined when this file is copied into the replacement assert.h.
2230         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
2231         and _Static_assert is not built in.
2232         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
2233         defined, and use the new macros mentioned above.
2234         * doc/posix-headers/assert.texi: Document this.
2235
2236 2011-05-05  Bruno Haible  <bruno@clisp.org>
2237
2238         fclose, fflush: Respect rules for use of AC_LIBOBJ.
2239         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
2240         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
2241         gl_REPLACE_FCLOSE here.
2242         * modules/fflush (Depends-on): Remove fclose.
2243         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
2244         combination with module 'fclose'.
2245
2246 2011-05-05  Bruno Haible  <bruno@clisp.org>
2247
2248         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
2249         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
2250         gl_FUNC_FFLUSH.
2251         (gl_FUNC_FFLUSH): Use it.
2252         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
2253         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
2254         gl_REPLACE_FSEEKO here.
2255
2256 2011-05-05  Bruno Haible  <bruno@clisp.org>
2257
2258         tzset: Relicense under LGPL.
2259         * modules/tzset (License): Change to LGPL.
2260         No agreement needed; it's a no-op.
2261
2262         strtoimax, strtoumax: Relicense under LGPL.
2263         * modules/strtoimax (License): Change to LGPL.
2264         * modules/strtoumax (License): Likewise.
2265         With permission from Jim Meyering, Paul Eggert:
2266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
2267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
2268
2269         getgroups: Relicense under LGPL.
2270         * modules/getgroups (License): Change to LGPL.
2271         With permission from Jim Meyering, Paul Eggert, Eric Blake:
2272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2275
2276         nanosleep: Relicense under LGPL.
2277         * modules/nanosleep (License): Change to LGPL.
2278         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2279         Haible:
2280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2284
2285         futimens: Relicense under LGPL.
2286         * modules/futimens (License): Change to LGPL.
2287         With permission from Eric Blake:
2288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2289
2290         fflush: Relicense under LGPL.
2291         * modules/fflush (License): Change to LGPL.
2292         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2296
2297         tmpfile: Relicense under LGPL.
2298         * modules/tmpfile (License): Change to LGPL.
2299         With permission from Ben Pfaff:
2300         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2301
2302         isfinite: Relicense under LGPL.
2303         * modules/isfinite (License): Change to LGPL.
2304         With permission from Ben Pfaff, Bruno Haible:
2305         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2307
2308         acosl..tanl: Relicense under LGPL.
2309         * modules/acosl (License): Change to LGPL.
2310         * modules/asinl (License): Likewise.
2311         * modules/atanl (License): Likewise.
2312         * modules/cosl (License): Likewise.
2313         * modules/expl (License): Likewise.
2314         * modules/logl (License): Likewise.
2315         * modules/sinl (License): Likewise.
2316         * modules/sqrtl (License): Likewise.
2317         * modules/tanl (License): Likewise.
2318         Source code originally from glibc and Paolo Bonzini. Agreements:
2319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
2320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
2321
2322 2011-05-05  Bruno Haible  <bruno@clisp.org>
2323
2324         signal: Define sighandler_t.
2325         * lib/signal.in.h (sighandler_t): New type.
2326         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
2327         whether sighandler_t is defined.
2328         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
2329         * modules/signal (Depends-on): Add extensions.
2330         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
2331         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
2332         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
2333
2334 2011-05-05  Eric Blake  <eblake@redhat.com>
2335
2336         maint: remove useless REPLACE_*_H macros
2337         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
2338         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2339         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2340         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
2341         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2342         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2343         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
2344         * m4/btowc.m4: Update callers.
2345         * m4/dirfd.m4: Likewise.
2346         * m4/duplocale.m4: Likewise.
2347         * m4/fchdir.m4: Likewise.
2348         * m4/fdopendir.m4: Likewise.
2349         * m4/inet_ntop.m4: Likewise.
2350         * m4/inet_pton.m4: Likewise.
2351         * m4/ioctl.m4: Likewise.
2352         * m4/mbrlen.m4: Likewise.
2353         * m4/mbrtowc.m4: Likewise.
2354         * m4/mbsinit.m4: Likewise.
2355         * m4/mbsnrtowcs.m4: Likewise.
2356         * m4/mbsrtowcs.m4: Likewise.
2357         * m4/poll.m4: Likewise.
2358         * m4/setlocale.m4: Likewise.
2359         * m4/wcrtomb.m4: Likewise.
2360         * m4/wcsnrtombs.m4: Likewise.
2361         * m4/wcsrtombs.m4: Likewise.
2362         * m4/wctob.m4: Likewise.
2363         * m4/wcwidth.m4: Likewise.
2364         * modules/posix_spawn: Likewise.
2365         * modules/posix_spawn_file_actions_addclose: Likewise.
2366         * modules/posix_spawn_file_actions_adddup2: Likewise.
2367         * modules/posix_spawn_file_actions_addopen: Likewise.
2368         * modules/posix_spawn_file_actions_destroy: Likewise.
2369         * modules/posix_spawn_file_actions_init: Likewise.
2370         * modules/posix_spawnattr_destroy: Likewise.
2371         * modules/posix_spawnattr_getflags: Likewise.
2372         * modules/posix_spawnattr_getpgroup: Likewise.
2373         * modules/posix_spawnattr_getschedparam: Likewise.
2374         * modules/posix_spawnattr_getschedpolicy: Likewise.
2375         * modules/posix_spawnattr_getsigdefault: Likewise.
2376         * modules/posix_spawnattr_getsigmask: Likewise.
2377         * modules/posix_spawnattr_init: Likewise.
2378         * modules/posix_spawnattr_setflags: Likewise.
2379         * modules/posix_spawnattr_setpgroup: Likewise.
2380         * modules/posix_spawnattr_setschedparam: Likewise.
2381         * modules/posix_spawnattr_setschedpolicy: Likewise.
2382         * modules/posix_spawnattr_setsigdefault: Likewise.
2383         * modules/posix_spawnattr_setsigmask: Likewise.
2384         * modules/posix_spawnp: Likewise.
2385
2386 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2387
2388         Add option to do-release-commit-and-tag to specify branch.
2389         * build-aux/do-release-commit-and-tag: Add --branch.
2390
2391 2011-05-03  Bruno Haible  <bruno@clisp.org>
2392
2393         Avoid unnecessary compilation units, through conditional dependencies.
2394         * modules/accept (Depends-on): Add conditions to the dependencies.
2395         * modules/acosl (Depends-on): Likewise.
2396         * modules/argz (Depends-on): Likewise.
2397         * modules/asinl (Depends-on): Likewise.
2398         * modules/atanl (Depends-on): Likewise.
2399         * modules/atoll (Depends-on): Likewise.
2400         * modules/bind (Depends-on): Likewise.
2401         * modules/btowc (Depends-on): Likewise.
2402         * modules/canonicalize-lgpl (Depends-on): Likewise.
2403         * modules/ceil (Depends-on): Likewise.
2404         * modules/ceilf (Depends-on): Likewise.
2405         * modules/ceill (Depends-on): Likewise.
2406         * modules/chdir-long (Depends-on): Likewise.
2407         * modules/chown (Depends-on): Likewise.
2408         * modules/close (Depends-on): Likewise.
2409         * modules/connect (Depends-on): Likewise.
2410         * modules/cosl (Depends-on): Likewise.
2411         * modules/dirfd (Depends-on): Likewise.
2412         * modules/dprintf (Depends-on): Likewise.
2413         * modules/dprintf-posix (Depends-on): Likewise.
2414         * modules/error (Depends-on): Likewise.
2415         * modules/euidaccess (Depends-on): Likewise.
2416         * modules/expl (Depends-on): Likewise.
2417         * modules/faccessat (Depends-on): Likewise.
2418         * modules/fchdir (Depends-on): Likewise.
2419         * modules/fclose (Depends-on): Likewise.
2420         * modules/fcntl (Depends-on): Likewise.
2421         * modules/fdopendir (Depends-on): Likewise.
2422         * modules/fflush (Depends-on): Likewise.
2423         * modules/floor (Depends-on): Likewise.
2424         * modules/floorf (Depends-on): Likewise.
2425         * modules/floorl (Depends-on): Likewise.
2426         * modules/fnmatch (Depends-on): Likewise.
2427         * modules/fopen (Depends-on): Likewise.
2428         * modules/fprintf-posix (Depends-on): Likewise.
2429         * modules/frexp (Depends-on): Likewise.
2430         * modules/frexp-nolibm (Depends-on): Likewise.
2431         * modules/frexpl (Depends-on): Likewise.
2432         * modules/frexpl-nolibm (Depends-on): Likewise.
2433         * modules/fseek (Depends-on): Likewise.
2434         * modules/fsusage (Depends-on): Likewise.
2435         * modules/ftell (Depends-on): Likewise.
2436         * modules/ftello (Depends-on): Likewise.
2437         * modules/futimens (Depends-on): Likewise.
2438         * modules/getcwd (Depends-on): Likewise.
2439         * modules/getcwd-lgpl (Depends-on): Likewise.
2440         * modules/getdelim (Depends-on): Likewise.
2441         * modules/getdomainname (Depends-on): Likewise.
2442         * modules/getgroups (Depends-on): Likewise.
2443         * modules/gethostname (Depends-on): Likewise.
2444         * modules/getline (Depends-on): Likewise.
2445         * modules/getlogin_r (Depends-on): Likewise.
2446         * modules/getopt-posix (Depends-on): Likewise.
2447         * modules/getpeername (Depends-on): Likewise.
2448         * modules/getsockname (Depends-on): Likewise.
2449         * modules/getsockopt (Depends-on): Likewise.
2450         * modules/getsubopt (Depends-on): Likewise.
2451         * modules/getusershell (Depends-on): Likewise.
2452         * modules/glob (Depends-on): Likewise.
2453         * modules/grantpt (Depends-on): Likewise.
2454         * modules/iconv_open (Depends-on): Likewise.
2455         * modules/iconv_open-utf (Depends-on): Likewise.
2456         * modules/inet_ntop (Depends-on): Likewise.
2457         * modules/inet_pton (Depends-on): Likewise.
2458         * modules/ioctl (Depends-on): Likewise.
2459         * modules/isapipe (Depends-on): Likewise.
2460         * modules/isfinite (Depends-on): Likewise.
2461         * modules/isinf (Depends-on): Likewise.
2462         * modules/lchown (Depends-on): Likewise.
2463         * modules/ldexpl (Depends-on): Likewise.
2464         * modules/link (Depends-on): Likewise.
2465         * modules/linkat (Depends-on): Likewise.
2466         * modules/listen (Depends-on): Likewise.
2467         * modules/logl (Depends-on): Likewise.
2468         * modules/lstat (Depends-on): Likewise.
2469         * modules/mbrlen (Depends-on): Likewise.
2470         * modules/mbrtowc (Depends-on): Likewise.
2471         * modules/mbsinit (Depends-on): Likewise.
2472         * modules/mbsnrtowcs (Depends-on): Likewise.
2473         * modules/mbsrtowcs (Depends-on): Likewise.
2474         * modules/mbtowc (Depends-on): Likewise.
2475         * modules/memcmp (Depends-on): Likewise.
2476         * modules/mkdir (Depends-on): Likewise.
2477         * modules/mkdtemp (Depends-on): Likewise.
2478         * modules/mkfifo (Depends-on): Likewise.
2479         * modules/mkfifoat (Depends-on): Likewise.
2480         * modules/mknod (Depends-on): Likewise.
2481         * modules/mkostemp (Depends-on): Likewise.
2482         * modules/mkostemps (Depends-on): Likewise.
2483         * modules/mkstemp (Depends-on): Likewise.
2484         * modules/mkstemps (Depends-on): Likewise.
2485         * modules/mktime (Depends-on): Likewise.
2486         * modules/nanosleep (Depends-on): Likewise.
2487         * modules/open (Depends-on): Likewise.
2488         * modules/openat (Depends-on): Likewise.
2489         * modules/perror (Depends-on): Likewise.
2490         * modules/poll (Depends-on): Likewise.
2491         * modules/popen (Depends-on): Likewise.
2492         * modules/posix_spawn (Depends-on): Likewise.
2493         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2494         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2495         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2496         * modules/posix_spawnp (Depends-on): Likewise.
2497         * modules/pread (Depends-on): Likewise.
2498         * modules/printf-posix (Depends-on): Likewise.
2499         * modules/ptsname (Depends-on): Likewise.
2500         * modules/putenv (Depends-on): Likewise.
2501         * modules/pwrite (Depends-on): Likewise.
2502         * modules/readline (Depends-on): Likewise.
2503         * modules/readlink (Depends-on): Likewise.
2504         * modules/readlinkat (Depends-on): Likewise.
2505         * modules/recv (Depends-on): Likewise.
2506         * modules/recvfrom (Depends-on): Likewise.
2507         * modules/regex (Depends-on): Likewise.
2508         * modules/remove (Depends-on): Likewise.
2509         * modules/rename (Depends-on): Likewise.
2510         * modules/renameat (Depends-on): Likewise.
2511         * modules/rmdir (Depends-on): Likewise.
2512         * modules/round (Depends-on): Likewise.
2513         * modules/roundf (Depends-on): Likewise.
2514         * modules/roundl (Depends-on): Likewise.
2515         * modules/rpmatch (Depends-on): Likewise.
2516         * modules/select (Depends-on): Likewise.
2517         * modules/send (Depends-on): Likewise.
2518         * modules/sendto (Depends-on): Likewise.
2519         * modules/setenv (Depends-on): Likewise.
2520         * modules/setlocale (Depends-on): Likewise.
2521         * modules/setsockopt (Depends-on): Likewise.
2522         * modules/shutdown (Depends-on): Likewise.
2523         * modules/sigaction (Depends-on): Likewise.
2524         * modules/signbit (Depends-on): Likewise.
2525         * modules/sigprocmask (Depends-on): Likewise.
2526         * modules/sinl (Depends-on): Likewise.
2527         * modules/sleep (Depends-on): Likewise.
2528         * modules/snprintf (Depends-on): Likewise.
2529         * modules/snprintf-posix (Depends-on): Likewise.
2530         * modules/socket (Depends-on): Likewise.
2531         * modules/sprintf-posix (Depends-on): Likewise.
2532         * modules/sqrtl (Depends-on): Likewise.
2533         * modules/stat (Depends-on): Likewise.
2534         * modules/strchrnul (Depends-on): Likewise.
2535         * modules/strdup-posix (Depends-on): Likewise.
2536         * modules/strerror (Depends-on): Likewise.
2537         * modules/strerror_r-posix (Depends-on): Likewise.
2538         * modules/strndup (Depends-on): Likewise.
2539         * modules/strnlen (Depends-on): Likewise.
2540         * modules/strptime (Depends-on): Likewise.
2541         * modules/strsep (Depends-on): Likewise.
2542         * modules/strsignal (Depends-on): Likewise.
2543         * modules/strstr-simple (Depends-on): Likewise.
2544         * modules/strtod (Depends-on): Likewise.
2545         * modules/strtoimax (Depends-on): Likewise.
2546         * modules/strtok_r (Depends-on): Likewise.
2547         * modules/strtoumax (Depends-on): Likewise.
2548         * modules/symlink (Depends-on): Likewise.
2549         * modules/symlinkat (Depends-on): Likewise.
2550         * modules/tanl (Depends-on): Likewise.
2551         * modules/tcgetsid (Depends-on): Likewise.
2552         * modules/tmpfile (Depends-on): Likewise.
2553         * modules/trunc (Depends-on): Likewise.
2554         * modules/truncf (Depends-on): Likewise.
2555         * modules/truncl (Depends-on): Likewise.
2556         * modules/uname (Depends-on): Likewise.
2557         * modules/unlink (Depends-on): Likewise.
2558         * modules/unlockpt (Depends-on): Likewise.
2559         * modules/unsetenv (Depends-on): Likewise.
2560         * modules/usleep (Depends-on): Likewise.
2561         * modules/utimensat (Depends-on): Likewise.
2562         * modules/vasprintf (Depends-on): Likewise.
2563         * modules/vdprintf (Depends-on): Likewise.
2564         * modules/vdprintf-posix (Depends-on): Likewise.
2565         * modules/vfprintf-posix (Depends-on): Likewise.
2566         * modules/vprintf-posix (Depends-on): Likewise.
2567         * modules/vsnprintf (Depends-on): Likewise.
2568         * modules/vsnprintf-posix (Depends-on): Likewise.
2569         * modules/vsprintf-posix (Depends-on): Likewise.
2570         * modules/wcrtomb (Depends-on): Likewise.
2571         * modules/wcscasecmp (Depends-on): Likewise.
2572         * modules/wcscspn (Depends-on): Likewise.
2573         * modules/wcsdup (Depends-on): Likewise.
2574         * modules/wcsncasecmp (Depends-on): Likewise.
2575         * modules/wcsnrtombs (Depends-on): Likewise.
2576         * modules/wcspbrk (Depends-on): Likewise.
2577         * modules/wcsrtombs (Depends-on): Likewise.
2578         * modules/wcsspn (Depends-on): Likewise.
2579         * modules/wcsstr (Depends-on): Likewise.
2580         * modules/wcstok (Depends-on): Likewise.
2581         * modules/wcswidth (Depends-on): Likewise.
2582         * modules/wctob (Depends-on): Likewise.
2583         * modules/wctomb (Depends-on): Likewise.
2584         * modules/wctype (Depends-on): Likewise.
2585         * modules/wcwidth (Depends-on): Likewise.
2586         * modules/write (Depends-on): Likewise.
2587
2588 2011-05-03  Bruno Haible  <bruno@clisp.org>
2589
2590         Support for conditional dependencies.
2591         * doc/gnulib.texi (Module description): Document the syntax of
2592         conditional dependencies.
2593         * gnulib-tool: New option --conditional-dependencies.
2594         (func_usage): Document it.
2595         (cond_dependencies): New variable.
2596         (func_get_automake_snippet_conditional,
2597         func_get_automake_snippet_unconditional): New functions, extracted from
2598         func_get_automake_snippet.
2599         (func_get_automake_snippet): Use them.
2600         (sed_first_32_chars): New variable.
2601         (func_module_shellfunc_name): New function.
2602         (func_module_shellvar_name): New function.
2603         (func_module_conditional_name): New function.
2604         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2605         func_cond_module_condition): New functions.
2606         (func_modules_transitive_closure): Add support for conditional
2607         dependencies.
2608         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2609         conditional automake snippet in an automake conditional.
2610         (func_emit_autoconf_snippets): Emit shell functions that contain the
2611         code for conditional modules.
2612         (func_import, func_create_testdir): Update specification.
2613
2614 2011-05-03  Eric Blake  <eblake@redhat.com>
2615
2616         test-getaddrinfo: report error information
2617         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2618
2619 2011-05-03  Jim Meyering  <meyering@redhat.com>
2620
2621         bootstrap: avoid build failure when $GZIP is set
2622         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2623         program name.  If defined at all, it is supposed to list gzip options.
2624         Reported by Alan Curry in http://debbugs.gnu.org/8609
2625
2626 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2627
2628         readme-release: new module with release instructions
2629         * modules/readme-release: New module.
2630         * top/README-release: New file, from coreutils, grep, diffutils.
2631         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2632
2633 2011-05-02  Eric Blake  <eblake@redhat.com>
2634
2635         fflush: also replace fclose when fixing fflush
2636         * modules/fflush (Depends-on): Add fclose.
2637         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2638         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2639         memstreams with no backing fd.
2640         * doc/posix-functions/fclose.texi (fclose): Document the use of
2641         fflush module to fix the bug.
2642         * tests/test-fclose.c (main): Relax test when fclose is used in
2643         isolation.
2644
2645         fclose: add some tests
2646         * modules/fclose-tests: New test module.
2647         * tests/test-fclose.c: New file.
2648         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2649
2650         fclose: reduced dependencies
2651         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2652         simpler lseek.
2653         * lib/fclose.c (rpl_fclose): Likewise.
2654         Reported by Simon Josefsson.
2655
2656         exit: drop remaining clients
2657         * modules/argmatch (Depends-on): Replace exit with stdlib.
2658         * modules/copy-file (Depends-on): Likewise.
2659         * modules/execute (Depends-on): Likewise.
2660         * modules/exitfail (Depends-on): Likewise.
2661         * modules/obstack (Depends-on): Likewise.
2662         * modules/pagealign_alloc (Depends-on): Likewise.
2663         * modules/pipe-filter-gi (Depends-on): Likewise.
2664         * modules/pipe-filter-ii (Depends-on): Likewise.
2665         * modules/savewd (Depends-on): Likewise.
2666         * modules/spawn-pipe (Depends-on): Likewise.
2667         * modules/wait-process (Depends-on): Likewise.
2668         * modules/xsetenv (Depends-on): Likewise.
2669         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2670         * modules/git-merge-changelog (Depends-on): Likewise.
2671         * modules/long-options (Depends-on): Likewise.
2672         * modules/pt_chown (Depends-on): Likewise.
2673         * modules/sysexits (Depends-on): Likewise.
2674
2675         freading: relax license from LGPLv3+ to LGPLv2+
2676         * modules/freading (License): Relax LGPL version.
2677
2678 2011-05-02  Bruno Haible  <bruno@clisp.org>
2679
2680         fchdir: Remove unused dependencies.
2681         * modules/fchdir (Depends-on): Remove include_next.
2682
2683 2011-05-02  Bruno Haible  <bruno@clisp.org>
2684
2685         gnulib-tool: Refactor.
2686         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2687         from func_emit_autoconf_snippets.
2688         (func_emit_autoconf_snippets): Use it.
2689
2690 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2691
2692         * NEWS: Document removal of 'exit'.
2693         * modules/exit: Remove file.
2694
2695 2011-05-01  Bruno Haible  <bruno@clisp.org>
2696
2697         Update DEPENDENCIES.
2698         * DEPENDENCIES (gettext): Recommend the newest release.
2699         Reported by Simon Josefsson.
2700
2701 2011-05-01  Bruno Haible  <bruno@clisp.org>
2702
2703         gnulib-tool: Reduce code duplication.
2704         * gnulib-tool (func_emit_autoconf_snippets): New function.
2705         (func_import, func_create_testdir): Use it.
2706
2707 2011-04-30  Eric Blake  <eblake@redhat.com>
2708
2709         fclose: don't fail on non-seekable input stream
2710         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2711         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2712         since fflush is allowed to fail in that case.
2713
2714 2011-04-30  Bruno Haible  <bruno@clisp.org>
2715
2716         dup3: cleanup
2717         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2718
2719 2011-04-30  Bruno Haible  <bruno@clisp.org>
2720
2721         netdb: Make it work in C++ mode.
2722         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2723         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2724         module.
2725         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2726         gl_MODULE_INDICATOR_FOR_TESTS.
2727         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2728         * modules/netdb-c++-tests: New file.
2729         * tests/test-netdb-c++.cc: New file.
2730
2731 2011-04-30  Bruno Haible  <bruno@clisp.org>
2732
2733         New modules 'vfscanf', 'vscanf'.
2734         * modules/vfscanf: New file.
2735         * modules/vscanf: New file.
2736         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2737         here.
2738         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2739         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2740
2741 2011-04-30  Bruno Haible  <bruno@clisp.org>
2742
2743         passfd: Add comments.
2744         * lib/passfd.c: Add comments about platforms.
2745
2746 2011-04-30  Bruno Haible  <bruno@clisp.org>
2747
2748         sys_uio: Make <sys/uio.h> self-contained.
2749         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2750         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2751
2752 2011-04-30  Bruno Haible  <bruno@clisp.org>
2753
2754         sys_socket: Ensure 'struct iovec' definition.
2755         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2756         <sys/socket.h>.
2757         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2758
2759 2011-04-30  Bruno Haible  <bruno@clisp.org>
2760
2761         sys_uio: Protect definition of 'struct iovec'.
2762         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2763         it as a C struct.
2764
2765 2011-04-30  Bruno Haible  <bruno@clisp.org>
2766
2767         manywarnings: fix indentation
2768         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2769
2770 2011-04-30  Pádraig Brady <P@draigBrady.com>
2771
2772         manywarnings: add -Wno-missing-field-initializers if needed.
2773         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2774         option if it's needed to allow initialization with { 0, }
2775
2776 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2777
2778         announce-gen: cosmetic improvement
2779         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2780
2781 2011-04-29  Jim Meyering  <meyering@redhat.com>
2782
2783         vc-list-files: indent with spaces, not TABs
2784         * build-aux/vc-list-files: Convert leading TABs to spaces,
2785         to match the style of most other files in gnulib.
2786
2787         announce-gen: indent with spaces, not TABs
2788         * build-aux/announce-gen: Convert all TABs to spaces, to match
2789         the style of most other files in gnulib.
2790
2791 2011-04-29  Eric Blake  <eblake@redhat.com>
2792
2793         quotearg: avoid uninitialized variable use
2794         * lib/quotearg.c (quoting_options_from_style): Initialize
2795         remaining fields, and ensure that custom styles are only used via
2796         quoting_options rather than quoting_style.
2797
2798 2011-04-29  Jim Meyering  <meyering@redhat.com>
2799
2800         maint.mk: remove unused VC-tag variable
2801         * top/maint.mk (VC-tag): Remove unused variable.
2802
2803 2011-04-29  Bruno Haible  <bruno@clisp.org>
2804
2805         netdb: fix gai_strerror replacements
2806         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2807         * modules/netdb: Substitute it.
2808
2809 2011-04-29  Jim Meyering  <meyering@redhat.com>
2810
2811         test-getcwd.c: avoid new set-but-not-used warning
2812         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2813         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2814         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2815         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2816
2817         test-hash.c: avoid a new shadowing warning
2818         * tests/test-hash.c (main): Don't shadow "dup".
2819
2820 2011-04-28  Eric Blake  <eblake@redhat.com>
2821
2822         getaddrinfo: fix gai_strerror signature
2823         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2824         and work around mingw with UNICODE defined.
2825         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2826         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2827         * modules/netdb (Makefile.am): Substitute it.
2828         * lib/netdb.in.h (gai_strerror): Declare replacement.
2829         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2830         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2831         the fix.
2832
2833         getsockopt: avoid compiler warning
2834         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2835         Reported by Matthias Bolte.
2836
2837         tests: drop unused link dependency
2838         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2839         * modules/dirent-safer-tests (Makefile.am): Likewise.
2840         * modules/fdopendir-tests (Makefile.am): Likewise.
2841         * modules/mkfifoat-tests (Makefile.am): Likewise.
2842         * modules/openat-safer-tests (Makefile.am): Likewise.
2843         * modules/openat-tests (Makefile.am): Likewise.
2844         * modules/readlinkat-tests (Makefile.am): Likewise.
2845         * modules/symlinkat-tests (Makefile.am): Likewise.
2846         * modules/linkat-tests (Makefile.am): Likewise.
2847         (Depends-on): Switch to filenamecat-lgpl.
2848         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2849         LIBINTL.
2850         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2851         * tests/test-linkat.c (main): Don't require xalloc.
2852
2853         hash, mgetgroups: drop xalloc dependency
2854         * lib/hash.c (includes): Adjust includes.
2855         * lib/mgetgroups.c (includes): Likewise.
2856         (xgetgroups): Move...
2857         * lib/xgetgroups.c: ...to new file.
2858         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2859         * modules/xgetgroups: New file, split from...
2860         * modules/mgetgroups: ...here.
2861         (Depends-on): Add xalloc-oversized.
2862         * modules/hash (Depends-on): Likewise.
2863         * modules/hash-tests (Depends-on): Drop xalloc.
2864         (test_hash_LDADD): Drop unused library.
2865         * tests/test-hash.c (main): Break xalloc dependency.
2866         (includes): Drop unused include.
2867
2868         xalloc-oversized: new module
2869         * modules/xalloc-oversized: New module.
2870         * modules/xalloc (Depends-on): Add it.
2871         * lib/xalloc.h (xalloc_oversized): Move...
2872         * lib/xalloc-oversized.h: ...into new file.
2873
2874         utimecmp: drop dependency on xmalloc
2875         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2876         due to memory pressure.
2877         * modules/utimecmp (Depends-on): Drop xalloc.
2878
2879 2011-04-27  Eric Blake  <eblake@redhat.com>
2880
2881         getcwd: fix mingw bugs
2882         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2883         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2884         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2885
2886 2011-04-27  Bruno Haible  <bruno@clisp.org>
2887
2888         mkstemps: Ensure declaration on MacOS X 10.5.
2889         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2890         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2891         MacOS X.
2892
2893 2011-04-27  Bruno Haible  <bruno@clisp.org>
2894
2895         mkstemp: More documentation.
2896         * doc/posix-functions/mkstemp.texi: Document header file problem on
2897         MacOS X.
2898
2899 2011-04-27  Bruno Haible  <bruno@clisp.org>
2900
2901         mkstemp: Tweak configure message when cross-compiling.
2902         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2903         result as a guess.
2904
2905 2011-04-27  Bruno Haible  <bruno@clisp.org>
2906
2907         clean-temp: Clarify what it does.
2908         * lib/clean-temp.h: Add more comments.
2909         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2910         module.
2911         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2912         * doc/glibc-functions/mkstemps.texi: Likewise.
2913         * doc/glibc-functions/mkostemps.texi: Likewise.
2914
2915 2011-04-27  Eric Blake  <eblake@redhat.com>
2916
2917         fchdir: avoid extra chdir and fix test
2918         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2919         getcwd-lgpl.
2920         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2921         have to be canonical.
2922         (canonicalize_file_name): Drop unused macro.
2923         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2924
2925         filenamecat-lgpl: fix licence
2926         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2927         when it was first created.
2928
2929         linkat, renameat: add missing dependency
2930         * modules/linkat (Depends-on): Require getcwd-lgpl.
2931         * modules/renameat (Depends-on): Likewise.
2932
2933         tests: reduce dependencies
2934         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2935         * tests/test-renameat.c (main): Likewise.
2936         * modules/linkat-tests (Depends-on): Relax dependency.
2937         * modules/renameat-tests (Depends-on): Likewise.
2938         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2939         dependency explicit.
2940
2941         save-cwd: reduce default dependency
2942         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2943         * lib/save-cwd.c: Update comments.
2944         * NEWS: Document the semantic change.
2945
2946         getcwd: enhance tests
2947         * tests/test-getcwd-lgpl.c: New file, taken from...
2948         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2949         repeat long path stress tests from m4 probe.
2950         * modules/getcwd-lgpl-tests: New module.
2951         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2952         * m4/getcwd-abort-bug.m4: Update comment.
2953         * m4/getcwd-path-max.m4: Likewise.
2954
2955         getcwd-lgpl: new module
2956         * modules/getcwd-lgpl: New module.
2957         * lib/getcwd-lgpl.c: New file.
2958         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2959         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2960         * modules/getcwd (configure.ac): Set C witness.
2961         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2962
2963         getcwd: tweak comments
2964         * m4/getcwd-abort-bug.m4: Fix comments.
2965         * m4/getcwd-path-max.m4: Likewise.
2966         * m4/getcwd.m4: Likewise.
2967
2968 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2969         and Eric Blake  <eblake@redhat.com>
2970
2971         mkstemp: replace if system version uses wrong permissions
2972         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2973         read/write mode bits set in file created by mkstemp.
2974         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2975
2976 2011-04-27  Eric Blake  <eblake@redhat.com>
2977
2978         passfd: avoid compiler warning
2979         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2980         Reported by Laine Stump.
2981
2982 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2983
2984         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2985         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2986
2987 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2988         and Eric Blake  <eblake@redhat.com>
2989
2990         mkstemp: mention clean-temp module
2991         * lib/mkstemp.c: Add comment.
2992         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2993
2994 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2995
2996         inttypes: also provide default values for 32-bit tests
2997         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2998         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2999
3000 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3001
3002         strtoumax: remove dependency on strtoimax
3003         This is like the strtoull change of yesterday.
3004         * modules/strtoumax (Files): Add lib/strtoimax.c.
3005         (Depends-on): Remove strtoimax and add verify.
3006
3007         inttypes-incomplete: new module
3008         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3009         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3010         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3011         of gl_INTTYPES_H.
3012         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3013         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3014         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3015         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3016         * modules/strtoumax, modules/xstrtol (Depends-on):
3017         Depend on inttypes-incomplete, not inttypes.
3018         * modules/inttypes-incomplete: New module, containing the contents
3019         of the old modules/inttypes module, except that the Files: section
3020         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3021         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3022         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3023         (Depends-on): Depend only on inttypes-incomplete.
3024         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3025
3026         inttypes: omit now-redundant strtoimax and strtoumax work
3027         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3028         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3029
3030         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3031         This supports apps that need pointers to strtoimax and strtoumax,
3032         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3033         nonexistent functions.  See
3034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3035         et seq.
3036         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3037         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3038         a macro.
3039         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3040
3041 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3042
3043         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3044
3045 2011-04-25  Bruno Haible  <bruno@clisp.org>
3046
3047         strtol, strtoul: Mark modules as obsolete.
3048         * modules/strtol (Status, Notice): New sections.
3049         * modules/strtoul (Status, Notice): New sections.
3050
3051 2011-04-25  Bruno Haible  <bruno@clisp.org>
3052
3053         strtod: Remove check for strtod, unless supporting old platforms.
3054         * modules/strtod-obsolete: New file.
3055         * m4/strtod-obsolete.m4: New file.
3056         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3057         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3058         * modules/strtod (Depends-on): Add strtod-obsolete.
3059         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3060
3061 2011-04-25  Bruno Haible  <bruno@clisp.org>
3062
3063         strcase: Make module obsolete.
3064         * modules/strcase (Status, Notice): New sections.
3065
3066 2011-04-25  Bruno Haible  <bruno@clisp.org>
3067
3068         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3069         * modules/dup2-obsolete: New file.
3070         * m4/dup2-obsolete.m4: New file.
3071         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3072         gl_FUNC_DUP2_OBSOLETE is not also defined.
3073         * modules/dup2 (Depends-on): Add dup2-obsolete.
3074         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3075
3076 2011-04-25  Bruno Haible  <bruno@clisp.org>
3077
3078         strnlen: Avoid memchr related link error on old obsolete platforms.
3079         * modules/memchr-obsolete: New file.
3080         * m4/memchr-obsolete.m4: New file.
3081         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3082         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3083         * modules/memchr (Depends-on): Add memchr-obsolete.
3084         * modules/strnlen (Depends-on): Likewise.
3085         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3086
3087 2011-04-25  Jim Meyering  <meyering@redhat.com>
3088
3089         maint.mk: makefile_at_at_check extend and clean up
3090         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3091         in addition to */Makefile.am.
3092         Exempt legitimate uses of @VAR@ notation, e.g.,
3093         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3094         Remove obsolete coreutils-specific comment.
3095         Prompted by discussion here:
3096         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3097
3098 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3099
3100         strtoul: remove dependency on strtol
3101         This is so that 'configure' need not check for strtol merely because
3102         the application needs strtoul.
3103         * modules/strtoul (Files): Add lib/strtol.c.
3104         (Depends-on): Remove strtol.
3105
3106         strtoull: remove dependency on strtoul
3107         This is like the strtoll change.
3108         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3109         (Depends-on): Remove strtoul.
3110
3111         strtoll: remove dependency on strtol
3112         This is so that 'configure' need not check for strtol merely because
3113         the application needs strtoll.
3114         * modules/strtoll (Files): Add lib/strtol.c.
3115         (Depends-on): Remove strtol.
3116
3117 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3118
3119         inttypes: Move some configure check to module 'imaxdiv'.
3120         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3121         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3122         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3123
3124 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3125
3126         inttypes: Move some configure check to module 'imaxabs'.
3127         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3128         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3129         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3130
3131 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3132
3133         inttypes: Remove configure tests that are not needed since 2009-12-31.
3134         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3135         gl_cv_header_working_inttypes_h.
3136
3137 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3138
3139         * modules/strnlen (Depends-on): Remove memchr.
3140         The strnlen implementation doesn't need the memchr module's fixes; see
3141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3142
3143         strtol: remove dependency on wchar
3144         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3145         * modules/strtol (Depends-on): Remove wchar.
3146
3147 2011-04-21  Eric Blake  <eblake@redhat.com>
3148
3149         passfd: fix test regression on Linux
3150         * modules/passfd-tests (configure.ac): Correct socketpair check.
3151
3152         passfd: speed up configure and drop unused code
3153         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3154         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3155         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3156         Instead of probing at configure for unix_scm_rights_bsd44_way,
3157         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3158         check to a struct member probe.
3159         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3160         (sendfd, recvfd): Update preprocessor checks.
3161         * modules/passfd (Files): Reflect rename, and drop unused file.
3162         (Depends-on): Drop unused dependency.
3163
3164         passfd: allow compilation on mingw
3165         * modules/sys_socket (Depends-on): Add sys_uio.
3166         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3167         iovec and a minimal struct msghdr.
3168         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3169         * tests/test-sys_socket.c (main): Enhance test.
3170         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3171         guaranteed to provide what we need.
3172         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3173         * modules/passfd-tests (Depends-on): Add sys_wait.
3174         * tests/test-passfd.c (main): Skip test on mingw, for now.
3175         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3176         partial 'struct msghdr' implementation.
3177
3178         sys_uio: new module
3179         * modules/sys_uio: New module.
3180         * modules/sys_uio-tests: Likewise.
3181         * lib/sys_uio.in.h: New file.
3182         * m4/sys_uio_h.m4: Likewise.
3183         * tests/test-sys_uio.c: Likewise.
3184         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3185         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3186
3187 2011-04-20  Jim Meyering  <meyering@redhat.com>
3188
3189         useless-if-before-free: avoid false-positive
3190         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3191         disjunct so that it too requires a terminating ";".  Without that,
3192         this script would identify as useless one statement from gcc that
3193         was not:
3194           if (aligned_ptr)
3195             free (((void **) aligned_ptr) [-1]);
3196
3197 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3198
3199         doc: update users.txt.
3200         * users.txt: Add barcode.
3201
3202 2011-04-19  Bruno Haible  <bruno@clisp.org>
3203
3204         ioctl: Remove link dependency on native Windows.
3205         * lib/fd-hook.h: Renamed from lib/close-hook.h.
3206         (gl_close_fn, gl_ioctl_fn): New types.
3207         (struct fd_hook): Renamed from struct close_hook. Change type of
3208         private_close_fn field. Add private_ioctl_fn field.
3209         (close_hook_fn): Add parameter for primary close method.
3210         (execute_close_hooks, execute_all_close_hooks): Likewise.
3211         (ioctl_hook_fn): New type.
3212         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
3213         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3214         argument.
3215         (unregister_fd_hook): Renamed from unregister_close_hook.
3216         * lib/fd-hook.c: Renamed from lib/close-hook.c.
3217         Don't include <unistd.h>.
3218         (close): Remove undef.
3219         (anchor): Update.
3220         (execute_close_hooks): Add argument for primary close method.
3221         (execute_all_close_hooks): Likewise.
3222         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
3223         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3224         argument. Allow each argument to be NULL.
3225         (unregister_fd_hook): Renamed from unregister_close_hook.
3226         * lib/close.c (rpl_close): Pass 'close' function pointer to
3227         execute_all_close_hooks.
3228         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
3229         (primary_ioctl): New function.
3230         (ioctl): Don't call ioctlsocket here. Instead, call
3231         execute_all_ioctl_hooks.
3232         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
3233         close method.
3234         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
3235         (fd_sockets_hook): Renamed from close_sockets_hook.
3236         (gl_sockets_startup, gl_sockets_cleanup): Update.
3237         * modules/fd-hook: Renamed from modules/close-hook. Update.
3238         * modules/close (Depends-on): Add fd-hook, remove close-hook.
3239         * modules/sockets (Depends-on): Likewise.
3240         * modules/ioctl (Depends-on): Add fd-hook.
3241         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
3242         GNULIB_SOCKET.
3243
3244 2011-04-19  Bruno Haible  <bruno@clisp.org>
3245
3246         Move the support of O_NONBLOCK in open() to the 'open' module.
3247         * modules/nonblocking (Depends-on): Remove 'open'.
3248         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
3249         gl_cv_have_open_O_NONBLOCK.
3250         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
3251         O_NONBLOCK support.
3252         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
3253
3254 2011-04-17  Bruno Haible  <bruno@clisp.org>
3255
3256         pipe2: Simplify code.
3257         * lib/pipe2.c (pipe2): Reduce code duplication.
3258
3259 2011-04-17  Bruno Haible  <bruno@clisp.org>
3260
3261         nonblocking: Add comment.
3262         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
3263
3264 2011-04-17  Bruno Haible  <bruno@clisp.org>
3265
3266         nonblocking: Add tests for sockets.
3267         * tests/test-nonblocking-socket.sh: New file.
3268         * tests/test-nonblocking-socket-main.c: New file.
3269         * tests/test-nonblocking-socket-child.c: New file.
3270         * tests/test-nonblocking-socket.h: New file.
3271         * tests/socket-server.h: New file.
3272         * tests/socket-client.h: New file.
3273         * modules/nonblocking-socket-tests: New file.
3274         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3275
3276 2011-04-17  Bruno Haible  <bruno@clisp.org>
3277
3278         nonblocking: Add tests for pipes.
3279         * tests/test-nonblocking-pipe.sh: New file.
3280         * tests/test-nonblocking-pipe-main.c: New file.
3281         * tests/test-nonblocking-pipe-child.c: New file.
3282         * tests/test-nonblocking-pipe.h: New file.
3283         * tests/test-nonblocking-writer.h: New file.
3284         * tests/test-nonblocking-reader.h: New file.
3285         * tests/test-nonblocking-misc.h: New file.
3286         * modules/nonblocking-pipe-tests: New file.
3287         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3288
3289 2011-04-16  Bruno Haible  <bruno@clisp.org>
3290
3291         gettext: Clarify the needed programmer actions.
3292         * modules/gettext (Notice): New field.
3293         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3294
3295 2011-04-16  Bruno Haible  <bruno@clisp.org>
3296
3297         strchrnul: Tweak last commit.
3298         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3299         bug.
3300         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3301         as in _GL_FUNCDECL_SYS.
3302         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3303         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3304
3305 2011-04-15  Eric Blake  <eblake@redhat.com>
3306
3307         strchrnul: work around cygwin bug
3308         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3309         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
3310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
3311         * modules/string (Makefile.am): Substitute it.
3312         * lib/string.in.h (strchrnul): Use it.
3313
3314 2011-04-15  Bruno Haible  <bruno@clisp.org>
3315
3316         Don't require lib/stdio-write.c when only module 'stdio' is used.
3317         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
3318         invocation.
3319         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
3320
3321 2011-04-14  Bruno Haible  <bruno@clisp.org>
3322
3323         Support non-blocking pipe I/O in read() on native Windows.
3324         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
3325         (read): New declaration.
3326         * lib/read.c: New file.
3327         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
3328         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
3329         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
3330         vscanf): New declarations.
3331         * lib/stdio-read.c: New file.
3332         * m4/read.m4: New file.
3333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
3334         REPLACE_READ.
3335         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
3336         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3337         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
3338         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
3339         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
3340         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3341         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3342         * modules/read: New file.
3343         * modules/nonblocking (Files): Add lib/stdio-read.c.
3344         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
3345         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
3346         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3347         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3348         * modules/pread (Depends-on): Add read.
3349         * modules/safe-read (Depends-on): Likewise.
3350         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
3351         gets, scanf, vfscanf, vscanf): Verify signatures.
3352         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
3353         problem with non-blocking pipes.
3354         * doc/posix-functions/fgetc.texi: Likewise.
3355         * doc/posix-functions/fgets.texi: Likewise.
3356         * doc/posix-functions/fread.texi: Likewise.
3357         * doc/posix-functions/fscanf.texi: Likewise.
3358         * doc/posix-functions/getc.texi: Likewise.
3359         * doc/posix-functions/getchar.texi: Likewise.
3360         * doc/posix-functions/gets.texi: Likewise.
3361         * doc/posix-functions/scanf.texi: Likewise.
3362         * doc/posix-functions/vfscanf.texi: Likewise.
3363         * doc/posix-functions/vscanf.texi: Likewise.
3364
3365 2011-04-14  Bruno Haible  <bruno@clisp.org>
3366
3367         Support non-blocking pipe I/O in write() on native Windows.
3368         * lib/write.c (rpl_write): Split a write request that failed merely
3369         because the byte count was larger than the pipe buffer's size.
3370         * doc/posix-functions/write.texi: Mention the problem with large byte
3371         counts.
3372
3373 2011-04-14  Bruno Haible  <bruno@clisp.org>
3374
3375         wchar: Ensure that wchar_t gets defined on uClibc.
3376         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3377         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3378
3379 2011-04-13  Bruno Haible  <bruno@clisp.org>
3380
3381         safe-write, full-read: Avoid unnecessary compilation units.
3382         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3383         (Depends-on): Remove safe-read. Add ssize_t.
3384         * modules/full-read (Files): Add lib/full-write.c.
3385         (Depends-on): Add full-write.
3386
3387 2011-04-13  Bruno Haible  <bruno@clisp.org>
3388
3389         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3390         * modules/pwrite (Depends-on): Add 'write'.
3391
3392 2011-04-13  Bruno Haible  <bruno@clisp.org>
3393
3394         Support non-blocking pipe I/O in write() on native Windows.
3395         * lib/unistd.in.h (write): Enable replacement also if
3396         GNULIB_UNISTD_H_NONBLOCKING is 1.
3397         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3398         (rpl_write): When failing to write on a non-blocking pipe, change
3399         errno from ENOSPC to EAGAIN.
3400         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3401         putchar, puts, vfprintf, vprintf): Enable replacement also if
3402         GNULIB_STDIO_H_NONBLOCKING is 1.
3403         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3404         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3405         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3406         CALL_WITH_SIGPIPE_EMULATION.
3407         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3408         * m4/nonblocking.m4: New file.
3409         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3410         for non-blocking I/O support.
3411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3412         GNULIB_UNISTD_H_NONBLOCKING.
3413         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3414         required for non-blocking I/O support.
3415         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3416         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3417         lib/stdio-write.c, m4/asm-underscore.m4.
3418         (Depends-on): Add stdio, unistd.
3419         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3420         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3421         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3422         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3423         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3424         problem with non-blocking pipes.
3425         * doc/posix-functions/fputc.texi: Likewise.
3426         * doc/posix-functions/fputs.texi: Likewise.
3427         * doc/posix-functions/fwrite.texi: Likewise.
3428         * doc/posix-functions/printf.texi: Likewise.
3429         * doc/posix-functions/putc.texi: Likewise.
3430         * doc/posix-functions/putchar.texi: Likewise.
3431         * doc/posix-functions/puts.texi: Likewise.
3432         * doc/posix-functions/vfprintf.texi: Likewise.
3433         * doc/posix-functions/vprintf.texi: Likewise.
3434         * doc/posix-functions/write.texi: Likewise.
3435
3436 2011-04-10  Jim Meyering  <meyering@redhat.com>
3437
3438         maint.mk: prohibit doubled words
3439         Detect them also when they're separated by a newline.
3440         There are 3 ways to customize it:
3441           - disable the test on a per file basis, as usual with rules using
3442             $(VC_LIST_EXCEPT)
3443           - replace the default doubled-word-selecting regexp (affects all files)
3444           - ignore a particular file-vs-doubled-word match
3445         I nearly used that last one to ignore the "is is" match in
3446         coreutils' NEWS file, since the text was "ls -is is ..."
3447         To do that, I would have added this line to cfg.mk:
3448           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3449         but it would have ignored any "is is" match in NEWS.
3450         Low probability, but still...
3451         Instead, I changed the text, slightly:
3452           -  ls -is is now consistent with ls -lis in ignoring values returned
3453           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3454         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3455         (prohibit_doubled_word_): Define.
3456         (sc_prohibit_doubled_word): New rule.
3457         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3458
3459 2011-04-10  Jim Meyering  <meyering@redhat.com>
3460
3461         maint: fix doubled-word typo in comment
3462         * m4/gethostname.m4: s/is is/it is/
3463         * m4/getdomainname.m4: Likewise.
3464
3465 2011-04-10  Jim Meyering  <meyering@redhat.com>
3466
3467         maint: remove doubled word: s/it it/it/
3468         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3469
3470 2011-04-10  Jim Meyering  <meyering@redhat.com>
3471
3472         maint.mk: remove useless semicolon and backslash
3473         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3474         semicolon and backslash.
3475
3476 2011-04-10  Bruno Haible  <bruno@clisp.org>
3477
3478         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3479         * modules/stdint-tests (Depends-on): Add wchar.
3480
3481 2011-04-10  Jim Meyering  <meyering@redhat.com>
3482
3483         maint: remove doubled words in comments, e.g., s/a a/a/
3484         * lib/strptime.c (day_of_the_week): s/the the/the/
3485         * tests/test-chown.h (test_chown): s/a a/a/
3486
3487         test-chown.h: correct a cast
3488         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3489         when the destination is a stat.st_gid.
3490
3491 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3492
3493         getaddrinfo: Fix test for sa_len member.
3494         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3495         include <sys/types.h> before <sys/socket.h>.
3496
3497 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3498
3499         maint: change "can not" to "cannot"
3500         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3501         boundaries.
3502
3503 2011-04-09  Jim Meyering  <meyering@redhat.com>
3504
3505         maint: change "a a" to "a"
3506         * tests/test-lchown.h (test_lchown): s/a a/a/
3507
3508         maint.mk: prohibit \<the the\>
3509         * top/maint.mk (sc_prohibit_the_the): New rule.
3510
3511         maint: fix "the the" in comment
3512         * lib/count-one-bits.h: s/the the/the/
3513
3514         maint: change "can not" to "cannot"
3515         But do not change the occurrences in maintain.texi or in
3516         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3517         * doc/gnulib-tool.texi: s/can not/cannot/
3518         * doc/posix-functions/accept.texi (accept): Likewise.
3519         * doc/posix-functions/socket.texi (socket): Likewise.
3520         * lib/mbrtowc.c: Likewise.
3521
3522         maint.mk: prohibit use of "can not"
3523         * top/maint.mk (sc_prohibit_can_not): New rule.
3524         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3525
3526 2011-04-09  Bruno Haible  <bruno@clisp.org>
3527
3528         careadlinkat: Guard against misuse of careadlinkatcwd.
3529         * lib/careadlinkat.c: Include <stdlib.h>.
3530         (careadlinkatcwd): Check that the fd argument is as expected.
3531
3532 2011-04-09  Bruno Haible  <bruno@clisp.org>
3533
3534         careadlinkat: Use common coding style.
3535         * lib/careadlinkat.c: Move gnulib includes after system includes.
3536
3537 2011-04-09  Bruno Haible  <bruno@clisp.org>
3538
3539         careadlinkat: Clarify specification.
3540         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3541         (careadlinkatcwd): Add comment.
3542         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3543
3544 2011-04-09  Bruno Haible  <bruno@clisp.org>
3545
3546         areadlinkat: Avoid link error on many platforms.
3547         * modules/areadlinkat (Depends-on): Add areadlink.
3548
3549 2011-04-09  Bruno Haible  <bruno@clisp.org>
3550
3551         allocator, careadlinkat: Fix double-inclusion guard.
3552         * lib/allocator.h: Fix double-inclusion guard.
3553         * lib/careadlinkat.h: Likewise.
3554
3555 2011-04-09  Bruno Haible  <bruno@clisp.org>
3556
3557         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3558         * lib/relocwrapper.c: Update dependencies hierarchy.
3559         * build-aux/install-reloc: Update list of files to be compiled.
3560         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3561         lib/allocator.[hc].
3562
3563 2011-04-08  Eric Blake  <eblake@redhat.com>
3564
3565         strftime: silence gnulib-tool warning
3566         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3567
3568 2011-04-08  Bruno Haible  <bruno@clisp.org>
3569
3570         verify: Fix syntax error with GCC 4.6 in C++ mode.
3571         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3572         (HAVE_STATIC_ASSERT): New macro.
3573         (verify_true, verify): Use 'static_assert' if it is supported and
3574         '_Static_assert' is not supported.
3575
3576 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3577
3578         allocator: New module.
3579         * modules/allocator, lib/allocator.c: New files.
3580         * lib/allocator.h (stdlib_allocator): New decl.
3581         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3582         Remove.  Do not include <stdlib.h>.
3583         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3584         * modules/careadlinkat (Files): Remove lib/allocator.h.
3585         (Depends-on): Add allocator.
3586
3587         stdlib: let modules use system malloc, realloc
3588         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3589         if !_GL_USE_STDLIB_ALLOC.
3590         (malloc, realloc): Limit this change to a smaller scope.
3591
3592         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3593         (malloc, realloc): Don't #undef; no longer needed.
3594         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3595         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3596         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3597         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3598         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3599         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3600         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3601         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3602
3603         careadlinkat: rename members to avoid problem
3604         * lib/allocator.h (struct allocator): Rename members from
3605         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3606         and realloc are #define'd.  Reported by Eric Blake in
3607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3608         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3609
3610 2011-04-08  Eric Blake  <eblake@redhat.com>
3611
3612         nonblocking: reduce dependency
3613         * tests/test-nonblocking.c: Only test sockets when in use.
3614         * modules/nonblocking-tests (Depends-on): Drop socket.
3615         (Makefile.am): Link even if sockets are not present.
3616         * modules/pipe2-tests (Makefile.am): Likewise.
3617         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3618
3619         pipe2: fix O_NONBLOCK support on mingw
3620         * modules/pipe2 (Depends-on): Add nonblocking.
3621         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3622         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3623         * tests/test-nonblocking.c (main): Likewise.
3624         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3625
3626         fcntl-h: fix O_ACCMODE on cygwin
3627         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3628         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3629
3630         pipe-filter: drop O_NONBLOCK workarounds
3631         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3632         * modules/pipe-filter-ii (Depends-on): Likewise.
3633         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3634
3635         nonblocking: provide O_NONBLOCK for mingw
3636         * modules/nonblocking (Depends-on): Add open.
3637         (configure.ac): Set new witness macro.
3638         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3639         * modules/fcntl-h (Makefile.am): Substitute it.
3640         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3641         nonblocking module is in use.
3642         * lib/nonblocking.c: Adjust portability test.
3643         * lib/open.c (open): Don't let native open see gnulib flag.
3644         * tests/test-fcntl-h.c (main): Enhance test.
3645         * tests/test-open.h (test_open): Likewise.
3646         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3647
3648         careadlinkat: fix compilation error on mingw
3649         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3650         within struct allocator.
3651
3652 2011-04-06  Eric Blake  <eblake@redhat.com>
3653
3654         binary-io: relicense under LGPLv2+
3655         * modules/binary-io (License): Relax to LGPLv2+.
3656         Requested for libvirt, and required by pipe2.
3657
3658 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3659
3660         verify: use _Static_assert if available
3661         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3662         (verify_true, verify): Use it if available.  This generates better
3663         diagnostics with GCC 4.6.0 and later.
3664
3665 2011-04-05  Bruno Haible  <bruno@clisp.org>
3666
3667         Remove leftover generated .h files after config.status changed.
3668
3669         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3670         GL_GENERATE_ALLOCA_H.
3671         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3672         GL_GENERATE_ALLOCA_H evaluates to false.
3673
3674         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3675         GL_GENERATE_ARGZ_H.
3676         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3677         evaluates to false.
3678
3679         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3680         GL_GENERATE_BYTESWAP_H.
3681         * modules/byteswap (Makefile.am): Remove byteswap.h if
3682         GL_GENERATE_BYTESWAP_H evaluates to false.
3683
3684         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3685         GL_GENERATE_ERRNO_H.
3686         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3687         evaluates to false.
3688
3689         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3690         GL_GENERATE_FLOAT_H.
3691         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3692         evaluates to false.
3693
3694         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3695         GL_GENERATE_FNMATCH_H.
3696         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3697         GL_GENERATE_FNMATCH_H evaluates to false.
3698
3699         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3700         GL_GENERATE_GLOB_H.
3701         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3702         evaluates to false.
3703
3704         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3705         automake conditional GL_GENERATE_ICONV_H.
3706         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3707         evaluates to false.
3708
3709         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3710         GL_GENERATE_NETINET_IN_H.
3711         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3712         GL_GENERATE_NETINET_IN_H evaluates to false.
3713
3714         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3715         conditional GL_GENERATE_PTHREAD_H.
3716         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3717         * modules/pthread (Makefile.am): Remove pthread.h if
3718         GL_GENERATE_PTHREAD_H evaluates to false.
3719
3720         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3721         GL_GENERATE_SCHED_H.
3722         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3723         evaluates to false.
3724
3725         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3726         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3727         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3728         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3729
3730         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3731         GL_GENERATE_STDARG_H.
3732         * modules/stdarg (Makefile.am): Remove stdarg.h if
3733         GL_GENERATE_STDARG_H evaluates to false.
3734
3735         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3736         GL_GENERATE_STDBOOL_H.
3737         * modules/stdbool (Makefile.am): Remove stdbool.h if
3738         GL_GENERATE_STDBOOL_H evaluates to false.
3739
3740         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3741         conditional GL_GENERATE_STDDEF_H.
3742         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3743         * modules/stddef (Makefile.am): Remove stddef.h if
3744         GL_GENERATE_STDDEF_H evaluates to false.
3745
3746         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3747         GL_GENERATE_STDINT_H.
3748         * modules/stdint (Makefile.am): Remove stdint.h if
3749         GL_GENERATE_STDINT_H evaluates to false.
3750
3751         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3752         GL_GENERATE_SYSEXITS_H.
3753         * modules/sysexits (Makefile.am): Remove sysexits.h if
3754         GL_GENERATE_SYSEXITS_H evaluates to false.
3755
3756         Reported by Karl Berry and Ralf Wildenhues.
3757
3758 2011-04-05  Bruno Haible  <bruno@clisp.org>
3759
3760         Ensure to rebuild generated .h files when config.status has changed.
3761         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3762         config.status.
3763         * modules/ctype (Makefile.am): Likewise.
3764         * modules/dirent (Makefile.am): Likewise.
3765         * modules/errno (Makefile.am): Likewise.
3766         * modules/fcntl-h (Makefile.am): Likewise.
3767         * modules/float (Makefile.am): Likewise.
3768         * modules/getopt-posix (Makefile.am): Likewise.
3769         * modules/glob (Makefile.am): Likewise.
3770         * modules/iconv-h (Makefile.am): Likewise.
3771         * modules/inttypes (Makefile.am): Likewise.
3772         * modules/langinfo (Makefile.am): Likewise.
3773         * modules/locale (Makefile.am): Likewise.
3774         * modules/math (Makefile.am): Likewise.
3775         * modules/netdb (Makefile.am): Likewise.
3776         * modules/netinet_in (Makefile.am): Likewise.
3777         * modules/poll-h (Makefile.am): Likewise.
3778         * modules/pthread (Makefile.am): Likewise.
3779         * modules/pty (Makefile.am): Likewise.
3780         * modules/sched (Makefile.am): Likewise.
3781         * modules/search (Makefile.am): Likewise.
3782         * modules/selinux-h (Makefile.am): Likewise.
3783         * modules/signal (Makefile.am): Likewise.
3784         * modules/spawn (Makefile.am): Likewise.
3785         * modules/stdarg (Makefile.am): Likewise.
3786         * modules/stdbool (Makefile.am): Likewise.
3787         * modules/stddef (Makefile.am): Likewise.
3788         * modules/stdint (Makefile.am): Likewise.
3789         * modules/stdio (Makefile.am): Likewise.
3790         * modules/stdlib (Makefile.am): Likewise.
3791         * modules/string (Makefile.am): Likewise.
3792         * modules/strings (Makefile.am): Likewise.
3793         * modules/sys_file (Makefile.am): Likewise.
3794         * modules/sys_ioctl (Makefile.am): Likewise.
3795         * modules/sys_select (Makefile.am): Likewise.
3796         * modules/sys_socket (Makefile.am): Likewise.
3797         * modules/sys_stat (Makefile.am): Likewise.
3798         * modules/sys_time (Makefile.am): Likewise.
3799         * modules/sys_times (Makefile.am): Likewise.
3800         * modules/sys_utsname (Makefile.am): Likewise.
3801         * modules/sys_wait (Makefile.am): Likewise.
3802         * modules/sysexits (Makefile.am): Likewise.
3803         * modules/termios (Makefile.am): Likewise.
3804         * modules/time (Makefile.am): Likewise.
3805         * modules/unistd (Makefile.am): Likewise.
3806         * modules/wchar (Makefile.am): Likewise.
3807         * modules/wctype-h (Makefile.am): Likewise.
3808         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3809
3810 2011-04-05  Bruno Haible  <bruno@clisp.org>
3811
3812         pipe2: Relicense under LGPLv2+.
3813         * modules/pipe2 (License): Change to LGPLv2+.
3814         Requested by Eric Blake, for libvirt.
3815
3816 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3817
3818         bootstrap: compute gnulib_extra_files after updating build_aux
3819         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3820         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3821
3822 2011-04-05  Eric Blake  <eblake@redhat.com>
3823
3824         bootstrap: preserve git whitelist item sorting
3825         * build-aux/bootstrap (sort_patterns): New function.
3826         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3827
3828 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3829
3830         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3831         sc_space_tab check.
3832
3833 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3834
3835         areadlink, areadlinkat: rewrite in terms of careadlinkat
3836         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3837         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3838         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3839         (malloc, realloc): Remove #undefs.
3840         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3841         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3842         readlink, ssize_t, stdint, unistd.
3843         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3844         areadlink, stdint.
3845
3846         careadlinkat: new module
3847         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3848         * modules/careadlinkat: New files, written by me with
3849         a review and feedback from Ben Pfaff in
3850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3851
3852 2011-04-01  Bruno Haible  <bruno@clisp.org>
3853
3854         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3855         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3856         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3857         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3858         Reported by Bruce Korb <bruce.korb@gmail.com>.
3859
3860 2011-04-01  Bruno Haible  <bruno@clisp.org>
3861
3862         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3863         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3864         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3865         * modules/wcpcpy (Depends-on): Add extensions.
3866         * modules/wcpncpy (Depends-on): Likewise.
3867         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3868         systems.
3869         * doc/posix-functions/wcpncpy.texi: Likewise.
3870         * doc/posix-functions/wcwidth.texi: Likewise.
3871
3872 2011-03-31  Eric Blake  <eblake@redhat.com>
3873
3874         nonblocking: fix mingw test failures
3875         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3876         non-blocking flag on regular file.
3877         (get_nonblocking_flag): Set errno on invalid fd.
3878         * tests/test-nonblocking.c (main): Avoid test failure on
3879         directories if fchdir is not active.
3880         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3881
3882 2011-03-31  Bruno Haible  <bruno@clisp.org>
3883
3884         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3885         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3886         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3887         Reported by Simon Josefsson <simon@josefsson.org>.
3888
3889 2011-03-31  Bruno Haible  <bruno@clisp.org>
3890         and Eric Blake  <eblake@redhat.com>
3891
3892         nonblocking: new module
3893         * modules/nonblocking: New module.
3894         * modules/nonblocking-tests: Likewise.
3895         * lib/nonblocking.h: New file.
3896         * lib/nonblocking.c: Likewise.
3897         * tests/test-nonblocking.c: New test.
3898         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3899
3900 2011-03-30  Bruno Haible  <bruno@clisp.org>
3901
3902         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3903         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3904         instead of 'printf' format for GCC >= 4.4.
3905         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3906         (fprintf, printf, vfprintf, vprintf): Declare with
3907         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3908         the system's vfprintf() function.
3909         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3910
3911 2011-03-30  Eric Blake  <eblake@redhat.com>
3912
3913         passfd: fix scoping bug
3914         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3915         before sendmsg/recvmsg.
3916
3917         passfd: standardize coding conventions
3918         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3919         can be learned at compile time.
3920         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3921         ifdefs.
3922         (sendfd, recvfd): Follow gnulib code conventions.
3923
3924         passfd: fix incorrect sendmsg arguments
3925         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3926         incorrect msg_controllen value.
3927         * modules/passfd-tests (Depends-on): Check for alarm.
3928         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3929         Reported by Bastien ROUCARIES.
3930
3931 2011-03-30  Bruno Haible  <bruno@clisp.org>
3932
3933         c-strcasestr: Relicense under LGPLv2+.
3934         * modules/c-strcasestr (License): Change to LGPLv2+.
3935         Requested by Eric Blake, for libvirt.
3936
3937 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3938
3939         * users.txt: Add libidn2.  Fix libtasn1 link.
3940
3941 2011-03-30  Jim Meyering  <meyering@redhat.com>
3942
3943         tests: readlink* ("",... fails with EINVAL on newer kernels
3944         readlink and readlinkat have typically failed with ENOENT for
3945         the invalid, empty file name,  "".  However, with the advent
3946         of linux-2.6.39, they fail with EINVAL.
3947         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3948         when operating on the empty file name.
3949         * tests/test-readlink.h (test_readlink): Likewise.
3950
3951 2011-03-29  Bruno Haible  <bruno@clisp.org>
3952
3953         Relicense some modules under LGPLv2+, for libidn2.
3954         * modules/array-mergesort (License): Change to LGPLv2+.
3955         * modules/c-strcaseeq (License): Likewise.
3956         * modules/striconveh (License): Likewise.
3957         * modules/striconveha (License): Likewise.
3958         * modules/uniconv/base (License): Likewise.
3959         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3960         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3961         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3962         * modules/unictype/base (License): Likewise.
3963         * modules/unictype/bidiclass-of (License): Likewise.
3964         * modules/unictype/category-M (License): Likewise.
3965         * modules/unictype/category-none (License): Likewise.
3966         * modules/unictype/category-of (License): Likewise.
3967         * modules/unictype/category-test (License): Likewise.
3968         * modules/unictype/category-test-withtable (License): Likewise.
3969         * modules/unictype/combining-class (License): Likewise.
3970         * modules/unictype/joiningtype-of (License): Likewise.
3971         * modules/unictype/scripts (License): Likewise.
3972         * modules/uninorm/base (License): Likewise.
3973         * modules/uninorm/canonical-decomposition (License): Likewise.
3974         * modules/uninorm/composition (License): Likewise.
3975         * modules/uninorm/decompose-internal (License): Likewise.
3976         * modules/uninorm/decomposition-table (License): Likewise.
3977         * modules/uninorm/nfc (License): Likewise.
3978         * modules/uninorm/nfd (License): Likewise.
3979         * modules/uninorm/u32-normalize (License): Likewise.
3980         * modules/unistr/base (License): Likewise.
3981         * modules/unistr/u32-cpy (License): Likewise.
3982         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3983         * modules/unistr/u32-to-u8 (License): Likewise.
3984         * modules/unistr/u32-uctomb (License): Likewise.
3985         * modules/unistr/u8-check (License): Likewise.
3986         * modules/unistr/u8-mblen (License): Likewise.
3987         * modules/unistr/u8-mbtouc (License): Likewise.
3988         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3989         * modules/unistr/u8-mbtoucr (License): Likewise.
3990         * modules/unistr/u8-prev (License): Likewise.
3991         * modules/unistr/u8-strlen (License): Likewise.
3992         * modules/unistr/u8-to-u32 (License): Likewise.
3993         * modules/unistr/u8-uctomb (License): Likewise.
3994         * modules/unitypes (License): Likewise.
3995         Requested by Simon Josefsson.
3996
3997 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3998
3999         lib-symbol-visibility: Add a notice.
4000         * modules/lib-symbol-visibility (Notice): New field.
4001
4002 2011-03-29  Bruno Haible  <bruno@clisp.org>
4003
4004         getaddrinfo: Doc fix.
4005         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4006         section "fixed in Gnulib".
4007
4008 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4009
4010         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4011         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4012
4013 2011-03-26  Bruno Haible  <bruno@clisp.org>
4014
4015         unictype/property-byname: Reduce the number of load-time relocations.
4016         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4017         (UC_PROPERTY_INDEX_*): New enumeration values.
4018         (uc_property_byname): Convert an index from the lookup table to an
4019         uc_property_t.
4020         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4021         values.
4022
4023 2011-03-26  Bruno Haible  <bruno@clisp.org>
4024
4025         unictype/property-byname: Allow omitted word separators and aliases.
4026         * lib/unictype/pr_byname.gperf: Add property names without word
4027         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4028         for 'space'.
4029
4030 2011-03-26  Bruno Haible  <bruno@clisp.org>
4031
4032         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4033         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4034         also hyphens to space.
4035         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4036         without spaces.
4037         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4038
4039 2011-03-26  Bruno Haible  <bruno@clisp.org>
4040
4041         unictype/joiningtype-byname: Recognize long names as well.
4042         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4043         a long name.
4044         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4045         unictype/joiningtype_byname.h.
4046         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4047         * lib/unictype/joiningtype_byname.gperf: New file.
4048         * modules/unictype/joiningtype-byname (Files): Add
4049         lib/unictype/joiningtype_byname.gperf.
4050         (Depends-on): Add gperf.
4051         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4052         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4053         long names.
4054
4055         Tests for module 'unictype/joiningtype-longname'.
4056         * modules/unictype/joiningtype-longname-tests: New file.
4057         * tests/unictype/test-joiningtype_longname.c: New file.
4058
4059         New module 'unictype/joiningtype-longname'.
4060         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4061         * lib/unictype/joiningtype_longname.c: New file.
4062         * modules/unictype/joiningtype-longname: New file.
4063         * modules/unictype/joiningtype-all (Depends-on): Add
4064         unictype/joiningtype-longname.
4065
4066 2011-03-26  Bruno Haible  <bruno@clisp.org>
4067
4068         unictype/bidiclass-byname: Recognize long names as well.
4069         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4070         name.
4071         * lib/unictype/bidi_byname.c: Include <string.h>,
4072         unictype/bidi_byname.h.
4073         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4074         * lib/unictype/bidi_byname.gperf: New file.
4075         * modules/unictype/bidiclass-byname (Files): Add
4076         lib/unictype/bidi_byname.gperf.
4077         (Depends-on): Add gperf.
4078         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4079         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4080         long names.
4081
4082         Tests for module 'unictype/bidiclass-longname'.
4083         * modules/unictype/bidiclass-longname-tests: New file.
4084         * tests/unictype/test-bidi_longname.c: New file.
4085
4086         New module 'unictype/bidiclass-longname'.
4087         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4088         * lib/unictype/bidi_longname.c: New file.
4089         * modules/unictype/bidiclass-longname: New file.
4090         * modules/unictype/bidiclass-all (Depends-on): Add
4091         unictype/bidiclass-longname.
4092
4093 2011-03-26  Bruno Haible  <bruno@clisp.org>
4094
4095         unictype/bidi*: Rename modules.
4096         * modules/unictype/bidiclass-all: Renamed from
4097         modules/unictype/bidicategory-all.
4098         * modules/unictype/bidiclass-name: Renamed from
4099         modules/unictype/bidiclass-name.
4100         (Description): Update.
4101         * modules/unictype/bidiclass-name-tests: Renamed from
4102         modules/unictype/bidicategory-name-tests.
4103         * modules/unictype/bidiclass-byname: Renamed from
4104         modules/unictype/bidicategory-byname.
4105         (Description): Update.
4106         * modules/unictype/bidiclass-byname-tests: Renamed from
4107         modules/unictype/bidicategory-byname-tests.
4108         * modules/unictype/bidiclass-of: Renamed from
4109         modules/unictype/bidicategory-of.
4110         (Description): Update.
4111         * modules/unictype/bidiclass-of-tests: Renamed from
4112         modules/unictype/bidicategory-of-tests.
4113         * modules/unictype/bidiclass-test: Renamed from
4114         modules/unictype/bidicategory-test.
4115         (Description): Update.
4116         * modules/unictype/bidiclass-test-tests: Renamed from
4117         modules/unictype/bidicategory-test-tests.
4118         * modules/unictype/bidicategory-all: New file, a simple redirection.
4119         * modules/unictype/bidicategory-name: Likewise.
4120         * modules/unictype/bidicategory-byname: Likewise.
4121         * modules/unictype/bidicategory-of: Likewise.
4122         * modules/unictype/bidicategory-test: Likewise.
4123         * modules/unictype/property-bidi-* (Dependencies): Update.
4124         * lib/unictype/bidi_*.c: Update comment.
4125
4126 2011-03-26  Bruno Haible  <bruno@clisp.org>
4127
4128         unictype/bidi*: Rename functions, part 2.
4129         * modules/unictype/bidicategory-name (configure.ac): Update required
4130         libunistring version.
4131         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4132
4133 2011-03-25  Bruno Haible  <bruno@clisp.org>
4134
4135         New module 'unictype/combining-class-all'.
4136         * modules/unictype/combining-class-all: New file.
4137
4138         Tests for module 'unictype/combining-class-byname'.
4139         * modules/unictype/combining-class-byname-tests: New file.
4140         * tests/unictype/test-combiningclass_byname.c: New file.
4141
4142         New module 'unictype/combining-class-byname'.
4143         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4144         * lib/unictype/combiningclass_byname.c: New file.
4145         * lib/unictype/combiningclass_byname.gperf: New file.
4146         * modules/unictype/combining-class-byname: New file.
4147
4148         Tests for module 'unictype/combining-class-longname'.
4149         * modules/unictype/combining-class-longname-tests: New file.
4150         * tests/unictype/test-combiningclass_longname.c: New file.
4151
4152         New module 'unictype/combining-class-longname'.
4153         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4154         * lib/unictype/combiningclass_longname.c: New file.
4155         * modules/unictype/combining-class-longname: New file.
4156
4157         Tests for module 'unictype/combining-class-name'.
4158         * modules/unictype/combining-class-name-tests: New file.
4159         * tests/unictype/test-combiningclass_name.c: New file.
4160
4161         New module 'unictype/combining-class-name'.
4162         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4163         * lib/unictype/combiningclass_name.c: New file.
4164         * modules/unictype/combining-class-name: New file.
4165
4166 2011-03-25  Bruno Haible  <bruno@clisp.org>
4167
4168         unictype/combining-class: Rename source files.
4169         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4170         of unictype/combining.h.
4171         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4172         Update.
4173         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4174         * modules/unictype/combining-class (Description): Fix.
4175         (Files, Makefile.am): Update.
4176         * tests/unictype/test-combiningclass.c: Renamed from
4177         tests/unictype/test-combining.c.
4178         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4179
4180 2011-03-25  Bruno Haible  <bruno@clisp.org>
4181
4182         unictype: Update list of canonical combining classes.
4183         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4184
4185 2011-03-25  Bruno Haible  <bruno@clisp.org>
4186
4187         unictype/category-byname: Recognize long names as well.
4188         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4189         a long name.
4190         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4191         unictype/categ_byname.h.
4192         (UC_CATEGORY_INDEX_*): New enumeration values.
4193         (uc_general_category_byname): Use uc_general_category_lookup and
4194         convert from index to value.
4195         * lib/unictype/categ_byname.gperf: New file.
4196         * modules/unictype/category-byname (Files): Add
4197         lib/unictype/categ_byname.gperf.
4198         (Depends-on): Add gperf.
4199         (Makefile.am): Add rule for generating unictype/categ_byname.h.
4200         * tests/unictype/test-categ_byname.c (main): Test the recognition of
4201         long names.
4202
4203         Tests for module 'unictype/category-longname'.
4204         * modules/unictype/category-longname-tests: New file.
4205         * tests/unictype/test-categ_longname.c: New file.
4206
4207         New module 'unictype/category-longname'.
4208         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
4209         * lib/unictype/categ_longname.c: New file.
4210         * modules/unictype/category-longname: New file.
4211         * modules/unictype/category-all (Depends-on): Add it.
4212
4213 2011-03-25  Bruno Haible  <bruno@clisp.org>
4214
4215         Tests for module 'unictype/category-LC'.
4216         * modules/unictype/category-LC-tests: New file.
4217         * tests/unictype/test-categ_LC.c: New file, automatically generated.
4218
4219         New module 'unictype/category-LC'.
4220         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
4221         (UC_CATEGORY_LC): New declaration.
4222         (UC_CASED_LETTER): New macro.
4223         * lib/gen-uni-tables.c (is_category_LC): New function.
4224         (output_categories): Also handle category LC.
4225         (UC_CATEGORY_MASK_LC): New enumeration value.
4226         (general_category_byname): Also handle category LC.
4227         * lib/unictype/categ_LC.c: New file.
4228         * lib/unictype/categ_LC.h: New file, automatically generated.
4229         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
4230         category LC.
4231         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
4232         * modules/unictype/category-LC: New file.
4233         * modules/unictype/category-byname (Depends-on): Add
4234         unictype/category-LC.
4235         * modules/unictype/category-all (Depends-on): Likewise.
4236
4237 2011-03-25  Eric Blake  <eblake@redhat.com>
4238
4239         xmalloc: revert yesterday's regression
4240         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
4241         realloc's underlying behavior (allowing allocation of zero-size
4242         objects, especially if malloc-gnu is also in use).
4243
4244 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
4245
4246         maint.mk: add missing version to VC-tag
4247         * top/maint.mk: git tag was missing actual tag name; add it.
4248
4249         valgrind: do leak checking, and exit with code 1 on error (not 0)
4250         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
4251         to VALGRIND.
4252
4253 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
4254
4255         posix-modules: say what it does.
4256         * posix-modules: Add a line to the --help output saying what it does.
4257
4258 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4259
4260         xmalloc: Do not leak if underlying realloc is C99 compatible.
4261         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
4262         This avoids a leak on C99-based systems.  See
4263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
4264
4265 2011-03-24  Eric Blake  <eblake@redhat.com>
4266
4267         realloc: document portability problem
4268         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
4269         passing 0 size to realloc.
4270
4271 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
4272
4273         doc: update users.txt
4274         * users.txt: Add cvsps, tmpwatch
4275
4276 2011-03-23  Matt Rice  <ratmice@gmail.com>
4277
4278         doc: update users.txt
4279         * users.txt: Add gdb.
4280
4281 2011-03-23  Jim Meyering  <meyering@redhat.com>
4282
4283         doc: update users.txt
4284         Looking through matches up to the following URL (there are still
4285         several more pages), I found several projects that use gnulib:
4286         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4287         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4288         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4289
4290 2011-03-22  Bruno Haible  <bruno@clisp.org>
4291
4292         unictype/bidi*: Rename functions.
4293         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4294         uc_bidi_class, uc_is_bidi_class): New declarations.
4295         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4296         uc_bidi_category_byname.
4297         (uc_bidi_category_byname): New function.
4298         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4299         u_bidi_category_name.
4300         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4301         (uc_bidi_category_name): New function.
4302         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4303         uc_bidi_category.
4304         (uc_bidi_category): New function.
4305         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4306         uc_is_bidi_category. Invoke uc_bidi_class.
4307         (uc_is_bidi_category): New function.
4308         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4309         instead of uc_bidi_category_byname.
4310         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
4311         instead of uc_bidi_category_name.
4312         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
4313         uc_bidi_category.
4314         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4315         instead of uc_is_bidi_category.
4316
4317 2011-03-21  Bruno Haible  <bruno@clisp.org>
4318
4319         New module 'unictype/joininggroup-all'.
4320         * modules/unictype/joininggroup-all: New file.
4321
4322         Tests for module 'unictype/joininggroup-of'.
4323         * modules/unictype/joininggroup-of-tests: New file.
4324         * tests/unictype/test-joininggroup_of.c: New file.
4325         * tests/unictype/test-joininggroup_of.h: New file, automatically
4326         generated by gen-uni-tables.
4327
4328         New module 'unictype/joininggroup-of'.
4329         * modules/unictype/joininggroup-of: New file.
4330         * lib/unictype/joininggroup_of.c: New file.
4331         * lib/unictype/joininggroup_of.h: New file, automatically generated by
4332         gen-uni-tables.
4333
4334         Tests for module 'unictype/joininggroup-byname'.
4335         * modules/unictype/joininggroup-byname-tests: New file.
4336         * tests/unictype/test-joininggroup_byname.c: New file.
4337
4338         New module 'unictype/joininggroup-byname'.
4339         * modules/unictype/joininggroup-byname: New file.
4340         * lib/unictype/joininggroup_byname.c: New file.
4341         * lib/unictype/joininggroup_byname.gperf: New file.
4342
4343         Tests for module 'unictype/joininggroup-name'.
4344         * modules/unictype/joininggroup-name-tests: New file.
4345         * tests/unictype/test-joininggroup_name.c: New file.
4346
4347         New module 'unictype/joininggroup-name'.
4348         * modules/unictype/joininggroup-name: New file.
4349         * lib/unictype/joininggroup_name.c: New file.
4350         * lib/unictype/joininggroup_name.h: New file.
4351
4352         New module 'unictype/joiningtype-all'.
4353         * modules/unictype/joiningtype-all: New file.
4354
4355         Tests for module 'unictype/joiningtype-of'.
4356         * modules/unictype/joiningtype-of-tests: New file.
4357         * tests/unictype/test-joiningtype_of.c: New file.
4358         * tests/unictype/test-joiningtype_of.h: New file, automatically
4359         generated by gen-uni-tables.
4360
4361         New module 'unictype/joiningtype-of'.
4362         * modules/unictype/joiningtype-of: New file.
4363         * lib/unictype/joiningtype_of.c: New file.
4364         * lib/unictype/joiningtype_of.h: New file, automatically generated by
4365         gen-uni-tables.
4366
4367         Tests for module 'unictype/joiningtype-byname'.
4368         * modules/unictype/joiningtype-byname-tests: New file.
4369         * tests/unictype/test-joiningtype_byname.c: New file.
4370
4371         New module 'unictype/joiningtype-byname'.
4372         * modules/unictype/joiningtype-byname: New file.
4373         * lib/unictype/joiningtype_byname.c: New file.
4374
4375         Tests for module 'unictype/joiningtype-name'.
4376         * modules/unictype/joiningtype-name-tests: New file.
4377         * tests/unictype/test-joiningtype_name.c: New file.
4378
4379         New module 'unictype/joiningtype-name'.
4380         * modules/unictype/joiningtype-name: New file.
4381         * lib/unictype/joiningtype_name.c: New file.
4382
4383         unictype: Add support for Arabic shaping properties.
4384         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4385         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4386         declarations.
4387         (UC_JOINING_GROUP_*): New enumeration values.
4388         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4389         declarations.
4390         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4391         (unicode_joining_type): New variable.
4392         (UC_JOINING_GROUP_*): New enumeration values.
4393         (unicode_joining_group): New variable.
4394         (fill_arabicshaping, joining_type_as_c_identifier,
4395         output_joining_type_test, output_joining_type,
4396         joining_group_as_c_identifier, output_joining_group_test,
4397         output_joining_group): New functions.
4398         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4399         fill_arabicshaping and output_joining_type_test, output_joining_type,
4400         output_joining_group_test, output_joining_group.
4401         Reported by Simon Josefsson.
4402
4403 2011-03-21  Jim Meyering  <meyering@redhat.com>
4404
4405         strftime: fix a bug in yesterday's change
4406         * lib/strftime.c (add): Accommodate width's initial value of -1.
4407         Otherwise, nstrftime would copy uninitialized data into
4408         the result buffer.
4409
4410 2011-03-21  Jim Meyering  <meyering@redhat.com>
4411
4412         tests: add strftime-tests module
4413         * tests/test-strftime.c: New file.
4414         * modules/strftime-tests: New module.
4415
4416 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4417
4418         strftime: don't assume a byte count fits in 'int'
4419         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4420         found this problem by static analysis, using gcc -Wstrict-overflow
4421         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4422         on an integer overflow having undefined behavior, but it turns out
4423         that the argument is a size, which might not fit in 'int' anyway,
4424
4425 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4426
4427         stdio: don't require ignore_value around fwrite
4428
4429         This patch works around libc bug 11959
4430         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4431         Without this patch, applications must often write
4432         ignore_value (fwrite (...)) even though the ignore_value is
4433         not helpful here.  It's common to write many objects, using
4434         fwrite/printf/etc., and then use ferror to detect output error.
4435
4436         I considered making this patch optional, but decided against it,
4437         because libc is obviously being inconsistent here: there is no
4438         reason libc should insist that user code must inspect fwrite
4439         return's value without also insisting that it inspect printf's,
4440         putchar's, etc.  If user code wants to have a strict style where
4441         all these functions' values are checked (so that ferror need not
4442         be checked), we could add support for that style in a new gnulib
4443         module, but in the meantime it's better to be consistent and to
4444         support common usage.
4445
4446         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4447         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4448         that we are compiling in checking mode, and if not C++, and
4449         if not already wrapping fwrite for some other reason.
4450         (fwrite): #define to rpl_fwrite if the latter is defined.
4451
4452 2011-03-20  Bruno Haible  <bruno@clisp.org>
4453
4454         verror: Fix compilation error introduced on 2011-02-13.
4455         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4456         instead of __attribute__.
4457         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4458
4459 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4460             Bruno Haible  <bruno@clisp.org>
4461
4462         socklen: do not depend on sys_socket
4463         While trying to modify Emacs to use gnulib's socklen module,
4464         I discovered a circular dependency: socklen depends on sys_socket
4465         and vice versa.  Emacs can use socklen, but it does not need
4466         sys_socket because it has its own substitute for sys/socket.h.
4467         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4468         gl_TYPE_SOCKLEN_T.
4469         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4470         gl_PREREQ_SYS_H_SOCKET.
4471         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4472         gl_PREREQ_SYS_H_SOCKET.
4473         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4474         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4475         * modules/socklen (Depends-on): Do not depend on sys_socket.
4476         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4477
4478 2011-03-20  Jim Meyering  <meyering@redhat.com>
4479
4480         maint.mk: sort file names *after* new transformation
4481         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4482         prefix would have led to an unwarranted failure in GNU parted.
4483         Sort after that transformation.
4484
4485 2011-03-19  Jim Meyering  <meyering@redhat.com>
4486
4487         maint.mk: fix po-file syntax-check rule
4488         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4489         Patch by Bruno Haible.
4490
4491 2011-03-19  Bruno Haible  <bruno@clisp.org>
4492
4493         socklen: Update comment.
4494         * m4/socklen.m4: Update comment about platforms.
4495
4496 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4497             Bruno Haible  <bruno@clisp.org>
4498
4499         inet_ntop, inet_pton: Simplify.
4500         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4501         documented to provide socklen_t and we already depend on sys_socket.
4502         * modules/inet_pton (Depends-on): Likewise.
4503         * lib/arpa_inet.in.h: Adjust comment.
4504
4505 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4506             Bruno Haible  <bruno@clisp.org>
4507
4508         netdb: Simplify.
4509         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4510         documented to provide socklen_t and we already depend on sys_socket.
4511         * lib/netdb.in.h: Adjust comment.
4512
4513 2011-03-19  Bruno Haible  <bruno@clisp.org>
4514
4515         sys_socket, netdb: Document problem with socklen_t.
4516         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4517         platforms.
4518         * doc/posix-headers/netdb.texi: Likewise.
4519
4520 2011-03-18  Eric Blake  <eblake@redhat.com>
4521
4522         maint.mk: let po check work in VPATH build
4523         * top/maint.mk (po_file): Allow cfg.mk override.
4524         (sc_po_check): Allow VPATH use.
4525         Reported by Jiri Denemark.
4526
4527 2011-03-16  Jim Meyering  <meyering@redhat.com>
4528
4529         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4530         Before, you would have had to create one .x-sc_ file per rule in order
4531         to exempt offending files.  Now, you may instead use a Make variable --
4532         usually defined in cfg.mk -- whose name identifies the affected rule.
4533         * top/maint.mk (_sc_excl): Define.
4534         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4535         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4536
4537 2011-03-13  Bruno Haible  <bruno@clisp.org>
4538
4539         ignore-value tests: Avoid warnings.
4540         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4541         empty for gcc < 3.4.
4542
4543 2011-03-13  Bruno Haible  <bruno@clisp.org>
4544
4545         passfd: Fix link error on Solaris.
4546         * modules/passfd (Description): Correct.
4547         (Depends-on): Add socketlib.
4548         (Link): New section.
4549         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4550
4551 2011-03-13  Bruno Haible  <bruno@clisp.org>
4552
4553         passfd: Fix link error on AIX 5.2.
4554         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4555
4556 2011-03-13  Bruno Haible  <bruno@clisp.org>
4557
4558         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4559         * lib/sys_socket.in.h: Include <stddef.h>.
4560         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4561         CMSG_FIRSTHDR. Remove unused variable.
4562
4563 2011-03-13  Bruno Haible  <bruno@clisp.org>
4564
4565         passfd: Fix compilation error on OpenBSD.
4566         * lib/passfd.c: Include <sys/uio.h>.
4567
4568 2011-03-13  Bruno Haible  <bruno@clisp.org>
4569
4570         passfd test: Fix warnings.
4571         * tests/test-passfd.c: Include <sys/wait.h>.
4572         (main): Fix typo.
4573
4574 2011-03-13  Bruno Haible  <bruno@clisp.org>
4575
4576         passfd module, part 4, tweaks.
4577         * tests/test-passfd.c: Reorder includes.
4578         (main): Fix perror and printf calls.
4579
4580 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4581
4582         passfd module, part 4.
4583         * modules/passfd-tests: New file.
4584         * tests/test-passfd.c: New file.
4585
4586 2011-03-13  Jim Meyering  <meyering@redhat.com>
4587
4588         Makefile: rely on GNU make; derive syntax-check rule names
4589         Rather than requiring that each sc_ rule be listed as a dependent
4590         of "check", use features of GNU make to derive the list.
4591         * Makefile (syntax-check-rules): Define.
4592         (check): Depend on the new variable, not the hard-coded list.
4593
4594 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4595             Bruno Haible  <bruno@clisp.org>
4596
4597         passfd module, part 3.
4598         * lib/passfd.h (recvfd): Add a flags argument.
4599         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4600         (recvfd): Add a flags argument.
4601         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4602         exists.
4603         * modules/passfd (Depends-on): Add cloexec.
4604         Suggested by Eric Blake.
4605
4606 2011-03-13  Bruno Haible  <bruno@clisp.org>
4607
4608         passfd module, part 2, tweaks.
4609         * modules/passfd (Files): Reorder.
4610         (Depends-on): Remove errno.
4611         (Include): Remove <sys/socket.h>, <sys/un.h>.
4612         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4613         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4614         specification header. Include <sys/socket.h> always. Don't include
4615         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4616         (sendfd): Clarify that it sets errno when it fails.
4617         (recvfd): Fix specification.
4618
4619 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4620
4621         passfd module, part 2.
4622         * modules/passfd: New file.
4623         * lib/passfd.h: New file.
4624         * lib/passfd.c: New file.
4625
4626 2011-03-12  Bruno Haible  <bruno@clisp.org>
4627
4628         wcswidth, mbswidth: Avoid integer overflow.
4629         * lib/wcswidth.c: Include <limits.h>.
4630         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4631         * lib/mbswidth.c: Include <limits.h>.
4632         (mbsnwidth): Avoid 'int' overflow.
4633         Reported by Jim Meyering.
4634
4635 2011-03-12  Bruno Haible  <bruno@clisp.org>
4636
4637         futimens, utimensat: Avoid endless recursion on Solaris 10.
4638         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4639         Solaris.
4640         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4641         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4642
4643 2011-03-11  Jim Meyering  <meyering@redhat.com>
4644
4645         maint.mk: relax a regexp to accommodate other formatting styles
4646         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4647         between "ngettext" and the following "(".
4648
4649 2011-03-11  Pádraig Brady <P@draigBrady.com>
4650
4651         maint.mk: suppress a false positive warning
4652         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4653         diagnostics are marked with ngettext.
4654
4655 2011-03-10  Eric Blake  <eblake@redhat.com>
4656
4657         wchar: add explicit dependencies, for Tru64
4658         * modules/mbmemcasecoll (Depends-on): Add wchar.
4659         * modules/mbtowc (Depends-on): Likewise.
4660         * modules/vasnprintf (Depends-on): Likewise.
4661         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4662         * modules/wctomb (Depends-on): Likewise.
4663         Reported by Peter O'Gorman.
4664
4665 2011-03-08  Bruno Haible  <bruno@clisp.org>
4666
4667         passfd module, part 1, tweaks.
4668         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4669         Improve indentation. Improve AC_MSG_CHECKING messages.
4670         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4671         gl_SOCKET_FAMILIES.
4672
4673 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4674
4675         passfd module, part 1.
4676         * m4/afunix.m4: New file.
4677         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4678         sockets.
4679
4680 2011-03-08  Bruno Haible  <bruno@clisp.org>
4681
4682         regex-quote: New API.
4683         * lib/regex-quote.h: Include <stdbool.h>.
4684         (struct regex_quote_spec): New type.
4685         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4686         New declarations.
4687         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4688         'const struct regex_quote_spec *' argument.
4689         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4690         (pcre_special): New constant.
4691         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4692         New functions.
4693         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4694         'const struct regex_quote_spec *' argument.
4695         * modules/regex-quote (Depends-on): Add stdbool.
4696         * tests/test-regex-quote.c (check): Update for new API. Add test for
4697         anchored results.
4698         * NEWS: Mention the API change.
4699         Reported by Reuben Thomas and Eric Blake.
4700
4701 2011-03-06  Bruno Haible  <bruno@clisp.org>
4702
4703         regex-quote: Fix creation of POSIX extended regular expressions.
4704         * lib/regex-quote.c (ere_special): Add grouping and alternation
4705         operators.
4706
4707 2011-03-05  Bruno Haible  <bruno@clisp.org>
4708
4709         doc: Improve doc regarding autopoint vs. gnulib.
4710         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4711         disable autopoint while running autoreconf.
4712         Suggested by Ralf Wildenhues.
4713
4714 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4715
4716         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4717         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4718
4719 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4720
4721         parse-duration: remove xalloc.h dependency
4722         * lib/parse-duration.c (parse_period): handle NULL return from
4723         strdup instead of calling xstrdup().
4724         * modules/parse-duration: remove "xalloc" dependency
4725
4726 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4727
4728         bootstrap: honor m4_base when running aclocal
4729         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4730
4731 2011-03-02  Jim Meyering  <meyering@redhat.com>
4732
4733         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4734         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4735         on request from Matt Booth.
4736
4737 2011-03-01  Eric Blake  <eblake@redhat.com>
4738
4739         test-link: work on Hurd
4740         * tests/test-link.h (test_link): Hurd rejects linking directories
4741         with EISDIR instead of the POSIX-mandated EPERM.
4742
4743 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4744
4745         stdio: simplify by moving files to printf-posix, sigpipe
4746         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4747         since this symbol is needed only if printf is replaced.
4748         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4749         Require gl_ASM_SYMBOL_PREFIX.
4750         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4751         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4752         (Depends-on): Add 'raise'.
4753         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4754         * modules/stdio (Files): Remove lib/stdio-write.c,
4755         m4/asm-underscore.m4.
4756         (Depends-on): Remove 'raise'.
4757
4758         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4759         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4760         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4761         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4762
4763 2011-02-28  Bruno Haible  <bruno@clisp.org>
4764
4765         localcharset: Assume ANSI C behaviour of free().
4766         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4767         calling free().
4768         Suggested by Simon Josefsson <simon@josefsson.org>.
4769
4770 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4771             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4772             Bruno Haible  <bruno@clisp.org>  (tiny change)
4773
4774         On Cygwin, use /proc file system instead of win32 API.
4775         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4776         Win32 file names.
4777         (DllMain): Simplify by removing Cygwin specific code.
4778         (find_shared_library_fullname): Use Linux specific implementation also
4779         for Cygwin.
4780         (get_shared_library_fullname): Update accordingly.
4781         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4782         Win32 file names.
4783         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4784         Cygwin specific code.
4785
4786 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4787             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4788
4789         Fix OpenMP flag detection for various Fortran compilers.
4790         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4791         OpenMP-conditional compilation construct, to force compile
4792         failure with missing OpenMP flag.
4793         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4794
4795 2011-02-25  Eric Blake  <eblake@redhat.com>
4796
4797         strstr: expand test coverage
4798         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4799         compilation.
4800         * tests/test-memmem.c (main): Duplicate tests.
4801         * tests/test-strcasestr.c (main): Likewise.
4802         * tests/test-c-strcasestr.c (main): Likewise.
4803
4804 2011-02-25  Jim Meyering  <meyering@redhat.com>
4805
4806         maint.mk: detect missing-NL-at-EOF, too
4807         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4808         it also detects when a file lacks a newline at EOF.
4809         (require_exactly_one_NL_at_EOF_): Renamed from
4810         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4811         since people may well have .x-sc_... file names tied to the
4812         existing name.  Suggested by Eric Blake.
4813
4814 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4815
4816         dirname: move m4/dos.m4 functionality into lib/dosname.h
4817
4818         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4819         extracts symbols from it, puts them into config.h; but it's much
4820         easier to use the symbols directly.  filename.h already does this,
4821         but it disagrees with dos.m4 in some respects.  This patch
4822         introduces a different include file dosname.h that packages up
4823         dos.m4, and then later we can work on merging filename.h and
4824         dosname.h.  Applications that need only the easy-to-configure
4825         symbols should consider including dosname.h rather than dirname.h.
4826         * NEWS: Mention incompatible changes.
4827         * m4/dos.m4: Remove.
4828         * lib/dosname.h, modules/dosname: New files.
4829         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4830         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4831         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4832         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4833         Include dosname.h, not dirname.h.
4834         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4835         Include dosname.h, for definitions of symbols like ISSLASH
4836         that used to be in config.h.
4837         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4838         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4839         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4840         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4841         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4842         * modules/rmdir (Files): Likewise.
4843         * modules/stat (Files): Likewise.
4844         * modules/unlink (Files): Likewise.
4845         * modules/dirname-lgpl (Depends-on): Add dosname.
4846         * modules/lstat (Depends-on): Likewise.
4847         * modules/openat (Depends-on): Likewise.
4848         * modules/rmdir (Depends-on): Likewise.
4849         * modules/savewd (Depends-on): Likewise.
4850         * modules/stat (Depends-on): Likewise.
4851         * modules/unlink (Depends-on): Likewise.
4852         * modules/openat (Depends-on): Remove dirname-lgpl.
4853         * modules/savewd (Depends-on): Likewise.
4854         * tests/test-dirname.c: Do not use removed symbols like
4855         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4856         the remaining symbols, e.g., ISSLASH ('\\').
4857
4858 2011-02-25  Eric Blake  <eblake@redhat.com>
4859
4860         strstr: revert patches that introduced bug and pessimization
4861         * lib/str-two-way.h: Add another reference.
4862         (two_way_short_needle, two_way_long_needle): Revert changes from
4863         2011-02-24; they pessimize search speed.
4864         (critical_factorization): Partially revert changes from
4865         2010-06-22; they violate the requirement that the left half of the
4866         needle be smaller than the period of the needle.
4867
4868 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4869
4870         filenamecat: remove unnecessary dependency on dirname-lgpl
4871         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4872         is no direct dependency, just an indirect one via filenamecat-lgpl.
4873
4874         remove: remove unnecessary use of m4/dos.m4
4875         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4876         * modules/remove (FILES): Remove m4/dos.m4.
4877
4878         * lib/openat-proc.c: Don't include dirname.h; not needed.
4879
4880         backupfile: remove unnecessary use of m4/dos.m4
4881         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4882         of its symbols are used by the backupfile code.  backupfile.c does
4883         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4884         for the rare case of programs that want all their backup file
4885         names to live within 8+3 limits, and dos.m4 doesn't address that.
4886         * modules/backupfile (Files): Remove m4/dos.m4.
4887
4888 2011-02-24  Jim Meyering  <meyering@redhat.com>
4889
4890         strstr: fix a bug whereby strstr would mistakenly return NULL
4891         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4892         in period calculation.
4893         (two_way_long_needle): Likewise.
4894         The original problem was reported by Mike Stump in
4895         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4896         Ralf Wildenhues provided the short needle and haystack.
4897         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4898         Add a more involved test to trigger the bug in two_way_long_needle.
4899
4900 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4901
4902         gnulib-tool: remove use of bold display in help screen
4903         * gnulib-tool (func_usage): Do not use bold display anymore in the
4904         help screen.  That was just meant to be a temporary emphasis for a
4905         backward-incompatible change.
4906
4907 2011-02-23  Bruno Haible  <bruno@clisp.org>
4908
4909         Fix misindentation of preprocessor directives.
4910         * lib/argp-namefrob.h: Reindent preprocessor directives.
4911         * lib/getopt_int.h (struct _getopt_data): Likewise.
4912         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4913         * lib/vasnprintf.c (decode_long_double): Likewise.
4914         * tests/test-argmatch.c: Insert blank lines, for clarity.
4915         * tests/test-exclude.c: Likewise.
4916
4917 2011-02-22  Bruno Haible  <bruno@clisp.org>
4918
4919         ioctl: Fix for MacOS X in 64-bit mode.
4920         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4921         value.
4922         Suggested by Eric Blake.
4923         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4924
4925 2011-02-22  Jim Meyering  <meyering@redhat.com>
4926
4927         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4928         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4929         in lib/.
4930
4931 2011-02-22  Eric Blake  <eblake@redhat.com>
4932
4933         maint: avoid any CDPATH issue
4934         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4935
4936         maint: adjust cpp indentation for my modules, as well
4937         * Makefile (sc_cpp_indent_check): Add my name.
4938         * lib/fbufmode.c: Filter through cppi.
4939         * lib/fpurge.c: Likewise.
4940         * lib/freadable.c: Likewise.
4941         * lib/freading.c: Likewise.
4942         * lib/fwritable.c: Likewise.
4943         * lib/fwriting.c: Likewise.
4944         * lib/sigaction.c: Likewise.
4945
4946 2011-02-22  Jim Meyering  <meyering@redhat.com>
4947
4948         maint: adjust cpp indentation to reflect nesting depth
4949         I.e., in a block of code that begins with an unnested "#if",
4950         put one space between the "#" in column 1 and following token.
4951         For example,
4952         -#include <sys/vfs.h>
4953         +# include <sys/vfs.h>
4954         Do this only in .c files that are part of a module I maintain.
4955         * lib/linkat.c: Filter through cppi.
4956         * lib/nanosleep.c: Likewise.
4957         * lib/openat.c: Likewise.
4958         * lib/openat-die.c: Likewise.
4959         * lib/dup3.c: Likewise.
4960         * lib/fchownat.c: Likewise.
4961         * lib/flock.c: Likewise.
4962         * lib/fsync.c: Likewise.
4963         * lib/fts.c: Likewise.
4964         * lib/getpass.c: Likewise.
4965         * lib/gettimeofday.c: Likewise.
4966         * lib/userspec.c: Likewise.
4967         * Makefile (sc_cpp_indent_check): New rule, to check this.
4968
4969 2011-02-22  Bruno Haible  <bruno@clisp.org>
4970
4971         New module 'wctomb'.
4972         * lib/stdlib.in.h (wctomb): New declaration.
4973         * lib/wctomb.c: New file.
4974         * lib/wctomb-impl.h: New file.
4975         * m4/wctomb.m4: New file.
4976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4977         REPLACE_WCTOMB.
4978         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4979         REPLACE_WCTOMB.
4980         * modules/wctomb: New file.
4981         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4982         * doc/posix-functions/wctomb.texi: Mention the new module.
4983         * modules/wctob (Depends-on): Add wctomb.
4984
4985 2011-02-22  Bruno Haible  <bruno@clisp.org>
4986
4987         New module 'mbtowc'.
4988         * lib/stdlib.in.h (mbtowc): New declaration.
4989         * lib/mbtowc.c: New file.
4990         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4991         * m4/mbtowc.m4: New file.
4992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4993         REPLACE_MBTOWC.
4994         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4995         REPLACE_MBTOWC.
4996         * modules/mbtowc: New file.
4997         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4998         * doc/posix-functions/mbtowc.texi: Mention the new module.
4999         * modules/btowc (Depends-on): Add mbtowc.
5000
5001 2011-02-22  Bruno Haible  <bruno@clisp.org>
5002
5003         wcrtomb: Add more tests for native Windows platforms.
5004         * tests/test-wcrtomb-w32-1.sh: New file.
5005         * tests/test-wcrtomb-w32-2.sh: New file.
5006         * tests/test-wcrtomb-w32-3.sh: New file.
5007         * tests/test-wcrtomb-w32-4.sh: New file.
5008         * tests/test-wcrtomb-w32-5.sh: New file.
5009         * tests/test-wcrtomb-w32.c: New file.
5010         * modules/wcrtomb-tests (Files): Add them.
5011         (Makefile.am): Arrange to run these tests.
5012         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5013         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5014
5015 2011-02-20  Bruno Haible  <bruno@clisp.org>
5016
5017         wcrtomb: Enhance test.
5018         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5019
5020 2011-02-20  Bruno Haible  <bruno@clisp.org>
5021
5022         mbrtowc: Tiny optimization.
5023         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5024
5025 2011-02-20  Jim Meyering  <meyering@redhat.com>
5026
5027         test-exclude.c: remove unmatched #endif
5028         * tests/test-exclude.c: Remove stray #endif, left over from
5029         the change of a week ago.
5030
5031 2011-02-19  Jim Meyering  <meyering@redhat.com>
5032
5033         git-version-gen: skip "-dirty" check when appropriate
5034         * build-aux/git-version-gen: Don't run any git commands when the
5035         version string comes from .tarball-version.  Prior to this, we
5036         would run git update-index --refresh even from a just-unpacked
5037         tarball directory, and that could affect a .git/ directory in a
5038         parent of the build directory.  Reported by Mike Frysinger.
5039
5040 2011-02-19  Bruno Haible  <bruno@clisp.org>
5041
5042         unictype/property-byname: Reduce the size of the 'data' segment.
5043         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5044
5045 2011-02-19  Bruno Haible  <bruno@clisp.org>
5046
5047         unictype/scripts: Reduce the size of the 'data' segment.
5048         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5049         '%pic'.
5050         * lib/unictype/scripts_byname.gperf: Regenerated.
5051
5052 2011-02-19  Bruno Haible  <bruno@clisp.org>
5053
5054         stdint: Update documentation.
5055         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5056
5057 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5058
5059         stdint: omit redundant check for wchar.h
5060         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5061         always tests whether wchar.h exists, so remove the now-redundant test.
5062
5063 2011-02-18  Bruno Haible  <bruno@clisp.org>
5064
5065         stdint: Cut dependency to module 'wchar'.
5066         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5067         include the necessary prerequisites.
5068         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5069         * modules/stdint (Depends-on): Remove wchar.
5070         (Makefile.am): Substitute HAVE_WCHAR_H.
5071         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5072
5073 2011-02-18  Eric Blake  <eblake@redhat.com>
5074
5075         longlong: skip, rather than fail, on cross-compilation
5076         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5077         when cross-compiling; regression from 2011-02-16.
5078
5079 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5080
5081         * NEWS: Mention 2011-02-08 change to stdlib.
5082
5083 2011-02-17  Bruno Haible  <bruno@clisp.org>
5084
5085         getloadavg: Add comments about platforms.
5086         * m4/getloadavg.m4: Add comment.
5087         * lib/getloadavg.c: Likewise.
5088
5089 2011-02-17  Bruno Haible  <bruno@clisp.org>
5090
5091         getloadavg: Fix link error on Solaris 2.6.
5092         * modules/getloadavg (Link): New section.
5093         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5094         linking test-getloadavg.
5095         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5096         getloadavg.
5097
5098 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5099
5100         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5101         It was 'int', but this doesn't match the IRIX 6.5 manual.
5102         Suggested by Bruno Haible in
5103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5104
5105 2011-02-17  Bruno Haible  <bruno@clisp.org>
5106
5107         havelib: Fix comments.
5108         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5109         change.
5110
5111 2011-02-17  Bruno Haible  <bruno@clisp.org>
5112
5113         havelib: Update config.rpath.
5114         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5115
5116 2011-02-17  Bruno Haible  <bruno@clisp.org>
5117
5118         getloadavg test: Add some plausibility checks.
5119         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5120         is improbable.
5121
5122 2011-02-16  Eric Blake  <eblake@redhat.com>
5123
5124         maintainer-makefile: make syntax-check a no-op from tarballs
5125         * top/maint.mk (no-vc-detected): New rule.
5126         (local-checks-available): Use it to avoid hanging if someone tries
5127         'make syntax-check' from a tarball.  Also append to any non-syntax
5128         checks already defined in cfg.mk.
5129
5130 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5131
5132         longlong: tune, particularly for common case of c99
5133
5134         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5135         or running anything if c99, or if unsigned long long int does not
5136         work.  In either case, we know the answer without further tests.
5137         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5138         it at most once, and use its results for both long long int and
5139         unsigned long long int.  This is more likely to be efficient in
5140         the common case where the program wants to check for both long
5141         long int and unsigned long long int.
5142         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5143         since the answer is already known.
5144
5145 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5146
5147         getloadavg: set errno
5148         * lib/getloadavg.c: Set errno when returning -1.  If no other
5149         error number looks appropriate, set it to ENOSYS if the getloadavg
5150         looks like it can't possibly ever work, ENOTSUP otherwise.
5151         Suggested by Bruno Haible in
5152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5153
5154         getloadavg: trim unused parts and speed up 'configure'
5155         * NEWS: Document this.
5156         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5157         always compiled if getloadavg is absent.
5158         Move test code to ...
5159         * tests/test-getloadavg.c: New file, containing previous
5160         contents of test from lib/getloadavg.c.  It also contains
5161         suggestions by Bruno Haible in
5162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5163         * modules/getloadavg-tests: New file.
5164         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5165         Do tests in the same order as they're needed for getloadavg.c.
5166         Omit setgid-related tests that generate symbols KMEM_GROUP,
5167         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5168         Do only the tests that are needed to see whether the system has
5169         getloadavg, moving the other tests into ...
5170         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5171         NLIST_NAME_UNION; nobody should be using it.  Do not define
5172         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5173         relevant, as the user of this module shouldn't care how getloadavg
5174         is implemented.
5175
5176         getloadavg: omit unused var
5177         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5178
5179 2011-02-15  Jim Meyering  <meyering@redhat.com>
5180
5181         doc: update users.txt
5182         * users.txt: Update iwhd's URL.
5183
5184 2011-02-13  Bruno Haible  <bruno@clisp.org>
5185
5186         Consistent macro naming for macros that use GCC __attribute__.
5187         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5188         _ATTRIBUTE_NONNULL_.
5189         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5190         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5191         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5192         ATTRIBUTE_DEPRECATED.
5193         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5194         ATTRIBUTE_NORETURN.
5195         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5196         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5197         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5198         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5199         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
5200         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
5201         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
5202         ATTRIBUTE_SENTINEL.
5203         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
5204         ATTRIBUTE_RETURN_CHECK.
5205         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
5206         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
5207         ATTRIBUTE_NORETURN.
5208         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
5209         Reported by Paul Eggert.
5210
5211 2011-02-13  Bruno Haible  <bruno@clisp.org>
5212
5213         Don't interfere with a program's definition of __attribute__.
5214         * lib/argp.h (__attribute__): Remove definition.
5215         (_GL_ATTRIBUTE_FORMAT): New macro.
5216         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
5217         * lib/argp-fmtstream.h (__attribute__): Remove definition.
5218         (_GL_ATTRIBUTE_FORMAT): New macro.
5219         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
5220         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
5221         GCC 3 or newer.
5222         * lib/error.h (__attribute__): Remove definition.
5223         (_GL_ATTRIBUTE_FORMAT): New macro.
5224         (error, error_at_line): Use it.
5225         * lib/hash.h (__attribute__): Remove definition.
5226         (ATTRIBUTE_WUR): Update definition. Define always.
5227         * lib/openat.h (__attribute__): Remove definition.
5228         (ATTRIBUTE_NORETURN): Update definition. Define always.
5229         * lib/sigpipe-die.h (__attribute__): Remove definition.
5230         (ATTRIBUTE_NORETURN): Update definition. Define always.
5231         * lib/vasnprintf.h (__attribute__): Remove definition.
5232         (_GL_ATTRIBUTE_FORMAT): New macro.
5233         (asnprintf, vasnprintf): Use it.
5234         * lib/xalloc.h (__attribute__): Remove definition.
5235         (ATTRIBUTE_NORETURN): Update definition. Define always.
5236         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
5237         * lib/xmemdup0.h (__attribute__): Remove definition.
5238         (ATTRIBUTE_NORETURN): Update definition. Define always.
5239         * lib/xprintf.h (__attribute__): Remove definition.
5240         (_GL_ATTRIBUTE_FORMAT): New macro.
5241         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
5242         * lib/xstrtol.h (__attribute__): Remove definition.
5243         (ATTRIBUTE_NORETURN): Update definition. Define always.
5244         * lib/xvasprintf.h (__attribute__): Remove definition.
5245         (_GL_ATTRIBUTE_FORMAT): New macro.
5246         (xasprintf, xvasprintf): Use it.
5247         * tests/test-argmatch.c (__attribute__): Remove definition.
5248         (ATTRIBUTE_NORETURN): Update definition. Define always.
5249         * tests/test-exclude.c (__attribute__): Remove definition.
5250         (ATTRIBUTE_NORETURN): Update definition. Define always.
5251         Reported by Paul Eggert.
5252
5253 2011-02-13  Bruno Haible  <bruno@clisp.org>
5254
5255         mbrtowc: Add more tests for native Windows platforms.
5256         * tests/test-mbrtowc-w32-1.sh: New file.
5257         * tests/test-mbrtowc-w32-2.sh: New file.
5258         * tests/test-mbrtowc-w32-3.sh: New file.
5259         * tests/test-mbrtowc-w32-4.sh: New file.
5260         * tests/test-mbrtowc-w32-5.sh: New file.
5261         * tests/test-mbrtowc-w32.c: New file.
5262         * modules/mbrtowc-tests (Files): Add them.
5263         (Makefile.am): Arrange to run these tests.
5264         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
5265         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
5266
5267 2011-02-13  Bruno Haible  <bruno@clisp.org>
5268
5269         mbrtowc: Work around native Windows bug.
5270         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
5271         guess when no suitable locale for testing was found.
5272         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5273
5274 2011-02-13  Bruno Haible  <bruno@clisp.org>
5275
5276         mbsinit: Work around mingw bug.
5277         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5278         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5279         Windows.
5280         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5281
5282 2011-02-13  Bruno Haible  <bruno@clisp.org>
5283
5284         mbsinit: Don't crash for a NULL argument.
5285         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5286         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5287
5288 2011-02-13  Bruno Haible  <bruno@clisp.org>
5289
5290         Don't interfere with a program's definition of __attribute__.
5291         * lib/stdio.in.h (__attribute__): Remove definition.
5292         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5293         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5294         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5295         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5296         * lib/string.in.h (__attribute__): Remove definition.
5297         Reported by Paul Eggert.
5298
5299 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5300
5301         stdlib: don't get in the way of non-GCC __attribute__
5302         See thread starting at
5303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5304         Revert previous stdlib change, installing the following instead:
5305         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5306         to get in the way of a non-GCC compiler that supports __attribute__.
5307         (_GL_ATTRIBUTE_RETURN): New macro.
5308         (_Exit): Use it instead of __attribute__.
5309
5310 2011-02-12  Bruno Haible  <bruno@clisp.org>
5311
5312         quotearg test: Avoid test failure on mingw.
5313         * tests/test-quotearg.sh: Convert the locale identifier from native
5314         Windows syntax to Unix syntax.
5315
5316 2011-02-12  Bruno Haible  <bruno@clisp.org>
5317
5318         setlocale: Prefer gnulib's override over libintl's override.
5319         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
5320         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
5321         GNULIB_defined_setlocale is set.
5322
5323 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5324
5325         stdlib: support non-GCC __attribute__
5326
5327         Fix a serious and tricky problem encountered when attempting to
5328         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
5329         5.5, but it crashed due to memory corruption on Solaris 10 with
5330         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
5331         bits that are otherwise zero.  This tagging is optional inside
5332         Emacs but is preferred and is used when __attribute__ ((__aligned
5333         (8))) works, as it does with both recent-enough GCC and with Sun C
5334         5.11.  However, Sun C 5.11 is not GCC and does not #define
5335         __GNUC__ and __GNUC_MINOR__.
5336
5337         When I added the getloadavg module to Emacs, it brought in
5338         stdlib.in.h, which contained this fragment:
5339
5340            #ifndef __attribute__
5341            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5342            #  define __attribute__(Spec)   /* empty */
5343            # endif
5344            #endif
5345
5346         When files that include <stdlib.h> were compiled with Sun C 5.11,
5347         the above code disabled __attribute__ ((__aligned (8))), which
5348         caused variables to not be properly aligned, which eventually led
5349         to the pointer corruption mentioned above.  (This was a bit hard
5350         to diagnose, unfortunately.)
5351
5352         Several "#define __attribute__(X) /* empty */" code snippets need
5353         to be eradicated from Gnulib to work with non-GCC compilers that
5354         support __attribute__.  The Autoconf way to do this is to test for
5355         each kind of attribute that we want support for, and selectively
5356         enable that in source code.
5357
5358         Fix this problem just for stdlib.h, by adding a test for the
5359         __noreturn__ attribute, and change stdlib.in.h to use that test
5360         when needed.  This technique can be easily generalized to the
5361         other *.in.h files and attributes, and a similar technique can be
5362         used for *.h and *.c files.  This patch is enough to solve the
5363         problem for Emacs + getloadavg, and I thought I'd publish it for
5364         feedback before undertaking further, similar fixes in other
5365         modules.
5366
5367         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
5368         because it's not needed for stdlib.h.  It merely substitutes the
5369         value directly into stdlib.h.  We may well need to #define it, or
5370         similar symbols, for other modules, but it's nice to also have an
5371         option to not #define it for applications like Emacs that do not
5372         need it.
5373
5374         * lib/stdlib.in.h (__attribute__): Do not #define.
5375         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
5376         be defined only if the _Exit module is also used.
5377         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5379         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5380         platforms.
5381         * modules/_Exit (Files): Add m4/attribute.m4.
5382         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5383         * m4/attribute.m4: New file.
5384
5385 2011-02-12  Bruno Haible  <bruno@clisp.org>
5386
5387         wcsrtombs: Work around bug on native Windows.
5388         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5389         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5390         instead of len.
5391         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5392
5393 2011-02-12  Bruno Haible  <bruno@clisp.org>
5394
5395         mbsrtowcs: Work around bug on native Windows.
5396         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5397         against mingw bug.
5398         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5399
5400 2011-02-12  Bruno Haible  <bruno@clisp.org>
5401
5402         Avoid setlocale bugs in tests.
5403         * modules/btowc (Dependencies): Add setlocale.
5404         * modules/c-strcase (Dependencies): Likewise.
5405         * modules/mbmemcasecmp (Dependencies): Likewise.
5406         * modules/mbmemcasecoll (Dependencies): Likewise.
5407         * modules/mbrtowc (Dependencies): Likewise.
5408         * modules/mbscasecmp (Dependencies): Likewise.
5409         * modules/mbscasestr (Dependencies): Likewise.
5410         * modules/mbschr (Dependencies): Likewise.
5411         * modules/mbscspn (Dependencies): Likewise.
5412         * modules/mbsinit (Dependencies): Likewise.
5413         * modules/mbsncasecmp (Dependencies): Likewise.
5414         * modules/mbsnrtowcs (Dependencies): Likewise.
5415         * modules/mbspbrk (Dependencies): Likewise.
5416         * modules/mbspcasecmp (Dependencies): Likewise.
5417         * modules/mbsrchr (Dependencies): Likewise.
5418         * modules/mbsrtowcs (Dependencies): Likewise.
5419         * modules/mbsspn (Dependencies): Likewise.
5420         * modules/mbsstr (Dependencies): Likewise.
5421         * modules/nl_langinfo (Dependencies): Likewise.
5422         * modules/quotearg (Dependencies): Likewise.
5423         * modules/unicase/locale-language (Dependencies): Likewise.
5424         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5425         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5426         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5427         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5428         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5429         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5430         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5431         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5432         * modules/vasnprintf-posix (Dependencies): Likewise.
5433         * modules/wcrtomb (Dependencies): Likewise.
5434         * modules/wcsnrtombs (Dependencies): Likewise.
5435         * modules/wcsrtombs (Dependencies): Likewise.
5436
5437 2011-02-12  Bruno Haible  <bruno@clisp.org>
5438
5439         setlocale: Workaround native Windows bug.
5440         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5441         succeeds but sets LC_CTYPE to "C", report a failure.
5442         * tests/test-setlocale2.sh: New file.
5443         * tests/test-setlocale2.c: New file.
5444         * modules/setlocale-tests (Files): Add the new files.
5445         (Makefile.am): Enable test-setlocale2.sh test.
5446         * doc/posix-functions/setlocale.texi: Mention workaround.
5447
5448 2011-02-11  Bruno Haible  <bruno@clisp.org>
5449
5450         Tests for module 'setlocale'.
5451         * modules/setlocale-tests: New file.
5452         * tests/test-setlocale1.sh: New file.
5453         * tests/test-setlocale1.c: New file.
5454
5455         New module 'setlocale'.
5456         * lib/locale.in.h (setlocale): New declaration.
5457         * lib/setlocale.c: New file, based on
5458         gettext/gettext-runtime/intl/setlocale.c.
5459         * m4/setlocale.m4: New file.
5460         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5461         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5462         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5463         REPLACE_SETLOCALE.
5464         * modules/setlocale: New file.
5465         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5466         * doc/posix-functions/setlocale.texi: Mention the new module.
5467
5468 2011-02-11  Bruno Haible  <bruno@clisp.org>
5469
5470         Prepare for locale dependent tests on mingw.
5471         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5472         because it has the wrong locale encoding.
5473         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5474         French_France.1252 instead of "fr".
5475         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5476         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5477         because it has the wrong locale encoding.
5478         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5479         native Windows, try Turkish_Turkey.65001.
5480         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5481         Chinese_China.54936.
5482
5483         Prepare for locale dependent tests on mingw.
5484         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5485         differently.
5486         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5487         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5488         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5489         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5490
5491 2011-02-11  Eric Blake  <eblake@redhat.com>
5492
5493         strptime: avoid compiler warnings
5494         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5495         compiler warnings about dead code.
5496         Reported by Daniel P. Berrange.
5497
5498 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5499
5500         doc: update users.txt
5501         * users.txt: Add rcs.
5502
5503 2011-02-10  John W. Eaton  <jwe@gnu.org>
5504
5505         doc: update users.txt
5506         * users.txt: Add octave.
5507
5508 2011-02-10  Jim Meyering  <meyering@redhat.com>
5509
5510         doc: update users.txt
5511         * users.txt: Add iwhd.
5512
5513 2011-02-09  Bruno Haible  <bruno@clisp.org>
5514
5515         gnulib-tool: Make copyright notice adjustment more robust.
5516         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5517         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5518         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5519         License".
5520         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5521
5522 2011-02-06  Bruno Haible  <bruno@clisp.org>
5523
5524         New module 'towctrans'.
5525         * modules/towctrans: New file.
5526         * lib/wctype.in.h (towctrans): New declaration.
5527         * lib/towctrans.c: New file.
5528         * lib/towctrans-impl.h: New file.
5529         * m4/towctrans.m4: New file.
5530         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5531         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5532         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5533         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5534         * doc/posix-functions/towctrans.texi: Mention the new module.
5535
5536 2011-02-06  Bruno Haible  <bruno@clisp.org>
5537
5538         New module 'wctrans'.
5539         * modules/wctrans: New file.
5540         * lib/wctype.in.h (wctrans): New declaration.
5541         * lib/wctrans.c: New file.
5542         * lib/wctrans-impl.h: New file.
5543         * m4/wctrans.m4: New file.
5544         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5545         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5546         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5547         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5548         * doc/posix-functions/wctrans.texi: Mention the new module.
5549
5550 2011-02-06  Bruno Haible  <bruno@clisp.org>
5551
5552         New module 'iswctype'.
5553         * modules/iswctype: New file.
5554         * lib/wctype.in.h (iswctype): New declaration.
5555         * lib/iswctype.c: New file.
5556         * lib/iswctype-impl.h: New file.
5557         * m4/iswctype.m4: New file.
5558         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5559         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5560         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5561         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5562         * doc/posix-functions/iswctype.texi: Mention the new module and the
5563         HP-UX 11.00 problem.
5564
5565 2011-02-06  Bruno Haible  <bruno@clisp.org>
5566
5567         New module 'wctype'.
5568         * modules/wctype: Change to represent the wctype() substitute.
5569         * lib/wctype.in.h (wctype): New declaration.
5570         * lib/wctype.c: New file.
5571         * lib/wctype-impl.h: New file.
5572         * m4/wctype.m4: New file.
5573         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5574         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5575         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5576         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5577         * doc/posix-functions/wctype.texi: Mention the new module and the
5578         HP-UX 11.00 problem.
5579
5580 2011-02-06  Bruno Haible  <bruno@clisp.org>
5581
5582         wctype-h: Ensure wctype_t and wctrans_t are defined.
5583         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5584         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5585         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5586         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5587         HAVE_WCTRANS_T.
5588         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5589
5590 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5591
5592         flock: fix license typo
5593
5594         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5595         omitted.
5596
5597 2011-02-08  Bruno Haible  <bruno@clisp.org>
5598
5599         Split large sed scripts, for HP-UX sed.
5600         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5601         to avoid HP-UX limit of 99 commands, in the near future.
5602         * modules/stdlib (Makefile.am): Likewise.
5603         * modules/unistd (Makefile.am): Likewise.
5604         * modules/wchar (Makefile.am): Likewise.
5605         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5606         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5608
5609 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5610             Bruno Haible  <bruno@clisp.org>
5611
5612         stdlib: improve random_r modularization
5613         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5614         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5615         you also need the random_r module to get this material right.
5616         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5617         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5618         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5619
5620 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5621
5622         stdlib: don't depend on stdint
5623         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5624         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5625         be independent of whether stdint.h is needed.
5626         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5627         here, instead of ...
5628         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5629         struct random_data should be using the random_r module, not just
5630         the stdlib module (which wouldn't make sense: what package needs
5631         just struct random_data without also needing random_r?).
5632         * modules/stdlib (Depends-on): Remove stdint.
5633
5634         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5635         See the thread rooted at
5636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5637         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5638         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5639         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5640         __VMS)); previously it was always included (via fcntl--.h).
5641         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5642         hand; this is good enough for load averages.  Also, do not use
5643         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5644         flags directly if available and don't bother otherwise.  (Packages
5645         that need the extra reliability should use the modules that define
5646         these flags on older platforms that lack them.)
5647         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5648         fcntl-safer.
5649
5650 2011-02-08  Jim Meyering  <meyering@redhat.com>
5651
5652         di-set.h, ino-map.h: add multiple-inclusion guard
5653         Technically, the guard is required only for ino-map.h, due to its
5654         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5655         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5656         * lib/ino-map.h: Likewise.
5657
5658 2011-02-06  Bruno Haible  <bruno@clisp.org>
5659
5660         iswblank: Ensure declaration on glibc systems.
5661         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5662         * modules/iswblank (Dependencies): Add 'extensions'.
5663         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5664
5665 2011-02-06  Bruno Haible  <bruno@clisp.org>
5666
5667         New module 'iswblank'.
5668         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5669         * modules/iswblank: New file.
5670         * modules/wctype-h (Files): Remove lib/iswblank.c.
5671         (Makefile.am): Substitute GNULIB_ISWBLANK.
5672         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5673         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5674         (gl_WCTYPE_H_DEFAULTS): New macro.
5675         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5676         * modules/iswblank-tests: New file.
5677         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5678         * tests/test-wctype-h.c (main): Remove iswblank tests.
5679         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5680         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5681         of 'wctype-h'.
5682         * NEWS: Mention the change.
5683         * modules/mbchar (Depends-on): Add iswblank.
5684
5685 2011-02-08  Bruno Haible  <bruno@clisp.org>
5686
5687         di-set tests: Refactor.
5688         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5689         unnecessary includes.
5690         (ASSERT): Remove macro.
5691         (main): Make C90 compliant by avoiding variable declaration after
5692         statement.
5693         * modules/di-set-tests (Files): Add tests/macros.h.
5694
5695 2011-02-08  Bruno Haible  <bruno@clisp.org>
5696
5697         ino-map tests: Refactor.
5698         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5699         unnecessary includes.
5700         (ASSERT): Remove macro.
5701         (main): Make C90 compliant by avoiding variable declaration after
5702         statement.
5703         * modules/ino-map-tests (Files): Add tests/macros.h.
5704
5705 2011-02-08  Jim Meyering  <meyering@redhat.com>
5706
5707         di-set: add "const" to a cast
5708         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5709         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5710
5711 2011-02-06  Bruno Haible  <bruno@clisp.org>
5712
5713         Rename module 'wctype' to 'wctype-h'.
5714         * modules/wctype-h: Renamed from modules/wctype.
5715         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5716         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5717         (Files, Depends-on, Makefile.am): Update.
5718         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5719         (Files, Makefile.am): Update.
5720         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5721         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5722         * doc/posix-headers/wctype.texi: Update.
5723         * doc/posix-functions/iswalnum.texi: Update.
5724         * doc/posix-functions/iswalpha.texi: Update.
5725         * doc/posix-functions/iswblank.texi: Update.
5726         * doc/posix-functions/iswcntrl.texi: Update.
5727         * doc/posix-functions/iswdigit.texi: Update.
5728         * doc/posix-functions/iswgraph.texi: Update.
5729         * doc/posix-functions/iswlower.texi: Update.
5730         * doc/posix-functions/iswprint.texi: Update.
5731         * doc/posix-functions/iswpunct.texi: Update.
5732         * doc/posix-functions/iswspace.texi: Update.
5733         * doc/posix-functions/iswupper.texi: Update.
5734         * doc/posix-functions/iswxdigit.texi: Update.
5735         * doc/posix-functions/towlower.texi: Update.
5736         * doc/posix-functions/towupper.texi: Update.
5737         * NEWS: Mention the change.
5738         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5739         * modules/mbchar (Dependencies): Likewise.
5740         * modules/mbswidth (Dependencies): Likewise.
5741         * modules/quotearg (Dependencies): Likewise.
5742         * modules/regex (Dependencies): Likewise.
5743         * modules/wcscasecmp (Dependencies): Likewise.
5744         * modules/wcsncasecmp (Dependencies): Likewise.
5745         * modules/wcwidth (Dependencies): Likewise.
5746
5747 2011-02-06  Bruno Haible  <bruno@clisp.org>
5748
5749         New module 'wcswidth'.
5750         * modules/wcswidth: New file.
5751         * lib/wchar.in.h (wcswidth): New declaration.
5752         * lib/wcswidth.c: New file.
5753         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5754         * m4/wcswidth.m4: New file.
5755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5757         REPLACE_WCSWIDTH.
5758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5759         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5760         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5761         * doc/posix-functions/wcswidth.texi: Mention the new module.
5762
5763 2011-02-06  Bruno Haible  <bruno@clisp.org>
5764
5765         New module 'wcstok'.
5766         * modules/wcstok: New file.
5767         * lib/wchar.in.h (wcstok): New declaration.
5768         * lib/wcstok.c: New file.
5769         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5770         * m4/wcstok.m4: New file.
5771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5774         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5775         * doc/posix-functions/wcstok.texi: Mention the new module.
5776
5777 2011-02-06  Bruno Haible  <bruno@clisp.org>
5778
5779         New module 'wcsstr'.
5780         * modules/wcsstr: New file.
5781         * lib/wchar.in.h (wcsstr): New declaration.
5782         * lib/wcsstr.c: New file.
5783         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5784         * m4/wcsstr.m4: New file.
5785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5787         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5788         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5789         * doc/posix-functions/wcsstr.texi: Mention the new module.
5790
5791 2011-02-06  Bruno Haible  <bruno@clisp.org>
5792
5793         New module 'wcspbrk'.
5794         * modules/wcspbrk: New file.
5795         * lib/wchar.in.h (wcspbrk): New declaration.
5796         * lib/wcspbrk.c: New file.
5797         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5798         * m4/wcspbrk.m4: New file.
5799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5802         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5803         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5804
5805 2011-02-06  Bruno Haible  <bruno@clisp.org>
5806
5807         New module 'wcsspn'.
5808         * modules/wcsspn: New file.
5809         * lib/wchar.in.h (wcsspn): New declaration.
5810         * lib/wcsspn.c: New file.
5811         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5812         * m4/wcsspn.m4: New file.
5813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5815         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5816         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5817         * doc/posix-functions/wcsspn.texi: Mention the new module.
5818
5819 2011-02-06  Bruno Haible  <bruno@clisp.org>
5820
5821         New module 'wcscspn'.
5822         * modules/wcscspn: New file.
5823         * lib/wchar.in.h (wcscspn): New declaration.
5824         * lib/wcscspn.c: New file.
5825         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5826         * m4/wcscspn.m4: New file.
5827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5830         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5831         * doc/posix-functions/wcscspn.texi: Mention the new module.
5832
5833 2011-02-06  Bruno Haible  <bruno@clisp.org>
5834
5835         New module 'wcsrchr'.
5836         * modules/wcsrchr: New file.
5837         * lib/wchar.in.h (wcsrchr): New declaration.
5838         * lib/wcsrchr.c: New file.
5839         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5840         * m4/wcsrchr.m4: New file.
5841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5844         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5845         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5846
5847 2011-02-06  Bruno Haible  <bruno@clisp.org>
5848
5849         New module 'wcschr'.
5850         * modules/wcschr: New file.
5851         * lib/wchar.in.h (wcschr): New declaration.
5852         * lib/wcschr.c: New file.
5853         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5854         * m4/wcschr.m4: New file.
5855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5858         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5859         * doc/posix-functions/wcschr.texi: Mention the new module.
5860
5861 2011-02-06  Bruno Haible  <bruno@clisp.org>
5862
5863         New module 'wcsdup'.
5864         * modules/wcsdup: New file.
5865         * lib/wchar.in.h (wcsdup): New declaration.
5866         * lib/wcsdup.c: New file.
5867         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5868         * m4/wcsdup.m4: New file.
5869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5872         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5873         * doc/posix-functions/wcsdup.texi: Mention the new module.
5874
5875 2011-02-06  Bruno Haible  <bruno@clisp.org>
5876
5877         New module 'wcsxfrm'.
5878         * modules/wcsxfrm: New file.
5879         * lib/wchar.in.h (wcsxfrm): New declaration.
5880         * lib/wcsxfrm.c: New file.
5881         * lib/wcsxfrm-impl.h: New file.
5882         * m4/wcsxfrm.m4: New file.
5883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5886         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5887         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5888
5889 2011-02-06  Bruno Haible  <bruno@clisp.org>
5890
5891         New module 'wcscoll'.
5892         * modules/wcscoll: New file.
5893         * lib/wchar.in.h (wcscoll): New declaration.
5894         * lib/wcscoll.c: New file.
5895         * lib/wcscoll-impl.h: New file.
5896         * m4/wcscoll.m4: New file.
5897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5900         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5901         * doc/posix-functions/wcscoll.texi: Mention the new module.
5902
5903 2011-02-06  Bruno Haible  <bruno@clisp.org>
5904
5905         New module 'wcsncasecmp'.
5906         * modules/wcsncasecmp: New file.
5907         * lib/wchar.in.h (wcsncasecmp): New declaration.
5908         * lib/wcsncasecmp.c: New file.
5909         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5910         * m4/wcsncasecmp.m4: New file.
5911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5914         HAVE_WCSNCASECMP.
5915         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5916         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5917
5918 2011-02-06  Bruno Haible  <bruno@clisp.org>
5919
5920         New module 'wcscasecmp'.
5921         * modules/wcscasecmp: New file.
5922         * lib/wchar.in.h (wcscasecmp): New declaration.
5923         * lib/wcscasecmp.c: New file.
5924         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5925         * m4/wcscasecmp.m4: New file.
5926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5929         HAVE_WCSCASECMP.
5930         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5931         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5932
5933 2011-02-05  Bruno Haible  <bruno@clisp.org>
5934
5935         New module 'wcsncmp'.
5936         * modules/wcsncmp: New file.
5937         * lib/wchar.in.h (wcsncmp): New declaration.
5938         * lib/wcsncmp.c: New file.
5939         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5940         * m4/wcsncmp.m4: New file.
5941         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5942         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5943         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5944         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5945         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5946
5947 2011-02-05  Bruno Haible  <bruno@clisp.org>
5948
5949         New module 'wcscmp'.
5950         * modules/wcscmp: New file.
5951         * lib/wchar.in.h (wcscmp): New declaration.
5952         * lib/wcscmp.c: New file.
5953         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5954         * m4/wcscmp.m4: New file.
5955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5957         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5958         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5959         * doc/posix-functions/wcscmp.texi: Mention the new module.
5960
5961 2011-02-05  Bruno Haible  <bruno@clisp.org>
5962
5963         New module 'wcsncat'.
5964         * modules/wcsncat: New file.
5965         * lib/wchar.in.h (wcsncat): New declaration.
5966         * lib/wcsncat.c: New file.
5967         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5968         * m4/wcsncat.m4: New file.
5969         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5970         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5971         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5972         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5973         * doc/posix-functions/wcsncat.texi: Mention the new module.
5974
5975 2011-02-05  Bruno Haible  <bruno@clisp.org>
5976
5977         New module 'wcscat'.
5978         * modules/wcscat: New file.
5979         * lib/wchar.in.h (wcscat): New declaration.
5980         * lib/wcscat.c: New file.
5981         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5982         * m4/wcscat.m4: New file.
5983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5986         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5987         * doc/posix-functions/wcscat.texi: Mention the new module.
5988
5989 2011-02-05  Bruno Haible  <bruno@clisp.org>
5990
5991         New module 'wcpncpy'.
5992         * modules/wcpncpy: New file.
5993         * lib/wchar.in.h (wcpncpy): New declaration.
5994         * lib/wcpncpy.c: New file.
5995         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5996         * m4/wcpncpy.m4: New file.
5997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5999         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6000         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6001         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6002
6003 2011-02-05  Bruno Haible  <bruno@clisp.org>
6004
6005         New module 'wcsncpy'.
6006         * modules/wcsncpy: New file.
6007         * lib/wchar.in.h (wcsncpy): New declaration.
6008         * lib/wcsncpy.c: New file.
6009         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6010         * m4/wcsncpy.m4: New file.
6011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6014         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6015         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6016
6017 2011-02-05  Bruno Haible  <bruno@clisp.org>
6018
6019         New module 'wcpcpy'.
6020         * modules/wcpcpy: New file.
6021         * lib/wchar.in.h (wcpcpy): New declaration.
6022         * lib/wcpcpy.c: New file.
6023         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6024         * m4/wcpcpy.m4: New file.
6025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6027         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6028         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6029         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6030
6031 2011-02-05  Bruno Haible  <bruno@clisp.org>
6032
6033         New module 'wcscpy'.
6034         * modules/wcscpy: New file.
6035         * lib/wchar.in.h (wcscpy): New declaration.
6036         * lib/wcscpy.c: New file.
6037         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6038         * m4/wcscpy.m4: New file.
6039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6042         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6043         * doc/posix-functions/wcscpy.texi: Mention the new module.
6044
6045 2011-02-05  Bruno Haible  <bruno@clisp.org>
6046
6047         New module 'wcsnlen'.
6048         * modules/wcsnlen: New file.
6049         * lib/wchar.in.h (wcsnlen): New declaration.
6050         * lib/wcsnlen.c: New file.
6051         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6052         * m4/wcsnlen.m4: New file.
6053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6056         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6057         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6058
6059 2011-02-05  Bruno Haible  <bruno@clisp.org>
6060
6061         New module 'wcslen'.
6062         * modules/wcslen: New file.
6063         * lib/wchar.in.h (wcslen): New declaration.
6064         * lib/wcslen.c: New file.
6065         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6066         * m4/wcslen.m4: New file.
6067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6070         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6071         * doc/posix-functions/wcslen.texi: Mention the new module.
6072
6073 2011-02-05  Bruno Haible  <bruno@clisp.org>
6074
6075         New module 'wmemset'.
6076         * modules/wmemset: New file.
6077         * lib/wchar.in.h (wmemset): New declaration.
6078         * lib/wmemset.c: New file.
6079         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6080         * m4/wmemset.m4: New file.
6081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6083         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6084         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6085         * doc/posix-functions/wmemset.texi: Mention the new module.
6086
6087 2011-02-05  Bruno Haible  <bruno@clisp.org>
6088
6089         New module 'wmemmove'.
6090         * modules/wmemmove: New file.
6091         * lib/wchar.in.h (wmemmove): New declaration.
6092         * lib/wmemmove.c: New file.
6093         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6094         * m4/wmemmove.m4: New file.
6095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6097         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6098         HAVE_WMEMMOVE.
6099         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6100         * doc/posix-functions/wmemmove.texi: Mention the new module.
6101
6102 2011-02-05  Bruno Haible  <bruno@clisp.org>
6103
6104         New module 'wmemcpy'.
6105         * modules/wmemcpy: New file.
6106         * lib/wchar.in.h (wmemcpy): New declaration.
6107         * lib/wmemcpy.c: New file.
6108         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6109         * m4/wmemcpy.m4: New file.
6110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6112         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6113         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6114         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6115
6116 2011-02-05  Bruno Haible  <bruno@clisp.org>
6117
6118         New module 'wmemcmp'.
6119         * modules/wmemcmp: New file.
6120         * lib/wchar.in.h (wmemcmp): New declaration.
6121         * lib/wmemcmp.c: New file.
6122         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6123         * m4/wmemcmp.m4: New file.
6124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6126         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6127         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6128         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6129
6130 2011-02-07  Jim Meyering  <meyering@redhat.com>
6131
6132         di-set, ino-map: new modules, from coreutils
6133         * lib/di-set.c: New file.
6134         * lib/di-set.h: Likewise.
6135         * lib/ino-map.c: Likewise.
6136         * lib/ino-map.h: Likewise.
6137         * modules/di-set: Likewise.
6138         * modules/di-set-tests: Likewise.
6139         * modules/ino-map: Likewise.
6140         * modules/ino-map-tests: Likewise.
6141         * tests/test-di-set.c: Likewise.
6142         * tests/test-ino-map.c: Likewise.
6143
6144 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6145
6146         getloadavg: merge minor changes from Emacs
6147
6148         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6149         (getloadavg): Use memset, not bzero.
6150
6151         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6152         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6153         clash (bug#86).
6154
6155 2010-11-14  Bruno Haible  <bruno@clisp.org>
6156
6157         Allow multiple gnulib generated replacements to coexist.
6158         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6159         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6160         * lib/langinfo.in.h (nl_item): Likewise.
6161         * lib/math.in.h (_NaN, NAN): Likewise.
6162         * lib/netdb.in.h (struct addrinfo): Likewise.
6163         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6164         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6165         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6166         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6167         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6168         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6169         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6170         pthread_mutexattr_init, pthread_mutexattr_settype,
6171         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6172         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6173         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6174         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6175         * lib/sched.in.h (struct sched_param): Likewise.
6176         * lib/se-selinux.in.h (security_class_t, security_context_t,
6177         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6178         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6179         lsetfilecon, fsetfilecon, security_check_context,
6180         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6181         Likewise.
6182         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6183         Likewise.
6184         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6185         _gl_function_taking_int_returning_void_t, union sigval,
6186         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6187         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6188         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6189         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6190         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6191         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6192         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6193         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6194         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6195         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6196         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6197         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6198         socklen_t, rpl_fd_isset): Likewise.
6199         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
6200         * lib/sys_time.in.h (struct timeval): Likewise.
6201         * lib/sys_times.in.h (struct tms): Likewise.
6202         * lib/sys_utsname.in.h (struct utsname):
6203         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
6204         * lib/unistd.in.h (getpagesize): Likewise.
6205         * lib/wchar.in.h (mbstate_t): Likewise.
6206         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6207         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
6208         towlower, towupper): Likewise.
6209         Reported by Sam Steingold <sds@gnu.org>.
6210
6211 2011-02-05  Eric Blake  <eblake@redhat.com>
6212
6213         unsetenv: work around Haiku issues
6214         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
6215         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
6216
6217 2010-12-30  Bruce Korb  <bkorb@gnu.org>
6218
6219         libposix: avoid calling error() within libposix
6220         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
6221         is defined.
6222
6223 2011-02-05  Eric Blake  <eblake@redhat.com>
6224
6225         strerror_r-posix: port to cygwin
6226         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
6227         implementation.
6228         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
6229         * tests/test-strerror_r.c (main): Fix test.
6230         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6231         issue.
6232
6233 2011-02-05  Bruno Haible  <bruno@clisp.org>
6234
6235         New module 'wmemchr'.
6236         * modules/wmemchr: New file.
6237         * lib/wchar.in.h (wmemchr): New declaration.
6238         * lib/wmemchr.c: New file.
6239         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
6240         * m4/wmemchr.m4: New file.
6241         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
6242         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
6243         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
6244         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
6245         * doc/posix-functions/wmemchr.texi: Mention the new module.
6246
6247 2011-02-04  Eric Blake  <eblake@redhat.com>
6248
6249         fdopendir: detect FreeBSD bug
6250         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
6251         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
6252
6253 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6254
6255         stdbool: do not define HAVE_STDBOOL_H
6256         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
6257         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6258         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
6259         imported from the latest Autoconf git.  It was motivated by Emacs,
6260         which uses gnulib but does not need HAVE_STDBOOL_H.
6261
6262 2011-02-04  Bruno Haible  <bruno@clisp.org>
6263
6264         wcsnrtombs: Prepare for new module wwcsnrtombs.
6265         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
6266         * lib/wcsnrtombs.c: Include it.
6267         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
6268
6269         wcsrtombs: Prepare for new module wwcsrtombs.
6270         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
6271         * lib/wcsrtombs.c: Include it.
6272         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6273
6274         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6275         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6276         * lib/mbsnrtowcs.c: Include it.
6277         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6278
6279         mbsrtowcs: Prepare for new module mbsrtowwcs.
6280         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6281         * lib/mbsrtowcs.c: Include it.
6282         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6283
6284 2011-02-04  Bruno Haible  <bruno@clisp.org>
6285
6286         vasnprintf: Reduce use of malloc for small format strings.
6287         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6288         (arguments): Add room for the first 7 arguments.
6289         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6290         (char_directives, u8_directives, u16_directives, u32_directives): Add
6291         room for the first 7 directives.
6292         * lib/printf-parse.c: Include <string.h>.
6293         (PRINTF_PARSE): Change memory handling code so that it uses the first
6294         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6295         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6296         Reported by Pádraig Brady <P@draigbrady.com>.
6297
6298 2011-01-31  Eric Blake  <eblake@redhat.com>
6299
6300         dup2: work around Haiku bug
6301         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6302         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6303         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6304         * tests/test-dup2.c (main): Enhance test.
6305
6306 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6307
6308         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6309         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
6310         declared by eglibc 2.11.2.
6311         * lib/stdio.in.h: Likewise.
6312
6313 2011-01-31  Eric Blake  <eblake@redhat.com>
6314
6315         ignore-value: add missing test dependency
6316         * tests/test-ignore-value.c: Revert previous change; stdio.h
6317         provides off_t.
6318         * modules/ignore-value-tests (Depends-on): Add missing dependency.
6319
6320 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6321
6322         mktime: clarify long_int width checking
6323         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
6324         the top level, to make it clearer that the assumption about
6325         long_int width is being checked.  See
6326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
6327
6328 2011-01-30  Simon Josefsson  <simon@josefsson.org>
6329
6330         ignore-value: Fix self-test.
6331         * tests/test-ignore-value.c: Include sys/types.h for off_t.
6332
6333 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6334
6335         TYPE_MAXIMUM: avoid theoretically undefined behavior
6336         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
6337         negative number, which the C Standard says has undefined behavior.
6338         In practice this is not a problem, but might as well do it by the book.
6339         Reported by Rich Felker and Eric Blake; see
6340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
6341         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
6342         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6344         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
6345         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6346         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
6347
6348         mktime: #undef mktime before #defining it
6349         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
6350
6351         mktime: systematically normalize tm_isdst comparisons
6352         * lib/mktime.c (isdst_differ): New function.
6353         (__mktime_internal): Use it systematically for all isdst comparisons.
6354         This completes the fix for libc BZ #6723, and removes the need for
6355         normalizing tm_isdst.  See
6356         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
6357         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
6358
6359         mktime: fix some integer overflow issues and sidestep the rest
6360
6361         This was prompted by a bug report by Benjamin Lindner for MinGW
6362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
6363         His bug is due to signed integer overflow (0 - INT_MIN), and I
6364         I scanned through mktime.c looking for other integer overflow
6365         problems, fixing all the bugs I found.
6366
6367         Although the C Standard says the resulting code is still not safe
6368         in the presence of integer overflow, in practice it should be good
6369         enough for all real-world two's-complement implementations, except
6370         for debugging environments that deliberately trap on integer
6371         overflow (e.g., gcc -ftrapv).
6372
6373         * lib/mktime.c (WRAPV): New macro.
6374         (SHR): Also check that long_int and time_t shift right in the
6375         usual way, before using the fast-but-unportable method.
6376         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6377         used.  The code already assumed two's complement, so there's
6378         no need to test for alternatives.  All uses removed.
6379         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6380         the C standard.  Problem reported by Rich Felker in
6381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6382         (twos_complement_arithmetic): Also check long_int and time_t.
6383         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6384         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6385         (__mktime_internal): Avoid integer overflow with unary subtraction
6386         in two instances where -1 - X is an adequate replacement for -X,
6387         since the calculations are approximate.
6388
6389 2011-01-29  Eric Blake  <eblake@redhat.com>
6390
6391         mktime: avoid infinite loop
6392         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6393         type; behavior is still undefined but portable to all known targets.
6394         Reported by Rich Felker.
6395
6396 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6397
6398         rename, unlink, same-inode: Relicense.
6399         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6400         * modules/unlink (License): Likewise.
6401         * modules/same-inode (License): Likewise.
6402
6403 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6404
6405         mktime: avoid problems on NetBSD 5 / i386
6406         * lib/mktime.c (long_int): New type.  This works around a problem
6407         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6408         but time_t is 64 bits, and where I expect the existing code is
6409         wrong in some cases.
6410         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6411         (ydhms_diff): Bring back the compile-time check for wide-enough
6412         year and yday.
6413
6414         mktime: fix misspelling in comment
6415         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6416         This merges all recent glibc changes of importance.
6417
6418 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6419
6420         move-if-change: cope with concurrent mv of identical file.
6421         * build-aux/move-if-change (CMPPROG): Accept environment
6422         variable as an override for `cmp'.
6423         (usage): Document CMPPROG.
6424         Adjust comparison to drop stdout.  Cope with failure of mv if
6425         the target file exists and is identical to the source, for
6426         parallel builds.
6427         Report from H.J. Lu against binutils in PR binutils/12283.
6428
6429 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6430
6431         * users.txt: Mention sharutils.
6432
6433 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6434
6435         * users.txt: Mention OATH Toolkit.
6436
6437 2011-01-27  Bruno Haible  <bruno@clisp.org>
6438
6439         Prepare for supporting FreeBSD 10.
6440         * build-aux/config.libpath: Remove handling of freebsd1*.
6441
6442 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6443
6444         Prepare for supporting FreeBSD 10.
6445         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6446         match FreeBSD 10.0.
6447
6448 2011-01-27  Bruno Haible  <bruno@clisp.org>
6449
6450         vma-iter, get-rusage-as: Add OpenBSD support.
6451         * modules/vma-iter (configure.ac): Test for mquery.
6452         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6453         * lib/vma-iter.c: Include <sys/mman.h>.
6454         (vma_iterate): Add an implementation based on mquery().
6455         * lib/resource-ext.h (get_rusage_as): Update comments.
6456         * lib/get-rusage-as.c: Likewise.
6457         * lib/get-rusage-data.c: Likewise.
6458
6459 2011-01-26  Karl Berry  <karl@gnu.org>
6460
6461         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6462         variables to make it easier to override the makeinfo program used.
6463
6464 2011-01-26  Eric Blake  <eblake@redhat.com>
6465
6466         fcntl: work around Haiku F_DUPFD bugs
6467         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6468         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6469         cloexec bit on duplication.
6470         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6471
6472 2011-01-26  Bruno Haible  <bruno@clisp.org>
6473
6474         Enable memory leak tests on AIX.
6475         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6476         * tests/test-fprintf-posix3.c (main): Likewise.
6477
6478 2011-01-26  Bruno Haible  <bruno@clisp.org>
6479
6480         Tests for module 'get-rusage-data'.
6481         * modules/get-rusage-data-tests: New file.
6482         * tests/test-get-rusage-data.c: New file.
6483
6484         New module 'get-rusage-data'.
6485         * lib/resource-ext.h (get_rusage_data): New declaration.
6486         * lib/get-rusage-data.c: New file.
6487         * modules/get-rusage-data: New file.
6488
6489 2011-01-25  Bruno Haible  <bruno@clisp.org>
6490
6491         get-rusage-as: Allow for easier testing.
6492         * lib/resource-ext.h (get_rusage_as): Add comment.
6493         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6494         (main): New function for interactive testing.
6495
6496 2011-01-25  Bruno Haible  <bruno@clisp.org>
6497
6498         vma-iter: Treat Haiku like BeOS.
6499         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6500         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6501
6502 2011-01-25  Eric Blake  <eblake@redhat.com>
6503
6504         c-stack: fix regression on cygwin when libsigsegv is present
6505         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6506
6507 2011-01-24  Bruno Haible  <bruno@clisp.org>
6508
6509         vma-iter: Avoid empty intervals.
6510         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6511         on an empty interval.
6512
6513 2011-01-24  Jim Meyering  <meyering@redhat.com>
6514
6515         u64: remove unnecessary #include
6516         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6517
6518 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6519
6520         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6521         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6522
6523 2011-01-23  Bruno Haible  <bruno@clisp.org>
6524
6525         New module 'vma-iter'.
6526         * lib/vma-iter.h: New file.
6527         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6528         * modules/vma-iter: New file.
6529         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6530         for get_rusage_as_via_iterator.
6531         (vma_iterate_callback): New function.
6532         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6533         * modules/get-rusage-as (Depends-on): Add vma-iter.
6534
6535 2011-01-23  Bruno Haible  <bruno@clisp.org>
6536
6537         uninorm: Tweak includes.
6538         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6539         Reported by Jim Meyering.
6540
6541 2011-01-23  Bruno Haible  <bruno@clisp.org>
6542
6543         get-rusage-as: Improve on NetBSD.
6544         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6545         /proc, like on FreeBSD.
6546
6547 2011-01-23  Jim Meyering  <meyering@redhat.com>
6548
6549         xreadlink.h: remove unnecessary #include
6550         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6551
6552         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6553         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6554
6555 2011-01-23  Bruno Haible  <bruno@clisp.org>
6556
6557         get-rusage-as: Fix bug.
6558         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6559         original limit when aborting the first loop.
6560
6561 2011-01-23  Bruno Haible  <bruno@clisp.org>
6562
6563         wctype: Ensure valid C syntax.
6564         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6565         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6566
6567 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6568
6569         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6571         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6572         as they are needed only for configure's test case.
6573         This removes two unnecessary symbols from config.h.
6574
6575         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6576         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6578         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6579         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6580         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6581         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6582         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6583         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6584         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6585         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6586         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6587         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6588         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6589         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6590         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6591         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6592         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6593
6594 2011-01-21  Eric Blake  <eblake@redhat.com>
6595
6596         maintainer-makefile: work with older git for submodule check
6597         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6598         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6599         Reported by Matthias Bolte.
6600
6601         bootstrap: minor portability fixes
6602         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6603         (usage): Omit leading capital and trailing . on help phrases, per
6604         GNU Coding Standards.
6605         (check_versions, top level): Prefix messages with script name.
6606
6607 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6608
6609         bootstrap: support --no-git option
6610         * build-aux/bootstrap: Add --no-git option, to be used when
6611         --gnulib-srcdir points to the exact desired checkout.
6612
6613 2011-01-21  Eric Blake  <eblake@redhat.com>
6614
6615         strerror_r-posix: work with glibc 2.13
6616         * lib/strerror_r.c (strerror_r): Fix return type.
6617
6618 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6619             Bruno Haible  <bruno@clisp.org>
6620
6621         uN_strstr: New unit tests.
6622         * modules/unistr/u8-strstr-tests: New file.
6623         * modules/unistr/u16-strstr-tests: New file.
6624         * modules/unistr/u32-strstr-tests: New file.
6625         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6626         * tests/unistr/test-u8-strstr.c: New file.
6627         * tests/unistr/test-u16-strstr.c: New file.
6628         * tests/unistr/test-u32-strstr.c: New file.
6629
6630 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6631             Bruno Haible  <bruno@clisp.org>
6632
6633         Make uN_strstr functions O(n) worst-case.
6634         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6635         16-bit and 32-bit unit cases, use the unibyte algorithm from
6636         lib/mbsstr.c.
6637         * lib/unistr/u8-strstr.c: Include <string.h>.
6638         (UNIT_IS_UINT8_T): New macro.
6639         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6640         (U_STRLEN, U_STRNLEN): New macros.
6641         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6642         (U_STRLEN, U_STRNLEN): New macros.
6643         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6644         (configure.ac): Update required libunistring version.
6645         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6646         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6647         malloca.
6648         (configure.ac): Update required libunistring version.
6649         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6650         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6651         malloca.
6652         (configure.ac): Update required libunistring version.
6653
6654 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6655             Bruno Haible  <bruno@clisp.org>
6656
6657         Prepare for faster uN_strstr functions.
6658         * lib/str-kmp.h: Support definable UNITs.
6659         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6660         needle_len argument.
6661         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6662         * lib/mbscasestr.c (mbscasestr): Likewise.
6663
6664 2011-01-21  Pádraig Brady <P@draigBrady.com>
6665
6666         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6667         * tests/test-malloca.c (main): Unset the environment variable
6668         to greatly speed up the test.
6669         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6670         * modules/malloca-tests: Depend on unsetenv.
6671
6672 2011-01-21  Pádraig Brady <P@draigBrady.com>
6673
6674         ignore-value: remove stdint dependency
6675         * lib/ignore-value.h: Remove <stdint.h>
6676         * modules/ignore-value: Remove stdint dependency.
6677
6678 2011-01-21  Jim Meyering  <meyering@redhat.com>
6679
6680         maint.mk: adjust variable name to be consistent with other gl_ vars
6681         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6682         to be lower case.
6683
6684 2011-01-20  Jim Meyering  <meyering@redhat.com>
6685
6686         maint.mk: make "check" depend on public-submodule-commit by default
6687         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6688
6689 2011-01-20  Bruno Haible  <bruno@clisp.org>
6690
6691         mbfile, mbiter: Complete change from 2008-12-21.
6692         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6693         * m4/mbiter.m4 (gl_MBITER): Likewise.
6694
6695 2011-01-20  Jim Meyering  <meyering@redhat.com>
6696
6697         init.sh: insert space between each function name and "()"
6698         * tests/init.sh: Make it a little easier to see that a function's
6699         name is "warn_", and not "warn" when looking at the first part of
6700         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6701
6702 2011-01-20  Jim Meyering  <meyering@redhat.com>
6703
6704         mountlist: clean up code formatting
6705         * lib/mountlist.c (read_file_system_list): Split a long line,
6706         correct bracing style, use NULL in place of "(struct statfs *)0",
6707         don't parenthesize return value, add spaces around "=" and after
6708         ";-in-for-stmt".
6709
6710 2011-01-14  Markus Duft <mduft@gentoo.org>
6711
6712         mountlist: add support for Interix
6713         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6714         Apply statvfs to all entries of /dev/fs.
6715         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6716         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6717
6718 2011-01-20  Jim Meyering  <meyering@redhat.com>
6719
6720         maint.mk: improve the public-submodule-commit rule
6721         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6722         to suppress printing of its commands... unless V=1.
6723         Add git submodule's --quiet option to suppress printing of e.g.,
6724         "Entering gnulib" output.
6725         "cd" into $(srcdir) before running git submodule.
6726
6727 2011-01-20  Bruno Haible  <bruno@clisp.org>
6728
6729         include_next: Fix bug introduced on 2011-01-18.
6730         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6731         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6732         ac_cv_header_... variable if the second argument is not 'check'.
6733         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6734         gl_NEXT_HEADERS_INTERNAL.
6735
6736 2011-01-20  Bruno Haible  <bruno@clisp.org>
6737
6738         Allow the user to avoid the GNULIB_TEST_* macros.
6739         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6740         Suggested by Paul Eggert.
6741
6742 2011-01-14  Jim Meyering  <meyering@redhat.com>
6743
6744         bootstrap: avoid failure when there is no .gitmodules file
6745         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6746         has been assigned to, even when its value is the empty string.
6747         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6748         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6749         Reported by John W. Eaton <jwe@gnu.org>.
6750
6751 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6752
6753         assume <ctype.h>, ..., <time.h> exist
6754         For years gnulib has been assuming the existence of the headers
6755         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6756         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6757         them, since they don't appear to be needed.
6758         * README (Portability guidelines): Document this.
6759         * lib/flock.c: Assume <fcntl.h> exists.
6760         * lib/regex_internal.h: Assume <locale.h> exists.
6761         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6762         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6763         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6764         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6765         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6766         * m4/regex.m4 (gl_REGEX): Likewise.
6767         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6768         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6769         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6770         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6771         * tests/test-argp.c: Likewise.
6772         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6773
6774         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6775         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6776         AA_APPLE_UNIVERSAL_BUILD.  See
6777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6778         * NEWS: Document this.
6779
6780 2011-01-19  Eric Blake  <eblake@redhat.com>
6781
6782         c-stack: assume stack overflow if SA_SIGINFO unsupported
6783         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6784         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6785         sigaction will work.
6786         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6787         behavior match Linux.
6788         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6789
6790         stdbool-tests: accomodate Haiku
6791         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6792
6793         binary-io: fix O_TEXT on Haiku
6794         * modules/binary-io (Depends-on): Add fcntl-h.
6795         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6796         than blindly undefining O_TEXT.
6797         Reported by Scott McCreary.
6798
6799 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6800
6801         include_next: do not check for standard headers like stddef.h
6802
6803         I found this problem when modifying Emacs to use gnulib.
6804         I noticed that it added HAVE_STDDEF_H to config.h, even though
6805         gnulib always assumes <stddef.h> exists as per README and this
6806         symbol is unnecessary.
6807         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6808         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6809         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6810         faster for headers like stddef.h that are known to exist.
6811         (gl_CHECK_NEXT_HEADERS): Use it.
6812         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6813         rather than gl_CHECK_NEXT_HEADERS.
6814         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6815         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6816
6817 2011-01-18  Eric Blake  <eblake@redhat.com>
6818
6819         ansi-c++-opt: skip C++ dependency style if C++ is unused
6820         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6821         tests when we know C++ compilation is not desired.
6822         Reported by Scott McCreary.
6823
6824 2011-01-18  Bruno Haible  <bruno@clisp.org>
6825
6826         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6827         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6828         (main): Perform test also when getrlimit and setrlimit don't exist or
6829         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6830         limiting the address space size using setrlimit, compare the address
6831         space size before and after the the test.
6832         * tests/test-dprintf-posix2.c: Likewise.
6833         * tests/test-fprintf-posix3.sh: Update skip messages.
6834         * tests/test-dprintf-posix2.sh: Likewise.
6835         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6836         * modules/dprintf-posix-tests (Depends-on): Likewise.
6837         Reported by Bruce Korb <bkorb@gnu.org> and
6838         Gary V. Vaughan <gary@gnu.org>.
6839
6840 2011-01-18  Bruno Haible  <bruno@clisp.org>
6841
6842         get-rusage-as: Improvement for Cygwin.
6843         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6844         areas that are merely reserved.
6845
6846 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6847
6848         strftime: remove dependencies on multibyte modules
6849
6850         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6851         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6852         only if __osf__ is defined, and I suspect OSF doesn't need these
6853         other modules.  If my guess is wrong, we'll need to come up with a
6854         variant of strftime that doesn't need the multibyte modules.
6855
6856         I discovered this problem when attempting modify Emacs to use the
6857         strftime module.  With the previous gnulib, this caused Emacs to
6858         need 31 new files, ranging from lib/config.charset to
6859         m4/wint_t.m4.  This was overkill and I expect would be offputting
6860         to the Emacs maintainers.  After this change, only 6 new files are
6861         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6862         stdbool.m4, and tm_gmtoff.m4.
6863
6864         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6865         Suggested by Bruno Haible in
6866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6867         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6868         and do not check for wchar.h.
6869         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6870         (Depends-on): Remove mbrlen, mbsinit, wchar.
6871
6872 2011-01-18  Bruno Haible  <bruno@clisp.org>
6873
6874         Tests for module 'get-rusage-as'.
6875         * modules/get-rusage-as-tests: New file.
6876         * tests/test-get-rusage-as.c: New file.
6877
6878         New module 'get-rusage-as'.
6879         * modules/get-rusage-as: New file.
6880         * lib/resource-ext.h: New file.
6881         * lib/get-rusage-as.c: New file.
6882
6883 2011-01-17  Eric Blake  <eblake@redhat.com>
6884
6885         sigaction: relax license from LGPLv3+ to LGPLv2+
6886         * modules/sigaction (License): Relax to LGPLv2+.
6887
6888 2011-01-14  Bruno Haible  <bruno@clisp.org>
6889
6890         filemode: Make function declarations usable in C++ mode.
6891         * lib/filemode.h: Enclose function declarations in extern "C" block.
6892         Reported by John W. Eaton <jwe@gnu.org>.
6893
6894 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6895
6896         save-cwd: no longer include "xgetcwd.h"
6897         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6898         This avoids a compilation failure in projects that use save-cwd
6899         without also using the xgetcwd module.
6900
6901 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6902
6903         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6904         This is so that a program like Emacs, which needs only dtoastr,
6905         does not have to bother with distributing and compiling ftoastr
6906         and ldtoastr.
6907         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6908         * modules/dtoastr, modules/ldtoastr: New files.
6909         * modules/ftoastr: Now works just for 'float'.
6910         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6911         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6912         dtoastr.c, ldtoastr.c.
6913
6914 2011-01-11  Jim Meyering  <meyering@redhat.com>
6915
6916         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6917         There is no need to work around the lack of the fchdir function,
6918         since gnulib can now provide a replacement when required.
6919         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6920         * modules/save-cwd (Depends-on): Add fchdir.
6921
6922 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6923
6924         openat, save-cwd: avoid xmalloc
6925
6926         This removes a direct (but undocumented) dependency of openat on
6927         xalloc, along with an indirect dependency via save-cwd.  It also
6928         removes a dependency of save-cwd on xgetcwd, and thereby
6929         indirectly on xalloc.  This change causes the openat substitute
6930         to fall back on save_cwd when memory is tight, and for save_cwd to
6931         fail instead of dying when memory is tight, but that's good enough.
6932         Problem and initial idea for fix reported by Bastien Roucaries in
6933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6934
6935         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6936         xalloc.h (for xmalloc).
6937         (openat_proc_name): Use malloc, not xmalloc.
6938         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6939         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6940
6941         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6942         This avoids heap allocation for file names whose lengths are in
6943         the range 512..1023, with the upper bound increasing to at most
6944         4031 depending on the platform's PATH_MAX.  (We do not want
6945         pathmax.h here as it might supply a non-constant PATH_MAX.)
6946         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6947         Perhaps they should be moved to malloca.h?
6948         (OPENAT_BUFFER_SIZE): Use them.
6949
6950 2011-01-10  Bruno Haible  <bruno@clisp.org>
6951
6952         doc: Update users.txt.
6953         * users.txt: Add recutils.
6954
6955 2011-01-09  Karl Berry  <karl@gnu.org>
6956
6957         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6958
6959         * doc/configmake.texi: New file.
6960         * doc/gnulib.texi: Include it.
6961         * modules/configmake: Move documentation from here.
6962
6963 2011-01-09  Bruno Haible  <bruno@clisp.org>
6964
6965         Update to Unicode 6.0.0.
6966         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6967         (get_lbp): Update for Unicode 6.0.0.
6968         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6969         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6970         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6971         U+11001, U+11038..U+11046. Remove U+06DE.
6972         (uc_width): Fix bounds of planes.
6973         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6974         lib/uniwidth/width.c.
6975         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6976         trailing whitespace removed.
6977         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6978         without comments, but with the original copyright notice.
6979         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6980         * lib/unicase/ignorable.h: Likewise.
6981         * lib/unicase/tocasefold.h: Likewise.
6982         * lib/unicase/tolower.h: Likewise.
6983         * lib/unicase/totitle.h: Likewise.
6984         * lib/unicase/toupper.h: Likewise.
6985         * lib/unictype/bidi_of.h: Likewise.
6986         * lib/unictype/blocks.h: Likewise.
6987         * lib/unictype/categ_C.h: Likewise.
6988         * lib/unictype/categ_Cn.h: Likewise.
6989         * lib/unictype/categ_L.h: Likewise.
6990         * lib/unictype/categ_Ll.h: Likewise.
6991         * lib/unictype/categ_Lm.h: Likewise.
6992         * lib/unictype/categ_Lo.h: Likewise.
6993         * lib/unictype/categ_Lu.h: Likewise.
6994         * lib/unictype/categ_M.h: Likewise.
6995         * lib/unictype/categ_Mc.h: Likewise.
6996         * lib/unictype/categ_Me.h: Likewise.
6997         * lib/unictype/categ_Mn.h: Likewise.
6998         * lib/unictype/categ_N.h: Likewise.
6999         * lib/unictype/categ_Nd.h: Likewise.
7000         * lib/unictype/categ_No.h: Likewise.
7001         * lib/unictype/categ_P.h: Likewise.
7002         * lib/unictype/categ_Po.h: Likewise.
7003         * lib/unictype/categ_S.h: Likewise.
7004         * lib/unictype/categ_Sc.h: Likewise.
7005         * lib/unictype/categ_Sk.h: Likewise.
7006         * lib/unictype/categ_Sm.h: Likewise.
7007         * lib/unictype/categ_So.h: Likewise.
7008         * lib/unictype/categ_of.h: Likewise.
7009         * lib/unictype/combining.h: Likewise.
7010         * lib/unictype/ctype_alnum.h: Likewise.
7011         * lib/unictype/ctype_alpha.h: Likewise.
7012         * lib/unictype/ctype_graph.h: Likewise.
7013         * lib/unictype/ctype_lower.h: Likewise.
7014         * lib/unictype/ctype_print.h: Likewise.
7015         * lib/unictype/ctype_punct.h: Likewise.
7016         * lib/unictype/ctype_upper.h: Likewise.
7017         * lib/unictype/decdigit.h: Likewise.
7018         * lib/unictype/digit.h: Likewise.
7019         * lib/unictype/numeric.h: Likewise.
7020         * lib/unictype/pr_alphabetic.h: Likewise.
7021         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7022         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7023         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7024         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7025         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7026         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7027         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7028         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7029         * lib/unictype/pr_case_ignorable.h: Likewise.
7030         * lib/unictype/pr_cased.h: Likewise.
7031         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7032         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7033         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7034         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7035         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7036         * lib/unictype/pr_combining.h: Likewise.
7037         * lib/unictype/pr_composite.h: Likewise.
7038         * lib/unictype/pr_currency_symbol.h: Likewise.
7039         * lib/unictype/pr_decimal_digit.h: Likewise.
7040         * lib/unictype/pr_deprecated.h: Likewise.
7041         * lib/unictype/pr_format_control.h: Likewise.
7042         * lib/unictype/pr_grapheme_base.h: Likewise.
7043         * lib/unictype/pr_grapheme_extend.h: Likewise.
7044         * lib/unictype/pr_grapheme_link.h: Likewise.
7045         * lib/unictype/pr_id_continue.h: Likewise.
7046         * lib/unictype/pr_id_start.h: Likewise.
7047         * lib/unictype/pr_ideographic.h: Likewise.
7048         * lib/unictype/pr_lowercase.h: Likewise.
7049         * lib/unictype/pr_math.h: Likewise.
7050         * lib/unictype/pr_numeric.h: Likewise.
7051         * lib/unictype/pr_other_alphabetic.h: Likewise.
7052         * lib/unictype/pr_other_id_continue.h: Likewise.
7053         * lib/unictype/pr_other_math.h: Likewise.
7054         * lib/unictype/pr_punctuation.h: Likewise.
7055         * lib/unictype/pr_sentence_terminal.h: Likewise.
7056         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7057         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7058         * lib/unictype/pr_unified_ideograph.h: Likewise.
7059         * lib/unictype/pr_uppercase.h: Likewise.
7060         * lib/unictype/pr_xid_continue.h: Likewise.
7061         * lib/unictype/pr_xid_start.h: Likewise.
7062         * lib/unictype/scripts.h: Likewise.
7063         * lib/unictype/scripts_byname.gperf: Likewise.
7064         * lib/unictype/sy_java_ident.h: Likewise.
7065         * lib/unigbrk/gbrkprop.h: Likewise.
7066         * lib/unilbrk/lbrkprop1.h: Likewise.
7067         * lib/unilbrk/lbrkprop2.h: Likewise.
7068         * lib/uninorm/decomposition-table2.h: Likewise.
7069         * lib/uniwbrk/wbrkprop.h: Likewise.
7070         * tests/unicase/test-cased.c: Likewise.
7071         * tests/unicase/test-ignorable.c: Likewise.
7072         * tests/unicase/test-uc_tolower.c: Likewise.
7073         * tests/unicase/test-uc_totitle.c: Likewise.
7074         * tests/unicase/test-uc_toupper.c: Likewise.
7075         * tests/unictype/test-categ_C.c: Likewise.
7076         * tests/unictype/test-categ_Cn.c: Likewise.
7077         * tests/unictype/test-categ_L.c: Likewise.
7078         * tests/unictype/test-categ_Ll.c: Likewise.
7079         * tests/unictype/test-categ_Lm.c: Likewise.
7080         * tests/unictype/test-categ_Lo.c: Likewise.
7081         * tests/unictype/test-categ_Lu.c: Likewise.
7082         * tests/unictype/test-categ_M.c: Likewise.
7083         * tests/unictype/test-categ_Mc.c: Likewise.
7084         * tests/unictype/test-categ_Me.c: Likewise.
7085         * tests/unictype/test-categ_Mn.c: Likewise.
7086         * tests/unictype/test-categ_N.c: Likewise.
7087         * tests/unictype/test-categ_Nd.c: Likewise.
7088         * tests/unictype/test-categ_No.c: Likewise.
7089         * tests/unictype/test-categ_P.c: Likewise.
7090         * tests/unictype/test-categ_Po.c: Likewise.
7091         * tests/unictype/test-categ_S.c: Likewise.
7092         * tests/unictype/test-categ_Sc.c: Likewise.
7093         * tests/unictype/test-categ_Sk.c: Likewise.
7094         * tests/unictype/test-categ_Sm.c: Likewise.
7095         * tests/unictype/test-categ_So.c: Likewise.
7096         * tests/unictype/test-ctype_alnum.c: Likewise.
7097         * tests/unictype/test-ctype_alpha.c: Likewise.
7098         * tests/unictype/test-ctype_graph.c: Likewise.
7099         * tests/unictype/test-ctype_lower.c: Likewise.
7100         * tests/unictype/test-ctype_print.c: Likewise.
7101         * tests/unictype/test-ctype_punct.c: Likewise.
7102         * tests/unictype/test-ctype_upper.c: Likewise.
7103         * tests/unictype/test-decdigit.h: Likewise.
7104         * tests/unictype/test-digit.h: Likewise.
7105         * tests/unictype/test-numeric.h: Likewise.
7106         * tests/unictype/test-pr_alphabetic.c: Likewise.
7107         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7108         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7109         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7110         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7111         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7112         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7113         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7114         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7115         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7116         * tests/unictype/test-pr_cased.c: Likewise.
7117         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7118         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7119         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7120         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7121         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7122         * tests/unictype/test-pr_combining.c: Likewise.
7123         * tests/unictype/test-pr_composite.c: Likewise.
7124         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7125         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7126         * tests/unictype/test-pr_deprecated.c: Likewise.
7127         * tests/unictype/test-pr_format_control.c: Likewise.
7128         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7129         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7130         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7131         * tests/unictype/test-pr_id_continue.c: Likewise.
7132         * tests/unictype/test-pr_id_start.c: Likewise.
7133         * tests/unictype/test-pr_ideographic.c: Likewise.
7134         * tests/unictype/test-pr_lowercase.c: Likewise.
7135         * tests/unictype/test-pr_math.c: Likewise.
7136         * tests/unictype/test-pr_numeric.c: Likewise.
7137         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7138         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7139         * tests/unictype/test-pr_other_math.c: Likewise.
7140         * tests/unictype/test-pr_punctuation.c: Likewise.
7141         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7142         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7143         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7144         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7145         * tests/unictype/test-pr_uppercase.c: Likewise.
7146         * tests/unictype/test-pr_xid_continue.c: Likewise.
7147         * tests/unictype/test-pr_xid_start.c: Likewise.
7148         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7149         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7150         changes.
7151         * lib/unictype/categ_Cc.h: Likewise.
7152         * lib/unictype/categ_Cf.h: Likewise.
7153         * lib/unictype/categ_Co.h: Likewise.
7154         * lib/unictype/categ_Cs.h: Likewise.
7155         * lib/unictype/categ_Lt.h: Likewise.
7156         * lib/unictype/categ_Nl.h: Likewise.
7157         * lib/unictype/categ_Pc.h: Likewise.
7158         * lib/unictype/categ_Pd.h: Likewise.
7159         * lib/unictype/categ_Pe.h: Likewise.
7160         * lib/unictype/categ_Pf.h: Likewise.
7161         * lib/unictype/categ_Pi.h: Likewise.
7162         * lib/unictype/categ_Ps.h: Likewise.
7163         * lib/unictype/categ_Z.h: Likewise.
7164         * lib/unictype/categ_Zl.h: Likewise.
7165         * lib/unictype/categ_Zp.h: Likewise.
7166         * lib/unictype/categ_Zs.h: Likewise.
7167         * lib/unictype/ctype_blank.h: Likewise.
7168         * lib/unictype/ctype_cntrl.h: Likewise.
7169         * lib/unictype/ctype_digit.h: Likewise.
7170         * lib/unictype/ctype_space.h: Likewise.
7171         * lib/unictype/ctype_xdigit.h: Likewise.
7172         * lib/unictype/mirror.h: Likewise.
7173         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7174         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7175         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7176         * lib/unictype/pr_bidi_control.h: Likewise.
7177         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7178         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7179         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7180         * lib/unictype/pr_bidi_pdf.h: Likewise.
7181         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7182         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7183         * lib/unictype/pr_dash.h: Likewise.
7184         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7185         * lib/unictype/pr_diacritic.h: Likewise.
7186         * lib/unictype/pr_extender.h: Likewise.
7187         * lib/unictype/pr_hex_digit.h: Likewise.
7188         * lib/unictype/pr_hyphen.h: Likewise.
7189         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7190         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7191         * lib/unictype/pr_ignorable_control.h: Likewise.
7192         * lib/unictype/pr_iso_control.h: Likewise.
7193         * lib/unictype/pr_join_control.h: Likewise.
7194         * lib/unictype/pr_left_of_pair.h: Likewise.
7195         * lib/unictype/pr_line_separator.h: Likewise.
7196         * lib/unictype/pr_logical_order_exception.h: Likewise.
7197         * lib/unictype/pr_non_break.h: Likewise.
7198         * lib/unictype/pr_not_a_character.h: Likewise.
7199         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7200         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7201         * lib/unictype/pr_other_id_start.h: Likewise.
7202         * lib/unictype/pr_other_lowercase.h: Likewise.
7203         * lib/unictype/pr_other_uppercase.h: Likewise.
7204         * lib/unictype/pr_paired_punctuation.h: Likewise.
7205         * lib/unictype/pr_paragraph_separator.h: Likewise.
7206         * lib/unictype/pr_pattern_syntax.h: Likewise.
7207         * lib/unictype/pr_pattern_white_space.h: Likewise.
7208         * lib/unictype/pr_private_use.h: Likewise.
7209         * lib/unictype/pr_quotation_mark.h: Likewise.
7210         * lib/unictype/pr_radical.h: Likewise.
7211         * lib/unictype/pr_soft_dotted.h: Likewise.
7212         * lib/unictype/pr_space.h: Likewise.
7213         * lib/unictype/pr_titlecase.h: Likewise.
7214         * lib/unictype/pr_variation_selector.h: Likewise.
7215         * lib/unictype/pr_white_space.h: Likewise.
7216         * lib/unictype/pr_zero_width.h: Likewise.
7217         * lib/unictype/sy_c_ident.h: Likewise.
7218         * lib/unictype/sy_c_whitespace.h: Likewise.
7219         * lib/unictype/sy_java_whitespace.h: Likewise.
7220         * lib/uninorm/composition-table.gperf: Likewise.
7221         * lib/uninorm/decomposition-table1.h: Likewise.
7222         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
7223         LB8.
7224         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7225         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7226         * modules/unictype/*: Bump version number of expected libunistring
7227         version.
7228
7229 2011-01-09  Bruno Haible  <bruno@clisp.org>
7230
7231         Update to Unicode 5.2.0.
7232         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
7233         trailing whitespace removed.
7234
7235 2011-01-09  Bruno Haible  <bruno@clisp.org>
7236
7237         New Unicode character properties, from Unicode 5.2.0.
7238         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
7239         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
7240         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
7241         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
7242         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
7243         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
7244         uc_is_property_cased, uc_is_property_case_ignorable,
7245         uc_is_property_changes_when_lowercased,
7246         uc_is_property_changes_when_uppercased,
7247         uc_is_property_changes_when_titlecased,
7248         uc_is_property_changes_when_casefolded,
7249         uc_is_property_changes_when_casemapped): New declarations.
7250         * lib/unictype/pr_byname.gperf: Add the new properties.
7251         * modules/unictype/property-byname (Depends-on): Depend on the new
7252         properties modules.
7253         * modules/unictype/property-all (Depends-on): Likewise.
7254         * MODULES.html.sh (Unicode string functions): Add
7255         unictype/property-case-ignorable, unictype/property-cased,
7256         unictype/property-changes-when-casefolded,
7257         unictype/property-changes-when-casemapped,
7258         unictype/property-changes-when-lowercased,
7259         unictype/property-changes-when-titlecased,
7260         unictype/property-changes-when-uppercased.
7261
7262         New module 'unictype/property-changes-when-casemapped'.
7263         * modules/unictype/property-changes-when-casemapped: New file.
7264         * lib/unictype/pr_changes_when_casemapped.c: New file.
7265         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
7266         generated by gen-uni-tables.
7267         * modules/unictype/property-changes-when-casemapped-tests: New file.
7268         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
7269         automatically generated by gen-uni-tables.
7270
7271         New module 'unictype/property-changes-when-casefolded'.
7272         * modules/unictype/property-changes-when-casefolded: New file.
7273         * lib/unictype/pr_changes_when_casefolded.c: New file.
7274         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7275         generated by gen-uni-tables.
7276         * modules/unictype/property-changes-when-casefolded-tests: New file.
7277         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7278         automatically generated by gen-uni-tables.
7279
7280         New module 'unictype/property-changes-when-titlecased'.
7281         * modules/unictype/property-changes-when-titlecased: New file.
7282         * lib/unictype/pr_changes_when_titlecased.c: New file.
7283         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7284         generated by gen-uni-tables.
7285         * modules/unictype/property-changes-when-titlecased-tests: New file.
7286         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7287         automatically generated by gen-uni-tables.
7288
7289         New module 'unictype/property-changes-when-uppercased'.
7290         * modules/unictype/property-changes-when-uppercased: New file.
7291         * lib/unictype/pr_changes_when_uppercased.c: New file.
7292         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7293         generated by gen-uni-tables.
7294         * modules/unictype/property-changes-when-uppercased-tests: New file.
7295         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7296         automatically generated by gen-uni-tables.
7297
7298         New module 'unictype/property-changes-when-lowercased'.
7299         * modules/unictype/property-changes-when-lowercased: New file.
7300         * lib/unictype/pr_changes_when_lowercased.c: New file.
7301         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7302         generated by gen-uni-tables.
7303         * modules/unictype/property-changes-when-lowercased-tests: New file.
7304         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7305         automatically generated by gen-uni-tables.
7306
7307         New module 'unictype/property-case-ignorable'.
7308         * modules/unictype/property-case-ignorable: New file.
7309         * lib/unictype/pr_case_ignorable.c: New file.
7310         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7311         by gen-uni-tables.
7312         * modules/unictype/property-case-ignorable-tests: New file.
7313         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7314         generated by gen-uni-tables.
7315
7316         New module 'unictype/property-cased'.
7317         * modules/unictype/property-cased: New file.
7318         * lib/unictype/pr_cased.c: New file.
7319         * lib/unictype/pr_cased.h: New file, automatically generated by
7320         gen-uni-tables.
7321         * modules/unictype/property-cased-tests: New file.
7322         * tests/unictype/test-pr_cased.c: New file, automatically generated by
7323         gen-uni-tables.
7324
7325 2011-01-09  Bruno Haible  <bruno@clisp.org>
7326
7327         Update to Unicode 5.2.0.
7328         * lib/gen-uni-tables.c (output_predicate, output_category,
7329         output_combclass, output_bidi_category, output_decimal_digit_test,
7330         output_decimal_digit, output_digit_test, output_digit,
7331         output_numeric_test, output_numeric, output_mirror, output_scripts,
7332         output_scripts_byname, output_blocks, output_ident_category): Fix
7333         comment header.
7334         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
7335         get_wbp.
7336         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
7337         items.
7338         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
7339         Changes_When_Lowercased, Changes_When_Uppercased,
7340         Changes_When_Titlecased, Changes_When_Casefolded,
7341         Changes_When_Casemapped.
7342         (is_property_alphabetic, is_property_default_ignorable_code_point):
7343         Update for Unicode 5.2.0.
7344         (is_property_cased, is_property_case_ignorable,
7345         is_property_changes_when_lowercased,
7346         is_property_changes_when_uppercased,
7347         is_property_changes_when_titlecased,
7348         is_property_changes_when_casefolded,
7349         is_property_changes_when_casemapped): New functions.
7350         (output_properties): Output also the properties cased, case_ignorable,
7351         changes_when_lowercased, changes_when_uppercased,
7352         changes_when_titlecased, changes_when_casefolded,
7353         changes_when_casemapped.
7354         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
7355         Unicode TR#11 revision 17 -> 19.
7356         (LBP_CP): New enumeration value.
7357         (LBP_*): Adjust values accordingly.
7358         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7359         TR#14 revision 22 -> 24.
7360         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
7361         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
7362         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7363         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
7364         is_WBP_MIDLETTER.
7365         (output_composition_tables): Allow for 24 bits instead of 16 bits in
7366         the code1 and code2 of each composition rule.
7367         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
7368         * lib/unicase/ignorable.h: Likewise.
7369         * lib/unicase/tocasefold.h: Likewise.
7370         * lib/unicase/tolower.h: Likewise.
7371         * lib/unicase/totitle.h: Likewise.
7372         * lib/unicase/toupper.h: Likewise.
7373         * lib/unictype/bidi_of.h: Likewise.
7374         * lib/unictype/blocks.h: Likewise.
7375         * lib/unictype/categ_C.h: Likewise.
7376         * lib/unictype/categ_Cf.h: Likewise.
7377         * lib/unictype/categ_Cn.h: Likewise.
7378         * lib/unictype/categ_L.h: Likewise.
7379         * lib/unictype/categ_Ll.h: Likewise.
7380         * lib/unictype/categ_Lm.h: Likewise.
7381         * lib/unictype/categ_Lo.h: Likewise.
7382         * lib/unictype/categ_Lu.h: Likewise.
7383         * lib/unictype/categ_M.h: Likewise.
7384         * lib/unictype/categ_Mc.h: Likewise.
7385         * lib/unictype/categ_Mn.h: Likewise.
7386         * lib/unictype/categ_N.h: Likewise.
7387         * lib/unictype/categ_Nd.h: Likewise.
7388         * lib/unictype/categ_Nl.h: Likewise.
7389         * lib/unictype/categ_No.h: Likewise.
7390         * lib/unictype/categ_P.h: Likewise.
7391         * lib/unictype/categ_Pd.h: Likewise.
7392         * lib/unictype/categ_Po.h: Likewise.
7393         * lib/unictype/categ_S.h: Likewise.
7394         * lib/unictype/categ_Sc.h: Likewise.
7395         * lib/unictype/categ_So.h: Likewise.
7396         * lib/unictype/categ_of.h: Likewise.
7397         * lib/unictype/combining.h: Likewise.
7398         * lib/unictype/ctype_alnum.h: Likewise.
7399         * lib/unictype/ctype_alpha.h: Likewise.
7400         * lib/unictype/ctype_graph.h: Likewise.
7401         * lib/unictype/ctype_lower.h: Likewise.
7402         * lib/unictype/ctype_print.h: Likewise.
7403         * lib/unictype/ctype_punct.h: Likewise.
7404         * lib/unictype/ctype_upper.h: Likewise.
7405         * lib/unictype/decdigit.h: Likewise.
7406         * lib/unictype/digit.h: Likewise.
7407         * lib/unictype/numeric.h: Likewise.
7408         * lib/unictype/pr_alphabetic.h: Likewise.
7409         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7410         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7411         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7412         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7413         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7414         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7415         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7416         * lib/unictype/pr_combining.h: Likewise.
7417         * lib/unictype/pr_composite.h: Likewise.
7418         * lib/unictype/pr_currency_symbol.h: Likewise.
7419         * lib/unictype/pr_dash.h: Likewise.
7420         * lib/unictype/pr_decimal_digit.h: Likewise.
7421         * lib/unictype/pr_deprecated.h: Likewise.
7422         * lib/unictype/pr_diacritic.h: Likewise.
7423         * lib/unictype/pr_extender.h: Likewise.
7424         * lib/unictype/pr_grapheme_base.h: Likewise.
7425         * lib/unictype/pr_grapheme_extend.h: Likewise.
7426         * lib/unictype/pr_grapheme_link.h: Likewise.
7427         * lib/unictype/pr_id_continue.h: Likewise.
7428         * lib/unictype/pr_id_start.h: Likewise.
7429         * lib/unictype/pr_ideographic.h: Likewise.
7430         * lib/unictype/pr_ignorable_control.h: Likewise.
7431         * lib/unictype/pr_logical_order_exception.h: Likewise.
7432         * lib/unictype/pr_lowercase.h: Likewise.
7433         * lib/unictype/pr_numeric.h: Likewise.
7434         * lib/unictype/pr_other_alphabetic.h: Likewise.
7435         * lib/unictype/pr_punctuation.h: Likewise.
7436         * lib/unictype/pr_sentence_terminal.h: Likewise.
7437         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7438         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7439         * lib/unictype/pr_unified_ideograph.h: Likewise.
7440         * lib/unictype/pr_uppercase.h: Likewise.
7441         * lib/unictype/pr_xid_continue.h: Likewise.
7442         * lib/unictype/pr_xid_start.h: Likewise.
7443         * lib/unictype/pr_zero_width.h: Likewise.
7444         * lib/unictype/scripts.h: Likewise.
7445         * lib/unictype/scripts_byname.gperf: Likewise.
7446         * lib/unictype/sy_java_ident.h: Likewise.
7447         * lib/unigbrk/gbrkprop.h: Likewise.
7448         * lib/unilbrk/lbrkprop1.h: Likewise.
7449         * lib/unilbrk/lbrkprop2.h: Likewise.
7450         * lib/unilbrk/lbrktables.h: Likewise.
7451         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7452         LBP_CP. Implement rule LB30.
7453         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7454         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7455         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7456         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7457         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7458         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7459         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7460         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7461         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7462         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7463         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7464         bits instead of 16 bits in the code1 and code2 of each composition
7465         rule.
7466         (uc_composition): Update for Unicode 5.2.0.
7467         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7468         * lib/uninorm/decomposition-table2.h: Likewise.
7469         * lib/uniwbrk/wbrkprop.h: Likewise.
7470         * tests/unicase/test-cased.c: Likewise.
7471         * tests/unicase/test-ignorable.c: Likewise.
7472         * tests/unicase/test-uc_tolower.c: Likewise.
7473         * tests/unicase/test-uc_totitle.c: Likewise.
7474         * tests/unicase/test-uc_toupper.c: Likewise.
7475         * tests/unictype/test-categ_C.c: Likewise.
7476         * tests/unictype/test-categ_Cf.c: Likewise.
7477         * tests/unictype/test-categ_Cn.c: Likewise.
7478         * tests/unictype/test-categ_L.c: Likewise.
7479         * tests/unictype/test-categ_Ll.c: Likewise.
7480         * tests/unictype/test-categ_Lm.c: Likewise.
7481         * tests/unictype/test-categ_Lo.c: Likewise.
7482         * tests/unictype/test-categ_Lu.c: Likewise.
7483         * tests/unictype/test-categ_M.c: Likewise.
7484         * tests/unictype/test-categ_Mc.c: Likewise.
7485         * tests/unictype/test-categ_Mn.c: Likewise.
7486         * tests/unictype/test-categ_N.c: Likewise.
7487         * tests/unictype/test-categ_Nd.c: Likewise.
7488         * tests/unictype/test-categ_Nl.c: Likewise.
7489         * tests/unictype/test-categ_No.c: Likewise.
7490         * tests/unictype/test-categ_P.c: Likewise.
7491         * tests/unictype/test-categ_Pd.c: Likewise.
7492         * tests/unictype/test-categ_Po.c: Likewise.
7493         * tests/unictype/test-categ_S.c: Likewise.
7494         * tests/unictype/test-categ_Sc.c: Likewise.
7495         * tests/unictype/test-categ_So.c: Likewise.
7496         * tests/unictype/test-ctype_alnum.c: Likewise.
7497         * tests/unictype/test-ctype_alpha.c: Likewise.
7498         * tests/unictype/test-ctype_graph.c: Likewise.
7499         * tests/unictype/test-ctype_lower.c: Likewise.
7500         * tests/unictype/test-ctype_print.c: Likewise.
7501         * tests/unictype/test-ctype_punct.c: Likewise.
7502         * tests/unictype/test-ctype_upper.c: Likewise.
7503         * tests/unictype/test-decdigit.h: Likewise.
7504         * tests/unictype/test-digit.h: Likewise.
7505         * tests/unictype/test-numeric.h: Likewise.
7506         * tests/unictype/test-pr_alphabetic.c: Likewise.
7507         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7508         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7509         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7510         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7511         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7512         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7513         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7514         * tests/unictype/test-pr_combining.c: Likewise.
7515         * tests/unictype/test-pr_composite.c: Likewise.
7516         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7517         * tests/unictype/test-pr_dash.c: Likewise.
7518         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7519         * tests/unictype/test-pr_deprecated.c: Likewise.
7520         * tests/unictype/test-pr_diacritic.c: Likewise.
7521         * tests/unictype/test-pr_extender.c: Likewise.
7522         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7523         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7524         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7525         * tests/unictype/test-pr_id_continue.c: Likewise.
7526         * tests/unictype/test-pr_id_start.c: Likewise.
7527         * tests/unictype/test-pr_ideographic.c: Likewise.
7528         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7529         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7530         * tests/unictype/test-pr_lowercase.c: Likewise.
7531         * tests/unictype/test-pr_numeric.c: Likewise.
7532         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7533         * tests/unictype/test-pr_punctuation.c: Likewise.
7534         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7535         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7536         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7537         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7538         * tests/unictype/test-pr_uppercase.c: Likewise.
7539         * tests/unictype/test-pr_xid_continue.c: Likewise.
7540         * tests/unictype/test-pr_xid_start.c: Likewise.
7541         * tests/unictype/test-pr_zero_width.c: Likewise.
7542         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7543         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7544         changed behaviour: line breaking is now disallowed between a letter
7545         or '=' and '('.
7546         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7547         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7548         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7549         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7550         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7551         lib/uniwidth/width.c.
7552         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7553         without comments, but with the original copyright notice.
7554         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7555         changes.
7556         * lib/unictype/categ_Cc.h: Likewise.
7557         * lib/unictype/categ_Co.h: Likewise.
7558         * lib/unictype/categ_Cs.h: Likewise.
7559         * lib/unictype/categ_Lt.h: Likewise.
7560         * lib/unictype/categ_Me.h: Likewise.
7561         * lib/unictype/categ_Pc.h: Likewise.
7562         * lib/unictype/categ_Pe.h: Likewise.
7563         * lib/unictype/categ_Pf.h: Likewise.
7564         * lib/unictype/categ_Pi.h: Likewise.
7565         * lib/unictype/categ_Ps.h: Likewise.
7566         * lib/unictype/categ_Sk.h: Likewise.
7567         * lib/unictype/categ_Sm.h: Likewise.
7568         * lib/unictype/categ_Z.h: Likewise.
7569         * lib/unictype/categ_Zl.h: Likewise.
7570         * lib/unictype/categ_Zp.h: Likewise.
7571         * lib/unictype/categ_Zs.h: Likewise.
7572         * lib/unictype/ctype_blank.h: Likewise.
7573         * lib/unictype/ctype_cntrl.h: Likewise.
7574         * lib/unictype/ctype_digit.h: Likewise.
7575         * lib/unictype/ctype_space.h: Likewise.
7576         * lib/unictype/ctype_xdigit.h: Likewise.
7577         * lib/unictype/mirror.h: Likewise.
7578         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7579         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7580         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7581         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7582         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7583         * lib/unictype/pr_bidi_control.h: Likewise.
7584         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7585         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7586         * lib/unictype/pr_bidi_pdf.h: Likewise.
7587         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7588         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7589         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7590         * lib/unictype/pr_format_control.h: Likewise.
7591         * lib/unictype/pr_hex_digit.h: Likewise.
7592         * lib/unictype/pr_hyphen.h: Likewise.
7593         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7594         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7595         * lib/unictype/pr_iso_control.h: Likewise.
7596         * lib/unictype/pr_join_control.h: Likewise.
7597         * lib/unictype/pr_left_of_pair.h: Likewise.
7598         * lib/unictype/pr_line_separator.h: Likewise.
7599         * lib/unictype/pr_math.h: Likewise.
7600         * lib/unictype/pr_non_break.h: Likewise.
7601         * lib/unictype/pr_not_a_character.h: Likewise.
7602         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7603         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7604         * lib/unictype/pr_other_id_continue.h: Likewise.
7605         * lib/unictype/pr_other_id_start.h: Likewise.
7606         * lib/unictype/pr_other_lowercase.h: Likewise.
7607         * lib/unictype/pr_other_math.h: Likewise.
7608         * lib/unictype/pr_other_uppercase.h: Likewise.
7609         * lib/unictype/pr_paired_punctuation.h: Likewise.
7610         * lib/unictype/pr_paragraph_separator.h: Likewise.
7611         * lib/unictype/pr_pattern_syntax.h: Likewise.
7612         * lib/unictype/pr_pattern_white_space.h: Likewise.
7613         * lib/unictype/pr_private_use.h: Likewise.
7614         * lib/unictype/pr_quotation_mark.h: Likewise.
7615         * lib/unictype/pr_radical.h: Likewise.
7616         * lib/unictype/pr_soft_dotted.h: Likewise.
7617         * lib/unictype/pr_space.h: Likewise.
7618         * lib/unictype/pr_titlecase.h: Likewise.
7619         * lib/unictype/pr_variation_selector.h: Likewise.
7620         * lib/unictype/pr_white_space.h: Likewise.
7621         * lib/unictype/sy_c_ident.h: Likewise.
7622         * lib/unictype/sy_c_whitespace.h: Likewise.
7623         * lib/unictype/sy_java_whitespace.h: Likewise.
7624         * modules/uni*/*: Bump version number of expected libunistring version.
7625         Reported by Simon Josefsson.
7626
7627 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7628
7629         useless-if-before-free: fix typo in --help and make the internal,
7630         automatic version date update process work once again.
7631         --help output contained a NUL character instead of the
7632         backslash-zero that was intended.  Also, the "must lie within
7633         the first 8 lines" line is on line 9, and hence not getting
7634         automatically updated.
7635         * build-aux/useless-if-before-free: Fix the former by adding a
7636         backslash, and the latter by condensing the three lines of what-it-does
7637         to a single line, leaving one line of slack for the future.
7638
7639 2011-01-09  Bruno Haible  <bruno@clisp.org>
7640
7641         uniwidth/width: Fix width of U+1D173..U+1D17A.
7642         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7643         symbolic_width, output_width_property_test): New functions.
7644         (main): Invoke output_nonspacing_property, output_width_property_test.
7645         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7646         U+1D173..U+1D17A.
7647         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7648         1.
7649         * modules/uniwidth/*: Bump version number of expected libunistring
7650         version.
7651         * modules/unilbrk/*: Likewise.
7652
7653 2011-01-08  Bruno Haible  <bruno@clisp.org>
7654
7655         uninorm tests: Preserve copyright of Unicode data file.
7656         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7657         Mention modifications.
7658
7659 2011-01-08  Bruno Haible  <bruno@clisp.org>
7660
7661         gen-uni-tables: Prepare for Unicode 5.2.0.
7662         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7663         (debug_output_lbp, output_lbp): Update.
7664
7665 2011-01-08  Bruno Haible  <bruno@clisp.org>
7666
7667         unilbrk: Clarify gen-uni-tables.c code.
7668         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7669         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7670         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7671
7672 2011-01-07  Bruno Haible  <bruno@clisp.org>
7673
7674         strtod: Restore errno when successfully parsing Infinity or NaN.
7675         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7676         restore the original errno.
7677
7678 2011-01-07  Bruno Haible  <bruno@clisp.org>
7679
7680         remove test: Avoid failure on HP-UX 11.
7681         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7682
7683 2011-01-07  Bruno Haible  <bruno@clisp.org>
7684
7685         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7686         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7687         error code.
7688
7689 2011-01-07  Pádraig Brady <P@draigBrady.com>
7690
7691         ignore-value: fixup comments, and add Eric Blake
7692         as an author since he rewrote the macros.
7693         * lib/ignore-value.h (ignore_value):  State that
7694         we now support aggregates.  Also specify exactly
7695         when the GCC warn_unused_result feature was added.
7696
7697 2011-01-06  Eric Blake  <eblake@redhat.com>
7698
7699         ignore-value: support aggregate types
7700         * lib/ignore-value.h (ignore_value): Provide separate gcc
7701         definition.
7702         * modules/ignore-value-tests: New test module.
7703         * tests/test-ignore-value.c: New test.
7704
7705         maint.mk: improve sc_prohibit_strcmp regex
7706         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7707         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7708         definition of STRNEQ.
7709
7710         signal: work around Haiku issue with SIGBUS
7711         * lib/siglist.h: Add comment.
7712         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7713         strsignal's favoring of SIGSEGV.
7714         * tests/test-signal.c (main): Avoid test failure.
7715         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7716         Reported by Scott McCreary.
7717
7718         maint.mk: add pre-release check to ensure submodule commits are public
7719         * top/maint.mk (public-submodule-commit): New rule.
7720         (submodule-checks): New variable.
7721         (alpha beta stable): Depend on the variable.
7722
7723 2011-01-05  Pádraig Brady <P@draigBrady.com>
7724         and Jim Meyering  <meyering@redhat.com>
7725
7726         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7727         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7728         (ATTRIBUTE_DEPRECATED): Define.
7729         (_ignore_case): New function.
7730         (ignore_value): New macro, to replace the old function.
7731         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7732         * modules/ignore-value (Depends-on): Add stdint.
7733
7734 2011-01-04  Eric Blake  <eblake@redhat.com>
7735
7736         doc: regenerate INSTALL
7737         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7738         @firstparagraphindent support, now that autoconf dropped it.
7739         (INSTALL_PRELUDE): Reinstate old macro.
7740         * doc/install.texi: Resync from autoconf.
7741         * doc/INSTALL: Reflect recent autoconf update.
7742         * doc/INSTALL.ISO: Likewise.
7743         * doc/INSTALL.UTF-8: Likewise.
7744         Reported by Karl Berry.
7745
7746 2011-01-04  Bruce Korb  <address@hidden>
7747
7748         git-version-gen: avoid a sub-shell
7749         * build-aux/git-version-gen: Redirect stderr in `...` via
7750         "exec 2>...", rather than via an added sub-shell.
7751
7752 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7753
7754         git-version-gen: use (...) rather than sh -c '...'
7755         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7756         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7757
7758 2011-01-03  Jim Meyering  <meyering@redhat.com>
7759
7760         git-version-gen: convert leading TABs to spaces
7761         * build-aux/git-version-gen: Expand leading TABs.
7762
7763         git-version-gen: handle failed "git rev-list"
7764         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7765         from git and proceeding as if it had succeeded but printed no SHA1
7766         checksums, suppress the diagnostic and handle the failure.
7767         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7768
7769         git-version-gen: include command name in one more diagnostic
7770         * build-aux/git-version-gen: When the required .tarball-version file
7771         was missing or unreadable, you might see the diagnostic from "cat",
7772         but no trace of the name of the invoking script.  Now, you still see
7773         the diagnostic from cat, but also get one from "git-version-gen: ".
7774         Inspired by a patch from Bruce Korb.
7775
7776         update-copyright: adjust test to match changed code
7777         * tests/test-update-copyright.sh: Change test's expected output
7778         to match new actual output.
7779
7780 2011-01-02  Bruno Haible  <bruno@clisp.org>
7781
7782         getlogin_r: Avoid test failure on HP-UX 11.
7783         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7784         ERANGE when the second argument is zero.
7785         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7786         portability problem.
7787
7788 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7789
7790         * build-aux/update-copyright: doc Simon's changes
7791
7792 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7793
7794         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7795         environment variable.
7796
7797 2011-01-02  Bruno Haible  <bruno@clisp.org>
7798
7799         unigbrk: Avoid gcc warnings.
7800         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7801         unused variable.
7802         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7803         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7804         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7805         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7806         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7807         Change type of first argument to 'const char *'.
7808         (main): Remove unused variable.
7809         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7810         type of first argument to 'const char *'.
7811         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7812         Likewise.
7813         (main): Change type of variable 's'.
7814         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7815         to 'int'.
7816
7817 2011-01-02  Bruno Haible  <bruno@clisp.org>
7818
7819         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7820         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7821         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7822         bug.
7823         * lib/pwrite.c: Undo 2010-12-31 patch.
7824         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7825
7826 2011-01-02  Bruno Haible  <bruno@clisp.org>
7827
7828         pread: Fix test whether it works.
7829         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7830
7831 2011-01-02  Bruno Haible  <bruno@clisp.org>
7832
7833         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7834         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7835         ends in "6". Don't require a specific month name. Try also the locale
7836         names found on HP-UX 11 and Solaris 7.
7837
7838 2011-01-02  Bruno Haible  <bruno@clisp.org>
7839
7840         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7841         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7842         C linkage.
7843         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7844
7845 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7846
7847         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7848         for consistency, since the "cluster" term is not used elsewhere.
7849         * lib/unigbrk.in.h: Update name.
7850         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7851         * lib/unigbrk/u16-grapheme-next.c: Update name.
7852         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7853         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7854         * lib/unigbrk/u32-grapheme-next.c: Update name.
7855         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7856         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7857         * lib/unigbrk/u8-grapheme-next.c: Update name.
7858         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7859         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7860         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7861         Suggested by Bruno Haible.
7862
7863 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7864
7865         Remove module 'u8-grapheme-len' as too redundant with
7866         'u8-grapheme-next'.
7867         * modules/unigbrk/u8-grapheme-len: Delete file.
7868         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7869         * lib/unigbrk.in.h: Remove prototype for deleted function.
7870         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7871         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7872
7873         Remove module 'u16-grapheme-len' as too redundant with
7874         'u16-grapheme-next'.
7875         * modules/unigbrk/u16-grapheme-len: Delete file.
7876         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7877         * lib/unigbrk.in.h: Remove prototype for deleted function.
7878         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7879         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7880
7881         Remove module 'u32-grapheme-len' as too redundant with
7882         'u32-grapheme-next'.
7883         * modules/unigbrk/u32-grapheme-len: Delete file.
7884         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7885         * lib/unigbrk.in.h: Remove prototype for deleted function.
7886         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7887         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7888
7889         Suggested by Bruno Haible.
7890
7891 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7892
7893         * unigbrk.in.h: Fix typo: "ben" => "been".
7894         Reported by Bruno Haible.
7895
7896 2011-01-01  Jim Meyering  <meyering@redhat.com>
7897
7898         maint: update almost all copyright ranges to include 2011
7899         Run the new "make update-copyright" rule.
7900
7901 2011-01-01  Jim Meyering  <meyering@redhat.com>
7902
7903         maint: update-copyright: exempt doc/INSTALL*
7904         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7905         since they are generated.  Suggested by Bruno Haible.
7906
7907 2011-01-01  Jim Meyering  <meyering@redhat.com>
7908
7909         maint: refine the update-copyright rule
7910         * Makefile (update-copyright): Also exclude any file that includes
7911         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7912         code that merely generates the comment.
7913
7914 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7915
7916         New module 'u8-grapheme-len'.
7917         * modules/unigbrk/u8-grapheme-len: New file.
7918         * modules/unigbrk/u8-grapheme-len-tests: New file.
7919         * lib/unigbrk.in.h: Add prototype for new function.
7920         * lib/unigbrk/u8-grapheme-len.c: New file.
7921         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7922
7923         New module 'u16-grapheme-len'.
7924         * modules/unigbrk/u16-grapheme-len: New file.
7925         * modules/unigbrk/u16-grapheme-len-tests: New file.
7926         * lib/unigbrk.in.h: Add prototype for new function.
7927         * lib/unigbrk/u16-grapheme-len.c: New file.
7928         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7929
7930         New module 'u32-grapheme-len'.
7931         * modules/unigbrk/u32-grapheme-len: New file.
7932         * modules/unigbrk/u32-grapheme-len-tests: New file.
7933         * lib/unigbrk.in.h: Add prototype for new function.
7934         * lib/unigbrk/u32-grapheme-len.c: New file.
7935         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7936
7937         New module 'u8-grapheme-next'.
7938         * modules/unigbrk/u8-grapheme-next: New file.
7939         * modules/unigbrk/u8-grapheme-next-tests: New file.
7940         * lib/unigbrk.in.h: Add prototype for new function.
7941         * lib/unigbrk/u8-grapheme-next.c: New file.
7942         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7943
7944         New module 'u16-grapheme-next'.
7945         * modules/unigbrk/u16-grapheme-next: New file.
7946         * modules/unigbrk/u16-grapheme-next-tests: New file.
7947         * lib/unigbrk.in.h: Add prototype for new function.
7948         * lib/unigbrk/u16-grapheme-next.c: New file.
7949         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7950
7951         New module 'u32-grapheme-next'.
7952         * modules/unigbrk/u32-grapheme-next: New file.
7953         * modules/unigbrk/u32-grapheme-next-tests: New file.
7954         * lib/unigbrk.in.h: Add prototype for new function.
7955         * lib/unigbrk/u32-grapheme-next.c: New file.
7956         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7957
7958         New module 'u8-grapheme-prev'.
7959         * modules/unigbrk/u8-grapheme-prev: New file.
7960         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7961         * lib/unigbrk.in.h: Add prototype for new function.
7962         * lib/unigbrk/u8-grapheme-prev.c: New file.
7963         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7964
7965         New module 'u16-grapheme-prev'.
7966         * modules/unigbrk/u16-grapheme-prev: New file.
7967         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7968         * lib/unigbrk.in.h: Add prototype for new function.
7969         * lib/unigbrk/u16-grapheme-prev.c: New file.
7970         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7971
7972         New module 'u32-grapheme-prev'.
7973         * modules/unigbrk/u32-grapheme-prev: New file.
7974         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7975         * lib/unigbrk.in.h: Add prototype for new function.
7976         * lib/unigbrk/u32-grapheme-prev.c: New file.
7977         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7978
7979         New module 'u8-grapheme-breaks'.
7980         * modules/unigbrk/u8-grapheme-breaks: New file.
7981         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7982         * lib/unigbrk.in.h: Add prototype for new function.
7983         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7984         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7985
7986         New module 'u16-grapheme-breaks'.
7987         * modules/unigbrk/u16-grapheme-breaks: New file.
7988         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7989         * lib/unigbrk.in.h: Add prototype for new function.
7990         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7991         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7992
7993         New module 'u32-grapheme-breaks'.
7994         * modules/unigbrk/u32-grapheme-breaks: New file.
7995         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7996         * lib/unigbrk.in.h: Add prototype for new function.
7997         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7998         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7999
8000         New module 'ulc-grapheme-breaks'.
8001         * modules/unigbrk/ulc-grapheme-breaks: New file.
8002         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8003         * m4/locale-ar.m4: New file.
8004         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8005         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8006         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8007
8008 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8009
8010         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8011         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8012         modified how this file was generated before I initially submitted
8013         the module, but failed to regenerate it.  This meant that several
8014         of the level2 entries were wrong.
8015         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8016         Remove the division-by-2 that is folded into the table now that
8017         gbrkprop.h has been regenerated properly.  Now -1 entries are
8018         handled correctly.
8019
8020         New module 'unigbrk/uc-gbrk-prop-tests'.
8021         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8022         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8023         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8024         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8025
8026 2011-01-01  Bruno Haible  <bruno@clisp.org>
8027
8028         Avoid use of hexadecimal escapes.
8029         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8030         instead of hexadecimal escapes.
8031
8032 2011-01-01  Jim Meyering  <meyering@redhat.com>
8033
8034         maint: new rule to update copyright year ranges
8035         * Makefile (update-copyright): New rule.
8036
8037         maint: indent with TABs in Makefile
8038         * Makefile: Expand leading sequences of spaces to TABs
8039
8040         version-etc: update the copyright year it reports
8041         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8042
8043 2010-12-31  Bruno Haible  <bruno@clisp.org>
8044
8045         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8046         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8047         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8048         zero.
8049
8050 2010-12-31  Bruno Haible  <bruno@clisp.org>
8051
8052         pwrite: Work around HP-UX 11.11 bug.
8053         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8054         works and set REPLACE_PWRITE if not.
8055         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8056         function.
8057         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8058
8059 2010-12-31  Bruno Haible  <bruno@clisp.org>
8060
8061         pread: Work around HP-UX 11 bugs.
8062         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8063         and set REPLACE_PREAD if not.
8064         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8065
8066 2010-12-31  Eric Blake  <eblake@redhat.com>
8067
8068         nl_langinfo: fix YESEXPR on Irix 6.5
8069         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8070         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8071         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8072         it.
8073
8074 2010-12-31  Bruno Haible  <bruno@clisp.org>
8075
8076         iconv: Document HP-UX 11 bug.
8077         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8078
8079 2010-12-31  Bruno Haible  <bruno@clisp.org>
8080
8081         ldexpl: Fix link error on HP-UX 11.
8082         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8083         LDEXPL_LIBM, using $ISNANL_LIBM.
8084
8085 2010-12-31  Eric Blake  <eblake@redhat.com>
8086
8087         ftello: avoid compilation failure with SunStudio c89
8088         * lib/ftello.c (ftello): Use lseek, not llseek.
8089
8090         tests: avoid failing coreutils tests on cygwin
8091         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8092         (create_exe_shims_): Return 0 when skipping.
8093
8094 2010-12-31  Bruno Haible  <bruno@clisp.org>
8095
8096         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8097         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8098
8099 2010-12-31  Bruno Haible  <bruno@clisp.org>
8100
8101         waitpid: Fix link error in C++ mode.
8102         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8103
8104 2010-12-31  Bruno Haible  <bruno@clisp.org>
8105
8106         isnan: Use GCC built-ins when possible.
8107         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8108         __builtin_isnan.
8109         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8110         (isnan): Define using GCC built-ins for GCC >= 4.0.
8111
8112 2010-12-31  Bruno Haible  <bruno@clisp.org>
8113
8114         isnand: Fix mistake.
8115         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8116         __builtin_isnand.
8117
8118 2010-12-31  Bruno Haible  <bruno@clisp.org>
8119
8120         open: Avoid C++ error on HP-UX 11.
8121         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8122
8123 2010-12-31  Bruno Haible  <bruno@clisp.org>
8124
8125         time_r: Add missing declarations on HP-UX 11.
8126         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8127         instead of HAVE_LOCALTIME_R.
8128         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8129         HAVE_LOCALTIME_R always.
8130         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8131         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8132         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8133         HAVE_LOCALTIME_R.
8134         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8135         * doc/posix-functions/localtime_r.texi: Likewise.
8136
8137 2010-12-29  Eric Blake  <eblake@redhat.com>
8138
8139         mountlist: tweak previous commit
8140         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8141         Reported by Paul Eggert.
8142
8143         mountlist: fix local drive detection on cygwin
8144         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8145         that works for cygwin.
8146
8147 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8148
8149         ftoastr, snprintf: ftoastr + snprintf module
8150         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8151         since the snprintf module now should be good enough here.
8152         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8153         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8154         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8155         GNULIB_SNPRINTF only for the test directory, and the latter
8156         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8157         seems to suffice by itself.
8158
8159 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         alloca: one step towards thread-safety
8162         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8163         need for a static variable.  All callers changed.  This does not
8164         make the alloca replacement thread-safe, but it's one step.
8165
8166         tests: minor indenting change
8167         * tests/init.sh: Sync from coreutils housekeeping patch
8168         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8169         to keep lines within 80 columns.
8170
8171 2010-12-28  Jim Meyering  <meyering@redhat.com>
8172
8173         regex: don't infloop on persistent failing calloc
8174         * lib/regexec.c (build_trtable): Return failure indication upon
8175         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8176         In glibc, this was fixed for version 2.13:
8177         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8178
8179 2010-12-28  Bruno Haible  <bruno@clisp.org>
8180             Paul Eggert <eggert@cs.ucla.edu>
8181
8182         linkat: Make implementation robust against system behaviour variations.
8183         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8184         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8185         way, and to -2 if it needs a generic runtime test.
8186         * lib/linkat.c (solaris_optimized_link_immediate,
8187         solaris_optimized_link_follow): New functions.
8188         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8189         (check_same_link): Use it.
8190
8191 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8192
8193         New module 'unigbrk/base'.
8194         * modules/unigbrk/base: New file.
8195         * lib/unigbrk.in.h: New file.
8196
8197         New module 'unigbrk/uc-gbrk-prop'.
8198         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
8199         * modules/unigbrk/uc-gbrk-prop: New file.
8200         * lib/unigbrk/gbrkprop.h: New file.
8201         * lib/unigbrk/uc-gbrk-prop.c: New file.
8202
8203         New module 'unigbrk/uc-is-grapheme-break'.
8204         * modules/unigbrk/uc-is-grapheme-break: New file.
8205         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
8206         * lib/unigbrk/uc-is-grapheme-break.c: New file.
8207         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
8208         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
8209         * tests/unigbrk/GraphemeBreakTest.txt: New file.
8210
8211         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
8212
8213 2010-12-27  Bruno Haible  <bruno@clisp.org>
8214
8215         linkat test: Avoid failure on Solaris 11 2010-11.
8216         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
8217
8218 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8219
8220         utimens: work around glibc rounding bug on more platforms
8221         * lib/utimens.c (fdutimens): Work around rounding bug even if
8222         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
8223         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
8224
8225 2010-12-27  Bruno Haible  <bruno@clisp.org>
8226
8227         select tests: Improve comments.
8228         * tests/test-select.c (do_select): Add comments.
8229
8230 2010-12-27  Bruno Haible  <bruno@clisp.org>
8231
8232         select tests: Safer way of handling timeout.
8233         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
8234         at every invocation.
8235
8236 2010-12-27  Bruno Haible  <bruno@clisp.org>
8237
8238         select tests: Use 'bool' where appropriate.
8239         * tests/test-select.c (connect_to_socket): Change argument type to
8240         'bool'.
8241
8242 2010-12-27  Bruno Haible  <bruno@clisp.org>
8243
8244         select tests: Use existing modules.
8245         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
8246         (configure.ac): Don't test for unistd.h.
8247         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
8248         declared in <unistd.h>.
8249
8250 2010-12-27  Bruno Haible  <bruno@clisp.org>
8251
8252         mbrtowc: Work around a Solaris 7 bug.
8253         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
8254         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
8255         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
8256         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
8257         MBRTOWC_NULL_ARG1_BUG.
8258         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
8259         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
8260         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
8261         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
8262
8263 2010-12-27  Jim Meyering  <meyering@redhat.com>
8264
8265         read-file.c: tweak syntax
8266         * lib/read-file.c (fread_file): Remove space after "*" in function
8267         definitions.
8268
8269 2010-12-27  Bruno Haible  <bruno@clisp.org>
8270
8271         times test: Avoid gcc warnings on OSF/1.
8272         * tests/test-times.c (main): Cast printf arguments from clock_t to
8273         'long int'.
8274
8275 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8276
8277         utimens: work around glibc rounding bug on older Linux kernels
8278         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8279         on Linux with a glibc whose utimes might not work, then work
8280         around a longstanding glibc bug involving rounding rather than
8281         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8282         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8283
8284 2010-12-26  Bruno Haible  <bruno@clisp.org>
8285
8286         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8287         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8288         _GL_CXXALIAS_SYS.
8289         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8290
8291 2010-12-26  Bruno Haible  <bruno@clisp.org>
8292
8293         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8294         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8295         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8296         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8297         looking for the declaration.
8298         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8299         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8300         problem.
8301         * doc/posix-functions/inet_pton.texi: Likewise.
8302
8303 2010-12-26  Bruno Haible  <bruno@clisp.org>
8304
8305         arpa_inet: Use the common idioms with C++ support.
8306         * lib/arpa_inet.in.h: Include c++defs.h.
8307         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8308         support.
8309         * modules/arpa_inet (Depends-on): Add c++defs.
8310         (Makefile.am): Substitute the contents of c++defs.h.
8311         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
8312         * modules/arpa_inet-c++-tests: New file.
8313         * tests/test-arpa_inet-c++.cc: New file.
8314
8315 2010-12-25  Bruno Haible  <bruno@clisp.org>
8316
8317         Fix more C++ link errors on Solaris 8.
8318         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
8319         $(LIB_EACCESS).
8320         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
8321         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
8322         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
8323         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
8324         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
8325
8326 2010-12-25  Bruno Haible  <bruno@clisp.org>
8327
8328         printf-posix: Fix link error when a non-GCC compiler is used.
8329         * lib/stdio.in.h (printf): When not using GCC, override printf
8330         correctly.
8331         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8332
8333 2010-12-25  Bruno Haible  <bruno@clisp.org>
8334
8335         strerror_r-posix: Update doc.
8336         * doc/posix-functions/strerror_r.texi: Update doc about the return
8337         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
8338
8339 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8340
8341         utimens: simplify the logic of the previous change
8342         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
8343         This should not affect whether the test succeeds or fails.
8344
8345         utimens: configure better on hosts with NFS clock skew
8346         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
8347         uses the clock of the local host.  It might use the clock of the
8348         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
8349         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8350
8351 2010-12-25  Bruno Haible  <bruno@clisp.org>
8352
8353         ptsname test: Avoid failure on Solaris.
8354         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
8355         open a pseudo-terminal; don't use BSD-style ptys.
8356         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
8357
8358 2010-12-25  Bruno Haible  <bruno@clisp.org>
8359
8360         ptsname: Avoid ERANGE failure on some systems.
8361         * lib/ptsname.c (buffer): Increase size.
8362
8363 2010-12-25  Bruno Haible  <bruno@clisp.org>
8364
8365         rename, renameat: Avoid test failures at NFS mounted locations.
8366         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
8367         so that subsequent mkdir calls succeed.
8368
8369 2010-12-25  Bruno Haible  <bruno@clisp.org>
8370
8371         iswblank: Fix C++ link error on Solaris 8.
8372         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
8373         _GL_FUNCDECL_SYS.
8374
8375 2010-12-25  Bruno Haible  <bruno@clisp.org>
8376
8377         unistd: Fix C++ link error on Solaris 8.
8378         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8379
8380 2010-12-25  Bruno Haible  <bruno@clisp.org>
8381
8382         readlink doc: Mention an old glibc bug.
8383         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8384
8385 2010-12-25  Bruno Haible  <bruno@clisp.org>
8386
8387         fcntl-h: Fix for use of C++ on glibc systems.
8388         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8389         also on glibc systems in C++ mode.
8390         Reported by Gary V. Vaughan <gary@gnu.org>.
8391
8392 2010-12-25  Bruno Haible  <bruno@clisp.org>
8393
8394         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8395         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8396
8397 2010-12-25  Bruno Haible  <bruno@clisp.org>
8398
8399         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8400         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8401         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8402         test whether truncl works according to ISO C 99 with IEC 60559.
8403         * m4/truncl-ieee.m4: New file.
8404         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8405         m4/signbit.m4.
8406         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8407
8408 2010-12-25  Bruno Haible  <bruno@clisp.org>
8409
8410         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8411         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8412         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8413         test whether ceill works according to ISO C 99 with IEC 60559.
8414         * m4/ceill-ieee.m4: New file.
8415         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8416         m4/signbit.m4.
8417         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8418
8419 2010-12-25  Bruno Haible  <bruno@clisp.org>
8420
8421         Ensure all prerequisites of <wchar.h> are included.
8422         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8423         before <wchar.h>.
8424         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8425         gl_MBRLEN_NUL_RETVAL): Likewise.
8426         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8427         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8428         AC_FUNC_MBRTOWC): Likewise.
8429         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8430         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8431         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8432         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8433         Likewise.
8434         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8435         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8436         (gl_WCHAR_H): Improve comments.
8437         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8438
8439 2010-12-25  Bruno Haible  <bruno@clisp.org>
8440
8441         strtok_r: Fix C syntax error in autoconf macro.
8442         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8443         characters in test program.
8444
8445 2010-12-24  Bruno Haible  <bruno@clisp.org>
8446
8447         ceil, trunc, round: Fix gcc warnings.
8448         * lib/ceil.c (MIN): Undefine before redefining.
8449         * lib/trunc.c (MIN): Likewise.
8450         * lib/round.c (MIN): Likewise.
8451         Include <math.h> first.
8452
8453 2010-12-24  Bruno Haible  <bruno@clisp.org>
8454
8455         select tests: Avoid failures on OSF/1 5.1.
8456         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8457         failure of closing the last socket; it may fail with ECONNRESET.
8458
8459 2010-12-24  Eric Blake  <eblake@redhat.com>
8460
8461         stdint: avoid HP-UX 10.20 preprocessor bug
8462         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8463         than #if.
8464         * tests/test-floor2.c (main): Likewise.
8465         Reported by Peter O'Gorman.
8466
8467         pipe: make obsoletion transition easier
8468         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8469         * modules/pipe (Files): Include revived file.
8470         (Include): Drop reference, to mirror getdate's behavior.
8471
8472 2010-12-24  Bruno Haible  <bruno@clisp.org>
8473
8474         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8475         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8476         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8477         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8478
8479 2010-12-24  Bruno Haible  <bruno@clisp.org>
8480
8481         gethostname: Ensure declaration on NonStop Kernel.
8482         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8483         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8484
8485 2010-12-24  Bruno Haible  <bruno@clisp.org>
8486
8487         sys_select: Ensure all necessary types on NonStop Kernel.
8488         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8489         include <sys/time.h>.
8490         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8491         NonStop Kernel.
8492         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8493
8494 2010-12-24  Bruno Haible  <bruno@clisp.org>
8495
8496         sys_select: Remove unneeded include.
8497         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8498         have <sys/select.h>.
8499
8500 2010-12-24  Bruno Haible  <bruno@clisp.org>
8501
8502         gethostname: Provide a fallback for HOST_NAME_MAX.
8503         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8504         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8505         instead.
8506         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8507
8508 2010-12-24  Bruno Haible  <bruno@clisp.org>
8509
8510         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8511         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8512         (SA_RESTART): Likewise.
8513         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8514
8515 2010-12-24  Bruno Haible  <bruno@clisp.org>
8516
8517         signal: Define NSIG.
8518         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8519         * tests/test-signal.c (nsig): New variable.
8520         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8521
8522 2010-12-24  Bruno Haible  <bruno@clisp.org>
8523
8524         rename, renameat: Avoid test failures on OSF/1 5.1.
8525         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8526         alternative error codes.
8527         * tests/test-renameat.c (main): Likewise.
8528
8529 2010-12-24  Bruno Haible  <bruno@clisp.org>
8530
8531         *printf: Detect large precisions bug on Solaris 10/SPARC.
8532         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8533         by Paul Eggert.
8534         * tests/test-snprintf-posix.h (test_function): Add this test code here
8535         too.
8536         * tests/test-sprintf-posix.h (test_function): Likewise.
8537         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8538         * tests/test-vasprintf-posix.c (test_function): Likewise.
8539         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8540         around by gnulib.
8541         * doc/posix-functions/printf.texi: Likewise.
8542         * doc/posix-functions/snprintf.texi: Likewise.
8543         * doc/posix-functions/sprintf.texi: Likewise.
8544         * doc/posix-functions/vfprintf.texi: Likewise.
8545         * doc/posix-functions/vprintf.texi: Likewise.
8546         * doc/posix-functions/vsnprintf.texi: Likewise.
8547         * doc/posix-functions/vsprintf.texi: Likewise.
8548         * doc/posix-functions/dprintf.texi: Undo last commit.
8549         * doc/posix-functions/vdprintf.texi: Likewise.
8550
8551 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8552
8553         tests: port test-fdutimensat.c to Solaris 8
8554         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8555         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8556         On Solaris 8, it fails with errno == ENOSYS, because there is no
8557         futimens (so it can't use the fd), and there is no lutimens (so it
8558         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8559
8560         vsnprintf: make more consistent with snprintf; doc fixes
8561
8562         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8563         the byte count return problem was promoted from the snprintf-posix
8564         to the snprintf module.
8565         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8566         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8567         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8568         * tests/test-snprintf.c (main): Check the byte count returned.
8569         * tests/test-vsnprintf.c (main): Likewise.
8570
8571 2010-12-23  Eric Blake  <eblake@redhat.com>
8572
8573         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8574         * modules/sigpipe (License): Relax license.
8575
8576 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8577
8578         doc: document Solaris printf bug with large float precisions
8579         * doc/posix-functions/dprintf.texi (dprintf):
8580         * doc/posix-functions/fprintf.texi (fprintf):
8581         * doc/posix-functions/printf.texi (printf):
8582         * doc/posix-functions/snprintf.texi (snprintf):
8583         * doc/posix-functions/sprintf.texi (sprintf):
8584         * doc/posix-functions/vdprintf.texi (vdprintf):
8585         * doc/posix-functions/vfprintf.texi (vfprintf):
8586         * doc/posix-functions/vprintf.texi (vprintf):
8587         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8588         * doc/posix-functions/vsprintf.texi (vsprintf):
8589         Mention that these functions mishandle large floating point
8590         precisions on Solaris 10.  The same bug is also present in Solaris
8591         8, and I assume earlier.  This causes "cd gnulib-tests; make
8592         check" to fail on Solaris 8 (and I assume, later) when building
8593         the latest coreutils, in test-vasprintf-posix's call to
8594         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8595         the wide flavors (e.g., wprintf) so this patch just updates the
8596         documentation for the narrow ones.
8597
8598         test-posixtm.c: add two tests
8599         * tests/test-posixtm.c: Add two tests, to highlight the
8600         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8601         around this bug; this is merely to document it.
8602
8603 2010-12-22  Bruno Haible  <bruno@clisp.org>
8604
8605         getlogin_r: Work around portability problem on OSF/1.
8606         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8607         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8608         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8609         test for a truncated result.
8610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8611         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8612         * modules/getlogin_r (Depends-on): Add memchr.
8613         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8614
8615 2010-12-22  Bruno Haible  <bruno@clisp.org>
8616
8617         ptsname: Avoid test failure on OSF/1 5.1.
8618         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8619         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8620         (same_slave): New function.
8621         (main): Use it to compare ptsname's result with the expected file name.
8622
8623 2010-12-22  Bruno Haible  <bruno@clisp.org>
8624
8625         Port extended stdio modules to HP NonStop Kernel.
8626         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8627         macros.
8628         * lib/fbufmode.c: Update comments.
8629         * lib/fflush.c: Likewise.
8630         * lib/fpurge.c: Likewise.
8631         * lib/freadable.c: Likewise.
8632         * lib/freadahead.c: Likewise.
8633         * lib/freading.c: Likewise.
8634         * lib/freadptr.c: Likewise.
8635         * lib/freadseek.c: Likewise.
8636         * lib/fseeko.c: Likewise.
8637         * lib/fseterr.c: Likewise.
8638         * lib/fwritable.c: Likewise.
8639         * lib/fwriting.c: Likewise.
8640         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8641
8642 2010-12-22  Bruno Haible  <bruno@clisp.org>
8643
8644         ttyname_r: Work around bug on OSF/1 5.1.
8645         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8646         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8647         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8648         present.
8649         * lib/ttyname_r.c (ttyname_r): Update comments.
8650
8651 2010-12-22  Bruno Haible  <bruno@clisp.org>
8652
8653         round: Implement result sign according to IEEE 754.
8654         * lib/round.c (MIN, MINUS_ZERO): New macros.
8655         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8656         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8657         * tests/test-round-ieee.c (main): Likewise.
8658         * tests/test-roundl-ieee.c (main): Likewise.
8659
8660         trunc: Implement result sign according to IEEE 754.
8661         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8662         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8663         * tests/test-trunc2.c: Include minus-zero.h.
8664         (MINUS_ZERO): New macro.
8665         (trunc_reference): Keep in sync with lib/trunc.c.
8666         * tests/test-truncf2.c: Include minus-zero.h.
8667         (MINUS_ZERO): New macro.
8668         (truncf_reference): Keep in sync with lib/trunc.c.
8669         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8670         * tests/test-trunc-ieee.c (main): Likewise.
8671         * tests/test-truncl-ieee.c (main): Likewise.
8672
8673         ceil: Implement result sign according to IEEE 754.
8674         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8675         (FUNC): Return -0.0 for -1 < x < 0.
8676         * tests/test-ceil2.c: Include minus-zero.h.
8677         (MINUS_ZERO): New macro.
8678         (ceil_reference): Keep in sync with lib/ceil.c.
8679         * tests/test-ceilf2.c: Include minus-zero.h.
8680         (MINUS_ZERO): New macro.
8681         (ceilf_reference): Keep in sync with lib/ceil.c.
8682         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8683         * tests/test-ceil-ieee.c (main): Likewise.
8684         * tests/test-ceill-ieee.c (main): Likewise.
8685
8686         floor: Implement result sign according to IEEE 754.
8687         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8688         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8689         * tests/test-floorf2.c (floorf_reference): Likewise.
8690         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8691         * tests/test-floor-ieee.c (main): Likewise.
8692         * tests/test-floorl-ieee.c (main): Likewise.
8693
8694 2010-12-22  Bruno Haible  <bruno@clisp.org>
8695
8696         getaddrinfo: Update doc.
8697         * doc/posix-functions/gai_strerror.texi: Return type is also different
8698         on AIX and HP-UX.
8699
8700 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8701
8702         getaddrinfo, inet_ntop: Update doc for Solaris.
8703         * doc/posix-functions/gai_strerror.texi: Return type is also an
8704         issue on Solaris 9 and earlier.
8705         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8706         on Solaris 10 and earlier.
8707
8708 2010-12-21  Bruno Haible  <bruno@clisp.org>
8709
8710         New module 'roundl-ieee'.
8711         * modules/roundl-ieee: New file.
8712         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8713         test whether roundl works according to ISO C 99 with IEC 60559.
8714         * m4/roundl-ieee.m4: New file.
8715         * modules/roundl-ieee-tests: New file.
8716         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8717         * tests/test-roundl.c (main): Remove signbit tests.
8718         * modules/roundl-tests (Depends-on): Remove signbit.
8719         * doc/posix-functions/roundl.texi: Mention the new module.
8720
8721 2010-12-21  Bruno Haible  <bruno@clisp.org>
8722
8723         New module 'truncl-ieee'.
8724         * modules/truncl-ieee: New file.
8725         * modules/truncl-ieee-tests: New file.
8726         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8727         * tests/test-truncl.c (main): Remove signbit tests.
8728         * modules/truncl-tests (Depends-on): Remove signbit.
8729         * doc/posix-functions/truncl.texi: Mention the new module.
8730
8731 2010-12-21  Bruno Haible  <bruno@clisp.org>
8732
8733         New module 'ceill-ieee'.
8734         * modules/ceill-ieee: New file.
8735         * modules/ceill-ieee-tests: New file.
8736         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8737         * tests/test-ceill.c (main): Remove signbit tests.
8738         * modules/ceill-tests (Depends-on): Remove signbit.
8739         * doc/posix-functions/ceill.texi: Mention the new module.
8740
8741 2010-12-21  Bruno Haible  <bruno@clisp.org>
8742
8743         New module 'floorl-ieee'.
8744         * modules/floorl-ieee: New file.
8745         * modules/floorl-ieee-tests: New file.
8746         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8747         * tests/test-floorl.c (main): Remove signbit tests.
8748         * modules/floorl-tests (Depends-on): Remove signbit.
8749         * doc/posix-functions/floorl.texi: Mention the new module.
8750
8751 2010-12-21  Bruno Haible  <bruno@clisp.org>
8752
8753         New module 'round-ieee'.
8754         * modules/round-ieee: New file.
8755         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8756         whether round works according to ISO C 99 with IEC 60559.
8757         * m4/round-ieee.m4: New file.
8758         * modules/round-ieee-tests: New file.
8759         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8760         * tests/test-round1.c (main): Remove signbit tests.
8761         * modules/round-tests (Depends-on): Remove 'signbit'.
8762         * doc/posix-functions/round.texi: Mention the new module.
8763
8764 2010-12-21  Bruno Haible  <bruno@clisp.org>
8765
8766         New module 'trunc-ieee'.
8767         * modules/trunc-ieee: New file.
8768         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8769         whether trunc works according to ISO C 99 with IEC 60559.
8770         * m4/trunc-ieee.m4: New file.
8771         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8773         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8774         * modules/trunc-ieee-tests: New file.
8775         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8776         * tests/test-trunc1.c (main): Remove signbit tests.
8777         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8778         * doc/posix-functions/trunc.texi: Mention the new module.
8779
8780 2010-12-21  Bruno Haible  <bruno@clisp.org>
8781
8782         New module 'ceil-ieee'.
8783         * modules/ceil-ieee: New file.
8784         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8785         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8786         ISO C 99 with IEC 60559.
8787         * m4/ceil-ieee.m4: New file.
8788         * modules/ceil (Files): Add lib/ceil.c.
8789         (Depends-on): Add 'float'.
8790         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8791         * lib/math.in.h (ceil): New declaration.
8792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8793         REPLACE_CEIL.
8794         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8795         * modules/ceil-ieee-tests: New file.
8796         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8797         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8798         * doc/posix-functions/ceil.texi: Mention the new module.
8799
8800 2010-12-21  Bruno Haible  <bruno@clisp.org>
8801
8802         New module 'floor-ieee'.
8803         * modules/floor-ieee: New file.
8804         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8805         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8806         ISO C 99 with IEC 60559.
8807         * m4/floor-ieee.m4: New file.
8808         * modules/floor (Files): Add lib/floor.c.
8809         (Depends-on): Add 'float'.
8810         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8811         * lib/math.in.h (floor): New declaration.
8812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8813         REPLACE_FLOOR.
8814         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8815         * modules/floor-ieee-tests: New file.
8816         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8817         * tests/test-math-c++.cc: Check the signature of 'floor'.
8818         * doc/posix-functions/floor.texi: Mention the new module.
8819
8820 2010-12-21  Bruno Haible  <bruno@clisp.org>
8821
8822         New module 'roundf-ieee'.
8823         * modules/roundf-ieee: New file.
8824         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8825         test whether roundf works according to ISO C 99 with IEC 60559.
8826         * m4/roundf-ieee.m4: New file.
8827         * modules/roundf-ieee-tests: New file.
8828         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8829         * tests/test-roundf1.c (main): Remove signbit tests.
8830         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8831         * doc/posix-functions/roundf.texi: Mention the new module.
8832
8833 2010-12-21  Bruno Haible  <bruno@clisp.org>
8834
8835         New module 'truncf-ieee'.
8836         * modules/truncf-ieee: New file.
8837         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8838         test whether truncf works according to ISO C 99 with IEC 60559.
8839         * m4/truncf-ieee.m4: New file.
8840         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8842         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8843         * modules/truncf-ieee-tests: New file.
8844         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8845         * tests/test-truncf1.c (main): Remove signbit tests.
8846         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8847         * doc/posix-functions/truncf.texi: Mention the new module.
8848
8849 2010-12-21  Bruno Haible  <bruno@clisp.org>
8850
8851         New module 'ceilf-ieee'.
8852         * modules/ceilf-ieee: New file.
8853         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8854         test whether ceilf works according to ISO C 99 with IEC 60559.
8855         * m4/ceilf-ieee.m4: New file.
8856         * modules/ceilf-ieee-tests: New file.
8857         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8858         * tests/test-ceilf1.c (main): Remove signbit tests.
8859         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8860         * doc/posix-functions/ceilf.texi: Mention the new module.
8861
8862 2010-12-21  Bruno Haible  <bruno@clisp.org>
8863
8864         New module 'floorf-ieee'.
8865         * modules/floorf-ieee: New file.
8866         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8867         test whether floorf works according to ISO C 99 with IEC 60559.
8868         * m4/floorf-ieee.m4: New file.
8869         * modules/floorf-ieee-tests: New file.
8870         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8871         * tests/test-floorf1.c (main): Remove signbit tests.
8872         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8873         * doc/posix-functions/floorf.texi: Mention the new module.
8874
8875 2010-12-21  Bruno Haible  <bruno@clisp.org>
8876
8877         Support for minus zero in autoconf macros.
8878         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8879         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8880         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8881         * tests/minus-zero.h: Update comments.
8882
8883 2010-12-21  Bruno Haible  <bruno@clisp.org>
8884
8885         Tests for module 'ceil'.
8886         * modules/ceil-tests: New file.
8887         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8888         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8889
8890 2010-12-21  Bruno Haible  <bruno@clisp.org>
8891
8892         Tests for module 'floor'.
8893         * modules/floor-tests: New file.
8894         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8895         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8896
8897 2010-12-21  Bruno Haible  <bruno@clisp.org>
8898
8899         math: Fix indentation.
8900         * lib/math.in.h (floorf): Fix indentation.
8901
8902 2010-12-21  Bruno Haible  <bruno@clisp.org>
8903
8904         Fix cross-compilation guesses on Solaris.
8905         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8906         not match "solaris2.10".
8907         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8908         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8909         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8910
8911 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8912
8913         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8914         This fixes a problem observed with the latest coreutils snapshot
8915         that caused a test to fail on Solaris 8.  src/csplit.c's call
8916         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8917         earlier, instead of returning the number of bytes that would have
8918         been generated; this causes csplit to incorrectly report memory
8919         exhaustion.
8920         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8921         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8922         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8923         comments to match.
8924         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8925         Fix typo in matching older versions of Solaris: "solaris2.10"
8926         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8927         only for guessing while cross-compiling.
8928         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8929
8930 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8931
8932         ftoastr: fix comment again
8933         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8934         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8935         Also, simplify example a bit by using flags = 0.
8936
8937 2010-12-20  Bruno Haible  <bruno@clisp.org>
8938
8939         round*, trunc*: Update documentation regarding glibc.
8940         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8941         * doc/posix-functions/round.texi: Likewise.
8942         * doc/posix-functions/roundl.texi: Likewise.
8943         * doc/posix-functions/truncf.texi: Likewise.
8944         * doc/posix-functions/trunc.texi: Likewise.
8945         * doc/posix-functions/truncl.texi: Likewise.
8946
8947 2010-12-20  Bruno Haible  <bruno@clisp.org>
8948
8949         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8950         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8951         * doc/posix-functions/round.texi: Likewise.
8952         * doc/posix-functions/roundl.texi: Likewise.
8953
8954 2010-12-20  Bruno Haible  <bruno@clisp.org>
8955
8956         ttyname_r: Add missing declaration on HP-UX 11.
8957         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8958         HAVE_TTYNAME_R.
8959         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8960         declared. Set HAVE_TTYNAME_R always.
8961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8962         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8963         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8964         HAVE_TTYNAME_R.
8965         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8966
8967 2010-12-20  Bruno Haible  <bruno@clisp.org>
8968
8969         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8970         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8971         * doc/posix-functions/getlogin_r.texi: Likewise.
8972         * tests/test-getlogin.c: Include <errno.h>.
8973         (main): Avoid test failure on HP-UX 11.11.
8974         * tests/test-getlogin_r.c (main): Likewise.
8975
8976 2010-12-20  Bruno Haible  <bruno@clisp.org>
8977
8978         getlogin_r: Add missing declaration on HP-UX 11.
8979         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8980         declared also when it exists as a function.
8981         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8982
8983 2010-12-20  Bruno Haible  <bruno@clisp.org>
8984
8985         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8986         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8987         through wcrtomb.
8988
8989 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8990
8991         ftoastr: fix comment
8992         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8993         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8994
8995 2010-12-19  Bruno Haible  <bruno@clisp.org>
8996
8997         isnan: Ensure it is a macro.
8998         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8999         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9000         Solaris.
9001
9002 2010-12-19  Bruno Haible  <bruno@clisp.org>
9003
9004         ldexpl test: Fix link error on OSF/1 5.1.
9005         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9006
9007 2010-12-19  Bruno Haible  <bruno@clisp.org>
9008
9009         wctype: Make it work in C++ mode on OSF/1 5.1.
9010         * lib/wctype.in.h (iswblank): Declare but not define here.
9011         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9012         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9013         * modules/wctype (Files): Add lib/iswblank.c.
9014
9015 2010-12-19  Bruno Haible  <bruno@clisp.org>
9016
9017         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9018         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9019         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9020
9021 2010-12-19  Bruno Haible  <bruno@clisp.org>
9022
9023         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9024         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9025         _POSIX_PII_SOCKET.
9026         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9027         * doc/posix-functions/recvfrom.texi: Likewise.
9028         * doc/posix-functions/send.texi: Likewise.
9029         * doc/posix-functions/sendto.texi: Likewise.
9030
9031 2010-12-19  Bruno Haible  <bruno@clisp.org>
9032
9033         tcgetsid: Add missing declaration on OSF/1 5.1.
9034         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9035         HAVE_TCGETSID.
9036         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9037         Don't set HAVE_TCGETSID.
9038         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9039         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9040         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9041         HAVE_TCGETSID.
9042         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9043
9044 2010-12-19  Bruno Haible  <bruno@clisp.org>
9045
9046         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9047         * lib/stdio.in.h: During the include_next statement, let recursive
9048         includes of this file include only the system header file.
9049
9050 2010-12-19  Bruno Haible  <bruno@clisp.org>
9051
9052         iconv_open: Fix regression from 2010-12-04.
9053         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9054         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9055
9056 2010-12-19  Bruno Haible  <bruno@clisp.org>
9057
9058         stdbool test: Avoid a gcc warning.
9059         * tests/test-stdbool.c (main): Fail if e1 is false.
9060         Reported by Jim Meyering.
9061
9062 2010-12-19  Jim Meyering  <meyering@redhat.com>
9063
9064         setenv: restore to working order
9065         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9066         mistakenly removed.
9067         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9068         HAVE_SETENV.
9069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9070         HAVE_SETENV.
9071
9072 2010-12-19  Bruno Haible  <bruno@clisp.org>
9073
9074         Document some different function declarations on OSF/1 5.1.
9075         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9076         * doc/posix-functions/inet_ntop.texi: Likewise.
9077         * doc/posix-functions/gethostname.texi: Likewise.
9078         * lib/unistd.in.h (gethostname): Update comment.
9079
9080 2010-12-19  Bruno Haible  <bruno@clisp.org>
9081
9082         doc: Mention vasprintf-posix module.
9083         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9084         the 'vasprintf-posix' module.
9085         * doc/glibc-functions/vasprintf.texi: Likewise.
9086
9087 2010-12-19  Bruno Haible  <bruno@clisp.org>
9088
9089         unsetenv: Add missing declaration on OSF/1 5.1.
9090         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9091         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9092         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9094         not HAVE_UNSETENV.
9095         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9096         HAVE_UNSETENV.
9097         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9098
9099 2010-12-19  Bruno Haible  <bruno@clisp.org>
9100
9101         setenv: Add missing declaration on OSF/1 5.1.
9102         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9103         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9104         declared. Don't set HAVE_SETENV.
9105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9106         not HAVE_SETENV.
9107         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9108         HAVE_SETENV.
9109         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9110
9111 2010-12-19  Bruno Haible  <bruno@clisp.org>
9112
9113         nl_langinfo tests: Avoid gcc warning.
9114         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9115
9116 2010-12-19  Bruno Haible  <bruno@clisp.org>
9117
9118         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9119         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9120         _GL_CXXALIAS_SYS.
9121
9122 2010-12-19  Bruno Haible  <bruno@clisp.org>
9123
9124         stdbool: Relax test.
9125         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9126         address to 'bool' work in static initializer, for compilers other than
9127         GCC.
9128
9129 2010-12-19  Bruno Haible  <bruno@clisp.org>
9130
9131         ftello: Add missing declaration on OSF/1 5.1.
9132         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9133         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9135         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9136         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9137
9138 2010-12-19  Bruno Haible  <bruno@clisp.org>
9139
9140         fseeko: Add missing declaration on OSF/1 5.1.
9141         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9142         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9144         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9145         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9146
9147 2010-12-19  Bruno Haible  <bruno@clisp.org>
9148
9149         fchdir: Add missing declaration on OSF/1 5.1.
9150         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9153         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9154         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9155
9156 2010-12-19  Bruno Haible  <bruno@clisp.org>
9157
9158         relocatable-prog-wrapper: Separate from relocatable-prog.
9159         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9160         uninstall-relocwrapper rule here.
9161         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9162         Reported by Ian Beckwith <ianb@erislabs.net>.
9163
9164 2010-12-19  Bruno Haible  <bruno@clisp.org>
9165
9166         unistr/u8-mbsnlen: Add missing dependency.
9167         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9168         Reported by Ian Beckwith <ianb@erislabs.net>.
9169
9170 2010-12-19  Bruno Haible  <bruno@clisp.org>
9171
9172         iconv: Make it possible again to use this module without 'iconv-h'.
9173         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9174         if it is not defined.
9175         Reported by Ian Beckwith <ianb@erislabs.net>.
9176
9177 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9178
9179         acl: port to Solaris 8 when copying from tmpfs to ufs
9180         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9181         error number.  Problem observed on Solaris 8 with latest
9182         coreutils, with "mv A B", where A is on a tmpfs file system and B
9183         is on a ufs file system.  This caused coreutils' mv/part-symlink
9184         test to fail.
9185
9186         tests: set fail=0 at start
9187         * tests/init.sh (setup_): Move fail=0 initialization here ...
9188         (mktempd_): ... from here, so that tests can rely on fail being
9189         set to 0 initially.  This fixes a problem in coreutils; see:
9190         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9191
9192 2010-12-18  Bruno Haible  <bruno@clisp.org>
9193
9194         memmem-simple: Stylistic changes.
9195         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9196         Fix preprocessor directive indentation.
9197
9198 2010-12-15  Pádraig Brady <P@draigBrady.com>
9199
9200         memmem, memmem-simple: reorganize and expand empty needle check
9201         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
9202         functional checks to memmem-simple so that one has a fully functional
9203         memmem by using just this module.
9204         Restrict the performance only check to the memmem module.
9205         Also expand the empty needle check to ensure the correct
9206         pointer is returned, not just a non NULL pointer.
9207         * doc/glibc-functions/memmem.texi: Rearrange the portability
9208         documentation to correlate with the rearranged checks.
9209         Clarify exactly how the memmem and memmem-simple modules
9210         relate to each other.
9211
9212 2010-12-15  Pádraig Brady <P@draigBrady.com>
9213             Bruno Haible  <bruno@clisp.org>
9214
9215         Improve cross-compilation guesses for uClibc.
9216         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
9217         that uClibc does not have the glibc bug.
9218         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
9219         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
9220
9221 2010-12-14  Eric Blake  <eblake@redhat.com>
9222
9223         configmake: provide fallbacks for oldest supported autotools
9224         * m4/configmake.m4: New file.
9225         * modules/configmake (Files): Ship it.
9226         (configure.ac): Use it to guarantee fallbacks.
9227
9228 2010-12-13  Pádraig Brady <P@draigBrady.com>
9229
9230         read-file: Improve handling of large files
9231         * lib/read-file.c (fread_file): Minimize realloc()s
9232         for regular files, and better manage sizes around SIZE_MAX.
9233
9234 2010-12-13  Eric Blake  <eblake@redhat.com>
9235
9236         cloexec, fcntl: relax license
9237         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
9238         consent from all contributors.
9239         * modules/fcntl (License): Likewise.
9240
9241 2010-12-10  Bruno Haible  <bruno@clisp.org>
9242
9243         Tests for module 'pipe-posix'.
9244         * modules/pipe-posix-tests: New file.
9245         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
9246
9247 2010-12-10  Bruno Haible  <bruno@clisp.org>
9248
9249         pipe-posix: Make it work in C++ mode.
9250         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
9251         (pipe): Use common idiom, not a macro definition.
9252         * lib/pipe.c: New file.
9253         * m4/pipe.m4: New file.
9254         * modules/pipe-posix (Description): Enhance.
9255         (Files): Add lib/pipe.c, m4/pipe.m4.
9256         (configure.ac): Invoke gl_FUNC_PIPE.
9257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
9258         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
9259         * tests/test-unistd-c++.cc: Check the signature of pipe.
9260
9261 2010-12-10  Bruno Haible  <bruno@clisp.org>
9262
9263         Rename module 'pipe' to 'spawn-pipe'.
9264         * modules/spawn-pipe: New file, renamed from modules/pipe.
9265         (Files, configure.ac, Makefile.am): Update.
9266         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
9267         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
9268         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
9269         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
9270         "spawn-pipe.h" instead of "pipe.h".
9271         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
9272         to gl_SPAWN_PIPE.
9273         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9274         (Files, Makefile.am): Update.
9275         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9276         Update.
9277         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9278         Include "spawn-pipe.h" instead of "pipe.h".
9279         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9280         * lib/javacomp.c: Likewise.
9281         * lib/javaversion.c: Likewise.
9282         * lib/pipe-filter-gi.c: Likewise.
9283         * lib/pipe-filter-ii.c: Likewise.
9284         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9285         * modules/javacomp (Depends-on): Likewise.
9286         * modules/javaversion (Depends-on): Likewise.
9287         * modules/pipe-filter-gi (Depends-on): Likewise.
9288         * modules/pipe-filter-ii (Depends-on): Likewise.
9289         * MODULES.html.sh (Executing programs): Update.
9290         * NEWS: Mention the change.
9291
9292 2010-12-10  Eric Blake  <eblake@redhat.com>
9293
9294         pipe-posix: new module
9295         * modules/pipe-posix: New file.
9296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9297         (gl_UNISTD_H): Check for declaration.
9298         * modules/unistd (Makefile.am): Substitute it.
9299         * lib/unistd.in.h (pipe): Provide it for mingw.
9300         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9301         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9302
9303 2010-12-07  Bruno Haible  <bruno@clisp.org>
9304
9305         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9306         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9307         u8_strcmp_gnu.
9308         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9309
9310 2010-12-06  Bruno Haible  <bruno@clisp.org>
9311
9312         Update internal documentation.
9313         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9314
9315 2010-12-04  Bruno Haible  <bruno@clisp.org>
9316
9317         Put more information about failed tests into the test return codes.
9318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
9319         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
9320         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9321         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9322         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9323         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9324         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9325         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9326         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
9327         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9328         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
9329         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9330         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9331         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9332         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
9333         returns a bit mask.
9334         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9335         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
9336         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9337         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
9338         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9339         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9341         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9342         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9343         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9344         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9345         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9346         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9347         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9348         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9349         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9350         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
9351         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
9352         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9353         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
9354         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9355         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9356         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9357         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9358         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9359         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9360         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
9361         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9362         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9363         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
9364         gl_PRINTF_PRECISION): Likewise.
9365         * m4/regex.m4 (gl_REGEX): Likewise.
9366         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9367         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9368         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
9369         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9372         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9373         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
9374         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9375         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9376         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9377         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9378         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9379         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9380         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9381         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9382         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9383         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9385         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9386         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9387         enumerated value.
9388         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9389
9390 2010-12-04  Bruno Haible  <bruno@clisp.org>
9391
9392         Update for Solaris 11 2010-11.
9393         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9394         Express, released in November 2010.
9395
9396 2010-12-04  Bruno Haible  <bruno@clisp.org>
9397
9398         nproc: Relax license.
9399         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9400         and Paul Eggert.
9401         Requested by Ludovic Courtès <ludo@gnu.org>.
9402
9403 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9404
9405         utimecmp: fine-grained src to nearby coarse-grained dest
9406
9407         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9408         and the source is on a file system with higher-resolution time
9409         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9410         not work, and the time stamps are close together, the algorithm to
9411         determine the exact resolution from the read-back mtime was buggy:
9412         it had a "!=" where it should have had an "==".  This bug has been
9413         in the code ever since it was introduced to gnulib.
9414         Problem reported by Dan Jacobson in
9415         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9416
9417 2010-11-30  Bruno Haible  <bruno@clisp.org>
9418
9419         strerror_r-posix: Fix autoconf test.
9420         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9421
9422 2010-11-28  Bruno Haible  <bruno@clisp.org>
9423             Paul Eggert  <eggert@cs.ucla.edu>
9424
9425         Tests for module 'getdomainname'.
9426         * modules/getdomainname-tests: New file.
9427         * tests/test-getdomainname.c: New file, based on
9428         tests/test-gethostname.c.
9429
9430 2010-11-28  Bruno Haible  <bruno@clisp.org>
9431             Paul Eggert  <eggert@cs.ucla.edu>
9432
9433         getdomainname: Use the system function when possible.
9434         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9435         (getdomainname): Replace if needed. Provide the declaration if it is
9436         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9437         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9438         (getdomainname): When the system has getdomainname, call the system
9439         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9440         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9441         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9442         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9443         the function if its second argument is of type 'int' or if it is found
9444         in libnsl.
9445         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9446         <sys/systeminfo.h> and sysinfo().
9447         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9449         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9450         HAVE_GETDOMAINNAME.
9451         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9452         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9453         * doc/glibc-functions/getdomainname.texi: Document the problems with
9454         the getdomainname declaration.
9455
9456 2010-11-28  Bruno Haible  <bruno@clisp.org>
9457
9458         sys_socket: Ensure ss_family field on AIX.
9459         * lib/sys_socket.in.h (ss_family): New macro definition.
9460         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9461         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9462         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9463         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9464         * modules/sys_socket (Makefile.am): Substitute
9465         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9466         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9467
9468 2010-11-27  Bruno Haible  <bruno@clisp.org>
9469
9470         readline: Improve configure output.
9471         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9472         "checking for readline..." result understandable.
9473
9474 2010-11-27  Bruno Haible  <bruno@clisp.org>
9475
9476         *printf-posix: Detect a bug on Solaris 10/x86.
9477         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9478         for floating-point output.
9479         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9480         directive.
9481         * tests/test-snprintf-posix.h (test_function): Likewise.
9482         * tests/test-sprintf-posix.h (test_function): Likewise.
9483         * tests/test-vasprintf-posix.c (test_function): Likewise.
9484         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9485         * doc/posix-functions/printf.texi: Likewise.
9486         * doc/posix-functions/snprintf.texi: Likewise.
9487         * doc/posix-functions/sprintf.texi: Likewise.
9488         * doc/posix-functions/vfprintf.texi: Likewise.
9489         * doc/posix-functions/vprintf.texi: Likewise.
9490         * doc/posix-functions/vsnprintf.texi: Likewise.
9491         * doc/posix-functions/vsprintf.texi: Likewise.
9492         * doc/glibc-functions/obstack_printf.texi: Likewise.
9493         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9494
9495 2010-11-27  Bruno Haible  <bruno@clisp.org>
9496
9497         Fix link error when module libunistring-optional is in use.
9498         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9499         * modules/striconveha-tests (Makefile.am): Likewise.
9500
9501 2010-11-27  Bruno Haible  <bruno@clisp.org>
9502
9503         regex: Mention link dependencies.
9504         * modules/regex (Link): New section.
9505         * modules/rpmatch (Link): Likewise.
9506         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9507
9508 2010-11-27  Bruno Haible  <bruno@clisp.org>
9509
9510         ftoastr: Fix compilation error on Solaris.
9511         * lib/ftoastr.c: Include <config.h>.
9512
9513 2010-11-27  Bruno Haible  <bruno@clisp.org>
9514
9515         getloadavg: Update documentation.
9516         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9517
9518 2010-11-27  Bruno Haible  <bruno@clisp.org>
9519
9520         sys_socket: Fix test whether the functions are declared.
9521         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9522         not <sys/select.h>.
9523
9524 2010-11-27  Bruno Haible  <bruno@clisp.org>
9525
9526         getpass: Make sure to get system declaration on some platforms.
9527         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9528         gl_USE_SYSTEM_EXTENSIONS.
9529         * modules/getpass (Depends-on): Add extensions.
9530
9531 2010-11-26  Bruno Haible  <bruno@clisp.org>
9532
9533         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9534         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9535         'iconv' module is present.
9536         (ICONV_CONST): New macro.
9537         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9538         ICONV_CONST.
9539         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9540         set ICONV_CONST.
9541         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9542         here.
9543         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9544         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9545         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9546         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9547         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9548         present.
9549
9550 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9551
9552         ftoastr: comment fix
9553         * lib/ftoastr.c: "little" -> "little or no" in comment
9554
9555 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9556
9557         stdint: port to GCC 4.3 + OSX + Octave
9558         On this platform, stdint.h is buggy and defines int64_t to long
9559         long int.  The replacement defined it to long int, causing
9560         problems with C++ style name mangling.  Instead, trust the system
9561         definition if INT64_MAX is defined, and likewise for the unsigned
9562         variant.   Problem reported by Jarno Rajahalme in
9563         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9564         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9565         and don't mess with int64_t and INT64_MAX in this case.
9566         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9567
9568 2010-11-24  Bruno Haible  <bruno@clisp.org>
9569
9570         doc: Corrections regarding MacOS X 10.4 and 10.5.
9571         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9572         MacOS X.
9573         Reported by Simon Josefsson.
9574
9575 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9576
9577         Uninstall ".bin" files installed by relocwrapper.
9578         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9579         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9580         unless it is already there.
9581
9582 2010-11-21  Bruno Haible  <bruno@clisp.org>
9583
9584         Update for NetBSD 5.0.
9585         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9586         NetBSD; the test fails on NetBSD 5.0.
9587         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9588         about NetBSD.
9589
9590 2010-11-21  Bruno Haible  <bruno@clisp.org>
9591
9592         Update for HP-UX 11.23 and HP-UX 11.31.
9593         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9594         HP-UX.
9595
9596 2010-11-21  Bruno Haible  <bruno@clisp.org>
9597
9598         Update for MacOS X 10.5.
9599         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9600         MacOS X; the test fails on MacOS X 10.5.8.
9601         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9602         about MacOS X.
9603
9604 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9605
9606         bootstrap: add bootstrap_sync option.
9607         See discussion at
9608         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9610         * build-aux/bootstrap: Accept --bootstrap-sync to update
9611         bootstrap if it is not identical to the local gnulib's
9612         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9613         enable this by default.  Accept --no-bootstrap-sync to disable
9614         it.
9615
9616 2010-11-20  Bruno Haible  <bruno@clisp.org>
9617
9618         Ensure that <features.h> is included before __GLIBC__ is tested.
9619         * lib/printf-parse.h: Include <features.h>.
9620         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9621         Reported by Mike Frysinger <vapier@gentoo.org>.
9622
9623         Ensure that <features.h> is included before __GLIBC__ is tested.
9624         * lib/wchar.in.h: Include <features.h>.
9625         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9626         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9627         Reported by Mike Frysinger <vapier@gentoo.org>.
9628
9629         Ensure that <features.h> is included before __GLIBC__ is tested.
9630         * lib/arpa_inet.in.h: Include <features.h>.
9631         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9632         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9633         Reported by Mike Frysinger <vapier@gentoo.org>.
9634
9635         Ensure that <features.h> is included before __GLIBC__ is tested.
9636         * build-aux/link-warning.h: Include <features.h>.
9637         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9638         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9639         Reported by Mike Frysinger <vapier@gentoo.org>.
9640
9641         Ensure that <features.h> is included before __GLIBC__ is tested.
9642         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9643         Reported by Mike Frysinger <vapier@gentoo.org>.
9644
9645 2010-11-20  Bruno Haible  <bruno@clisp.org>
9646
9647         memmem: Fix autoconf test.
9648         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9649
9650 2010-11-20  Bruno Haible  <bruno@clisp.org>
9651
9652         Port to uClibc.
9653         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9654         * lib/fcntl.in.h: Likewise.
9655         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9656         * lib/mbrtowc.c (mbrtowc): Likewise.
9657         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9658         * lib/strerror_r.c: Likewise.
9659         * lib/unistr/u8-strnlen.c: Likewise.
9660         * lib/vasnprintf.c (decimal_point_char): Likewise.
9661         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9662         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9663         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9664         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9665         * tests/test-sigaction.c (handler, main): Likewise.
9666         * lib/freading.h: Treat uClibc like a non-glibc platform.
9667         * lib/freading.c: Likewise.
9668         * lib/gettext.h: Likewise.
9669         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9670         Likewise.
9671         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9672         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9673         * lib/propername.c (proper_name_utf8): Likewise.
9674         * lib/spawn.in.h: Likewise.
9675         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9676         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9677         mem_cd_iconveh_internal): Likewise.
9678         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9679         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9680         strstr, strcasestr): Likewise.
9681         * lib/unicodeio.c (unicode_to_mb): Likewise.
9682         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9683         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9684         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9685         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9686         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9687         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9688         * lib/unistr/u8-stpncpy.c: Likewise.
9689         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9690         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9691         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9692         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9693         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9694         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9695         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9696         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9697         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9698         Likewise.
9699         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9700         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9701         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9702         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9703         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9704         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9705         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9706         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9707         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9708         * tests/test-striconveha.c (main): Likewise.
9709         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9710         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9711         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9712         * doc/posix-functions/getline.texi: Likewise.
9713         Reported by Mike Frysinger <vapier@gentoo.org>.
9714
9715 2010-11-20  Bruno Haible  <bruno@clisp.org>
9716
9717         nproc: Fix condition.
9718         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9719         HAVE_PTHREAD_AFFINITY_NP.
9720
9721 2010-11-20  Bruno Haible  <bruno@clisp.org>
9722
9723         Fix a comment.
9724         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9725
9726 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9727
9728         ftoastr: don't assume snprintf
9729         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9730         Implement a subset of snprintf here, by using sprintf safely.
9731         * modules/ftoastr (Depends-on): Remove snprintf.
9732
9733 2010-11-19  Jim Meyering  <meyering@redhat.com>
9734
9735         test-rename.h: fix compilation failure
9736         * tests/test-rename.h (test_rename): Add omitted "}".
9737
9738 2010-11-17  Jim Meyering  <meyering@redhat.com>
9739
9740         maint.mk: add a URL discussing the no-@acronym policy
9741         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9742
9743 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9744
9745         ftoastr: depend on snprintf, improve comments
9746         * lib/ftoastr.c: Also mention Loitsch's draft.
9747         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9748         needed in the current implementation, but it might simplify
9749         speeding up the code later.
9750         * modules/ftoastr: Depend on snprintf; this improves portability.
9751         Suggested by Bruno Haible in the same email.
9752
9753         ftoastr: port to hosts lacking strtof and strtold
9754         Problem reported by Bruno Haible in
9755         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9756         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9757         environment and strtold (and presumably strtof) are not available.
9758         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9759         (configure.ac): Require gl_C99_STRTOLD.
9760
9761 2010-11-18  Bruno Haible  <bruno@clisp.org>
9762
9763         c-strtold: Avoid link error on AIX 7.
9764         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9765         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9766         (gl_C_STRTOLD): Test whether strtold_l exists.
9767         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9768
9769 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9770
9771         intprops: new macro INT_BITS_STRLEN_BOUND
9772         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9773         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9774         not exposed.  Also, it uses a slightly tighter bound than before;
9775         though this makes no practical difference, we might as well be as
9776         tight as we easily can.
9777
9778         ftoastr: new module, for lossless conversion of floats to short strings
9779         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9780         * modules/ftoastr: New files.
9781
9782 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9783
9784         bootstrap: port to Solaris sed
9785         * build-aux/bootstrap (get_version): Port to Solaris sed.
9786         See Ralf Wildenhues's note in
9787         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9788
9789 2010-11-14  Jim Meyering  <meyering@redhat.com>
9790
9791         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9792         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9793         and move definition closer to sole use.
9794
9795 2010-11-13  Jim Meyering  <meyering@redhat.com>
9796
9797         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9798         Now we require at least autoconf-2.59, which means the work-around
9799         is no longer needed.
9800         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9801         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9802         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9803         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9804         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9805
9806 2010-11-13  Bruno Haible  <bruno@clisp.org>
9807
9808         rename, renameat: Avoid test failures at NFS mounted locations.
9809         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9810         functions.
9811         (test_rename): Use assert_nonexistent.
9812         * tests/test-rename.c: Include <dirent.h>.
9813         * tests/test-renameat.c: Likewise.
9814         Reported by Gary V. Vaughan <gary@gnu.org>.
9815
9816         rename, renameat: Document Linux bug with NFS
9817         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9818         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9819         * doc/posix-functions/renameat.texi: Likewise.
9820         Suggested by Eric Blake.
9821
9822 2010-11-13  Bruno Haible  <bruno@clisp.org>
9823
9824         rename test: Add comments.
9825         * tests/test-rename.h (test_rename): Add structure and comments.
9826
9827 2010-11-13  Eric Blake  <eblake@redhat.com>
9828
9829         maintainer-makefile: cover a few more files
9830         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9831         scripts generated within C files, for libvirt.
9832
9833 2010-11-13  Bruno Haible  <bruno@clisp.org>
9834
9835         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9836         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9837         character, return the number of bytes that belong together, not always
9838         1.
9839         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9840         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9841         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9842         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9843         number of bytes of an invalid character.
9844         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9845         (main): Invoke it.
9846         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9847         results.
9848         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9849         malformed byte sequences.
9850         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9851         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9852         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9853         Reported by Ben Pfaff and Paolo Bonzini.
9854
9855 2010-11-13  Bruno Haible  <bruno@clisp.org>
9856
9857         openat: Work around glibc bug with fchownat() and empty file names.
9858         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9859         (gl_FUNC_FCHOWNAT): Invoke it.
9860         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9861         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9862         Reported by Gary V. Vaughan <gary@gnu.org>.
9863
9864 2010-11-13  Bruno Haible  <bruno@clisp.org>
9865
9866         openat: Ensure autoconf macro ordering.
9867         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9868         gl_USE_SYSTEM_EXTENSIONS.
9869         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9870
9871 2010-11-13  Bruno Haible  <bruno@clisp.org>
9872
9873         Update comments.
9874         * lib/unistr/u8-check.c: Update file name in comments.
9875         * lib/unistr/u8-mblen.c: Likewise.
9876         * lib/unistr/u8-prev.c: Likewise.
9877         * lib/unistr/u8-strmblen.c: Likewise.
9878         * lib/unistr/u8-strmbtouc.c: Likewise.
9879
9880 2010-11-13  Jim Meyering  <meyering@redhat.com>
9881
9882         tests: avoid test failure on Solaris 10 due to lack of PATH export
9883         * tests/test-update-copyright.sh: Don't forget to export PATH.
9884
9885         init.sh: ensure that IFS is defined, just in case...
9886         * tests/init.sh (setup_): Ensure that IFS is defined,
9887         so that saving and restoring it works as expected.  This
9888         appears to be useful at least for an old version of dash
9889         from a long time ago (RH 6).  See here for details:
9890         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9891
9892         maint.mk: tighten "test a == b" check
9893         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9894         test to files that contain something like #!/bin/sh.
9895         Without this, coreutils would get two false positives in
9896         the comments of C source files.
9897
9898 2010-11-12  Eric Blake  <eblake@redhat.com>
9899
9900         bootstrap: fix typo in previous attempt
9901         * build-aux/bootstrap (buildreq): Correct the grouping.
9902         Reported by Paul Eggert.
9903
9904         maintainer-makefile: prohibit test x == x
9905         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9906         Based on a report by Matthias Bolte.
9907
9908         bootstrap: allow FreeBSD gzip
9909         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9910         which has no '.' and goes to stderr.
9911         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9912         Reported by Matthias Bolte.
9913
9914         maintainer-makefile: check for i18n setup
9915         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9916         will likely work.
9917
9918 2010-11-12  Bruno Haible  <bruno@clisp.org>
9919
9920         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9921         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9922         * lib/nanosleep.c (nanosleep): Likewise.
9923
9924 2010-11-11  Bruno Haible  <bruno@clisp.org>
9925
9926         fcntl-h: Fix for use of C++ on glibc systems.
9927         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9928         also on glibc systems in C++ mode.
9929         Reported by Gary V. Vaughan <gary@gnu.org>.
9930
9931 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9932
9933         mknod: avoid false failure with dash
9934         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9935
9936 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9937
9938         unlink: Fix "is it should" typo in diagnostic.
9939         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9940         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9941
9942 2010-11-11  Bruno Haible  <bruno@clisp.org>
9943
9944         Tests for module 'strerror_r-posix'.
9945         * modules/strerror_r-posix-tests: New file.
9946         * tests/test-strerror_r.c: New file.
9947         * tests/test-string-c++.cc: Check the signature of strerror_r.
9948
9949         New module 'strerror_r-posix'.
9950         * lib/string.in.h (strerror_r): New declaration.
9951         * lib/strerror_r.c: New file.
9952         * m4/strerror_r.m4: New file.
9953         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9954         of strerror_r.
9955         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9956         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9957         * modules/strerror_r-posix: New file.
9958         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9959         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9960         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9961         portability problems.
9962
9963 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9964
9965         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9966         line is also considered for output. Quoted function name in shell
9967         command, so temporary files for functions like MyClass::operator()
9968         are removed correctly without errors.
9969
9970 2010-11-09  Bruno Haible  <bruno@clisp.org>
9971
9972         * doc/posix-functions/strerror.texi: List more failing platforms.
9973
9974         * doc/posix-functions/strerror.texi: Add a comment.
9975
9976 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9977
9978         fdopendir: fix bug on MacOS X when low on file descriptors
9979
9980         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9981         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9982         All callers changed.
9983         (fdopendir): Invoke save_cwd at the top level, not after using
9984         multiple dup() calls to use up file descriptors.  Then retry
9985         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9986         less than the maximum number of open file descriptors, because
9987         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9988         on Mac OS X 10.6.4 for tar 1.24
9989         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9990         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9991         and for tar 1.25
9992         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9993
9994 2010-11-07  Bruno Haible  <bruno@clisp.org>
9995
9996         vasnprintf: Support I flag on glibc systems.
9997         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9998         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9999         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10000         snprintf function.
10001         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10002         glibc systems.
10003         * tests/test-vasnprintf-posix3.c: New file.
10004         * modules/vasnprintf-posix-tests (Files): Add it.
10005         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10006
10007 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10008
10009         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10010         * MODULES.html.sh: For compiler warnings, use name
10011         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10012
10013 2010-11-05  Eric Blake  <eblake@redhat.com>
10014
10015         ceil, floor: avoid spurious failure with icc
10016         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10017         [denormals-as-zero] when optimizing without -mieee-fp option.
10018         * tests/test-floorf2.c (floorf_reference): Likewise.
10019         * tests/test-ceilf1.c (dummy): New function.
10020         (main): Use it to outsmart icc's optimization.
10021         * tests/test-floorf1.c (dummy, main): Likewise.
10022
10023         tests: require working signbit
10024         * modules/ceilf-tests (Depends-on): Add signbit.
10025         * modules/ceill-tests (Depends-on): Likewise.
10026         * modules/floorf-tests (Depends-on): Likewise.
10027         * modules/floorl-tests (Depends-on): Likewise.
10028         * modules/round-tests (Depends-on): Likewise.
10029         * modules/roundf-tests (Depends-on): Likewise.
10030         * modules/roundl-tests (Depends-on): Likewise.
10031         * modules/trunc-tests (Depends-on): Likewise.
10032         * modules/truncf-tests (Depends-on): Likewise.
10033         * modules/truncl-tests (Depends-on): Likewise.
10034
10035         strtod: work around icc bug
10036         * lib/strtod.c (minus_zero): Define to working value.
10037         (strtod): Use it to avoid icc bug.
10038
10039         copysign: enhance tests
10040         * modules/copysign-tests (Files): Add minus-zero.h.
10041         * tests/test-copysign.c (main): Also test zeros.
10042
10043 2010-11-04  Eric Blake  <eblake@redhat.com>
10044
10045         ceil, floor, round, trunc: enhance tests of -0
10046         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10047         * tests/test-ceill.c (main): Likewise.
10048         * tests/test-floorf1.c (main): Likewise.
10049         * tests/test-floorl.c (main): Likewise.
10050         * tests/test-round1.c (main): Likewise.
10051         * tests/test-roundf1.c (main): Likewise.
10052         * tests/test-roundl.c (main): Likewise.
10053         * tests/test-trunc1.c (main): Likewise.
10054         * tests/test-truncf1.c (main): Likewise.
10055         * tests/test-truncl.c (main): Likewise.
10056
10057 2010-11-04  Eric Blake  <eblake@redhat.com>
10058
10059         frexp, tests: work around ICC bug with -zero
10060         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10061         works with more compilers.
10062         * tests/minus-zero.h: New file.
10063         * modules/ceilf-tests (Files): Include it.
10064         * modules/ceill-tests (Files): Likewise.
10065         * modules/floorf-tests (Files): Likewise.
10066         * modules/floorl-tests (Files): Likewise.
10067         * modules/frexp-nolibm-tests (Files): Likewise.
10068         * modules/frexp-tests (Files): Likewise.
10069         * modules/frexpl-nolibm-tests (Files): Likewise.
10070         * modules/frexpl-tests (Files): Likewise.
10071         * modules/isnan-tests (Files): Likewise.
10072         * modules/isnand-nolibm-tests (Files): Likewise.
10073         * modules/isnand-tests (Files): Likewise.
10074         * modules/isnanf-nolibm-tests (Files): Likewise.
10075         * modules/isnanf-tests (Files): Likewise.
10076         * modules/isnanl-nolibm-tests (Files): Likewise.
10077         * modules/isnanl-tests (Files): Likewise.
10078         * modules/round-tests (Files): Likewise.
10079         * modules/roundf-tests (Files): Likewise.
10080         * modules/roundl-tests (Files): Likewise.
10081         * modules/ldexpl-tests (Files): Likewise.
10082         * modules/signbit-tests (Files): Likewise.
10083         * modules/snprintf-posix-tests (Files): Likewise.
10084         * modules/sprintf-posix-tests (Files): Likewise.
10085         * modules/strtod-tests (Files): Likewise.
10086         * modules/trunc-tests (Files): Likewise.
10087         * modules/truncf-tests (Files): Likewise.
10088         * modules/truncl-tests (Files): Likewise.
10089         * modules/vsnprintf-posix-tests (Files): Likewise.
10090         * modules/vsprintf-posix-tests (Files): Likewise.
10091         * modules/vasnprintf-posix-tests (Files): Likewise.
10092         * modules/vasprintf-posix-tests (Files): Likewise.
10093         * tests/test-ceilf1.c (main): Use it.
10094         * tests/test-ceill.c (main): Likewise.
10095         * tests/test-floorf1.c (main): Likewise.
10096         * tests/test-floorl.c (main): Likewise.
10097         * tests/test-frexp.c (main): Likewise.
10098         * tests/test-frexpl.c (main): Likewise.
10099         * tests/test-isnan.c (main): Likewise.
10100         * tests/test-isnand.h (main): Likewise.
10101         * tests/test-isnanf.h (main): Likewise.
10102         * tests/test-isnanl.h (main): Likewise.
10103         * tests/test-ldexpl.c (main): Likewise.
10104         * tests/test-round.c (main): Likewise.
10105         * tests/test-roundf.c (main): Likewise.
10106         * tests/test-roundl.c (main): Likewise.
10107         * tests/test-signbit.c (test_signbitf, test_signbitd)
10108         (test_signbitl): Likewise.
10109         * tests/test-snprintf-posix.h (test_function): Likewise.
10110         * tests/test-sprintf-posix.h (test_function): Likewise.
10111         * tests/test-strtod.c (main): Likewise.
10112         * tests/test-trunc1.c (main): Likewise.
10113         * tests/test-truncf1.c (main): Likewise.
10114         * tests/test-truncl.c (main): Likewise.
10115
10116         isnanl: work around icc bug
10117         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10118
10119 2010-11-03  Eric Blake  <eblake@redhat.com>
10120
10121         tests: fix compiler warnings
10122         * tests/test-getopt.h (test_getopt): Fix condition.
10123         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10124         * tests/test-pipe2.c (main): Likewise.
10125         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10126
10127         utimens: fix broken m4 test
10128         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10129
10130 2010-10-28  Bruno Haible  <bruno@clisp.org>
10131
10132         posix_spawn*, getdtablesize: Relax license.
10133         * modules/posix_spawn (License): Change to LGPLv2+.
10134         * modules/posix_spawnp (License): Likewise.
10135         * modules/posix_spawn-internal (License): Likewise.
10136         * modules/posix_spawnattr_init (License): Likewise.
10137         * modules/posix_spawnattr_getflags (License): Likewise.
10138         * modules/posix_spawnattr_setflags (License): Likewise.
10139         * modules/posix_spawnattr_getpgroup (License): Likewise.
10140         * modules/posix_spawnattr_setpgroup (License): Likewise.
10141         * modules/posix_spawnattr_getschedparam (License): Likewise.
10142         * modules/posix_spawnattr_setschedparam (License): Likewise.
10143         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10144         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10145         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10146         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10147         * modules/posix_spawnattr_getsigmask (License): Likewise.
10148         * modules/posix_spawnattr_setsigmask (License): Likewise.
10149         * modules/posix_spawnattr_destroy (License): Likewise.
10150         * modules/posix_spawn_file_actions_init (License): Likewise.
10151         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10152         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10153         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10154         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10155         * modules/getdtablesize (License): Likewise.
10156         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10157
10158 2010-10-26  Bruno Haible  <bruno@clisp.org>
10159
10160         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10161         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10162         Cygwin and mingw.
10163         Suggested by Eric Blake.
10164
10165 2010-10-26  Bruno Haible  <bruno@clisp.org>
10166
10167         stdio: Work around compilation error due to renameat() on Solaris 10.
10168         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10169         * lib/renameat.c: Don't include <unistd.h> here.
10170         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10171         Reported by Paul Eggert and Eric Blake.
10172
10173 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10174
10175         renameat: port to Solaris 10, which declares renameat in unistd.h
10176
10177         * lib/renameat.c: Include unistd.h before stdio.h, because
10178         Solaris 10 declares renameat in unistd.h.  Problem encountered
10179         when building GNU tar 1.24 on Solaris 10.
10180
10181 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10182
10183         fdopendir: fix C89 compilation
10184         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10185         compilers.
10186
10187 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10188
10189         inttostr: simplify by removing unnecessary redundancy
10190         * lib/anytostr.c: Don't include verify.h.
10191         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10192         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10193         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10194         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10195         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10196         Likewise.
10197         * modules/inttostr (Depends-on): Remove 'verify'.
10198
10199 2010-10-23  Bruno Haible  <bruno@clisp.org>
10200
10201         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
10202         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
10203         Reported by Eric Blake.
10204
10205 2010-10-23  Bruno Haible  <bruno@clisp.org>
10206
10207         Tests: Fix LOCALE_JA on MirBSD 10.
10208         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
10209         to an UTF-8 locale.
10210         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
10211         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10212         Reported by Eric Blake.
10213
10214 2010-10-21  Bruno Haible  <bruno@clisp.org>
10215
10216         nl_langinfo test: Avoid test failure on NetBSD 5.
10217         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
10218         Reported by Eric Blake.
10219
10220 2010-10-21  Eric Blake  <eblake@redhat.com>
10221
10222         c-stack: work around libsigsegv 2.8 bug
10223         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
10224         overflow on at least PowerPC64.
10225
10226 2010-10-17  Bruno Haible  <bruno@clisp.org>
10227
10228         userspec: Drop redundant file.
10229         * modules/userspec (Files): Remove lib/inttostr.h.
10230
10231 2010-10-17  Bruno Haible  <bruno@clisp.org>
10232
10233         nl_langinfo tests: Silence some warnings.
10234         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
10235         Reported by Jim Meyering.
10236
10237 2010-10-17  Bruno Haible  <bruno@clisp.org>
10238
10239         Make use of GCC's attribute __alloc_size__.
10240         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
10241         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
10242         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
10243         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
10244         __alloc_size__.
10245         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10246         Suggested by Jim Meyering.
10247
10248 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
10249
10250         bootstrap: anchor .gitignore entries.
10251         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
10252         with...
10253         (insert_vc_ignore): ... this new function, which prepends `/' to
10254         all .gitignore entries before passing them to
10255         insert_sorted_if_absent.
10256
10257 2010-10-16  Bruno Haible  <bruno@clisp.org>
10258
10259         nextafter: Fix configure check.
10260         * modules/nextafter (configure.ac): Correct expected prototype.
10261
10262 2010-10-16  Bruno Haible  <bruno@clisp.org>
10263
10264         termios: Update documentation.
10265         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10266
10267 2010-10-16  Bruno Haible  <bruno@clisp.org>
10268
10269         tests: Make them compile with TinyCC.
10270         * tests/test-strstr.c (main): Remove parentheses around array
10271         initializer.
10272
10273 2010-10-15  Eric Blake  <eblake@redhat.com>
10274
10275         ignore-value: make header idempotent
10276         * lib/ignore-value.h: Add double-inclusion guards.
10277         Reported by Stefan Berger.
10278
10279 2010-10-15  Jim Meyering  <meyering@redhat.com>
10280
10281         GNUmakefile: handle "stable" target, not "major"
10282         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10283         lists in maint.mk and announce-gen.  Without this, "make stable"
10284         would fail to ensure that $(VERSION) is up to date.
10285
10286 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10287
10288         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10289         & co.
10290
10291 2010-10-14  Bruno Haible  <bruno@clisp.org>
10292
10293         vasnprintf: Don't set errno to 0.
10294         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10295         block that sets it to 0.
10296         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10297
10298 2010-10-14  Bruno Haible  <bruno@clisp.org>
10299
10300         socketlib: Fix.
10301         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10302         gl_PREREQ_SYS_H_WINSOCK2.
10303         Reported by Ian Beckwith <ianb@erislabs.net>.
10304
10305 2010-10-13  Jim Meyering  <meyering@redhat.com>
10306
10307         test-select-stdin.c: avoid warn_unused_result warnings
10308         * tests/test-select-stdin.c: Include "macros.h".
10309         ASSERT that read and fflush succeed.
10310
10311 2010-10-13  Jim Meyering  <meyering@redhat.com>
10312
10313         git-version-gen: do require git-VC'd files in cwd
10314         * build-aux/git-version-gen: Reject a git version string
10315         if there are no commits associated with the current directory.
10316         This avoids an unlikely false-positive (unrelated dir whose parent
10317         repository also contains a tag matching v*), as pointed out
10318         by Giuseppe Scrivano in
10319         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
10320
10321 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10322
10323         argv-iter: omit nonconforming declaration
10324         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
10325         enum arg_iter_err declaration, which doesn't conform to C99.
10326         Solaris 10 cc warns about this.
10327
10328 2010-10-13  Eric Blake  <eblake@redhat.com>
10329
10330         termios: fix compilation on mingw
10331         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
10332         (gl_TERMIOS_H): Adjust it on mingw.
10333         * modules/termios (Makefile.am): Substitute new key.
10334         * lib/termios.in.h (includes): Make include_next conditional.
10335         * doc/posix-headers/termios.texi (termios.h): Update
10336         documentation.
10337         Reported by Daniel P. Berrange.
10338
10339 2010-10-13  Jim Meyering  <meyering@redhat.com>
10340
10341         git-version-gen: don't require that .git/ be in the current dir
10342         * build-aux/git-version-gen: Adjust this script so that it works
10343         when run from any working directory beneath the top-level .git/-
10344         containing directory.  Inspired by a patch from Giuseppe Scrivano,
10345         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
10346
10347         test-select: avoid warn_unused_result warnings
10348         * tests/test-select.c: Include "macros.h".
10349         ASSERT that each call to read, write, and pipe succeeds.
10350         While not technically required, also check each "close".
10351         * modules/select-tests (Files): Add tests/macros.h.
10352
10353         test-symlinkat: remove declaration of unused local
10354         * tests/test-symlinkat.c (main): Remove unused local, "buf".
10355
10356         test-inttostr: avoid shadowing warnings
10357         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
10358         and use malloc rather than the stack for the same reason as
10359         mentioned in the comment justifying the other allocation.
10360
10361 2010-10-11  Bruno Haible  <bruno@clisp.org>
10362
10363         stdlib: Allow multiple gnulib generated replacements to coexist.
10364         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
10365         Reported by Sam Steingold <sds@gnu.org>.
10366
10367 2010-10-11  Jim Meyering  <meyering@redhat.com>
10368
10369         fix a documentation typo
10370         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
10371
10372 2010-10-11  Eric Blake  <eblake@redhat.com>
10373
10374         futimens: work around Solaris 11 bug
10375         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
10376         * tests/test-futimens.h (test_futimens): Enhance, rather than
10377         weaken test.
10378         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10379
10380 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10381
10382         Indentation.
10383         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10384         higher-level operators more to the left.
10385
10386 2010-10-11  Jim Meyering  <meyering@redhat.com>
10387
10388         test-futimens: avoid unwarranted test failure on Solaris 5.11
10389         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10390         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10391         because it tries to dereference the NULL name argument.
10392
10393 2010-10-11  Bruno Haible  <bruno@clisp.org>
10394
10395         Indentation.
10396         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10397         indentation.
10398
10399 2010-10-11  Jim Meyering  <meyering@redhat.com>
10400
10401         spawn.in.h: make indentation consistent with parentheses
10402         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10403         Make indentation consistent with parentheses.
10404
10405 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10406
10407         Fix mismatched parens in previous commit
10408         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10409         parens.
10410
10411 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10412
10413         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10414
10415         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10416         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10417         * lib/malloca.c: Include "verify.h".
10418         (verify1): Remove, replacing with a verify call.
10419         * lib/relocwrapper.c (verify1): Likewise.
10420         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10421         Likewise.
10422         * modules/malloca (Depends-on): Add 'verify'.
10423         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10424         * modules/vasnprintf (Depends-on): Add 'verify'.
10425         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10426         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10427         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10428         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10429         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10430         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10431         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10432
10433         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10434
10435         Formerly the style was sometimes 2*X - 1, because the C standard
10436         was wrongly thought to disallow ?: in integral constant expressions.
10437         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10438         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10439         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10440         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10441         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10442         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10443         verify that time_t cannot be floating.
10444
10445 2010-10-08  Eric Blake  <eblake@redhat.com>
10446
10447         time: enforce recent POSIX ruling that time_t is integral
10448         * lib/time.in.h (__time_t_must_be_integral): Detect any
10449         problematic systems, allowing the rest of gnulib to assume POSIX.
10450
10451 2010-10-08  Jim Meyering  <meyering@redhat.com>
10452
10453         fdopendir: fix a bug on systems lacking openat and /proc support
10454         OpenBSD 4.7 is one such system.  The most noticeable effect was
10455         failure of any application making nontrivial use of fts: rm, du,
10456         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10457           ./rm: traversal failed: `a': Bad file descriptor
10458         Debugging that, you see that even though FD 6 was closed just
10459         prior to the opendir call in fd_clone_opendir, its resulting
10460         dir->dd_fd was 8, rather than the expected value of 6:
10461
10462         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10463         93                close (fd);
10464         (gdb) n
10465         94                dir = fd_clone_opendir (dupfd);
10466         (gdb) n
10467         95                saved_errno = errno;
10468         (gdb) p dir->dd_fd
10469         $11 = 8
10470
10471         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10472         The problem is that on OpenBSD, fd_clone_opendir has to resort
10473         to using the old-style save/restore CWD mechanism, due to its
10474         lack of openat/proc support, and *that* would steal the FD (6)
10475         that opendir was supposed to use.
10476
10477         The fix is to squirrel away the desired FD so that save_cwd uses a
10478         different one, and then free the dest FD right before calling opendir.
10479         That guarantees opendir will use the required file descriptor.
10480
10481         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10482
10483 2010-10-08  Bruno Haible  <bruno@clisp.org>
10484
10485         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10486         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10487
10488 2010-10-08  Bruno Haible  <bruno@clisp.org>
10489
10490         nanosleep: Make replacement POSIX compliant.
10491         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10492         is out of range.
10493         Reported by Jim Meyering.
10494
10495 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10496
10497         bootstrap: add hook for altering gnulib.mk, for Bison
10498         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10499         the Bison bootstrapping process can rewrite file names and variables
10500         in this file before later parts of 'bootstrap' use the file.
10501         Bison wants to include lib/gnulib.mk from the top-level makefile,
10502         so it needs the file names in this file to be relative to the top
10503         level, not relative to lib; plus it needs variable names to be
10504         rewritten.
10505         (slurp): Use the new function.
10506
10507         bootstrap: reformat for readability
10508         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10509
10510 2010-10-08  Eric Blake  <eblake@redhat.com>
10511
10512         docs: update cygwin progress
10513         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10514         1.7.7.
10515         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10516         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10517         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10518         * doc/posix-functions/carg.texi (carg): Likewise.
10519         * doc/posix-functions/cargf.texi (cargf): Likewise.
10520         * doc/posix-functions/casin.texi (casin): Likewise.
10521         * doc/posix-functions/casinf.texi (casinf): Likewise.
10522         * doc/posix-functions/casinh.texi (casinh): Likewise.
10523         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10524         * doc/posix-functions/catan.texi (catan): Likewise.
10525         * doc/posix-functions/catanf.texi (catanf): Likewise.
10526         * doc/posix-functions/catanh.texi (catanh): Likewise.
10527         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10528         * doc/posix-functions/ccos.texi (ccos): Likewise.
10529         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10530         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10531         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10532         * doc/posix-functions/cexp.texi (cexp): Likewise.
10533         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10534         * doc/posix-functions/cimag.texi (cimag): Likewise.
10535         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10536         * doc/posix-functions/clog.texi (clog): Likewise.
10537         * doc/posix-functions/clogf.texi (clogf): Likewise.
10538         * doc/posix-functions/conj.texi (conj): Likewise.
10539         * doc/posix-functions/conjf.texi (conjf): Likewise.
10540         * doc/posix-functions/cpow.texi (cpow): Likewise.
10541         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10542         * doc/posix-functions/cproj.texi (cproj): Likewise.
10543         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10544         * doc/posix-functions/creal.texi (creal): Likewise.
10545         * doc/posix-functions/crealf.texi (crealf): Likewise.
10546         * doc/posix-functions/csin.texi (csin): Likewise.
10547         * doc/posix-functions/csinf.texi (csinf): Likewise.
10548         * doc/posix-functions/csinh.texi (csinh): Likewise.
10549         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10550         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10551         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10552         * doc/posix-functions/ctan.texi (ctan): Likewise.
10553         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10554         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10555         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10556         * doc/posix-headers/complex.texi (complex.h): Likewise.
10557
10558 2010-10-07  Jim Meyering  <meyering@redhat.com>
10559
10560         parse-datetime: avoid compilation failure on OpenBSD 4.7
10561         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10562         This works around a compilation failure on OpenBSD 4.7:
10563         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10564
10565 2010-10-07  Eric Blake  <eblake@redhat.com>
10566
10567         docs: update cygwin progress
10568         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10569         1.7.6.
10570         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10571         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10572         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10573         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10574         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10575         Likewise.
10576         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10577         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10578         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10579         Likewise.
10580         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10581         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10582         Likewise.
10583         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10584         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10585         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10586         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10587         Likewise.
10588         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10589         Likewise.
10590         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10591
10592         docs: update parse-datetime history
10593         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10594         documentation of this function's history and alternatives.
10595
10596         cygwin: use more robust version check
10597         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10598         exclude an eventual cygwin 1.9.1.
10599         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10600         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10601         (gl_FUNC_STRCASESTR): Likewise.
10602         Reported by Bruno Haible.
10603
10604 2010-10-06  Bruno Haible  <bruno@clisp.org>
10605
10606         string, sys_select: Avoid #including large headers unless necessary.
10607         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10608         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10609         OSF/1, BeOS, Haiku.
10610         Reported by Jim Meyering.
10611
10612 2010-10-05  Eric Blake  <eblake@redhat.com>
10613
10614         memmem, strstr, strcasestr: fix bug with long periodic needle
10615         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10616         periodic needle having false positive.
10617         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10618         and cygwin 1.7.7.
10619         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10621         (gl_FUNC_STRCASESTR): Likewise.
10622         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10623         * tests/test-memmem.c (main): Expose the bug.
10624         * tests/test-strcasestr.c (main): Likewise.
10625         * tests/test-strstr.c (main): Likewise.
10626         * tests/test-c-strcasestr.c (main): Likewise.
10627         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10628         * doc/posix-functions/strstr.texi (strstr): Likewise.
10629         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10630         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10631
10632 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10633
10634         parse-datetime: do some more renaming
10635         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10636         parse_datetime, not get_date.  Mention the renaming.
10637         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10638         in comments.
10639         * m4/bison.m4: Likewise.
10640
10641 2010-10-05  Eric Blake  <eblake@redhat.com>
10642
10643         parse-datetime: better name than get_date
10644         * NEWS: Reword the deprecation notice.
10645         * modules/get_date: Rename to modules/parse-datetime.
10646         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10647         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10648         * lib/get_date.y: Rename to lib/parse-datetime.y.
10649         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10650         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10651         * doc/getdate.texi: Provide fallback wrapper.
10652         * lib/getdate.h: Move guts, and wrap...
10653         * lib/parse-datetime.h: ...new file.
10654         * lib/parse-datetime.y (get_date): Rename...
10655         (parse_datetime): ...to this.
10656         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10657         (gl_PARSE_DATETIME): ...to this.
10658         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10659         documentation.
10660         * modules/getdate (Files): Provide fallback docs and header.
10661         (Notice, Depends-on): Update references.
10662         * tests/test-parse-datetime.c: Likewise.
10663         * DEPENDENCIES: Likewise.
10664         * MODULES.html.sh (Date and time <time.h>): Likewise.
10665         * doc/parse-datetime.texi (Date input formats)
10666         (Authors of parse_datetime): Likewise.
10667         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10668         (Include): Likewise.
10669         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10670         * gnulib-tool: Likewise.
10671         * m4/bison.m4 (gl_BISON): Likewise.
10672         Suggested by Bruno Haible.
10673
10674 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10675
10676         more ports to Solaris tr, which needs [] around ranges
10677         * gnulib-tool: Solaris tr needs [] around ranges.
10678         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10679         * tests/test-pipe-filter-gi1.c (main): Likewise.
10680         * tests/test-pipe-filter-ii1.c (main): Likewise.
10681
10682 2010-10-05  Eric Blake  <eblake@redhat.com>
10683
10684         bootstrap: fix Solaris regression
10685         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10686         around ranges.
10687         Reported by Pádraig Brady.
10688
10689         bootstrap: work with pkg-config
10690         * build-aux/bootstrap (check_versions): Also transliterate - in
10691         prerequisite name.
10692         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10693         prerequisites that were already found, to avoid confusion.
10694         Reported by Justin Clift.
10695
10696         faccessat: remove unused wrappers
10697         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10698         presence of these wrappers dragged in -lgen on Solaris.
10699         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10700
10701 2010-10-05  Jim Meyering  <meyering@redhat.com>
10702
10703         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10704         * Makefile (sc_pragma_columns): New syntax-check rule.
10705
10706 2010-10-04  Bruno Haible  <bruno@clisp.org>
10707
10708         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10709         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10710         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10711         Reported by Bruce Korb and Eric Blake.
10712
10713 2010-10-04  Bruno Haible  <bruno@clisp.org>
10714
10715         threadlib: Make option --with-libpth-prefix work.
10716         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10717         use $LIBPTH, not just -lpth.
10718
10719 2010-10-04  Bruno Haible  <bruno@clisp.org>
10720
10721         Avoid line length limitation from HP NonStop system header files.
10722         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10723         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10724         * lib/ctype.in.h: Likewise.
10725         * lib/dirent.in.h: Likewise.
10726         * lib/errno.in.h: Likewise.
10727         * lib/fcntl.in.h: Likewise.
10728         * lib/float.in.h: Likewise.
10729         * lib/getopt.in.h: Likewise.
10730         * lib/iconv.in.h: Likewise.
10731         * lib/inttypes.in.h: Likewise.
10732         * lib/langinfo.in.h: Likewise.
10733         * lib/locale.in.h: Likewise.
10734         * lib/math.in.h: Likewise.
10735         * lib/netdb.in.h: Likewise.
10736         * lib/netinet_in.in.h: Likewise.
10737         * lib/poll.in.h: Likewise.
10738         * lib/pthread.in.h: Likewise.
10739         * lib/pty.in.h: Likewise.
10740         * lib/sched.in.h: Likewise.
10741         * lib/se-selinux.in.h: Likewise.
10742         * lib/search.in.h: Likewise.
10743         * lib/signal.in.h: Likewise.
10744         * lib/spawn.in.h: Likewise.
10745         * lib/stdarg.in.h: Likewise.
10746         * lib/stddef.in.h: Likewise.
10747         * lib/stdint.in.h: Likewise.
10748         * lib/stdio.in.h: Likewise.
10749         * lib/stdlib.in.h: Likewise.
10750         * lib/string.in.h: Likewise.
10751         * lib/strings.in.h: Likewise.
10752         * lib/sys_file.in.h: Likewise.
10753         * lib/sys_ioctl.in.h: Likewise.
10754         * lib/sys_select.in.h: Likewise.
10755         * lib/sys_socket.in.h: Likewise.
10756         * lib/sys_stat.in.h: Likewise.
10757         * lib/sys_time.in.h: Likewise.
10758         * lib/sys_times.in.h: Likewise.
10759         * lib/sys_utsname.in.h: Likewise.
10760         * lib/sys_wait.in.h: Likewise.
10761         * lib/sysexits.in.h: Likewise.
10762         * lib/termios.in.h: Likewise.
10763         * lib/time.in.h: Likewise.
10764         * lib/unistd.in.h: Likewise.
10765         * lib/wchar.in.h: Likewise.
10766         * lib/wctype.in.h: Likewise.
10767         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10768         * modules/ctype (Makefile.am): Likewise.
10769         * modules/dirent (Makefile.am): Likewise.
10770         * modules/errno (Makefile.am): Likewise.
10771         * modules/fcntl-h (Makefile.am): Likewise.
10772         * modules/float (Makefile.am): Likewise.
10773         * modules/getopt-posix (Makefile.am): Likewise.
10774         * modules/iconv-h (Makefile.am): Likewise.
10775         * modules/inttypes (Makefile.am): Likewise.
10776         * modules/langinfo (Makefile.am): Likewise.
10777         * modules/locale (Makefile.am): Likewise.
10778         * modules/math (Makefile.am): Likewise.
10779         * modules/netdb (Makefile.am): Likewise.
10780         * modules/netinet_in (Makefile.am): Likewise.
10781         * modules/poll-h (Makefile.am): Likewise.
10782         * modules/pthread (Makefile.am): Likewise.
10783         * modules/pty (Makefile.am): Likewise.
10784         * modules/sched (Makefile.am): Likewise.
10785         * modules/search (Makefile.am): Likewise.
10786         * modules/selinux-h (Makefile.am): Likewise.
10787         * modules/signal (Makefile.am): Likewise.
10788         * modules/spawn (Makefile.am): Likewise.
10789         * modules/stdarg (Makefile.am): Likewise.
10790         * modules/stddef (Makefile.am): Likewise.
10791         * modules/stdint (Makefile.am): Likewise.
10792         * modules/stdio (Makefile.am): Likewise.
10793         * modules/stdlib (Makefile.am): Likewise.
10794         * modules/string (Makefile.am): Likewise.
10795         * modules/strings (Makefile.am): Likewise.
10796         * modules/sys_file (Makefile.am): Likewise.
10797         * modules/sys_ioctl (Makefile.am): Likewise.
10798         * modules/sys_select (Makefile.am): Likewise.
10799         * modules/sys_socket (Makefile.am): Likewise.
10800         * modules/sys_stat (Makefile.am): Likewise.
10801         * modules/sys_time (Makefile.am): Likewise.
10802         * modules/sys_times (Makefile.am): Likewise.
10803         * modules/sys_utsname (Makefile.am): Likewise.
10804         * modules/sys_wait (Makefile.am): Likewise.
10805         * modules/sysexits (Makefile.am): Likewise.
10806         * modules/termios (Makefile.am): Likewise.
10807         * modules/time (Makefile.am): Likewise.
10808         * modules/unistd (Makefile.am): Likewise.
10809         * modules/wchar (Makefile.am): Likewise.
10810         * modules/wctype (Makefile.am): Likewise.
10811
10812 2010-10-04  Bruno Haible  <bruno@clisp.org>
10813
10814         read-file tests: Avoid a test failure on NonStop Kernel.
10815         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10816         a regular file.
10817         Reported by Joachim Schmitz <schmitz@hp.com>.
10818
10819 2010-10-03  Bruno Haible  <bruno@clisp.org>
10820
10821         gnulib-tool: Fixes for --create-testdir with --libtool.
10822         * gnulib-tool (func_get_automake_snippet): Don't augment
10823         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10824         an executable.
10825         (func_create_testdir): Handle module 'alloca' like func_import.
10826         Reported by Bruce Korb <bruce.korb@gmail.com>.
10827
10828 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10829
10830         Avoid some lines longer than 80 characters.
10831         * lib/stdint.in.h: Break long comment lines.
10832         * lib/math.in.h: Likewise.
10833         (_GL_NUM_UINT_WORDS): New macro, for readability.
10834         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10835         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10836         * lib/stdlib.in.h: Likewise.
10837         * lib/spawn.in.h: Likewise.
10838         * lib/sys_socket.in.h: Update an URL.
10839         * lib/sys_stat.in.h: Break long line.
10840
10841 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10842
10843         Improve pmccabe2html.
10844         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10845         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10846         when the sources change. Remove the line in the HTML about "Used
10847         ranges" (which implied that there might be other unused ranges),
10848         rename "Resume" to "Summary" (easier to understand for more users).
10849         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10850         styles, and some unnecessary blank lines.
10851
10852 2010-10-03  Bruno Haible  <bruno@clisp.org>
10853             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10854
10855         acl: Add support for ACLs on NonStop Kernel.
10856         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10857         Check whether the function aclsort() exists.
10858         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10859         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10860         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10861         (acl_nontrivial [HAVE_ACLSORT]: New function.
10862         (file_has_acl): Implement for NonStop Kernel.
10863         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10864         (qset_acl): Implement for NonStop Kernel.
10865         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10866         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10867         (main): Implement for NonStop Kernel.
10868         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10869         Kernel. Handle this flavor.
10870         * tests/test-set-mode-acl.sh: Likewise.
10871         * tests/test-copy-acl.sh: Likewise.
10872         * tests/test-copy-file.sh: Likewise.
10873
10874 2010-10-03  Bruno Haible  <bruno@clisp.org>
10875
10876         Info about ACLs on NonStop Kernel.
10877         * doc/acl-resources.txt: Add info about NonStop Kernel.
10878         References by Joachim Schmitz <schmitz@hp.com>.
10879
10880 2010-10-02  Bruno Haible  <bruno@clisp.org>
10881
10882         Define missing EDQUOT on NonStop Kernel.
10883         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10884         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10885         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10886         missing.
10887         * doc/posix-headers/errno.texi: Mention the NSK bug.
10888         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10889         Reported by Joachim Schmitz <schmitz@hp.com>.
10890
10891 2010-10-02  Bruno Haible  <bruno@clisp.org>
10892
10893         Update doc for POSIX:2008.
10894         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10895         Update URL of POSIX specification.
10896
10897 2010-10-02  Bruno Haible  <bruno@clisp.org>
10898
10899         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10900         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10901         from gnulib, not from Automake.
10902
10903 2010-10-02  Bruno Haible  <bruno@clisp.org>
10904
10905         New module 'system-posix'.
10906         * modules/system-posix: New file.
10907         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10908         module is present.
10909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10910         GNULIB_SYSTEM_POSIX.
10911         * modules/stdlib (Depends-on): Remove sys_wait.
10912         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10913         * doc/posix-functions/system.texi: Mention the new module.
10914         * doc/posix-headers/stdlib.texi: Likewise.
10915         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10916         define test_sys_wait_macros to a no-op.
10917         Reported by Sam Steingold <sds@gnu.org>.
10918
10919 2010-09-30  Bruno Haible  <bruno@clisp.org>
10920
10921         More renaming from 'getdate' to 'get_date'.
10922         * doc/get_date.texi: Renamed from doc/getdate.texi.
10923         * modules/get_date (Files): Update.
10924         * MODULES.html.sh (Date and time <time.h>): Update.
10925         * DEPENDENCIES: Update.
10926         * gnulib-tool: Update comment.
10927         * m4/bison.m4 (gl_BISON): Likewise.
10928         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10929
10930 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10931
10932         bootstrap: support ACLOCAL_FLAGS during aclocal
10933         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10934         can add additional -I dir for third-party .m4 files.
10935
10936 2010-09-30  Eric Blake  <eblake@redhat.com>
10937
10938         bootstrap: use glibtoolize on MacOS
10939         * build-aux/bootstrap (check_versions): Convert libtool into
10940         libtoolize.
10941         (tool search): Move libtool check earlier, and look for
10942         glibtoolize for MacOS.
10943         (gnulib_tool_options): Auto-add --libtool when appropriate.
10944         Reported by Justin Clift.
10945
10946         poll: fix typo that broke test on MacOS
10947         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10948         Reported by Justin Clift.
10949
10950         getdate: rename to get_date
10951         Note: getdate.h is not renamed, to minimize client impact.
10952         * modules/getdate: Mark obsolete.  Move old contents...
10953         * modules/get_date: ...to new module name.
10954         * modules/getdate-tests: Move...
10955         * modules/get_date-tests: ...here.
10956         * m4/getdate.m4: Move...
10957         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10958         * lib/getdate.y: Move...
10959         * lib/get_date.y: ...here.
10960         * tests/test-getdate.c: Move...
10961         * tests/test-get_date.c: ...here.
10962         * doc/posix-functions/getdate.texi (getdate): Update name.
10963         * NEWS: Mention the change.
10964
10965 2010-09-29  Bruno Haible  <bruno@clisp.org>
10966
10967         Separate the module 'waitpid' from the module 'sys_wait'.
10968         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10969         present.
10970         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10971         gl_MODULE_INDICATOR_FOR_TESTS.
10972         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10973         * modules/sys_wait (Depends-on): Remove waitpid.
10974         (Makefile.am): Substitute GNULIB_WAITPID.
10975         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10976         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10977         signature only if the 'waitpid' module is present.
10978         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10979         * NEWS: Mention the change.
10980         * modules/grantpt (Depends-on): Add waitpid.
10981         * modules/wait-process (Depends-on): Likewise.
10982
10983 2010-09-29  Bruno Haible  <bruno@clisp.org>
10984
10985         More tests for module 'sys_wait'.
10986         * modules/sys_wait-c++-tests: New file.
10987         * tests/test-sys_wait-c++.cc: New file.
10988         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10989         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10990
10991 2010-09-29  Bruno Haible  <bruno@clisp.org>
10992
10993         New module 'waitpid'.
10994         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10995         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10996         Don't include <process.h>.
10997         (waitpid): Declare only, using modern idiom.
10998         * m4/waitpid.m4: New file.
10999         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11000         * modules/waitpid: New file.
11001         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11002         (Makefile.am): Update.
11003         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11004
11005 2010-09-28  Bruno Haible  <bruno@clisp.org>
11006
11007         poll: Assume ANSI C.
11008         * lib/poll.c (poll): Use an ANSI C declaration.
11009
11010 2010-09-28  Bruno Haible  <bruno@clisp.org>
11011
11012         poll-h: Create poll.h on all platforms.
11013         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11014         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11015         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11016         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11017         (gl_REPLACE_POLL_H): Don't set POLL_H.
11018         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11019         * modules/poll-h (Depends-on): Add include_next.
11020         (Makefile.am): Create poll.h unconditionally. Substitute also
11021         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11022
11023 2010-09-28  Bruno Haible  <bruno@clisp.org>
11024
11025         Tests for module 'poll-h'.
11026         * modules/poll-h-c++-tests: New file.
11027         * tests/test-poll-h-c++.cc: New file.
11028
11029         Tests for module 'poll-h'.
11030         * modules/poll-h-tests: New file.
11031         * tests/test-poll-h.c: New file.
11032
11033 2010-09-28  Bruno Haible  <bruno@clisp.org>
11034
11035         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11036         * modules/poll-h (Depends-on): Add 'extensions'.
11037
11038 2010-09-28  Bruno Haible  <bruno@clisp.org>
11039
11040         New module 'poll-h'.
11041         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11042         (poll): Use modern idiom.
11043         * modules/poll-h: New file.
11044         * modules/poll (Files): Remove lib/poll.in.h.
11045         (Depends-on): Add poll-h.
11046         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11047         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11048         * m4/poll_h.m4: New file.
11049         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11050         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11051         and invoke gl_REPLACE_POLL_H.
11052         * lib/poll.c: Use common idiom.
11053         * tests/test-poll.c: Likewise.
11054         * doc/posix-headers/poll.texi: Mention the poll-h module.
11055         Suggested by Eric Blake.
11056
11057 2010-09-26  Bruno Haible  <bruno@clisp.org>
11058
11059         sys_wait: Implement WSTOPSIG.
11060         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11061         Reported by Simon Josefsson.
11062
11063 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11064
11065         stdlib, sys_wait: Avoid compilation error on mingw.
11066         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11067
11068 2010-09-26  Bruno Haible  <bruno@clisp.org>
11069
11070         stdlib tests: Avoid code duplication.
11071         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11072         * modules/sys_wait-tests (Files): Likewise.
11073         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11074         * tests/test-stdlib.c: Include test-sys_wait.h.
11075         (main): Invoke test_sys_wait_macros.
11076         * tests/test-sys_wait.c: Include test-sys_wait.h.
11077         (main): Invoke test_sys_wait_macros.
11078
11079 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11080
11081         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11082         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11083         sure Windows sockets are working before calling getaddrinfo.
11084         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11085         * doc/gnulib.texi (Windows sockets): Fix typo.
11086
11087 2010-09-25  Bruno Haible  <bruno@clisp.org>
11088
11089         Tests for module 'regex-quote'.
11090         * modules/regex-quote-tests: New file.
11091         * tests/test-regex-quote.c: New file.
11092
11093         New module 'regex-quote'.
11094         * lib/regex-quote.h: New file.
11095         * lib/regex-quote.c: New file.
11096         * modules/regex-quote: New file.
11097         Suggested by Reuben Thomas <rrt@sc3d.org>.
11098
11099 2010-09-24  Bruno Haible  <bruno@clisp.org>
11100
11101         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11102         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11103
11104 2010-09-23  Bruno Haible  <bruno@clisp.org>
11105
11106         setenv: Relax license.
11107         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11108         Blake.
11109         Requested by Eric Blake.
11110
11111 2010-09-22  Bruno Haible  <bruno@clisp.org>
11112
11113         termios: Relax license.
11114         * modules/termios (License): Change to LGPLv2+.
11115         Requested by Eric Blake.
11116
11117 2010-09-22  Bruno Haible  <bruno@clisp.org>
11118
11119         threadlib: Allow the package to change the default to 'no'.
11120         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11121         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11122         Reported by Paul Eggert.
11123
11124 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11125             Bruno Haible  <bruno@clisp.org>
11126
11127         Fix endless loop in mbmemcasecoll.
11128         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11129         byte.
11130         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11131
11132 2010-09-22  Bruno Haible  <bruno@clisp.org>
11133
11134         Tests for module 'memcoll'.
11135         * modules/memcoll-tests: New file.
11136         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11137
11138         memcoll, xmemcoll: Clarify size vs. length.
11139         * modules/memcoll.c (memcoll0): Clarify specification.
11140         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11141         passed to collate_error.
11142
11143 2010-09-22  Bruno Haible  <bruno@clisp.org>
11144
11145         Tests for module 'memcasecmp'.
11146         * modules/memcasecmp-tests: New file.
11147         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11148
11149 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11150
11151         * lib/pthread.in.h: Add split double-inclusion guard, and include
11152         system <pthread.h> if there is one.  Use @@-style as in other
11153         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11154         pthread.h doesn't.
11155         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11156         (pthread_mutexattr_settype, pthread_mutex_trylock):
11157         New static inline functions, if there's no system <pthread.h>.
11158         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11159         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11160         Approximate with mutexes if the system lacks spinlocks, as in
11161         MacOS.
11162         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11163         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11164         @@-style.  Check for spinlocks separately.
11165         (gl_PTHREAD_DEFAULTS): New macro.
11166         * modules/pthread: Redo to use a more typical style for in.h files.
11167
11168 2010-09-21  Eric Blake  <eblake@redhat.com>
11169
11170         net_if: enhance tests
11171         * tests/test-net_if.c (main): Move signature checks earlier.
11172         Print failures to stderr.
11173         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11174         Document the bug that we do not yet fix.
11175
11176 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11177
11178         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11179         about gnulib, not GSS.
11180
11181 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11182
11183         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11184         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11185         for Emacs.
11186         * build-aux/pmccabe2html: Make Makefile.am example code more
11187         cut-and-paste friendly.
11188
11189 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11190
11191         * tests/test-net_if.c: New file.
11192         * modules/net_if-tests: New file.
11193
11194 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11195
11196         pthread: add pthread_spin_destroy
11197         * lib/pthread.in.h (pthread_spin_destroy): New function.
11198
11199 2010-09-19  Bruno Haible  <bruno@clisp.org>
11200
11201         gnulib-tool: Fix --help output.
11202         * gnulib-tool (func_usage): Fix help message.
11203         Reported by Reuben Thomas <rrt@sc3d.org>.
11204
11205 2010-09-18  Jim Meyering  <meyering@redhat.com>
11206
11207         maint.mk: avoid unexpanded \n in two diagnostics
11208         * top/maint.mk (sc_prohibit_always_true_header_tests):
11209         Don't use a literal \n in a halt=... assignment.  It would not be
11210         expanded, and the two \n bytes would appear in the diagnostic output
11211         rather than the desired newline.  Use halt=$$(printf ... instead.
11212         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11213
11214 2010-09-18  Bruno Haible  <bruno@clisp.org>
11215
11216         netinet_in: Doc tweak.
11217         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
11218         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11219
11220 2010-09-18  Jim Meyering  <meyering@redhat.com>
11221
11222         init.sh: correct an outdated comment
11223         * tests/init.sh (create_exe_shims_):  s/function/alias/
11224
11225         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
11226         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
11227         a file named "*.exe" is removed between the glob expansion and the
11228         processing of that oddly named file.
11229
11230 2010-09-17  Eric Blake  <eblake@redhat.com>
11231
11232         mirbsd: add some more support
11233         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
11234         in BSD family.
11235         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
11236         devices as OpenBSD.
11237         * m4/host-os.m4 (mirbsd): Add MirBSD.
11238
11239         tests: fix unportable assumption on sys/wait.h
11240         * tests/test-sys_wait.c (main): Relax test.
11241         * tests/test-stdlib.c (main): Likewise.
11242
11243         init.sh: accomodate directory with no .exes
11244         * tests/init.sh: Accomodate directory containing only scripts.
11245
11246         tests: avoid compiler warning
11247         * tests/test-stdlib.c (main): Use the variable.
11248
11249         fdutimens, fdutimensat: update signature, again
11250         * lib/utimens.h (gl_futimens): Delete, and move signature...
11251         (fdutimens): ...here.
11252         (fdutimensat): Rearrange signature.
11253         (lutimensat): Rename variable for clarity.
11254         * lib/fdutimensat.c (fdutimensat): Update signature.
11255         * lib/utimens.c (fdutimens): Likewise.
11256         (gl_futimens): Delete.
11257         (utimens, lutimens): Update callers.
11258         * lib/futimens.c (futimens): Likewise.
11259         * tests/test-fdutimensat.c: Likewise.
11260         * tests/test-utimens.c: Likewise.
11261         * tests/test-futimens.h: Update comment.
11262         * NEWS: Mention this.
11263         Suggested by Paul Eggert.
11264
11265 2010-09-17  Bruno Haible  <bruno@clisp.org>
11266
11267         Take over the maintenance of some older macros from Autoconf.
11268         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
11269         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
11270         GNU Autoconf.
11271         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
11272         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11273
11274 2010-09-17  Eric Blake  <eblake@redhat.com>
11275
11276         fdutimensat: drop atflag validation
11277         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11278         with valid fd, to close a race scenario where futimens is
11279         unsupported and FILE was replaced by a symlink.
11280         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11281         accordingly.
11282         Suggested by Paul Eggert.
11283
11284 2010-09-16  Bruno Haible  <bruno@clisp.org>
11285
11286         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11287         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11288
11289 2010-09-16  Bruno Haible  <bruno@clisp.org>
11290
11291         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11292         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11293         login_tty exists.
11294         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11295
11296 2010-09-16  Bruno Haible  <bruno@clisp.org>
11297
11298         login_tty: Make the replacement code work on BSD systems.
11299         * lib/login_tty.c: Include <sys/ioctl.h>.
11300         (login_tty): Use ioctl TIOCSCTTY when available.
11301         * modules/login_tty (Depends-on): Add sys_ioctl.
11302         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11303
11304 2010-09-16  Bruno Haible  <bruno@clisp.org>
11305
11306         login_tty: Stricter unit test.
11307         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11308         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11309         and tcgetsid() after login_tty.
11310         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11311
11312 2010-09-16  Bruno Haible  <bruno@clisp.org>
11313
11314         New module 'tcgetsid'.
11315         * lib/tcgetsid.c: New file.
11316         * m4/tcgetsid.m4: New file.
11317         * modules/tcgetsid: New file.
11318         * modules/termios (Depends-on): Add c++defs, warn-on-use.
11319         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
11320         GNULIB_TCGETSID, HAVE_TCGETSID.
11321         * lib/termios.in.h: Include <sys/types.h>.
11322         (tcgetsid): New declaration.
11323         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
11324         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
11325         * doc/posix-functions/tcgetsid.texi: Mention the new module.
11326         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
11327
11328 2010-09-16  Bruno Haible  <bruno@clisp.org>
11329
11330         Tests for module 'termios'.
11331         * modules/termios-c++-tests: New file.
11332         * modules/termios-tests: New file.
11333         * tests/test-termios-c++.cc: New file.
11334         * tests/test-termios.c: New file.
11335
11336         New module 'termios'.
11337         * modules/termios: New file.
11338         * lib/termios.in.h: New file.
11339         * m4/termios_h.m4: New file.
11340         * doc/posix-headers/termios.texi: Mention the new module.
11341
11342 2010-09-16  Eric Blake  <eblake@redhat.com>
11343
11344         fdutimensat: add an atflag parameter
11345         * lib/fdutimensat.c (fdutimensat): Add new parameter.
11346         * lib/utimens.h (fdutimensat): Update prototype.
11347         * tests/test-fdutimensat.c: Adjust test to match.
11348         * NEWS: Document the change.
11349         Suggested by Paul Eggert.
11350
11351 2010-09-16  Bruno Haible  <bruno@clisp.org>
11352
11353         Fix typos in comments.
11354         * lib/striconveh.h: Fix typo in comment.
11355         * lib/login_tty.c (login_tty): Likewise.
11356
11357 2010-09-15  Bruno Haible  <bruno@clisp.org>
11358
11359         stdlib: clarify MirBSD WEXITSTATUS bug
11360         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
11361         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11362
11363 2010-09-15  Eric Blake  <eblake@redhat.com>
11364
11365         stdlib: work around MirBSD WEXITSTATUS bug
11366         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
11367         * modules/stdlib (Depends-on): Add sys_wait.
11368         * tests/test-sys_wait.c (main): Enhance test.
11369         * tests/test-stdlib.c (main): Likewise.
11370         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
11371
11372         docs: mention MacOS issue with WEXITSTATUS(constant)
11373         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
11374         issue.
11375         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11376
11377         strnlen: add tests
11378         * modules/strnlen-tests: New file.
11379         * tests/test-strnlen.c: Likewise.
11380
11381 2010-09-14  Bruno Haible  <bruno@clisp.org>
11382
11383         unistr/base: Avoid link errors when module 'libunistring' is also used.
11384         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11385         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11386         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11387         Declare also when HAVE_LIBUNISTRING is set.
11388         Reported by Pádraig Brady <P@draigbrady.com>.
11389
11390 2010-09-14  Eric Blake  <eblake@redhat.com>
11391
11392         test-rawmemchr: make more robust
11393         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11394         (Depends-on, configure.ac): Add needed prerequisites to use it.
11395         * modules/memchr-tests (Files, Depends-on, configure.ac):
11396         Likewise, to avoid implicit reliance on memchr module prereqs.
11397         * tests/test-memchr.c (main): Ensure proper masking.
11398         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11399         reads.
11400
11401         memchr: detect glibc Alpha bug
11402         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11403         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11404         Alpha.
11405         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11406         * tests/test-memchr.c (main): Enhance test.
11407         Reported by Nelson H. F. Beebe.
11408
11409 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11410
11411         fts, getcwd, glob: audit for dirfd returning -1
11412         * lib/fts.c (opendir): Remove #define; no longer used.
11413         (opendirat): New arg PDIR_FD.  All callers changed.
11414         (fts_build, _opendir2): Use new opendirat to avoid the need for
11415         dirfd, or for checking whether dirfd returns a negative value.
11416         Don't use opendir; always use openat followed by fdopendir.
11417         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11418         it.
11419         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11420         returns -1 here.
11421         * modules/fts (Depends-on): Remove dirfd.
11422         * modules/getcwd (Depends-on): Likewise.
11423
11424 2010-09-13  Eric Blake  <eblake@redhat.com>
11425
11426         float: fix broken MirBSD header
11427         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11428         * doc/posix-headers/float.texi (float.h): Document it.
11429
11430 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11431
11432         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11433         * lib/fts.c (opendirat): New arg extra_flags.
11434         (__opendir2): Use it to avoid following symlinks when opening
11435         a directory, if symlinks are not supposed to be followed.  See
11436         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11437
11438         fdopendir: preserve argument fd before returning
11439         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11440         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11441         (fdopendir): Use them, arranging for FD to be open to the same
11442         directory that it was when it started.  (It might be temporarily
11443         closed while fdopendir is running, so this not thread- or
11444         signal-safe.)  Be careful to do the right thing even when file
11445         descriptors are scarce and dup fails with errno == EMFILE.  See
11446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11447
11448 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11449
11450         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11451         * NEWS: Document change.
11452         * m4/regex.m4: Disable test for regoff_t size.
11453
11454 2010-09-13  Jim Meyering  <meyering@redhat.com>
11455
11456         fts: don't operate on an invalid file descriptor after failed dup
11457         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11458         negative file descriptor.
11459
11460 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11461
11462         savedir: add streamsavedir, deprecate fdsavedir
11463         * NEWS: Mention deprecation of fdsavedir.
11464         * lib/savedir.c (streamsavedir): New extern function, whose name
11465         ends in "savedir" to be consistent with the others.  This differs
11466         from savedirstream in that it doesn't close its argument.  The
11467         next version of GNU tar will use this instead of fdsavedir, to
11468         avoid some race conditions and conserve file descriptors.
11469         (savedirstream): Reimplement as a wrapper around streamsavedir.
11470         (fdsavedir): Add a comment deprecating this function.  As far as
11471         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11472         * lib/savedir.h (streamsavedir): New decl.
11473         (fdsavedir): Add a comment deprecating this.
11474
11475 2010-09-10  Bruno Haible  <bruno@clisp.org>
11476
11477         langinfo: Fix last commit.
11478         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11479         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11480         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11481
11482 2010-09-10  Bruno Haible  <bruno@clisp.org>
11483
11484         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11485         * lib/progreloc.c (O_EXEC): Define fallback.
11486
11487 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11488
11489         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11490         * NEWS: Document recent changes to fcntl-h.
11491         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11492         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11493         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11494         Similarly for O_SEARCH; this last was already true, but not documented.
11495         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11496         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11497         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11498         Likewise.
11499         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11500         is zero, not whether it is defined.
11501         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11502         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11503         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11504
11505 2010-09-10  Bruno Haible  <bruno@clisp.org>
11506
11507         langinfo, nl_langinfo: Fix for IRIX 5.3.
11508         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11509         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11510         HAVE_LANGINFO_YESEXPR.
11511         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11512         HAVE_LANGINFO_YESEXPR.
11513         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11514         HAVE_LANGINFO_T_FMT_AMPM is 0.
11515         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11516         HAVE_LANGINFO_YESEXPR is 0.
11517         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11518         NOEXPR.
11519         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11520         * doc/posix-functions/nl_langinfo.texi: Likewise.
11521         Reported by Eric Blake.
11522
11523 2010-09-10  Bruno Haible  <bruno@clisp.org>
11524
11525         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11526         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11527         on FreeBSD 8.0 and OpenBSD 4.6.
11528         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11529         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11530         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11531         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11532         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11533         ac_includes_default.
11534         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11535
11536 2010-09-09  Eric Blake  <eblake@redhat.com>
11537
11538         strsignal: work around NetBSD bug
11539         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11540         * lib/string.in.h (includes): Likewise.
11541         * doc/posix-functions/strsignal.texi (strsignal): Document the
11542         bug.
11543         Reported by Nelson H. F. Beebe.
11544
11545         gnulib-tool: work with NetBSD /bin/sh
11546         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11547         (func_get_description, func_get_comment, func_get_status)
11548         (func_get_notice, func_get_applicability, func_get_filelist)
11549         (func_get_dependencies, func_get_autoconf_early_snippet)
11550         (func_get_autoconf_snippet, func_get_automake_snippet)
11551         (func_get_include_directive, func_get_link_directive)
11552         (func_get_license, func_get_maintainer, func_import): Avoid
11553         shell syntax errors from parsing syntax extensions.
11554
11555 2010-09-09  Bruno Haible  <bruno@clisp.org>
11556
11557         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11558         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11559         a reliable way to determine whether the 'alias' command works.
11560
11561 2010-09-08  Jim Meyering  <meyering@redhat.com>
11562
11563         init.sh: penalize a set-x-impaired shell; don't disqualify it
11564         * tests/init.sh: Too many shells corrupt application stderr when
11565         you set -x, so we can't afford to disqualify them, since at least
11566         on Irix-6.5, that would disqualify all bourne shells.
11567         Instead, use a two-pass approach.
11568         On the first pass, try to find a shell that meets the stricter
11569         condition that set -x does not corrupt stderr.
11570         If no shell meets the stricter condition, retest each candidate
11571         shell, but without that extra condition.  Finally, when
11572         VERBOSE=yes is requested and set -x might cause trouble, simply
11573         issue a warning and refrain from enabling debug output.
11574
11575 2010-09-08  Eric Blake  <eblake@redhat.com>
11576
11577         unsetenv: fix OpenBSD bug
11578         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11579         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11580         documentation.
11581         Reported by Jim Meyering.
11582
11583         strtod: work around IRIX 6.5 bug
11584         * lib/strtod.c (strtod): Reparse number on shorter string if
11585         exponent parse was invalid.
11586         * tests/test-strtod.c (main): Add check for "0x1p 2".
11587         Reported by Tom G. Christensen.
11588
11589         getopt: optimize previous patch
11590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11591         empty variable.  Speed up awk script.
11592         Reported by Paolo Bonzini.
11593
11594 2010-09-08  Jim Meyering  <meyering@redhat.com>
11595
11596         test.sh: disqualify shells for which set -x corrupts stderr
11597         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11598         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11599         appear in stderr output.  For example, this command:
11600             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11601         prints "P=1" on those two systems:
11602
11603 2010-09-08  Bruno Haible  <bruno@clisp.org>
11604
11605         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11606         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11607         commands, because some shells ignore redirections when there is an
11608         error in the command lookup.
11609         Reported by Eric Blake.
11610
11611 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11612
11613         * lib/regex.h: Fix a mention of `regex_compile' (should be
11614         `re_compile_pattern').
11615         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11616         (re_set_registers): Correct name of parameter in comment.
11617
11618         * doc/regex.texi: Add documentation for missing syntax flags.
11619         Remove commented-out documentation of defunct syntax option
11620         RE_NO_EMPTY_ALTS.
11621         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11622         Add documentation of re_set_registers.
11623         Document trick to re-use a pattern buffer by setting fastmap manually.
11624         Update documentation of struct re_pattern_buffer per public members.
11625         Uncomment documentation of equivalence class operators and
11626         collating symbol operators, since they are now implemented,
11627         Explain leftmost-longest matching in relation to alternatives.
11628         Tidy documentation of substring matching.
11629         Remove POSIX documentation, which is done better in
11630         glibc, and refer the reader there. Keep BSD API documentation, as
11631         that is not readily available elsewhere.
11632
11633 2010-09-07  Eric Blake  <eblake@redhat.com>
11634
11635         getopt: handle POSIXLY_CORRECT set but not exported
11636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11637         export state of POSIXLY_CORRECT, due to bash set -o posix.
11638         Reported by Dustin J. Mitchell.
11639
11640 2010-09-05  Bruno Haible  <bruno@clisp.org>
11641
11642         gnulib-tool: Highlight the changed options.
11643         * gnulib-tool (func_usage): Display the --import, --add-import,
11644         --remove-import explanations in bold font.
11645
11646 2010-09-06  Karl Berry  <karl@gnu.org>
11647
11648         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11649
11650 2010-09-05  Bruno Haible  <bruno@clisp.org>
11651
11652         uniwidth/width: Update comment.
11653         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11654         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11655
11656 2010-09-05  Bruno Haible  <bruno@clisp.org>
11657
11658         isinf, isnan: Relax license.
11659         * modules/isinf (License): Change from GPL to LGPL, with consent from
11660         Ben Pfaff.
11661         * modules/isnan (License): Likewise.
11662         Requested by Ludovic Courtès.
11663
11664 2010-09-04  Bruno Haible  <bruno@clisp.org>
11665
11666         gnulib-tool: Help migration from --import to --add-import or --update.
11667         * gnulib-tool: Emit a verbose error message when --import is used
11668         without any module name.
11669
11670 2010-09-04  Bruno Haible  <bruno@clisp.org>
11671
11672         Update doc about gnulib-tool.
11673         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11674         'gnulib-tool --update' in more detail.
11675         Reported by Eric Blake.
11676
11677 2010-09-04  Bruno Haible  <bruno@clisp.org>
11678
11679         gnulib-tool: Change --import. New options --add/remove-import.
11680         * gnulib-tool: New options --add-import, --remove-import.
11681         (func_usage): Document them.
11682         (have_associative): Define always.
11683         (func_import): In import mode, don't merge the specified settings with
11684         the cached settings. Implement remove-import mode.
11685         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11686         Explain when to use them versus --import.
11687         (Simple update): Use --add-import instead of --import.
11688         * NEWS: Mention the change.
11689
11690 2010-09-04  Bruno Haible  <bruno@clisp.org>
11691
11692         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11693         separate gnulib.mk.
11694
11695 2010-09-04  Bruno Haible  <bruno@clisp.org>
11696
11697         gnulib-tool: Don't talk about CVS any more.
11698         * gnulib-tool (func_usage, func_import): Write "version control"
11699         instead of CVS.
11700
11701 2010-09-04  Jim Meyering  <meyering@redhat.com>
11702
11703         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11704         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11705         false positives (whose names may be ill-chosen) when searching
11706         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11707         would cause a false-positive.
11708
11709         avoid coreutils "make distcheck" failure
11710         Coreutils tests with an absolute build directory name that contains
11711         a space.  Not quoting this directory name caused a failure.
11712         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11713         * tests/test-vc-list-files-cvs.sh: Likewise.
11714
11715 2010-09-04  Bruno Haible  <bruno@clisp.org>
11716
11717         gnulib-tool: Avoid error when run in a package without Makefile.am.
11718         * gnulib-tool: When collecting the m4dirs in a package that does not
11719         have a Makefile.am, eliminate those directories that contain no
11720         gnulib-cache.m4. Fix expression that counts these directories.
11721
11722 2010-09-04  Bruno Haible  <bruno@clisp.org>
11723
11724         update-copyright test: Improve output when perl is missing or too old.
11725         * tests/test-update-copyright.sh: Move test of Perl version down after
11726         the test whether Perl exists. Provide an explanation relating Perl's
11727         error message to Automake's SKIP: message.
11728
11729 2010-09-04  Bruno Haible  <bruno@clisp.org>
11730
11731         Don't augment PATH in TESTS_ENVIRONMENT.
11732         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11733         set abs_aux_dir instead of augmenting PATH.
11734         * modules/vc-list-files-tests (Makefile.am): Likewise.
11735         * tests/test-update-copyright.sh: Augment PATH here.
11736         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11737         path_prepend_.
11738         * tests/test-vc-list-files-git.sh: Likewise.
11739
11740 2010-09-04  Jim Meyering  <meyering@redhat.com>
11741
11742         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11743         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11744
11745 2010-09-04  Bruno Haible  <bruno@clisp.org>
11746
11747         strdup: Fix compilation error in C++ mode.
11748         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11749         the macro.
11750
11751 2010-09-04  Bruno Haible  <bruno@clisp.org>
11752
11753         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11754         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11755         macro into a function.
11756         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11757
11758 2010-09-04  Bruno Haible  <bruno@clisp.org>
11759
11760         Set PATH_SEPARATOR the same way autoconf does.
11761         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11762         the value of PATH_SEPARATOR the same way autoconf-generated configure
11763         scripts do.
11764         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11765         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11766
11767 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11768
11769         Set PATH_SEPARATOR the same way autoconf does.
11770         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11771         the same way autoconf-generated configure scripts do.
11772         * posix-modules: Likewise.
11773
11774 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11775
11776         hash: fix safe_hasher const typo
11777         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11778         const; otherwise, there is a type error later.
11779
11780 2010-09-02  Jim Meyering  <meyering@redhat.com>
11781
11782         test-update-copyright.sh: require perl 5.8.0
11783         * tests/test-update-copyright.sh: Require 5.8.0,
11784         which Tom G. Christensen has confirmed is adequate,
11785         while 5.6.1 is not.
11786
11787 2010-09-02  Eric Blake  <eblake@redhat.com>
11788
11789         tests: init.sh improvements for re-exec'ing with zsh
11790         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11791         -vx through shell re-exec.
11792         Reported by Tom G. Christensen.
11793
11794         wctype: fix typo in previous commit
11795         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11796         Reported by Ludovic Courtès.
11797
11798 2010-09-02  Jim Meyering  <meyering@redhat.com>
11799
11800         test-update-copyright.sh: skip test if Perl is too old
11801         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11802         Reported by Tom G. Christensen.
11803
11804 2010-09-02  Bruno Haible  <bruno@clisp.org>
11805
11806         wctype: Avoid compilation error on IRIX 6.5.30.
11807         * lib/wctype.in.h (iswblank): Declare with a replacement if
11808         REPLACE_ISWBLANK is set.
11809         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11810         declared. Set REPLACE_ISWBLANK.
11811         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11812         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11813         * doc/posix-headers/wctype.texi: Likewise.
11814         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11815
11816 2010-09-01  Bruno Haible  <bruno@clisp.org>
11817
11818         New module 'socketlib'.
11819         * modules/socketlib: New file.
11820         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11821         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11822         * modules/sockets (Depends-on): Add socketlib.
11823         Suggested by Sam Steingold <sds@gnu.org>.
11824
11825 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11826
11827         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11828
11829         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11830         when one needs search access to a directory but not read access.
11831         On systems where it is available, it works in some cases where
11832         O_RDONLY does not, namely on directories that are searchable but
11833         not readable, and which need only to be searchable.  If O_SEARCH
11834         is not available, fall back to the traditional method of using
11835         O_RDONLY.
11836
11837         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11838         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11839         when opening a directory that needs only to be searchable.
11840         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11841         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11842         * lib/openat-proc.c (openat_proc_name): Likewise.
11843         * lib/openat.c (openat_needs_fchdir): Likewise.
11844         * lib/save-cwd.c (save_cwd): Likewise.
11845         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11846
11847 2010-08-28  Bruno Haible  <bruno@clisp.org>
11848
11849         New module 'host-cpu-c-abi'.
11850         * modules/host-cpu-c-abi: New file.
11851         * m4/host-cpu-c-abi.m4: New file, based on part of
11852         clisp/src/m4/general.m4.
11853         Requested by Sam Steingold <sds@gnu.org>.
11854
11855 2010-08-31  Eric Blake  <eblake@redhat.com>
11856         and Jim Meyering  <meyering@redhat.com>
11857
11858         hash: factor, and guard against misbehaving hasher function
11859         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11860         of table->hasher's return value.  Also protect against a hash value
11861         so large that adding it to table->bucket results in a NULL pointer.
11862         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11863         Use it in place of open-coded check-and-abort.
11864
11865 2010-08-30  Bruno Haible  <bruno@clisp.org>
11866
11867         hash: silence spurious clang warning
11868         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11869         Reported by Eric Blake.
11870
11871 2010-08-30  Eric Blake  <eblake@redhat.com>
11872
11873         strstr, memmem, strcasestr: avoid leaked shell message
11874         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11875         FreeBSD.
11876         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11877         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11878
11879         tests: silence clang warning
11880         * tests/test-malloca.c (do_allocation): Avoid dead store.
11881
11882 2010-08-29  Bruno Haible  <bruno@clisp.org>
11883
11884         gettext: Fix recent mistake.
11885         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11886
11887 2010-08-29  Bruno Haible  <bruno@clisp.org>
11888
11889         selinux-h: Offer a --without-selinux option.
11890         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11891         --without-selinux was specified, skip all tests and define
11892         HAVE_SELINUX_SELINUX_H to 0.
11893         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11894         set LIB_SELINUX to empty.
11895         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11896         gl_LIBSELINUX. If --without-selinux was specified, replace
11897         selinux/context.h.
11898         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11899
11900 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11901             Bruno Haible  <bruno@clisp.org>
11902
11903         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11904         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11905         of HAVE_REALLOC.
11906         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11907         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11908         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11909         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11910
11911 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11912             Bruno Haible  <bruno@clisp.org>
11913
11914         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11915         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11916         HAVE_CALLOC.
11917         * lib/xmalloc.c: Update accordingly.
11918         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11919         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11920         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11921
11922 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11923             Bruno Haible  <bruno@clisp.org>
11924
11925         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11926         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11927         HAVE_MALLOC.
11928         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11929         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11930         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11931
11932 2010-08-29  Bruno Haible  <bruno@clisp.org>
11933
11934         Update modules list.
11935         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11936         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11937         (String handling <string.h>): Add astrxfrm.
11938         (File system functions): Add readlinkat.
11939
11940 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11941
11942         Tests for module 'realloc-gnu'.
11943         * modules/realloc-gnu-tests: New file.
11944         * tests/test-realloc-gnu.c: New file.
11945
11946         Tests for module 'calloc-gnu'.
11947         * modules/calloc-gnu-tests: New file.
11948         * tests/test-calloc-gnu.c: New file.
11949
11950         Tests for module 'malloc-gnu'.
11951         * modules/malloc-gnu-tests: New file.
11952         * tests/test-malloc-gnu.c: New file.
11953
11954 2010-08-28  Bruno Haible  <bruno@clisp.org>
11955
11956         Rename module 'realloc' -> 'realloc-gnu'.
11957         * modules/realloc-gnu: New file, copied from modules/realloc.
11958         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11959         obsolete.
11960         * modules/mgetgroups (Depends-on): Update.
11961         * doc/posix-functions/realloc.texi: Update.
11962         * NEWS: Mention the change.
11963
11964         Rename module 'calloc' -> 'calloc-gnu'.
11965         * modules/calloc-gnu: New file, copied from modules/calloc.
11966         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11967         obsolete.
11968         * doc/posix-functions/calloc.texi: Update.
11969         * NEWS: Mention the change.
11970
11971         Rename module 'malloc' -> 'malloc-gnu'.
11972         * modules/malloc-gnu: New file, copied from modules/malloc.
11973         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11974         obsolete.
11975         * modules/argp (Depends-on): Update.
11976         * modules/regex (Depends-on): Update.
11977         * doc/posix-functions/malloc.texi: Update.
11978         * NEWS: Mention the change.
11979
11980 2010-08-28  Eric Blake  <eblake@redhat.com>
11981
11982         pread, pwrite: add missing dependency
11983         * modules/pread (Depends-on): Add extensions.
11984         * modules/pwrite (Depends-on): Likewise.
11985
11986 2010-08-28  Bruno Haible  <bruno@clisp.org>
11987
11988         unistr/u*-strchr: Fix tests dependencies.
11989         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11990         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11991         Reported by Ian Beckwith <ianb@erislabs.net>.
11992
11993 2010-08-28  Bruno Haible  <bruno@clisp.org>
11994
11995         read-file: Don't occupy too much unused memory.
11996         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11997
11998 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11999             Eric Blake  <eblake@redhat.com>
12000             Bruno Haible  <bruno@clisp.org>
12001
12002         read-file: Avoid memory reallocations with regular files.
12003         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12004         (fread_file): With regular files, use the remaining length as the
12005         initial buffer size.  Check against overflow.
12006         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12007         sys_stat.
12008
12009 2010-08-28  Bruno Haible  <bruno@clisp.org>
12010
12011         ftello: Relax license.
12012         * modules/ftello (License): Relax to LGPLv2+.
12013         Reported by Eric Blake.
12014
12015 2010-08-28  Bruno Haible  <bruno@clisp.org>
12016
12017         Avoid relocwrapper link errors due to gnulib replacement functions.
12018         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12019         function.
12020         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12021
12022 2010-08-28  Bruno Haible  <bruno@clisp.org>
12023
12024         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12025         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12026         defined.
12027         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12028         Suggested by Eric Blake.
12029
12030 2010-08-28  Bruno Haible  <bruno@clisp.org>
12031
12032         sys_socket, netdb: Ensure socklen_t gets defined.
12033         * modules/sys_socket (Depends-on): Add socklen.
12034         * modules/netdb (Depends-on): Likewise.
12035         * modules/getaddrinfo (Depends-on): Remove socklen.
12036         * modules/getsockopt (Depends-on): Likewise.
12037         * modules/setsockopt (Depends-on): Likewise.
12038         * tests/test-sys_socket.c: Check that socklen_t is defined.
12039         * tests/test-netdb.c: Likewise.
12040         * m4/socklen.m4: Update comments.
12041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12042
12043 2010-08-27  Eric Blake  <eblake@redhat.com>
12044
12045         login_tty: add missing dependency
12046         * modules/login_tty (Depends-on): Add pty.
12047
12048 2010-08-26  Eric Blake  <eblake@redhat.com>
12049
12050         lib-symbol-versions: fix m4 quoting
12051         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12052         format for AC_LINK_IFELSE.
12053
12054         glob: fix compile test
12055         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12056
12057         btowc: fix missing file
12058         * modules/btowc (Files): Also ship locale-fr.m4.
12059
12060         lseek: fix link test
12061         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12062         AC_LINK_IFELSE.
12063
12064         include_next: silence autoconf 2.68 warning
12065         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12066         AC_COMPILE_IFELSE as special.
12067         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12068         autoconf < 2.68.
12069
12070         acl: fix compilation test
12071         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12072         AC_COMPILE_IFELSE.
12073
12074 2010-08-26  Bruno Haible  <bruno@clisp.org>
12075
12076         Modernize AC_TRY_RUN invocations.
12077         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12078         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12079         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12080         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12081         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12082         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12083         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12084         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12085         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12086         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12087         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12088         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12089         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12090         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12091         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12092         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12093         gl_MBRLEN_NUL_RETVAL): Likewise.
12094         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12095         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12096         Likewise.
12097         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12098         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12099         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12100         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12101         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12102         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12103         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12104         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12105         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12106         Likewise.
12107         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12108         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12109         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12110         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12111         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12112         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12113         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12114         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12115         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12116         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12117
12118 2010-08-26  Bruno Haible  <bruno@clisp.org>
12119
12120         Modernize AC_TRY_LINK invocations.
12121         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12122         AC_TRY_LINK.
12123         * m4/argp.m4 (gl_ARGP): Likewise.
12124         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12125         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12126         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12127         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12128         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12129         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12130         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12131         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12132         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12133         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12134         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12135         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12136         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12137         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12138         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12139         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12140         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12141         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12142         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12143         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12144         Likewise.
12145         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12146         Likewise.
12147         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12148         Likewise.
12149         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12150         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12151         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12152         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12153         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12154         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12155         * m4/servent.m4 (gl_SERVENT): Likewise.
12156         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12157         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12158         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12159         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12160         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12161         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12162         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12163         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12164         * modules/tsearch-tests (configure.ac): Likewise.
12165
12166 2010-08-26  Bruno Haible  <bruno@clisp.org>
12167
12168         Modernize AC_TRY_COMPILE invocations.
12169         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12170         AC_TRY_COMPILE.
12171         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12172         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12173         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12174         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12175         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12176         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12177         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12178         * m4/lock.m4 (gl_LOCK): Likewise.
12179         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12180         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12181         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12182         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12183         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12184         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12185         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12186         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12187         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12188         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12189         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12190         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12191         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12192         extraneous semicolon.
12193
12194 2010-08-26  Jim Meyering  <meyering@redhat.com>
12195
12196         stat-time: relax license LGPL
12197         * modules/stat-time (License): Change from GPL to LGPL,
12198         with consent from all contributors, for use in libguile.
12199         Requested by Ludovic Courtès.
12200
12201 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
12202
12203         poll: return immediately on POLLHUP.
12204         * lib/poll.c (poll): Always set timeout before wait_timeout is
12205         computed.
12206
12207 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12208
12209         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
12210         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
12211         rmdir ("dir/.//"), unlinkat.
12212
12213 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12214
12215         stdbool: avoid spurious failure with modern xlc
12216         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12217
12218 2010-08-24  Bruno Haible  <bruno@clisp.org>
12219
12220         getloadavg: simplify code
12221         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
12222         gl_have_func. Update comments.
12223
12224 2010-08-24  Eric Blake  <eblake@redhat.com>
12225
12226         getloadavg: don't define SVR4 on cygwin
12227         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
12228         only define SVR4 when -lkvm is required.
12229         Reported by Yaakov Selkowitz.
12230
12231 2010-08-24  Bruno Haible  <bruno@clisp.org>
12232
12233         priv-set: fix comment
12234         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
12235
12236 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12237
12238         priv-set: fix comments
12239         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
12240         to match code, as suggested by David Bartley in:
12241         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
12242
12243 2010-08-23  Eric Blake  <eblake@redhat.com>
12244
12245         stdbool: avoid rejecting clang
12246         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12247         * tests/test-stdbool.c: Enable more tests if using the system
12248         <stdbool.h> instead of the gnulib replacement.
12249         (main): Move xlc bug test to a runtime test for all compilers.
12250         Reported by Anders Kaseorg.
12251
12252         argz: fix shell quoting issue
12253         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
12254         Reported by Charles Wilson.
12255
12256 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
12257             Erik Faye-Lund <kusmabite@gmail.com>
12258
12259         poll, select: handle ERROR_BROKEN_PIPE.
12260         * lib/poll.c (win32_compute_revents): Return POLLHUP when
12261         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12262         * lib/select.c (win32_compute_revents): Do not mark a pipe
12263         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12264
12265 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
12266
12267         fts: allow compilation with C++
12268         * lib/fts_.h: Specify extern "C" linkage with C++.
12269
12270 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12271
12272         Fix gnulib-tool sed script de-commentation for AIX sed.
12273         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12274         sed.
12275
12276 2010-08-17  Eric Blake  <eblake@redhat.com>
12277
12278         test-stddef: test for (some) offsetof bugs
12279         * tests/test-stddef.c: Enhance test to ensure correct type of
12280         offsetof.
12281         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12282         that we are not fixing at this time.
12283
12284 2010-08-15  Bruno Haible  <bruno@clisp.org>
12285
12286         stpncpy: Allow stpncpy to be defined as a macro.
12287         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12288         if it's already correctly declared.
12289         * lib/string.in.h (stpncpy): Undefine before redefining.
12290         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12291
12292 2010-08-14  Bruno Haible  <bruno@clisp.org>
12293
12294         Rename module 'memxfrm' to 'amemxfrm'.
12295         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12296         (amemxfrm): Renamed from memxfrm.
12297         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12298         (amemxfrm): Renamed from memxfrm.
12299         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12300         * NEWS: Mention the change.
12301         * MODULES.html.sh (String handling <string.h>): Update.
12302         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12303         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12304         * lib/unicase/u16-casexfrm.c: Likewise.
12305         * lib/unicase/u32-casexfrm.c: Likewise.
12306         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12307         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12308         * lib/uninorm/u16-normxfrm.c: Likewise.
12309         * lib/uninorm/u32-normxfrm.c: Likewise.
12310         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
12311         memxfrm.
12312         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
12313         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12314         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12315         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12316         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12317         Suggested by Paul Eggert.
12318
12319 2010-08-14  Bruno Haible  <bruno@clisp.org>
12320
12321         Tests for module 'astrxfrm'.
12322         * modules/astrxfrm-tests: New file.
12323         * tests/test-astrxfrm.c: New file.
12324
12325         New module 'astrxfrm'.
12326         * lib/astrxfrm.h: New file.
12327         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
12328         * modules/astrxfrm: New file.
12329
12330 2010-08-14  Reuben Thomas <rrt@sc3d.org>
12331
12332         regex: Tweak doc.
12333         * doc/regex.texi (Overview): Don't mention regex.c.
12334         (GNU Regular Expression Compiling): Likewise.
12335         (Match-end-of-line Operator): Mention 'not_eol'.
12336
12337 2010-08-14  Brian Gough  <bjg@gnu.org>
12338             Bruno Haible  <bruno@clisp.org>
12339
12340         git-merge-changelog: add doc relating to use with bzr and hg.
12341         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
12342
12343 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
12344
12345         pthread: fix pthread.h creation for srcdir != builddir
12346         * modules/pthread (Makefile.am): Fix the rule to work also in a
12347         non-srcdir build.
12348
12349 2010-08-13  Karl Berry  <karl@gnu.org>
12350
12351         * doc/regex.texi (Predefined Syntaxes): @smallexample.
12352         * doc/posix-*/*: force line break before @url of POSIX
12353         specifications.
12354         Suggested by Werner Lemberg.
12355
12356 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12357
12358         strtod: fix const diagnostic
12359         * lib/strtod.c (strtod): Don't assign const char * to char *,
12360         as this elicits a warning from GCC when warnings are enabled.
12361
12362 2010-08-10  Pádraig Brady <P@draigbrady.com>
12363         and Eric Blake  <eblake@redhat.com>
12364
12365         copy-acl: ignore ENOTSUP on HP-UX
12366         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
12367         so that it is available for HP-UX.
12368         * lib/copy-acl.c (qcopy_acl): Use it.
12369         Reported by Patrick M. Callahan.
12370
12371 2010-08-10  Eric Blake  <eblake@redhat.com>
12372
12373         open, chown: relax license
12374         * modules/open (License): Change to LGPLv2+, with consent by all
12375         authors, for use in augeas.
12376         * modules/chown (License): Likewise.
12377         * modules/lchown (Likewise): Likewise.
12378         Requested by Adam Stokes.
12379
12380 2010-08-09  Karl Berry  <karl@gnu.org>
12381
12382         * build-aux/ar-lib: new file, import from Automake.
12383         * config/srclist.txt: autocheck for updates.
12384
12385 2010-08-09  Eric Blake  <eblake@redhat.com>
12386
12387         readlinkat: adjust client modules
12388         * modules/areadlinkat (Depends-on): Use readlinkat, not
12389         symlinkat.
12390         * modules/areadlinkat-with-size (Depends-on): Likewise.
12391
12392         mknod: be more vocal about danger of running tests as root
12393         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12394         root, since that is just asking for problems.
12395         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12396
12397         readlinkat: split into its own module
12398         * modules/symlinkat: Split readlinkat...
12399         * modules/readlinkat: ...into separate module.
12400         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12401         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12402         * lib/symlinkat.c (readlinkat): Move...
12403         * lib/readlinkat.c: ...into new file.
12404         * modules/symlinkat-tests: Split readlinkat test...
12405         * modules/readlinkat-tests: ...into separate module.
12406         * tests/test-symlinkat.c: Split...
12407         * tests/test-readlinkat.c: ...into new file.
12408         * NEWS: Document the split.
12409         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12410         * lib/unistd.in.h (readlinkat): Likewise.
12411         Suggested by Bruno Haible.
12412
12413 2010-08-08  Bruno Haible  <bruno@clisp.org>
12414
12415         memxfrm: Speed up.
12416         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12417         that usually only one call to strxfrm is necessary for each string
12418         part.
12419         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12420
12421 2010-08-07  Karl Berry  <karl@gnu.org>
12422
12423         * doc/posix-headers/limits.texi,
12424         * doc/posix-functions/malloc.texi,
12425         * doc/posix-functions/strsignal.texi: missing @item.
12426         * doc/ld-version-script.texi: spurious leading i.
12427         * doc/regex.texi (Interval Operators): no commas inside @var.
12428
12429 2010-08-01  Bruno Haible  <bruno@clisp.org>
12430
12431         Integrate the regex documentation.
12432         * doc/gnulib.texi: Define 'cn' index.
12433         (Regular expressions): New a chapter that includes regex.texi and
12434         regexprops-generic.texi.
12435         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12436         syntax.
12437
12438         Whitespace cleanup.
12439         * doc/regex.texi: Remove trailing spaces.
12440
12441         Add regex documentation.
12442         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12443         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12444         Written by Kathy A. Hargreaves and Karl Berry.
12445
12446 2010-08-01  Bruno Haible  <bruno@clisp.org>
12447
12448         link: Update documentation.
12449         * doc/posix-functions/link.texi: Update regarding Solaris.
12450
12451 2010-07-31  Bruno Haible  <bruno@clisp.org>
12452
12453         Update modules list.
12454         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12455         (String handling <string.h>): Add memcmp2, memxfrm.
12456         (Container data structures): Add xlist, xsublist, xoset.
12457         (Core language properties): Add alignof, unused-parameter.
12458         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12459         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12460         (Unibyte characters <ctype.h>): New section.
12461         (String handling <string.h>): New section.
12462         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12463         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12464         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12465         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12466         tan, tanh, tanl, y0, y1, yn.
12467         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12468         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12469         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12470         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12471         unlockpt, vdprintf, vdprintf-posix.
12472         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12473         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12474         xconcat-filename.
12475         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12476         getdtablesize, pipe2, pipe2-safer.
12477         (Security): New section.
12478         (Networking functions): Add accept4.
12479         (Signal handling): Add sigpipe.
12480         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12481         mbmemcasecoll.
12482         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12483         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12484         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12485         pipe-filter-ii.
12486         (Misc): Add argp-version-etc, login_tty, parse-duration.
12487
12488 2010-07-31  Bruno Haible  <bruno@clisp.org>
12489
12490         Improve doc in MODULES.html.
12491         * modules/linkat (Description): Add the word "function".
12492         * modules/mkfifo (Description): Likewise.
12493         * modules/mknod (Description): Likewise.
12494         * modules/remove (Description): Likewise.
12495         * modules/renameat (Description): Likewise.
12496         * modules/stat (Description): Likewise.
12497         * modules/symlink (Description): Likewise.
12498         * modules/unlink (Description): Likewise.
12499
12500 2010-07-31  Bruno Haible  <bruno@clisp.org>
12501
12502         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12503         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12504         option --enable/disable-c++ instead of --enable/disable-cxx.
12505         * NEWS: Mention the change.
12506
12507 2010-07-31  Bruno Haible  <bruno@clisp.org>
12508
12509         readlink, areadlink: Relax test a bit.
12510         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12511         alternative to ENOTDIR.
12512         * tests/test-areadlink.h (test_areadlink): Likewise.
12513         Reported by Rainer Tammer.
12514
12515 2010-07-31  Bruno Haible  <bruno@clisp.org>
12516
12517         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12518         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12519         character, perform the search using U_STRCHR.
12520         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12521         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12522         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12523         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12524         Suggested by Paolo Bonzini.
12525
12526 2010-07-31  Bruno Haible  <bruno@clisp.org>
12527
12528         unistr/u*-strstr: Fix dependencies.
12529         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12530         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12531         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12532
12533 2010-07-31  Bruno Haible  <bruno@clisp.org>
12534
12535         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12536         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12537         the beginning of the loop.
12538         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12539         cases in 'switch' statement.
12540
12541         unistr/u8-strchr: Fix several bugs.
12542         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12543         the string. When not found, return NULL, not a pointer near the end.
12544
12545         More tests for unistr/u8-strchr.
12546         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12547         that the function does not read past the first occurrence of the byte
12548         being searched.
12549         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12550         * tests/unistr/test-u16-strchr.c (main): New function.
12551         * tests/unistr/test-u32-strchr.c (main): New function.
12552
12553 2010-07-31  Bruno Haible  <bruno@clisp.org>
12554
12555         posix-modules: Ignore backup files of documentation files.
12556         * posix-modules: grep only through files named *.texi.
12557
12558 2010-07-31  Bruno Haible  <bruno@clisp.org>
12559
12560         symlinkat: Fix documentation.
12561         * doc/posix-functions/readlinkat.texi: Fix module name.
12562
12563 2010-07-31  Bruno Haible  <bruno@clisp.org>
12564
12565         fchownat: Replace also when chown has the trailing slash bug.
12566         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12567         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12568         introduced on 2010-04-10.
12569         Reported by Rainer Tammer.
12570
12571 2010-07-31  Bruno Haible  <bruno@clisp.org>
12572
12573         linkat: Work around AIX 7.1 bug.
12574         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12575         whether linkat handles trailing slash correctly. If not, replace linkat
12576         and define LINKAT_TRAILING_SLASH_BUG.
12577         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12578         check whether (fd1,file1) points to a directory if file1 or file2 ends
12579         in a slash. Code taken from lib/link.c.
12580         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12581         Reported by Rainer Tammer.
12582
12583 2010-07-31  Bruno Haible  <bruno@clisp.org>
12584
12585         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12586         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12587         This disables an xlc optimization that was causing wrong test results.
12588         Reported by Rainer Tammer.
12589
12590 2010-07-31  Bruno Haible  <bruno@clisp.org>
12591
12592         iconv: Work around AIX 6.1..7.1 bug.
12593         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12594         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12595         cross-compiling, guess no on all versions of AIX.
12596         Reported by Rainer Tammer.
12597
12598 2010-07-31  Bruno Haible  <bruno@clisp.org>
12599
12600         readlink: Relax test a bit.
12601         * tests/test-readlink.h (test_readlink): Allow different errno value
12602         when readlink is called with a file name that ends in / and refers to
12603         a file.
12604         Suggested by Eric Blake.
12605         Reported by Rainer Tammer.
12606
12607 2010-07-31  Bruno Haible  <bruno@clisp.org>
12608
12609         copysign: Does not require -lm on glibc systems.
12610         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12611         gl_COMMON_DOUBLE_MATHFUNC.
12612         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12613
12614 2010-07-31  Bruno Haible  <bruno@clisp.org>
12615
12616         duplocale: Work around AIX 7.1 bug.
12617         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12618         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12619         * lib/duplocale.c (rpl_duplocale): Update comment.
12620         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12621         Reported by Rainer Tammer.
12622
12623 2010-07-30  Bruno Haible  <bruno@clisp.org>
12624
12625         dirfd: Avoid link error on AIX 7.1.
12626         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12627         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12628         exist, set REPLACE_DIRFD.
12629         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12630         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12631         * doc/posix-functions/dirfd.texi: Update.
12632         Reported by Rainer Tammer.
12633
12634 2010-07-30  Eric Blake  <eblake@redhat.com>
12635
12636         strtod: next round of AIX fixes
12637         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12638         exponent.
12639         * tests/test-strtod.c (main): Enhance tests.
12640         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12641         Reported by Rainer Tammer.
12642
12643         futimens: fix configure check
12644         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12645         Reported by Bruno Haible.
12646
12647 2010-07-30  Bruno Haible  <bruno@clisp.org>
12648
12649         getline: Update regarding AIX.
12650         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12651         Reported by Rainer Tammer.
12652
12653 2010-07-30  Bruno Haible  <bruno@clisp.org>
12654
12655         wcwidth: Drop replacement on AIX 7.
12656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12657         AIX 7.
12658         Reported by Rainer Tammer.
12659
12660 2010-07-30  Bruno Haible  <bruno@clisp.org>
12661
12662         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12663         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12664         a 'char *'.
12665         Reported by Rainer Tammer.
12666
12667 2010-07-30  Bruno Haible  <bruno@clisp.org>
12668
12669         unlink: Update regarding AIX.
12670         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12671         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12672         Reported by Rainer Tammer.
12673
12674 2010-07-30  Bruno Haible  <bruno@clisp.org>
12675
12676         symlink: Update regarding AIX.
12677         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12678         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12679         Reported by Rainer Tammer.
12680
12681 2010-07-30  Bruno Haible  <bruno@clisp.org>
12682
12683         strndup: Update regarding AIX.
12684         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12685         AIX 7.
12686         Reported by Rainer Tammer.
12687
12688 2010-07-30  Bruno Haible  <bruno@clisp.org>
12689
12690         stat: Update regarding AIX.
12691         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12692         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12693         Reported by Rainer Tammer.
12694
12695 2010-07-30  Bruno Haible  <bruno@clisp.org>
12696
12697         truncl: Fix autoconf test.
12698         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12699         whether truncl works.
12700         Reported by Rainer Tammer.
12701
12702 2010-07-30  Bruno Haible  <bruno@clisp.org>
12703
12704         round: Update regarding AIX.
12705         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12706         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12707         Reported by Rainer Tammer.
12708
12709 2010-07-30  Bruno Haible  <bruno@clisp.org>
12710
12711         rename: Update regarding AIX.
12712         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12713         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12714         Reported by Rainer Tammer.
12715
12716 2010-07-30  Bruno Haible  <bruno@clisp.org>
12717
12718         printf.m4: Update regarding AIX.
12719         * m4/printf.m4: Update comments regarding AIX.
12720         Reported by Rainer Tammer.
12721
12722 2010-07-30  Bruno Haible  <bruno@clisp.org>
12723
12724         iconv: Update regarding AIX.
12725         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12726         AIX 7.
12727         Reported by Rainer Tammer.
12728
12729 2010-07-30  Bruno Haible  <bruno@clisp.org>
12730
12731         getopt: Update regarding AIX.
12732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12733         no on AIX.
12734         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12735         Reported by Rainer Tammer.
12736
12737 2010-07-30  Bruno Haible  <bruno@clisp.org>
12738
12739         ldexpl; Update regarding AIX.
12740         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12741         on AIX 7.
12742         Reported by Rainer Tammer.
12743
12744 2010-07-30  Bruno Haible  <bruno@clisp.org>
12745
12746         frexpl: Update regarding AIX.
12747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12748         on AIX 7.
12749         Reported by Rainer Tammer.
12750
12751 2010-07-30  Bruno Haible  <bruno@clisp.org>
12752
12753         open, fopen: Update regarding AIX.
12754         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12755         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12756         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12757         * doc/posix-functions/fopen.texi: Likewise.
12758         Reported by Rainer Tammer.
12759
12760 2010-07-30  Bruno Haible  <bruno@clisp.org>
12761
12762         chown: Update doc regarding AIX.
12763         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12764         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12765         Reported by Rainer Tammer.
12766
12767 2010-07-30  Eric Blake  <eblake@redhat.com>
12768
12769         strtod: fix bug in replacement function on AIX
12770         * lib/strtod.c (strtod): Special case broken "0x" parse in
12771         underlying strtod.
12772         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12773         * doc/posix-functions/strtod.texi (strtod): Likewise.
12774         Reported by Rainer Tammer.
12775
12776 2010-07-30  Bruno Haible  <bruno@clisp.org>
12777
12778         mbrlen: Fix cross-compilation guess for AIX.
12779         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12780         guess. Leftover from 2008-12-22.
12781
12782 2010-07-30  Bruno Haible  <bruno@clisp.org>
12783
12784         mbrtowc: Fix cross-compilation guess for AIX.
12785         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12786         guess. Leftover from 2008-12-21.
12787
12788 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12789
12790         init.sh: work around trap limitation of some shells
12791         * tests/init.sh (setup_): Move exit trap outside of shell function.
12792
12793 2010-07-29  Eric Blake  <eblake@redhat.com>
12794
12795         strtod: aid debugging
12796         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12797         understanding why strtod is rejected.
12798
12799 2010-07-28  Bruno Haible  <bruno@clisp.org>
12800
12801         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12802         * lib/unistr/u8-chr.c: Include <string.h>.
12803         * tests/unistr/test-u8-chr.c: Likewise.
12804         * tests/unistr/test-u16-chr.c: Likewise.
12805         * tests/unistr/test-u32-chr.c: Likewise.
12806         * tests/unistr/test-u8-strchr.c: Likewise.
12807         * tests/unistr/test-u16-strchr.c: Likewise.
12808         * tests/unistr/test-u32-strchr.c: Likewise.
12809         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12810         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12811         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12812         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12813
12814 2010-07-28  Bruno Haible  <bruno@clisp.org>
12815
12816         Use spaces for indentation, not tabs.
12817         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12818
12819 2010-07-27  Bruno Haible  <bruno@clisp.org>
12820
12821         mbspcasecmp: Fix function specification.
12822         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12823         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12824         Reported by Eric Blake <eblake@redhat.com>.
12825
12826 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12827
12828         timespec: use cast and not conditional, as truncation isn't possible
12829         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12830         instead of a conditional.  Comment about the situation in more detail.
12831         This undoes most of the 2009-10-29 patch.
12832
12833 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12834
12835         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12836         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12837         * lib/unistr/u8-strchr.c: Likewise.
12838         * modules/unistr/u8-chr: Depend on memchr.
12839
12840         unistr/u*-strchr: add tests
12841         * modules/unistr/u8-strchr-tests: New file.
12842         * modules/unistr/u16-strchr-tests: New file.
12843         * modules/unistr/u32-strchr-tests: New file.
12844         * tests/unistr/test-strchr.h: New file.
12845         * tests/unistr/test-u8-strchr.c: New file.
12846         * tests/unistr/test-u16-strchr.c: New file.
12847         * tests/unistr/test-u32-strchr.c: New file.
12848
12849         unistr/u*-chr: test multibyte sequences more
12850         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12851         test vector.
12852         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12853         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12854         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12855
12856         unistr/u*-chr: test multibyte sequences
12857         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12858
12859         unistr/u*-chr: prepare for multibyte tests
12860         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12861         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12862         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12863         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12864         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12865         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12866
12867 2010-07-18  Bruno Haible  <bruno@clisp.org>
12868
12869         unistr/u8-strchr: Optimize non-ASCII argument case.
12870         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12871         because the first byte often matches anyway.
12872         Reported by Pádraig Brady <P@draigbrady.com>.
12873
12874 2010-07-15  Karl Berry  <karl@gnu.org>
12875
12876         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12877
12878 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12879
12880         getcwd: on Solaris, work better if ancestors are inaccessible
12881         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12882         buffer and size, try again with a large buffer.  This works better
12883         on Solaris, since its getcwd succeeds even if the path to the root
12884         is inaccessible, and this is helpful in common cases such as .zfs
12885         hidden directories.  Problem reported by J Chapman Flack in
12886         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12887         Use system getcwd if it's declared, not merely if it's partly
12888         working; use the partly-working test only to avoid needless effort
12889         if the system getcwd fails.
12890         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12891         comment that was already obsolete and is now even more obsolete.
12892         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12893         now might call strdup.
12894
12895 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12896
12897         pthread: Add enough so that coreutils/src/sort.c compiles.
12898         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12899         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12900         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12901         Include <sys/types.h>, in case it defines pthread_t.
12902         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12903         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12904         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12905         (pthread_rwlockattr_t, pthread_spinlock_t):
12906         New typedefs, if HAVE_PTHREAD_T is not defined.
12907         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12908         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12909         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12910         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12911         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12912         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12913         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12914         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12915         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12916         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12917         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12918         New macros.
12919         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12920         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12921         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12922         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12923         (pthread_spin_unlock): New dummy functions.
12924         (pthread_create): Return EAGAIN; don't set errno.
12925         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12926         require AC_C_INLINE.
12927         * modules/pthread (Depends-on): Add sched, time.
12928         (pthread.h): Use AM_V_GEN.
12929
12930 2010-07-13  Bruno Haible  <bruno@clisp.org>
12931
12932         striconveh: Don't malloc memory if the result buffer is sufficient.
12933         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12934         buffer if its size is sufficient.
12935         Reported by Ludovic Courtès <ludo@gnu.org>.
12936
12937 2010-07-13  Bruno Haible  <bruno@clisp.org>
12938
12939         strtod: Add safety check.
12940         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12941
12942 2010-07-12  Bruno Haible  <bruno@clisp.org>
12943
12944         Unify tests that set gl_cv_func_ldexpl_no_libm.
12945         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12946         gl_FUNC_LDEXPL.
12947         (gl_FUNC_LDEXPL): Invoke it.
12948         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12949
12950 2010-07-12  Bruno Haible  <bruno@clisp.org>
12951
12952         Unify tests that set gl_cv_func_ldexp_no_libm.
12953         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12954         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12955         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12956         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12957         * modules/strtod (Files): Add m4/ldexp.m4.
12958
12959 2010-07-12  Bruno Haible  <bruno@clisp.org>
12960
12961         Unify tests that set gl_cv_func_frexpl_no_libm.
12962         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12963         gl_FUNC_FREXPL_NO_LIBM.
12964         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12965         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12966
12967 2010-07-12  Bruno Haible  <bruno@clisp.org>
12968
12969         Unify tests that set gl_cv_func_frexp_no_libm.
12970         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12971         gl_FUNC_FREXP_NO_LIBM.
12972         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12973         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12974
12975 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12976
12977         memcoll: clarify sizes versus lengths, document better, and tweak perf
12978         * lib/memcoll.c (strcoll_loop, memcoll0):
12979         Improve quality of descriptive comments.  Name variables
12980         consistently as to whether they are lengths (which do not include
12981         terminating null) versus sizes (which do).
12982         * lib/xmemcoll.c (xmemcoll0): Likewise.
12983         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12984         returned when s1size == 0; this is easier to compile and saves
12985         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12986
12987 2010-07-12  Bruno Haible  <bruno@clisp.org>
12988
12989         Tests for module '_Exit'.
12990         * modules/_Exit-tests: New file.
12991         * tests/test-_Exit.sh: New file.
12992         * tests/test-_Exit.c: New file.
12993
12994         New module '_Exit'.
12995         * lib/stdlib.in.h (__attribute__): New macro.
12996         (_Exit): New declaration.
12997         * lib/_Exit.c: New file.
12998         * m4/_Exit.m4: New file.
12999         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13000         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13001         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13002         * modules/_Exit: New file.
13003         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13004         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13005
13006 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13007
13008         strtod: make it more-accurate typically, and don't require libm
13009         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13010         Include limits.h.  Don't include string.h.
13011         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13012         (locale_isspace): New function, so that no casts are needed to
13013         check whether *s is a space.
13014         (ldexp): Provide an unused dummy if not available.
13015         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13016         (strtod): Use them.  This implementation prefers to use the
13017         underlying strtod if available, falling back on our own code
13018         only to fix known bugs.  This is more likely to produce an
13019         accurate result.  Also, it avoids the use of libm functions.
13020         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13021         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13022         was absent, but it caused a test failure with coreutils.
13023         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13024         with libm.
13025         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13026         * modules/strtod-tests (Makefile.am): Likewise.
13027
13028 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13029             Bruno Haible  <bruno@clisp.org>
13030
13031         unistr/u8-strchr: Optimize ASCII argument case.
13032         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13033
13034 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13035
13036         (x)memcoll: minor tweaks
13037         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13038         is after the type that it qualifies.
13039         (memcoll0): Likewise.
13040         * lib/memcoll.h (memcoll0): Likewise.
13041         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13042         * lib/xmemcoll.h (xmemcoll0): Likewise.
13043         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13044         differs from memcoll in that the NUL byte is part of the argument.
13045         Omit the abort-checks, as performance is a real issue here.  Plus,
13046         the checks were wrong anyway (an off-by-one error).  Omit local
13047         variable 'diff', as it's a bit clearer that way.
13048         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13049         no longer needed.
13050
13051 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13052
13053         (x)memcoll: speedup when input is known to be NUL delimited
13054         * lib/memcoll.c: Include stdlib.
13055         (memcoll0): New function.
13056         (strcoll_loop): New function, refactored for use in both memcoll
13057         and memcoll0.
13058         * lib/memcoll.h (memcoll0): Add prototype.
13059         * lib/xmemcoll.c (xmemcoll0): New function.
13060         (collate_error): New function, refactored for use in both xmemcoll
13061         and xmemcoll0.
13062         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13063         * m4/memcoll.m4: add inline invocation.
13064
13065 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13066
13067         * build-aux/bootstrap: Remove any local translations
13068         from the translation project synchronization directory,
13069         so that local only translations are not distributed.
13070
13071 2010-07-04  Bruno Haible  <bruno@clisp.org>
13072
13073         fsusage: Clarify which code applies to which platforms.
13074         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13075         platform.
13076         * lib/fsusage.c (get_fs_usage): Likewise.
13077
13078 2010-07-04  Bruno Haible  <bruno@clisp.org>
13079
13080         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13081         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13082         Reported by Martin Lambers <marlam@marlam.de>.
13083
13084 2010-07-04  Jim Meyering  <meyering@redhat.com>
13085
13086         hash: once again explicitly disallow insertion of NULL
13087         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13088         inserting a NULL pointer cannot work with these functions.
13089         Add a comment with details.
13090         This reverts part of the 2010-07-01 commit, 5bef1a35
13091         "hash: extend module to deal with non-pointer keys".
13092
13093 2010-07-01  Bruno Haible  <bruno@clisp.org>
13094
13095         stdbool: Update doc.
13096         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13097         Info from Christian Weisgerber <naddy@mips.inka.de>.
13098
13099 2010-07-01  Jim Meyering  <meyering@redhat.com>
13100
13101         hash: extend module to deal with non-pointer keys
13102         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13103         but that allows insertion of non-pointer entries.
13104         Do not disallow an ENTRY value of NULL.
13105         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13106         * lib/hash.h (hash_insert0): Declare.
13107
13108 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13109
13110         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13111         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13112         not present (i.e. with autoconf 2.59 and when using gettextize, not
13113         gnulib), require AC_GNU_SOURCE instead.
13114
13115 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13116
13117         idpriv-drop: Fix tests.
13118         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13119         not to the test-idpriv-droptemp program.
13120
13121 2010-06-29  Bruno Haible  <bruno@clisp.org>
13122
13123         string: Fix syntax error with g++ 2.96.
13124         * lib/string.in.h (__pure__): Remove definition.
13125         (_GL_ATTRIBUTE_PURE): New macro.
13126         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13127         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13128         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13129
13130 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13131
13132         unitypes: Fix bug introduced on 2010-05-18.
13133         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13134
13135 2010-06-22  Eric Blake  <eblake@redhat.com>
13136
13137         memmem: slight optimization
13138         * lib/str-two-way.h (critical_factorization): Update comments.
13139         Reduce work during factorization phase.
13140         Reported by Carlos Bueno <carlos@bueno.org>.
13141
13142 2010-06-21  Bruno Haible  <bruno@clisp.org>
13143
13144         Fix HAVE_CALLOC_POSIX misnomer.
13145         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13146         !HAVE_CALLOC_POSIX.
13147         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13148         HAVE_CALLOC_POSIX.
13149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13150         instead of HAVE_CALLOC_POSIX.
13151         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13152         HAVE_CALLOC_POSIX.
13153
13154         Use modern idiom for calloc() replacement.
13155         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13156         AC_FUNC_CALLOC.
13157         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13158         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13159         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13160         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13161         (gl_REPLACE_CALLOC): New macro.
13162
13163 2010-06-21  Bruno Haible  <bruno@clisp.org>
13164
13165         Fix HAVE_REALLOC_POSIX misnomer.
13166         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13167         !HAVE_REALLOC_POSIX.
13168         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13169         HAVE_REALLOC_POSIX.
13170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13171         instead of HAVE_REALLOC_POSIX.
13172         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13173         HAVE_REALLOC_POSIX.
13174
13175         Use modern idiom for realloc() replacement.
13176         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13177         AC_FUNC_REALLOC.
13178         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13179         Autoconf's AC_FUNC_REALLOC.
13180         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13181         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13182         (gl_REPLACE_REALLOC): New macro.
13183         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13184
13185 2010-06-21  Bruno Haible  <bruno@clisp.org>
13186
13187         Fix HAVE_MALLOC_POSIX misnomer.
13188         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13189         !HAVE_MALLOC_POSIX.
13190         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13191         HAVE_MALLOC_POSIX.
13192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13193         instead of HAVE_MALLOC_POSIX.
13194         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13195         HAVE_MALLOC_POSIX.
13196
13197         Use modern idiom for malloc() replacement.
13198         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
13199         AC_FUNC_MALLOC.
13200         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
13201         Autoconf's AC_FUNC_MALLOC.
13202         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13203         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
13204         (gl_REPLACE_MALLOC): New macro.
13205         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13206
13207 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
13208
13209         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
13210         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
13211         This macro takes 3 arguments, not 4.
13212
13213 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
13214
13215         ipv6: fix detection under mingw
13216         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
13217         in6_addr.
13218
13219 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
13220
13221         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
13222         that strtod() works when cross-compiling to a glibc version known
13223         to work.
13224
13225 2010-06-15  Bruno Haible  <bruno@clisp.org>
13226
13227         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
13228
13229 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
13230
13231         select: Correct timeout.
13232         * lib/select.c (rpl_select): Compute wait_timeout correctly.
13233
13234 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13235
13236         git-version-gen: init shell var to avoid env var influence
13237         * build-aux/git-version-gen (v): Init shell var to empty.
13238
13239 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13240
13241         priv-set: Don't assume that priv.h exists merely because getppriv does.
13242         See Jan Andersen's bug report about AIX 5L in
13243         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
13244         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
13245         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13246         * lib/priv-set.h: Likewise.
13247         * tests/test-priv-set.c: Likewise.
13248
13249 2010-06-13  Bruno Haible  <bruno@clisp.org>
13250
13251         relocatable: Make it easier to test whether to install wrappers.
13252         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
13253         RELOCATABLE_VIA_WRAPPER.
13254
13255 2010-06-13  Bruno Haible  <bruno@clisp.org>
13256
13257         gnulib-tool: Display specified modules and dependencies differently.
13258         * gnulib-tool (func_show_module_list): New function.
13259         (func_import, func_create_testdir): Invoke it.
13260         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13261
13262 2010-06-13  Bruno Haible  <bruno@clisp.org>
13263
13264         gnulib-tool: Align code of func_import and func_create_testdir.
13265         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
13266         specified_modules.
13267
13268 2010-06-12  Jim Meyering  <meyering@redhat.com>
13269
13270         test-inttostr: avoid spurious failure on Solaris 9
13271         * tests/test-inttostr.c (main): Skip the test when snprintf fails
13272         to accept "%ju".  Reported by Bruno Haible.
13273
13274 2010-06-11  Jim Meyering  <meyering@redhat.com>
13275
13276         test-sys_socket: mark variables as used more readably
13277         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13278         as "used" explicitly via (void) statement casts.  This is more
13279         readable than using them in an artificial return expression.
13280         Suggestion from Bruno Haible.
13281
13282 2010-06-11  Bruno Haible  <bruno@clisp.org>
13283
13284         Avoid some more warnings from "gcc -Wwrite-strings".
13285         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13286         to 'const char *'.
13287         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13288         * tests/test-c-strcasestr.c (main): Likewise.
13289         * tests/test-mbscasestr1.c (main): Likewise.
13290         * tests/test-mbscasestr2.c (main): Likewise.
13291         * tests/test-memmem.c (main): Likewise.
13292         * tests/test-strstr.c (main): Likewise.
13293         * tests/test-strcasestr.c (main): Likewise.
13294
13295 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13296
13297         init.sh: change framework_failure_ to fail with status 99, not 1
13298         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13299         automake's parallel-tests rule that this is an unexpected failure,
13300         even if the test is listed in XFAIL_TESTS.
13301
13302 2010-06-11  Jim Meyering  <meyering@redhat.com>
13303
13304         test-inttostr: avoid warnings about 4-6KB literal strings
13305         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13306         Include "macros.h", for its definition of ASSERT.
13307         (CK): s/assert/ASSERT/
13308         * modules/inttostr-tests (Files): Add macros.h.
13309
13310         init.sh: don't use $ME_ or skip_ before they are defined
13311         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
13312         their first uses.  Also hoist their companions: warn_, fail_,
13313         framework_failure_, $stderr_fileno.  Prompted by a patch from
13314         Stefano Lattarini.
13315
13316         test-sys_socket: avoid set-but-not-used warnings from gcc
13317         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
13318         avoid warning about set-but-not-used variables.
13319
13320         test-xvasprintf: avoid 'const' discard warnings
13321         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
13322         "const" when assigning from literal strings.
13323         (test_xasprintf): Add "void" in function argument list to placate
13324         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
13325
13326         tests: avoid compilation warnings in argmatch and exclude tests...
13327         in packages that define ARGMATCH_DIE_DECL, like coreutils.
13328         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
13329         Since it always exits, declare with the "noreturn" attribute.
13330         * tests/test-argmatch.c: Likewise.
13331
13332         tests: avoid 'const' discard warnings in mbsstr tests
13333         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
13334         * tests/test-mbsstr2.c (main): Likewise.
13335
13336         test-verify: avoid warning from gcc's -Wmissing-declarations
13337         * tests/test-verify.c (function): Declare to be static.
13338
13339         test-inttostr.c: include <string.h> for use of strcmp
13340         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
13341
13342         test-linkat: avoid failed assertion on "other" architectures
13343         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
13344         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
13345         sparc: https://bugs.launchpad.net/bugs/591968
13346
13347 2010-06-11  Jim Meyering  <meyering@redhat.com>
13348
13349         printf.m4: avoid autoconf's "Expanded Before Required" warning
13350         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
13351         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
13352         autoconf warning.
13353
13354 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
13355
13356         Replacement header templates are now named with ".in", not "_".
13357         * doc/gnulib-intro.texi: Correct.
13358
13359 2010-06-10  Jim Meyering  <meyering@redhat.com>
13360
13361         inttostr-tests: depend on snprintf, not snprintf-posix
13362         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
13363         snprintf-posix, to avoid this aclocal failure:
13364           missing file gnulib-tests/vasnprintf.c
13365           configure.ac:45: error: expected source file, required through \
13366           AC_LIBSOURCES, not found
13367
13368 2010-06-10  Jim Meyering  <meyering@redhat.com>
13369
13370         inttostr: add a new function, inttostr, and tests
13371         The namesake function was not available.  The existence of the
13372         template file, inttostr.c makes its addition nontrivial.
13373         * lib/anytostr.c: Rename from inttostr.c.
13374         (anytostr): Rename from inttostr.
13375         * lib/inttostr.c: New file.
13376         * modules/inttostr (Files): Add anytostr.c.
13377         (Makefile.am): Set lib_SOURCES instead of ...
13378         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13379         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13380         * lib/offtostr.c: Likewise.
13381         * lib/uinttostr.c: Likewise.
13382         * lib/umaxtostr.c: Likewise.
13383         * modules/inttostr-tests: New file.
13384         * tests/test-inttostr.c: New file.  Test these functions.
13385
13386 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13387             Bruno Haible  <bruno@clisp.org>
13388
13389         Add "Extending Gnulib" chapter to manual.
13390         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13391         chapter.
13392         (Extending Gnulib): New chapter.
13393         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13394         chapter.
13395
13396 2010-06-09  Bruno Haible  <bruno@clisp.org>
13397
13398         Avoid relocwrapper link errors due to gnulib replacement functions.
13399         * lib/areadlink.c: Use the system's malloc, realloc functions.
13400         (areadlink): Set errno to ENOMEM explicitly.
13401         * modules/areadlink (Depends-on): Remove malloc-posix.
13402         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13403
13404 2010-06-09  Bruno Haible  <bruno@clisp.org>
13405
13406         Avoid relocwrapper link errors due to gnulib replacement functions.
13407         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13408         * lib/malloca.c: Likewise.
13409         * lib/relocatable.c: Likewise.
13410         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13411         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13412         * lib/setenv.c: Use the system's malloc, realloc functions.
13413         * lib/strerror.c: Use the system's sprintf function.
13414         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13415
13416 2010-06-04  Bruno Haible  <bruno@clisp.org>
13417
13418         Prefer documented low-level autoconf macro names.
13419         * m4/lib-link.m4: Use m4_translit instead of translit.
13420         * m4/environ.m4: Likewise.
13421         * m4/mathfunc.m4: Likewise.
13422         * m4/onceonly.m4: Likewise.
13423         * m4/stdint.m4: Likewise.
13424         Suggested by Eric Blake.
13425
13426 2010-06-04  Martin Lambers  <marlam@marlam.de>
13427             Bruno Haible  <bruno@clisp.org>
13428
13429         havelib: Allow library names with '+' characters.
13430         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13431         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13432
13433 2010-06-09  Bruno Haible  <bruno@clisp.org>
13434
13435         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13436         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13437         realloc failed.
13438
13439 2010-06-08  Peter Simons  <simons@cryp.to>
13440
13441         maint.mk: make the news-check rule more configurable
13442         * top/maint.mk (news-check-lines-spec): New variable.
13443         (news-check): Use "sed -n 1,10p" in place of "head".
13444
13445 2010-06-07  Jim Meyering  <meyering@redhat.com>
13446
13447         do-release-commit-and-tag: fix typo in --help
13448         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13449
13450         regex: avoid new dead-code warning with gcc-4.6.0
13451         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13452         if-block containing a while-loop.  It's been unused for at least
13453         5 years.
13454
13455 2010-06-05  Bruno Haible  <bruno@clisp.org>
13456
13457         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13458         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13459
13460 2010-06-04  Bruno Haible  <bruno@clisp.org>
13461
13462         Update to GNU gettext 0.18.1.
13463         * modules/gettext (configure.ac): Require gettext infrastructure from
13464         version 0.18.1.
13465
13466 2010-06-03  Bruno Haible  <bruno@clisp.org>
13467
13468         Don't use AC_LIBOBJ with file names in subdirectories.
13469         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13470         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13471         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13472         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13473         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13474         gl_LIBUNISTRING_LIBSOURCE.
13475         (Makefile.am): Augment lib_SOURCES here, conditionally.
13476         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13477
13478 2010-06-03  Bruno Haible  <bruno@clisp.org>
13479
13480         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13481         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13482         expansion does not end with a newline.
13483         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13484         unnecessary newline.
13485
13486 2010-06-03  Bruno Haible  <bruno@clisp.org>
13487
13488         Reduce dependencies.
13489         * tests/test-quotearg.h: New file, extracted from
13490         tests/test-quotearg.c.
13491         * tests/test-quotearg-simple.c: New file, extracted from
13492         tests/test-quotearg.c.
13493         * tests/test-quotearg.c: Don't include <ctype.h>.
13494         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13495         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13496         use_quote_double_quotes, use_quotearg_colon): Moved to
13497         tests/test-quotearg.h.
13498         (results_g, flag_results, custom_quotes, custom_results): Moved
13499         to tests/test-quotearg-simple.c.
13500         (main): Moved the part that does not depend on gettext to
13501         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13502         performed.
13503         * modules/quotearg-simple: New file.
13504         * modules/quotearg-simple-tests: New file.
13505         * modules/quotearg (Depends-on): Add quotearg-simple.
13506         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13507         (Files): Add tests/test-quotearg.h.
13508         Reported by Paolo Bonzini.
13509
13510 2010-06-03  Bruno Haible  <bruno@clisp.org>
13511
13512         Reduce dependencies.
13513         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13514
13515 2010-06-03  Bruno Haible  <bruno@clisp.org>
13516
13517         time: Undefine more broken macros.
13518         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13519         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13520         Reported by Eric Blake.
13521
13522 2010-06-03  Bruno Haible  <bruno@clisp.org>
13523
13524         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13525         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13526         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13527         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13528         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13529         Reported by Ludovic Courtès <ludo@gnu.org>.
13530
13531 2010-06-02  Eric Blake  <eblake@redhat.com>
13532
13533         time: work with mingw + pthreads-win32 library
13534         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13535         if timespec is defined only in pthread.h.
13536         * modules/time (Makefile.am): Substitute it.
13537         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13538         <pthread.h>, when needed.
13539         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13540         from the library.
13541
13542 2010-05-31  Bruno Haible  <bruno@clisp.org>
13543
13544         Avoid expanding two macros in the wrong order.
13545         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13546         gl_LIBUNISTRING if it is defined.
13547         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13548         autoconf >= 2.64.
13549         Reported by Ludovic Courtès <ludo@gnu.org>.
13550
13551 2010-05-27  Jim Meyering  <meyering@redhat.com>
13552
13553         maint.mk: also prohibit "#undef" of always-defined symbols
13554         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13555         Allow more than one space before the symbol name.
13556         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13557         the regexp uses alternation.
13558
13559 2010-05-26  Eric Blake  <eblake@redhat.com>
13560
13561         maint.mk: avoid echo -e
13562         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13563         Convert all uses of echo -* to printf.
13564         Reported by Matthias Bolte.
13565
13566 2010-05-25  Bruno Haible  <bruno@clisp.org>
13567
13568         Update to GNU gettext 0.18, part 2.
13569         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13570         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13571
13572 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13573
13574         Add missing include in test-pwrite.c.
13575         * tests/test-pwrite.c: Include string.h, for strcmp.
13576
13577 2010-05-24  Bruno Haible  <bruno@clisp.org>
13578
13579         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13580
13581 2010-05-24  Bruno Haible  <bruno@clisp.org>
13582
13583         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13584         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13585         iconveh_error argument.
13586         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13587         U_STRCONV_TO_LOCALE.
13588         * lib/unistr/u16-strcoll.c: Likewise.
13589         * lib/unistr/u32-strcoll.c: Likewise.
13590         * modules/unistr/u8-strcoll (Depends-on): Add
13591         uniconv/u8-strconv-to-enc, localcharset. Remove
13592         uniconv/u8-strconv-to-locale.
13593         (configure.ac): Bump version number.
13594         * modules/unistr/u16-strcoll (Depends-on): Add
13595         uniconv/u16-strconv-to-enc, localcharset. Remove
13596         uniconv/u16-strconv-to-locale.
13597         (configure.ac): Bump version number.
13598         * modules/unistr/u32-strcoll (Depends-on): Add
13599         uniconv/u32-strconv-to-enc, localcharset. Remove
13600         uniconv/u32-strconv-to-locale.
13601         (configure.ac): Bump version number.
13602
13603 2010-05-24  Bruno Haible  <bruno@clisp.org>
13604
13605         Avoid a test failure on NetBSD 5.0.
13606         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13607         an iconv() bug.
13608
13609 2010-05-24  Bruno Haible  <bruno@clisp.org>
13610
13611         Adjust #include directive style.
13612         * modules/regex (Includes): Recommend to write <regex.h>.
13613
13614 2010-05-24  Bruno Haible  <bruno@clisp.org>
13615
13616         regex: Don't require alloca.
13617         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13618         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13619         only inside if (0).
13620
13621 2010-05-23  Jim Meyering  <meyering@redhat.com>
13622
13623         test-renameat.c: include <sys/stat.h>
13624         * tests/test-renameat.c: Include <sys/stat.h>; required for
13625         definition of S_IS* macros.
13626
13627 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13628
13629         Update maintainer documentation for 'relocatable-prog' module.
13630         * doc/relocatable-maint.texi: Update.
13631         Comments by Bruno Haible.
13632
13633 2010-05-23  Bruno Haible  <bruno@clisp.org>
13634
13635         git-merge-changelog: Enable --split-merged-entry by default.
13636         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13637         (usage): Don't mention this option any more.
13638         Reported by Ralf Wildenhues.
13639
13640 2010-05-23  Jim Meyering  <meyering@redhat.com>
13641
13642         test-pwrite: do not leave behind a test file named "out"
13643         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13644         The trivial-looking use of init.sh is really necessary.
13645         It ensures that the temporary file, "out", is created in
13646         a temporary directory, and removed upon termination.
13647         * tests/test-pwrite.sh: Re-add file.
13648         * modules/pwrite-tests: Reference it.
13649
13650 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13651
13652         Fix output redirection buglet in init.sh.
13653         * tests/init.sh: Fix redirection of stderr.
13654
13655 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13656
13657         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13658
13659 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13660
13661         * modules/valgrind-tests: New file.
13662         * m4/valgrind-tests.m4: New file.
13663         * doc/valgrind-tests.texi: New file.
13664         * doc/gnulib.texi (Running self-tests under valgrind): New
13665         section.
13666
13667 2010-05-19  Bruno Haible  <bruno@clisp.org>
13668
13669         Clean up dead code in recent commit.
13670         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13671         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13672         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13673         Suggested by Paolo Bonzini.
13674
13675 2010-05-19  Bruno Haible  <bruno@clisp.org>
13676
13677         Avoid valgrind error reports from libunistring.
13678         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13679         * modules/libunistring (Files): Add it.
13680         * modules/libunistring-optional (Files): Likewise.
13681
13682 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13683             Bruno Haible  <bruno@clisp.org>
13684
13685         New module 'libunistring-optional'.
13686         * modules/libunistring-optional: New file.
13687         * m4/libunistring-base.m4: New file.
13688         * m4/libunistring-optional.m4: New file.
13689         * lib/unicase.in.h: Renamed from lib/unicase.h.
13690         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13691         * lib/unictype.in.h: Renamed from lib/unictype.h.
13692         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13693         * lib/uniname.in.h: Renamed from lib/uniname.h.
13694         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13695         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13696         * lib/unistr.in.h: Renamed from lib/unistr.h.
13697         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13698         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13699         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13700         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13701         gl_LIBUNISTRING. If the library was found, determine the installed
13702         version and set LIBUNISTRING_VERSION.
13703         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13704         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13705         handle a configuration option --with-included-libunistring.
13706         * modules/libunistring (Files): Add m4/absolute-header.m4.
13707         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13708         Add m4/libunistring-base.m4.
13709         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13710         (Makefile.am): Build unicase.h from unicase.in.h.
13711         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13712         Add m4/libunistring-base.m4.
13713         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13714         (Makefile.am): Build uniconv.h from uniconv.in.h.
13715         * modules/unictype/base (Files): Use unictype.in.h instead of
13716         unictype.h. Add m4/libunistring-base.m4.
13717         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13718         (Makefile.am): Build unictype.h from unictype.in.h.
13719         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13720         Add m4/libunistring-base.m4.
13721         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13722         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13723         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13724         Add m4/libunistring-base.m4.
13725         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13726         (Makefile.am): Build uniname.h from uniname.in.h.
13727         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13728         Add m4/libunistring-base.m4.
13729         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13730         (Makefile.am): Build uninorm.h from uninorm.in.h.
13731         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13732         unistdio.h. Add m4/libunistring-base.m4.
13733         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13734         (Makefile.am): Build unistdio.h from unistdio.in.h.
13735         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13736         Add m4/libunistring-base.m4.
13737         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13738         (Makefile.am): Build unistr.h from unistr.in.h.
13739         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13740         Add m4/libunistring-base.m4.
13741         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13742         (Makefile.am): Build unitypes.h from unitypes.in.h.
13743         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13744         Add m4/libunistring-base.m4.
13745         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13746         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13747         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13748         uniwidth.h. Add m4/libunistring-base.m4.
13749         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13750         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13751         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13752         instead of augmenting lib_SOURCES.
13753         * modules/unicase/empty-suffix-context: Likewise.
13754         * modules/unicase/locale-language: Likewise.
13755         * modules/unicase/tolower: Likewise.
13756         * modules/unicase/totitle: Likewise.
13757         * modules/unicase/toupper: Likewise.
13758         * modules/unicase/u8-casecmp: Likewise.
13759         * modules/unicase/u8-casecoll: Likewise.
13760         * modules/unicase/u8-casefold: Likewise.
13761         * modules/unicase/u8-casexfrm: Likewise.
13762         * modules/unicase/u8-ct-casefold: Likewise.
13763         * modules/unicase/u8-ct-tolower: Likewise.
13764         * modules/unicase/u8-ct-totitle: Likewise.
13765         * modules/unicase/u8-ct-toupper: Likewise.
13766         * modules/unicase/u8-is-cased: Likewise.
13767         * modules/unicase/u8-is-casefolded: Likewise.
13768         * modules/unicase/u8-is-lowercase: Likewise.
13769         * modules/unicase/u8-is-titlecase: Likewise.
13770         * modules/unicase/u8-is-uppercase: Likewise.
13771         * modules/unicase/u8-prefix-context: Likewise.
13772         * modules/unicase/u8-suffix-context: Likewise.
13773         * modules/unicase/u8-tolower: Likewise.
13774         * modules/unicase/u8-totitle: Likewise.
13775         * modules/unicase/u8-toupper: Likewise.
13776         * modules/unicase/u16-casecmp: Likewise.
13777         * modules/unicase/u16-casecoll: Likewise.
13778         * modules/unicase/u16-casefold: Likewise.
13779         * modules/unicase/u16-casexfrm: Likewise.
13780         * modules/unicase/u16-ct-casefold: Likewise.
13781         * modules/unicase/u16-ct-tolower: Likewise.
13782         * modules/unicase/u16-ct-totitle: Likewise.
13783         * modules/unicase/u16-ct-toupper: Likewise.
13784         * modules/unicase/u16-is-cased: Likewise.
13785         * modules/unicase/u16-is-casefolded: Likewise.
13786         * modules/unicase/u16-is-lowercase: Likewise.
13787         * modules/unicase/u16-is-titlecase: Likewise.
13788         * modules/unicase/u16-is-uppercase: Likewise.
13789         * modules/unicase/u16-prefix-context: Likewise.
13790         * modules/unicase/u16-suffix-context: Likewise.
13791         * modules/unicase/u16-tolower: Likewise.
13792         * modules/unicase/u16-totitle: Likewise.
13793         * modules/unicase/u16-toupper: Likewise.
13794         * modules/unicase/u32-casecmp: Likewise.
13795         * modules/unicase/u32-casecoll: Likewise.
13796         * modules/unicase/u32-casefold: Likewise.
13797         * modules/unicase/u32-casexfrm: Likewise.
13798         * modules/unicase/u32-ct-casefold: Likewise.
13799         * modules/unicase/u32-ct-tolower: Likewise.
13800         * modules/unicase/u32-ct-totitle: Likewise.
13801         * modules/unicase/u32-ct-toupper: Likewise.
13802         * modules/unicase/u32-is-cased: Likewise.
13803         * modules/unicase/u32-is-casefolded: Likewise.
13804         * modules/unicase/u32-is-lowercase: Likewise.
13805         * modules/unicase/u32-is-titlecase: Likewise.
13806         * modules/unicase/u32-is-uppercase: Likewise.
13807         * modules/unicase/u32-prefix-context: Likewise.
13808         * modules/unicase/u32-suffix-context: Likewise.
13809         * modules/unicase/u32-tolower: Likewise.
13810         * modules/unicase/u32-totitle: Likewise.
13811         * modules/unicase/u32-toupper: Likewise.
13812         * modules/unicase/ulc-casecmp: Likewise.
13813         * modules/unicase/ulc-casecoll: Likewise.
13814         * modules/unicase/ulc-casexfrm: Likewise.
13815         * modules/uniconv/u8-conv-from-enc: Likewise.
13816         * modules/uniconv/u8-conv-to-enc: Likewise.
13817         * modules/uniconv/u8-strconv-from-enc: Likewise.
13818         * modules/uniconv/u8-strconv-from-locale: Likewise.
13819         * modules/uniconv/u8-strconv-to-enc: Likewise.
13820         * modules/uniconv/u8-strconv-to-locale: Likewise.
13821         * modules/uniconv/u16-conv-from-enc: Likewise.
13822         * modules/uniconv/u16-conv-to-enc: Likewise.
13823         * modules/uniconv/u16-strconv-from-enc: Likewise.
13824         * modules/uniconv/u16-strconv-from-locale: Likewise.
13825         * modules/uniconv/u16-strconv-to-enc: Likewise.
13826         * modules/uniconv/u16-strconv-to-locale: Likewise.
13827         * modules/uniconv/u32-conv-from-enc: Likewise.
13828         * modules/uniconv/u32-conv-to-enc: Likewise.
13829         * modules/uniconv/u32-strconv-from-enc: Likewise.
13830         * modules/uniconv/u32-strconv-from-locale: Likewise.
13831         * modules/uniconv/u32-strconv-to-enc: Likewise.
13832         * modules/uniconv/u32-strconv-to-locale: Likewise.
13833         * modules/unictype/bidicategory-byname: Likewise.
13834         * modules/unictype/bidicategory-name: Likewise.
13835         * modules/unictype/bidicategory-of: Likewise.
13836         * modules/unictype/bidicategory-test: Likewise.
13837         * modules/unictype/block-list: Likewise.
13838         * modules/unictype/block-test: Likewise.
13839         * modules/unictype/category-C: Likewise.
13840         * modules/unictype/category-Cc: Likewise.
13841         * modules/unictype/category-Cf: Likewise.
13842         * modules/unictype/category-Cn: Likewise.
13843         * modules/unictype/category-Co: Likewise.
13844         * modules/unictype/category-Cs: Likewise.
13845         * modules/unictype/category-L: Likewise.
13846         * modules/unictype/category-Ll: Likewise.
13847         * modules/unictype/category-Lm: Likewise.
13848         * modules/unictype/category-Lo: Likewise.
13849         * modules/unictype/category-Lt: Likewise.
13850         * modules/unictype/category-Lu: Likewise.
13851         * modules/unictype/category-M: Likewise.
13852         * modules/unictype/category-Mc: Likewise.
13853         * modules/unictype/category-Me: Likewise.
13854         * modules/unictype/category-Mn: Likewise.
13855         * modules/unictype/category-N: Likewise.
13856         * modules/unictype/category-Nd: Likewise.
13857         * modules/unictype/category-Nl: Likewise.
13858         * modules/unictype/category-No: Likewise.
13859         * modules/unictype/category-P: Likewise.
13860         * modules/unictype/category-Pc: Likewise.
13861         * modules/unictype/category-Pd: Likewise.
13862         * modules/unictype/category-Pe: Likewise.
13863         * modules/unictype/category-Pf: Likewise.
13864         * modules/unictype/category-Pi: Likewise.
13865         * modules/unictype/category-Po: Likewise.
13866         * modules/unictype/category-Ps: Likewise.
13867         * modules/unictype/category-S: Likewise.
13868         * modules/unictype/category-Sc: Likewise.
13869         * modules/unictype/category-Sk: Likewise.
13870         * modules/unictype/category-Sm: Likewise.
13871         * modules/unictype/category-So: Likewise.
13872         * modules/unictype/category-Z: Likewise.
13873         * modules/unictype/category-Zl: Likewise.
13874         * modules/unictype/category-Zp: Likewise.
13875         * modules/unictype/category-Zs: Likewise.
13876         * modules/unictype/category-and: Likewise.
13877         * modules/unictype/category-and-not: Likewise.
13878         * modules/unictype/category-byname: Likewise.
13879         * modules/unictype/category-name: Likewise.
13880         * modules/unictype/category-none: Likewise.
13881         * modules/unictype/category-of: Likewise.
13882         * modules/unictype/category-or: Likewise.
13883         * modules/unictype/category-test: Likewise.
13884         * modules/unictype/combining-class: Likewise.
13885         * modules/unictype/ctype-alnum: Likewise.
13886         * modules/unictype/ctype-alpha: Likewise.
13887         * modules/unictype/ctype-blank: Likewise.
13888         * modules/unictype/ctype-cntrl: Likewise.
13889         * modules/unictype/ctype-digit: Likewise.
13890         * modules/unictype/ctype-graph: Likewise.
13891         * modules/unictype/ctype-lower: Likewise.
13892         * modules/unictype/ctype-print: Likewise.
13893         * modules/unictype/ctype-punct: Likewise.
13894         * modules/unictype/ctype-space: Likewise.
13895         * modules/unictype/ctype-upper: Likewise.
13896         * modules/unictype/ctype-xdigit: Likewise.
13897         * modules/unictype/decimal-digit: Likewise.
13898         * modules/unictype/digit: Likewise.
13899         * modules/unictype/mirror: Likewise.
13900         * modules/unictype/numeric: Likewise.
13901         * modules/unictype/property-alphabetic: Likewise.
13902         * modules/unictype/property-ascii-hex-digit: Likewise.
13903         * modules/unictype/property-bidi-arabic-digit: Likewise.
13904         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13905         * modules/unictype/property-bidi-block-separator: Likewise.
13906         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13907         * modules/unictype/property-bidi-common-separator: Likewise.
13908         * modules/unictype/property-bidi-control: Likewise.
13909         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13910         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13911         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13912         * modules/unictype/property-bidi-european-digit: Likewise.
13913         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13914         * modules/unictype/property-bidi-left-to-right: Likewise.
13915         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13916         * modules/unictype/property-bidi-other-neutral: Likewise.
13917         * modules/unictype/property-bidi-pdf: Likewise.
13918         * modules/unictype/property-bidi-segment-separator: Likewise.
13919         * modules/unictype/property-bidi-whitespace: Likewise.
13920         * modules/unictype/property-byname: Likewise.
13921         * modules/unictype/property-combining: Likewise.
13922         * modules/unictype/property-composite: Likewise.
13923         * modules/unictype/property-currency-symbol: Likewise.
13924         * modules/unictype/property-dash: Likewise.
13925         * modules/unictype/property-decimal-digit: Likewise.
13926         * modules/unictype/property-default-ignorable-code-point: Likewise.
13927         * modules/unictype/property-deprecated: Likewise.
13928         * modules/unictype/property-diacritic: Likewise.
13929         * modules/unictype/property-extender: Likewise.
13930         * modules/unictype/property-format-control: Likewise.
13931         * modules/unictype/property-grapheme-base: Likewise.
13932         * modules/unictype/property-grapheme-extend: Likewise.
13933         * modules/unictype/property-grapheme-link: Likewise.
13934         * modules/unictype/property-hex-digit: Likewise.
13935         * modules/unictype/property-hyphen: Likewise.
13936         * modules/unictype/property-id-continue: Likewise.
13937         * modules/unictype/property-id-start: Likewise.
13938         * modules/unictype/property-ideographic: Likewise.
13939         * modules/unictype/property-ids-binary-operator: Likewise.
13940         * modules/unictype/property-ids-trinary-operator: Likewise.
13941         * modules/unictype/property-ignorable-control: Likewise.
13942         * modules/unictype/property-iso-control: Likewise.
13943         * modules/unictype/property-join-control: Likewise.
13944         * modules/unictype/property-left-of-pair: Likewise.
13945         * modules/unictype/property-line-separator: Likewise.
13946         * modules/unictype/property-logical-order-exception: Likewise.
13947         * modules/unictype/property-lowercase: Likewise.
13948         * modules/unictype/property-math: Likewise.
13949         * modules/unictype/property-non-break: Likewise.
13950         * modules/unictype/property-not-a-character: Likewise.
13951         * modules/unictype/property-numeric: Likewise.
13952         * modules/unictype/property-other-alphabetic: Likewise.
13953         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13954         * modules/unictype/property-other-grapheme-extend: Likewise.
13955         * modules/unictype/property-other-id-continue: Likewise.
13956         * modules/unictype/property-other-id-start: Likewise.
13957         * modules/unictype/property-other-lowercase: Likewise.
13958         * modules/unictype/property-other-math: Likewise.
13959         * modules/unictype/property-other-uppercase: Likewise.
13960         * modules/unictype/property-paired-punctuation: Likewise.
13961         * modules/unictype/property-paragraph-separator: Likewise.
13962         * modules/unictype/property-pattern-syntax: Likewise.
13963         * modules/unictype/property-pattern-white-space: Likewise.
13964         * modules/unictype/property-private-use: Likewise.
13965         * modules/unictype/property-punctuation: Likewise.
13966         * modules/unictype/property-quotation-mark: Likewise.
13967         * modules/unictype/property-radical: Likewise.
13968         * modules/unictype/property-sentence-terminal: Likewise.
13969         * modules/unictype/property-soft-dotted: Likewise.
13970         * modules/unictype/property-space: Likewise.
13971         * modules/unictype/property-terminal-punctuation: Likewise.
13972         * modules/unictype/property-test: Likewise.
13973         * modules/unictype/property-titlecase: Likewise.
13974         * modules/unictype/property-unassigned-code-value: Likewise.
13975         * modules/unictype/property-unified-ideograph: Likewise.
13976         * modules/unictype/property-uppercase: Likewise.
13977         * modules/unictype/property-variation-selector: Likewise.
13978         * modules/unictype/property-white-space: Likewise.
13979         * modules/unictype/property-xid-continue: Likewise.
13980         * modules/unictype/property-xid-start: Likewise.
13981         * modules/unictype/property-zero-width: Likewise.
13982         * modules/unictype/scripts: Likewise.
13983         * modules/unictype/syntax-c-ident: Likewise.
13984         * modules/unictype/syntax-c-whitespace: Likewise.
13985         * modules/unictype/syntax-java-ident: Likewise.
13986         * modules/unictype/syntax-java-whitespace: Likewise.
13987         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13988         * modules/unilbrk/u8-width-linebreaks: Likewise.
13989         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13990         * modules/unilbrk/u16-width-linebreaks: Likewise.
13991         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13992         * modules/unilbrk/u32-width-linebreaks: Likewise.
13993         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13994         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13995         * modules/uniname/uniname: Likewise.
13996         * modules/uninorm/canonical-decomposition: Likewise.
13997         * modules/uninorm/composition: Likewise.
13998         * modules/uninorm/decomposing-form: Likewise.
13999         * modules/uninorm/decomposition: Likewise.
14000         * modules/uninorm/filter: Likewise.
14001         * modules/uninorm/nfc: Likewise.
14002         * modules/uninorm/nfd: Likewise.
14003         * modules/uninorm/nfkc: Likewise.
14004         * modules/uninorm/nfkd: Likewise.
14005         * modules/uninorm/u8-normalize: Likewise.
14006         * modules/uninorm/u8-normcmp: Likewise.
14007         * modules/uninorm/u8-normcoll: Likewise.
14008         * modules/uninorm/u8-normxfrm: Likewise.
14009         * modules/uninorm/u16-normalize: Likewise.
14010         * modules/uninorm/u16-normcmp: Likewise.
14011         * modules/uninorm/u16-normcoll: Likewise.
14012         * modules/uninorm/u16-normxfrm: Likewise.
14013         * modules/uninorm/u32-normalize: Likewise.
14014         * modules/uninorm/u32-normcmp: Likewise.
14015         * modules/uninorm/u32-normcoll: Likewise.
14016         * modules/uninorm/u32-normxfrm: Likewise.
14017         * modules/unistdio/u8-asnprintf: Likewise.
14018         * modules/unistdio/u8-asprintf: Likewise.
14019         * modules/unistdio/u8-snprintf: Likewise.
14020         * modules/unistdio/u8-sprintf: Likewise.
14021         * modules/unistdio/u8-u8-asnprintf: Likewise.
14022         * modules/unistdio/u8-u8-asprintf: Likewise.
14023         * modules/unistdio/u8-u8-snprintf: Likewise.
14024         * modules/unistdio/u8-u8-sprintf: Likewise.
14025         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14026         * modules/unistdio/u8-u8-vasprintf: Likewise.
14027         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14028         * modules/unistdio/u8-u8-vsprintf: Likewise.
14029         * modules/unistdio/u8-vasnprintf: Likewise.
14030         * modules/unistdio/u8-vasprintf: Likewise.
14031         * modules/unistdio/u8-vsnprintf: Likewise.
14032         * modules/unistdio/u8-vsprintf: Likewise.
14033         * modules/unistdio/u16-asnprintf: Likewise.
14034         * modules/unistdio/u16-asprintf: Likewise.
14035         * modules/unistdio/u16-snprintf: Likewise.
14036         * modules/unistdio/u16-sprintf: Likewise.
14037         * modules/unistdio/u16-u16-asnprintf: Likewise.
14038         * modules/unistdio/u16-u16-asprintf: Likewise.
14039         * modules/unistdio/u16-u16-snprintf: Likewise.
14040         * modules/unistdio/u16-u16-sprintf: Likewise.
14041         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14042         * modules/unistdio/u16-u16-vasprintf: Likewise.
14043         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14044         * modules/unistdio/u16-u16-vsprintf: Likewise.
14045         * modules/unistdio/u16-vasnprintf: Likewise.
14046         * modules/unistdio/u16-vasprintf: Likewise.
14047         * modules/unistdio/u16-vsnprintf: Likewise.
14048         * modules/unistdio/u16-vsprintf: Likewise.
14049         * modules/unistdio/u32-asnprintf: Likewise.
14050         * modules/unistdio/u32-asprintf: Likewise.
14051         * modules/unistdio/u32-snprintf: Likewise.
14052         * modules/unistdio/u32-sprintf: Likewise.
14053         * modules/unistdio/u32-u32-asnprintf: Likewise.
14054         * modules/unistdio/u32-u32-asprintf: Likewise.
14055         * modules/unistdio/u32-u32-snprintf: Likewise.
14056         * modules/unistdio/u32-u32-sprintf: Likewise.
14057         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14058         * modules/unistdio/u32-u32-vasprintf: Likewise.
14059         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14060         * modules/unistdio/u32-u32-vsprintf: Likewise.
14061         * modules/unistdio/u32-vasnprintf: Likewise.
14062         * modules/unistdio/u32-vasprintf: Likewise.
14063         * modules/unistdio/u32-vsnprintf: Likewise.
14064         * modules/unistdio/u32-vsprintf: Likewise.
14065         * modules/unistdio/ulc-asnprintf: Likewise.
14066         * modules/unistdio/ulc-asprintf: Likewise.
14067         * modules/unistdio/ulc-fprintf: Likewise.
14068         * modules/unistdio/ulc-snprintf: Likewise.
14069         * modules/unistdio/ulc-sprintf: Likewise.
14070         * modules/unistdio/ulc-vasnprintf: Likewise.
14071         * modules/unistdio/ulc-vasprintf: Likewise.
14072         * modules/unistdio/ulc-vfprintf: Likewise.
14073         * modules/unistdio/ulc-vsnprintf: Likewise.
14074         * modules/unistdio/ulc-vsprintf: Likewise.
14075         * modules/unistr/u8-check: Likewise.
14076         * modules/unistr/u8-chr: Likewise.
14077         * modules/unistr/u8-cmp: Likewise.
14078         * modules/unistr/u8-cmp2: Likewise.
14079         * modules/unistr/u8-cpy: Likewise.
14080         * modules/unistr/u8-cpy-alloc: Likewise.
14081         * modules/unistr/u8-endswith: Likewise.
14082         * modules/unistr/u8-mblen: Likewise.
14083         * modules/unistr/u8-mbsnlen: Likewise.
14084         * modules/unistr/u8-mbtouc: Likewise.
14085         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14086         * modules/unistr/u8-mbtoucr: Likewise.
14087         * modules/unistr/u8-move: Likewise.
14088         * modules/unistr/u8-next: Likewise.
14089         * modules/unistr/u8-prev: Likewise.
14090         * modules/unistr/u8-set: Likewise.
14091         * modules/unistr/u8-startswith: Likewise.
14092         * modules/unistr/u8-stpcpy: Likewise.
14093         * modules/unistr/u8-stpncpy: Likewise.
14094         * modules/unistr/u8-strcat: Likewise.
14095         * modules/unistr/u8-strchr: Likewise.
14096         * modules/unistr/u8-strcmp: Likewise.
14097         * modules/unistr/u8-strcoll: Likewise.
14098         * modules/unistr/u8-strcpy: Likewise.
14099         * modules/unistr/u8-strcspn: Likewise.
14100         * modules/unistr/u8-strdup: Likewise.
14101         * modules/unistr/u8-strlen: Likewise.
14102         * modules/unistr/u8-strmblen: Likewise.
14103         * modules/unistr/u8-strmbtouc: Likewise.
14104         * modules/unistr/u8-strncat: Likewise.
14105         * modules/unistr/u8-strncmp: Likewise.
14106         * modules/unistr/u8-strncpy: Likewise.
14107         * modules/unistr/u8-strnlen: Likewise.
14108         * modules/unistr/u8-strpbrk: Likewise.
14109         * modules/unistr/u8-strrchr: Likewise.
14110         * modules/unistr/u8-strspn: Likewise.
14111         * modules/unistr/u8-strstr: Likewise.
14112         * modules/unistr/u8-strtok: Likewise.
14113         * modules/unistr/u8-to-u16: Likewise.
14114         * modules/unistr/u8-to-u32: Likewise.
14115         * modules/unistr/u8-uctomb: Likewise.
14116         * modules/unistr/u16-check: Likewise.
14117         * modules/unistr/u16-chr: Likewise.
14118         * modules/unistr/u16-cmp: Likewise.
14119         * modules/unistr/u16-cmp2: Likewise.
14120         * modules/unistr/u16-cpy: Likewise.
14121         * modules/unistr/u16-cpy-alloc: Likewise.
14122         * modules/unistr/u16-endswith: Likewise.
14123         * modules/unistr/u16-mblen: Likewise.
14124         * modules/unistr/u16-mbsnlen: Likewise.
14125         * modules/unistr/u16-mbtouc: Likewise.
14126         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14127         * modules/unistr/u16-mbtoucr: Likewise.
14128         * modules/unistr/u16-move: Likewise.
14129         * modules/unistr/u16-next: Likewise.
14130         * modules/unistr/u16-prev: Likewise.
14131         * modules/unistr/u16-set: Likewise.
14132         * modules/unistr/u16-startswith: Likewise.
14133         * modules/unistr/u16-stpcpy: Likewise.
14134         * modules/unistr/u16-stpncpy: Likewise.
14135         * modules/unistr/u16-strcat: Likewise.
14136         * modules/unistr/u16-strchr: Likewise.
14137         * modules/unistr/u16-strcmp: Likewise.
14138         * modules/unistr/u16-strcoll: Likewise.
14139         * modules/unistr/u16-strcpy: Likewise.
14140         * modules/unistr/u16-strcspn: Likewise.
14141         * modules/unistr/u16-strdup: Likewise.
14142         * modules/unistr/u16-strlen: Likewise.
14143         * modules/unistr/u16-strmblen: Likewise.
14144         * modules/unistr/u16-strmbtouc: Likewise.
14145         * modules/unistr/u16-strncat: Likewise.
14146         * modules/unistr/u16-strncmp: Likewise.
14147         * modules/unistr/u16-strncpy: Likewise.
14148         * modules/unistr/u16-strnlen: Likewise.
14149         * modules/unistr/u16-strpbrk: Likewise.
14150         * modules/unistr/u16-strrchr: Likewise.
14151         * modules/unistr/u16-strspn: Likewise.
14152         * modules/unistr/u16-strstr: Likewise.
14153         * modules/unistr/u16-strtok: Likewise.
14154         * modules/unistr/u16-to-u32: Likewise.
14155         * modules/unistr/u16-to-u8: Likewise.
14156         * modules/unistr/u16-uctomb: Likewise.
14157         * modules/unistr/u32-check: Likewise.
14158         * modules/unistr/u32-chr: Likewise.
14159         * modules/unistr/u32-cmp: Likewise.
14160         * modules/unistr/u32-cmp2: Likewise.
14161         * modules/unistr/u32-cpy: Likewise.
14162         * modules/unistr/u32-cpy-alloc: Likewise.
14163         * modules/unistr/u32-endswith: Likewise.
14164         * modules/unistr/u32-mblen: Likewise.
14165         * modules/unistr/u32-mbsnlen: Likewise.
14166         * modules/unistr/u32-mbtouc: Likewise.
14167         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14168         * modules/unistr/u32-mbtoucr: Likewise.
14169         * modules/unistr/u32-move: Likewise.
14170         * modules/unistr/u32-next: Likewise.
14171         * modules/unistr/u32-prev: Likewise.
14172         * modules/unistr/u32-set: Likewise.
14173         * modules/unistr/u32-startswith: Likewise.
14174         * modules/unistr/u32-stpcpy: Likewise.
14175         * modules/unistr/u32-stpncpy: Likewise.
14176         * modules/unistr/u32-strcat: Likewise.
14177         * modules/unistr/u32-strchr: Likewise.
14178         * modules/unistr/u32-strcmp: Likewise.
14179         * modules/unistr/u32-strcoll: Likewise.
14180         * modules/unistr/u32-strcpy: Likewise.
14181         * modules/unistr/u32-strcspn: Likewise.
14182         * modules/unistr/u32-strdup: Likewise.
14183         * modules/unistr/u32-strlen: Likewise.
14184         * modules/unistr/u32-strmblen: Likewise.
14185         * modules/unistr/u32-strmbtouc: Likewise.
14186         * modules/unistr/u32-strncat: Likewise.
14187         * modules/unistr/u32-strncmp: Likewise.
14188         * modules/unistr/u32-strncpy: Likewise.
14189         * modules/unistr/u32-strnlen: Likewise.
14190         * modules/unistr/u32-strpbrk: Likewise.
14191         * modules/unistr/u32-strrchr: Likewise.
14192         * modules/unistr/u32-strspn: Likewise.
14193         * modules/unistr/u32-strstr: Likewise.
14194         * modules/unistr/u32-strtok: Likewise.
14195         * modules/unistr/u32-to-u16: Likewise.
14196         * modules/unistr/u32-to-u8: Likewise.
14197         * modules/unistr/u32-uctomb: Likewise.
14198         * modules/uniwbrk/u8-wordbreaks: Likewise.
14199         * modules/uniwbrk/u16-wordbreaks: Likewise.
14200         * modules/uniwbrk/u32-wordbreaks: Likewise.
14201         * modules/uniwbrk/ulc-wordbreaks: Likewise.
14202         * modules/uniwbrk/wordbreak-property: Likewise.
14203         * modules/uniwidth/u8-strwidth: Likewise.
14204         * modules/uniwidth/u8-width: Likewise.
14205         * modules/uniwidth/u16-strwidth: Likewise.
14206         * modules/uniwidth/u16-width: Likewise.
14207         * modules/uniwidth/u32-strwidth: Likewise.
14208         * modules/uniwidth/u32-width: Likewise.
14209         * modules/uniwidth/width: Likewise.
14210         * modules/unicase/cased-tests (Makefile.am): Link all test programs
14211         with $(LIBUNISTRING).
14212         * modules/unicase/ignorable-tests: Likewise.
14213         * modules/unicase/locale-language-tests: Likewise.
14214         * modules/unicase/tolower-tests: Likewise.
14215         * modules/unicase/totitle-tests: Likewise.
14216         * modules/unicase/toupper-tests: Likewise.
14217         * modules/unicase/u8-casecmp-tests: Likewise.
14218         * modules/unicase/u8-casecoll-tests: Likewise.
14219         * modules/unicase/u8-casefold-tests: Likewise.
14220         * modules/unicase/u8-is-cased-tests: Likewise.
14221         * modules/unicase/u8-is-casefolded-tests: Likewise.
14222         * modules/unicase/u8-is-lowercase-tests: Likewise.
14223         * modules/unicase/u8-is-titlecase-tests: Likewise.
14224         * modules/unicase/u8-is-uppercase-tests: Likewise.
14225         * modules/unicase/u8-tolower-tests: Likewise.
14226         * modules/unicase/u8-totitle-tests: Likewise.
14227         * modules/unicase/u8-toupper-tests: Likewise.
14228         * modules/unicase/u16-casecmp-tests: Likewise.
14229         * modules/unicase/u16-casecoll-tests: Likewise.
14230         * modules/unicase/u16-casefold-tests: Likewise.
14231         * modules/unicase/u16-is-cased-tests: Likewise.
14232         * modules/unicase/u16-is-casefolded-tests: Likewise.
14233         * modules/unicase/u16-is-lowercase-tests: Likewise.
14234         * modules/unicase/u16-is-titlecase-tests: Likewise.
14235         * modules/unicase/u16-is-uppercase-tests: Likewise.
14236         * modules/unicase/u16-tolower-tests: Likewise.
14237         * modules/unicase/u16-totitle-tests: Likewise.
14238         * modules/unicase/u16-toupper-tests: Likewise.
14239         * modules/unicase/u32-casecmp-tests: Likewise.
14240         * modules/unicase/u32-casecoll-tests: Likewise.
14241         * modules/unicase/u32-casefold-tests: Likewise.
14242         * modules/unicase/u32-is-cased-tests: Likewise.
14243         * modules/unicase/u32-is-casefolded-tests: Likewise.
14244         * modules/unicase/u32-is-lowercase-tests: Likewise.
14245         * modules/unicase/u32-is-titlecase-tests: Likewise.
14246         * modules/unicase/u32-is-uppercase-tests: Likewise.
14247         * modules/unicase/u32-tolower-tests: Likewise.
14248         * modules/unicase/u32-totitle-tests: Likewise.
14249         * modules/unicase/u32-toupper-tests: Likewise.
14250         * modules/unicase/ulc-casecmp-tests: Likewise.
14251         * modules/unicase/ulc-casecoll-tests: Likewise.
14252         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
14253         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
14254         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
14255         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
14256         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
14257         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
14258         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
14259         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
14260         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
14261         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
14262         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
14263         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
14264         * modules/unictype/bidicategory-byname-tests: Likewise.
14265         * modules/unictype/bidicategory-name-tests: Likewise.
14266         * modules/unictype/bidicategory-of-tests: Likewise.
14267         * modules/unictype/bidicategory-test-tests: Likewise.
14268         * modules/unictype/block-list-tests: Likewise.
14269         * modules/unictype/block-of-tests: Likewise.
14270         * modules/unictype/block-test-tests: Likewise.
14271         * modules/unictype/category-C-tests: Likewise.
14272         * modules/unictype/category-Cc-tests: Likewise.
14273         * modules/unictype/category-Cf-tests: Likewise.
14274         * modules/unictype/category-Cn-tests: Likewise.
14275         * modules/unictype/category-Co-tests: Likewise.
14276         * modules/unictype/category-Cs-tests: Likewise.
14277         * modules/unictype/category-L-tests: Likewise.
14278         * modules/unictype/category-Ll-tests: Likewise.
14279         * modules/unictype/category-Lm-tests: Likewise.
14280         * modules/unictype/category-Lo-tests: Likewise.
14281         * modules/unictype/category-Lt-tests: Likewise.
14282         * modules/unictype/category-Lu-tests: Likewise.
14283         * modules/unictype/category-M-tests: Likewise.
14284         * modules/unictype/category-Mc-tests: Likewise.
14285         * modules/unictype/category-Me-tests: Likewise.
14286         * modules/unictype/category-Mn-tests: Likewise.
14287         * modules/unictype/category-N-tests: Likewise.
14288         * modules/unictype/category-Nd-tests: Likewise.
14289         * modules/unictype/category-Nl-tests: Likewise.
14290         * modules/unictype/category-No-tests: Likewise.
14291         * modules/unictype/category-P-tests: Likewise.
14292         * modules/unictype/category-Pc-tests: Likewise.
14293         * modules/unictype/category-Pd-tests: Likewise.
14294         * modules/unictype/category-Pe-tests: Likewise.
14295         * modules/unictype/category-Pf-tests: Likewise.
14296         * modules/unictype/category-Pi-tests: Likewise.
14297         * modules/unictype/category-Po-tests: Likewise.
14298         * modules/unictype/category-Ps-tests: Likewise.
14299         * modules/unictype/category-S-tests: Likewise.
14300         * modules/unictype/category-Sc-tests: Likewise.
14301         * modules/unictype/category-Sk-tests: Likewise.
14302         * modules/unictype/category-Sm-tests: Likewise.
14303         * modules/unictype/category-So-tests: Likewise.
14304         * modules/unictype/category-Z-tests: Likewise.
14305         * modules/unictype/category-Zl-tests: Likewise.
14306         * modules/unictype/category-Zp-tests: Likewise.
14307         * modules/unictype/category-Zs-tests: Likewise.
14308         * modules/unictype/category-and-not-tests: Likewise.
14309         * modules/unictype/category-and-tests: Likewise.
14310         * modules/unictype/category-byname-tests: Likewise.
14311         * modules/unictype/category-name-tests: Likewise.
14312         * modules/unictype/category-none-tests: Likewise.
14313         * modules/unictype/category-of-tests: Likewise.
14314         * modules/unictype/category-or-tests: Likewise.
14315         * modules/unictype/category-test-withtable-tests: Likewise.
14316         * modules/unictype/combining-class-tests: Likewise.
14317         * modules/unictype/ctype-alnum-tests: Likewise.
14318         * modules/unictype/ctype-alpha-tests: Likewise.
14319         * modules/unictype/ctype-blank-tests: Likewise.
14320         * modules/unictype/ctype-cntrl-tests: Likewise.
14321         * modules/unictype/ctype-digit-tests: Likewise.
14322         * modules/unictype/ctype-graph-tests: Likewise.
14323         * modules/unictype/ctype-lower-tests: Likewise.
14324         * modules/unictype/ctype-print-tests: Likewise.
14325         * modules/unictype/ctype-punct-tests: Likewise.
14326         * modules/unictype/ctype-space-tests: Likewise.
14327         * modules/unictype/ctype-upper-tests: Likewise.
14328         * modules/unictype/ctype-xdigit-tests: Likewise.
14329         * modules/unictype/decimal-digit-tests: Likewise.
14330         * modules/unictype/digit-tests: Likewise.
14331         * modules/unictype/mirror-tests: Likewise.
14332         * modules/unictype/numeric-tests: Likewise.
14333         * modules/unictype/property-alphabetic-tests: Likewise.
14334         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
14335         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
14336         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
14337         * modules/unictype/property-bidi-block-separator-tests: Likewise.
14338         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
14339         * modules/unictype/property-bidi-common-separator-tests: Likewise.
14340         * modules/unictype/property-bidi-control-tests: Likewise.
14341         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
14342         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
14343         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
14344         * modules/unictype/property-bidi-european-digit-tests: Likewise.
14345         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
14346         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
14347         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
14348         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
14349         * modules/unictype/property-bidi-pdf-tests: Likewise.
14350         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
14351         * modules/unictype/property-bidi-whitespace-tests: Likewise.
14352         * modules/unictype/property-byname-tests: Likewise.
14353         * modules/unictype/property-combining-tests: Likewise.
14354         * modules/unictype/property-composite-tests: Likewise.
14355         * modules/unictype/property-currency-symbol-tests: Likewise.
14356         * modules/unictype/property-dash-tests: Likewise.
14357         * modules/unictype/property-decimal-digit-tests: Likewise.
14358         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
14359         * modules/unictype/property-deprecated-tests: Likewise.
14360         * modules/unictype/property-diacritic-tests: Likewise.
14361         * modules/unictype/property-extender-tests: Likewise.
14362         * modules/unictype/property-format-control-tests: Likewise.
14363         * modules/unictype/property-grapheme-base-tests: Likewise.
14364         * modules/unictype/property-grapheme-extend-tests: Likewise.
14365         * modules/unictype/property-grapheme-link-tests: Likewise.
14366         * modules/unictype/property-hex-digit-tests: Likewise.
14367         * modules/unictype/property-hyphen-tests: Likewise.
14368         * modules/unictype/property-id-continue-tests: Likewise.
14369         * modules/unictype/property-id-start-tests: Likewise.
14370         * modules/unictype/property-ideographic-tests: Likewise.
14371         * modules/unictype/property-ids-binary-operator-tests: Likewise.
14372         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
14373         * modules/unictype/property-ignorable-control-tests: Likewise.
14374         * modules/unictype/property-iso-control-tests: Likewise.
14375         * modules/unictype/property-join-control-tests: Likewise.
14376         * modules/unictype/property-left-of-pair-tests: Likewise.
14377         * modules/unictype/property-line-separator-tests: Likewise.
14378         * modules/unictype/property-logical-order-exception-tests: Likewise.
14379         * modules/unictype/property-lowercase-tests: Likewise.
14380         * modules/unictype/property-math-tests: Likewise.
14381         * modules/unictype/property-non-break-tests: Likewise.
14382         * modules/unictype/property-not-a-character-tests: Likewise.
14383         * modules/unictype/property-numeric-tests: Likewise.
14384         * modules/unictype/property-other-alphabetic-tests: Likewise.
14385         * modules/unictype/property-other-default-ignorable-code-point-tests:
14386         Likewise.
14387         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14388         * modules/unictype/property-other-id-continue-tests: Likewise.
14389         * modules/unictype/property-other-id-start-tests: Likewise.
14390         * modules/unictype/property-other-lowercase-tests: Likewise.
14391         * modules/unictype/property-other-math-tests: Likewise.
14392         * modules/unictype/property-other-uppercase-tests: Likewise.
14393         * modules/unictype/property-paired-punctuation-tests: Likewise.
14394         * modules/unictype/property-paragraph-separator-tests: Likewise.
14395         * modules/unictype/property-pattern-syntax-tests: Likewise.
14396         * modules/unictype/property-pattern-white-space-tests: Likewise.
14397         * modules/unictype/property-private-use-tests: Likewise.
14398         * modules/unictype/property-punctuation-tests: Likewise.
14399         * modules/unictype/property-quotation-mark-tests: Likewise.
14400         * modules/unictype/property-radical-tests: Likewise.
14401         * modules/unictype/property-sentence-terminal-tests: Likewise.
14402         * modules/unictype/property-soft-dotted-tests: Likewise.
14403         * modules/unictype/property-space-tests: Likewise.
14404         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14405         * modules/unictype/property-test-tests: Likewise.
14406         * modules/unictype/property-titlecase-tests: Likewise.
14407         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14408         * modules/unictype/property-unified-ideograph-tests: Likewise.
14409         * modules/unictype/property-uppercase-tests: Likewise.
14410         * modules/unictype/property-variation-selector-tests: Likewise.
14411         * modules/unictype/property-white-space-tests: Likewise.
14412         * modules/unictype/property-xid-continue-tests: Likewise.
14413         * modules/unictype/property-xid-start-tests: Likewise.
14414         * modules/unictype/property-zero-width-tests: Likewise.
14415         * modules/unictype/scripts-tests: Likewise.
14416         * modules/unictype/syntax-c-ident-tests: Likewise.
14417         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14418         * modules/unictype/syntax-java-ident-tests: Likewise.
14419         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14420         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14421         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14422         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14423         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14424         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14425         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14426         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14427         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14428         * modules/uniname/uniname-tests: Likewise.
14429         * modules/uninorm/canonical-decomposition-tests: Likewise.
14430         * modules/uninorm/compat-decomposition-tests: Likewise.
14431         * modules/uninorm/composition-tests: Likewise.
14432         * modules/uninorm/decomposing-form-tests: Likewise.
14433         * modules/uninorm/decomposition-tests: Likewise.
14434         * modules/uninorm/filter-tests: Likewise.
14435         * modules/uninorm/nfc-tests: Likewise.
14436         * modules/uninorm/nfd-tests: Likewise.
14437         * modules/uninorm/nfkc-tests: Likewise.
14438         * modules/uninorm/nfkd-tests: Likewise.
14439         * modules/uninorm/u8-normcmp-tests: Likewise.
14440         * modules/uninorm/u8-normcoll-tests: Likewise.
14441         * modules/uninorm/u16-normcmp-tests: Likewise.
14442         * modules/uninorm/u16-normcoll-tests: Likewise.
14443         * modules/uninorm/u32-normcmp-tests: Likewise.
14444         * modules/uninorm/u32-normcoll-tests: Likewise.
14445         * modules/unistdio/u8-asnprintf-tests: Likewise.
14446         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14447         * modules/unistdio/u8-vasprintf-tests: Likewise.
14448         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14449         * modules/unistdio/u8-vsprintf-tests: Likewise.
14450         * modules/unistdio/u16-asnprintf-tests: Likewise.
14451         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14452         * modules/unistdio/u16-vasprintf-tests: Likewise.
14453         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14454         * modules/unistdio/u16-vsprintf-tests: Likewise.
14455         * modules/unistdio/u32-asnprintf-tests: Likewise.
14456         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14457         * modules/unistdio/u32-vasprintf-tests: Likewise.
14458         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14459         * modules/unistdio/u32-vsprintf-tests: Likewise.
14460         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14461         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14462         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14463         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14464         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14465         * modules/unistr/u8-check-tests: Likewise.
14466         * modules/unistr/u8-chr-tests: Likewise.
14467         * modules/unistr/u8-cmp-tests: Likewise.
14468         * modules/unistr/u8-cmp2-tests: Likewise.
14469         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14470         * modules/unistr/u8-cpy-tests: Likewise.
14471         * modules/unistr/u8-mblen-tests: Likewise.
14472         * modules/unistr/u8-mbsnlen-tests: Likewise.
14473         * modules/unistr/u8-mbtouc-tests: Likewise.
14474         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14475         * modules/unistr/u8-mbtoucr-tests: Likewise.
14476         * modules/unistr/u8-move-tests: Likewise.
14477         * modules/unistr/u8-next-tests: Likewise.
14478         * modules/unistr/u8-prev-tests: Likewise.
14479         * modules/unistr/u8-set-tests: Likewise.
14480         * modules/unistr/u8-stpcpy-tests: Likewise.
14481         * modules/unistr/u8-stpncpy-tests: Likewise.
14482         * modules/unistr/u8-strcat-tests: Likewise.
14483         * modules/unistr/u8-strcmp-tests: Likewise.
14484         * modules/unistr/u8-strcoll-tests: Likewise.
14485         * modules/unistr/u8-strcpy-tests: Likewise.
14486         * modules/unistr/u8-strdup-tests: Likewise.
14487         * modules/unistr/u8-strlen-tests: Likewise.
14488         * modules/unistr/u8-strmblen-tests: Likewise.
14489         * modules/unistr/u8-strmbtouc-tests: Likewise.
14490         * modules/unistr/u8-strncat-tests: Likewise.
14491         * modules/unistr/u8-strncmp-tests: Likewise.
14492         * modules/unistr/u8-strncpy-tests: Likewise.
14493         * modules/unistr/u8-strnlen-tests: Likewise.
14494         * modules/unistr/u8-to-u16-tests: Likewise.
14495         * modules/unistr/u8-to-u32-tests: Likewise.
14496         * modules/unistr/u8-uctomb-tests: Likewise.
14497         * modules/unistr/u16-check-tests: Likewise.
14498         * modules/unistr/u16-chr-tests: Likewise.
14499         * modules/unistr/u16-cmp-tests: Likewise.
14500         * modules/unistr/u16-cmp2-tests: Likewise.
14501         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14502         * modules/unistr/u16-cpy-tests: Likewise.
14503         * modules/unistr/u16-mblen-tests: Likewise.
14504         * modules/unistr/u16-mbsnlen-tests: Likewise.
14505         * modules/unistr/u16-mbtouc-tests: Likewise.
14506         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14507         * modules/unistr/u16-mbtoucr-tests: Likewise.
14508         * modules/unistr/u16-move-tests: Likewise.
14509         * modules/unistr/u16-next-tests: Likewise.
14510         * modules/unistr/u16-prev-tests: Likewise.
14511         * modules/unistr/u16-set-tests: Likewise.
14512         * modules/unistr/u16-stpcpy-tests: Likewise.
14513         * modules/unistr/u16-stpncpy-tests: Likewise.
14514         * modules/unistr/u16-strcat-tests: Likewise.
14515         * modules/unistr/u16-strcmp-tests: Likewise.
14516         * modules/unistr/u16-strcoll-tests: Likewise.
14517         * modules/unistr/u16-strcpy-tests: Likewise.
14518         * modules/unistr/u16-strdup-tests: Likewise.
14519         * modules/unistr/u16-strlen-tests: Likewise.
14520         * modules/unistr/u16-strmblen-tests: Likewise.
14521         * modules/unistr/u16-strmbtouc-tests: Likewise.
14522         * modules/unistr/u16-strncat-tests: Likewise.
14523         * modules/unistr/u16-strncmp-tests: Likewise.
14524         * modules/unistr/u16-strncpy-tests: Likewise.
14525         * modules/unistr/u16-strnlen-tests: Likewise.
14526         * modules/unistr/u16-to-u32-tests: Likewise.
14527         * modules/unistr/u16-to-u8-tests: Likewise.
14528         * modules/unistr/u16-uctomb-tests: Likewise.
14529         * modules/unistr/u32-check-tests: Likewise.
14530         * modules/unistr/u32-chr-tests: Likewise.
14531         * modules/unistr/u32-cmp-tests: Likewise.
14532         * modules/unistr/u32-cmp2-tests: Likewise.
14533         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14534         * modules/unistr/u32-cpy-tests: Likewise.
14535         * modules/unistr/u32-mblen-tests: Likewise.
14536         * modules/unistr/u32-mbsnlen-tests: Likewise.
14537         * modules/unistr/u32-mbtouc-tests: Likewise.
14538         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14539         * modules/unistr/u32-mbtoucr-tests: Likewise.
14540         * modules/unistr/u32-move-tests: Likewise.
14541         * modules/unistr/u32-next-tests: Likewise.
14542         * modules/unistr/u32-prev-tests: Likewise.
14543         * modules/unistr/u32-set-tests: Likewise.
14544         * modules/unistr/u32-stpcpy-tests: Likewise.
14545         * modules/unistr/u32-stpncpy-tests: Likewise.
14546         * modules/unistr/u32-strcat-tests: Likewise.
14547         * modules/unistr/u32-strcmp-tests: Likewise.
14548         * modules/unistr/u32-strcoll-tests: Likewise.
14549         * modules/unistr/u32-strcpy-tests: Likewise.
14550         * modules/unistr/u32-strdup-tests: Likewise.
14551         * modules/unistr/u32-strlen-tests: Likewise.
14552         * modules/unistr/u32-strmblen-tests: Likewise.
14553         * modules/unistr/u32-strmbtouc-tests: Likewise.
14554         * modules/unistr/u32-strncat-tests: Likewise.
14555         * modules/unistr/u32-strncmp-tests: Likewise.
14556         * modules/unistr/u32-strncpy-tests: Likewise.
14557         * modules/unistr/u32-strnlen-tests: Likewise.
14558         * modules/unistr/u32-to-u16-tests: Likewise.
14559         * modules/unistr/u32-to-u8-tests: Likewise.
14560         * modules/unistr/u32-uctomb-tests: Likewise.
14561         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14562         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14563         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14564         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14565         * modules/uniwidth/u8-strwidth-tests: Likewise.
14566         * modules/uniwidth/u8-width-tests: Likewise.
14567         * modules/uniwidth/u16-strwidth-tests: Likewise.
14568         * modules/uniwidth/u16-width-tests: Likewise.
14569         * modules/uniwidth/u32-strwidth-tests: Likewise.
14570         * modules/uniwidth/u32-width-tests: Likewise.
14571         * modules/uniwidth/width-tests: Likewise.
14572
14573 2010-05-18  Richard Jones  <rjones@redhat.com>
14574
14575         doc: users.txt: list hivex
14576         * users.txt: Add hivex.
14577
14578 2010-05-18  Richard Jones  <rjones@redhat.com>
14579
14580         doc: users.txt: list febootstrap
14581         * users.txt: Add febootstrap.
14582
14583 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14584
14585         bootstrap: fix an error when gnulib is not used as a git submodule
14586         * build-aux/bootstrap (gnulib_path): If its length is zero then
14587         assign "gnulib" to it.
14588         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14589
14590 2010-05-16  Bruno Haible  <bruno@clisp.org>
14591
14592         Avoid autoconf warnings about AM_ICONV.
14593         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14594         2.64.
14595
14596 2010-05-16  Bruno Haible  <bruno@clisp.org>
14597
14598         absolute-header: Make the macro usable in more situations.
14599         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14600         from gl_ABSOLUTE_HEADER.
14601         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14602
14603 2010-05-16  James Youngman  <jay@gnu.org>
14604
14605         doc: update users.txt
14606         * users.txt: Add CSSC.
14607
14608 2010-05-16  Jim Meyering  <meyering@redhat.com>
14609
14610         init.sh: fix an error in the previous change; add more comments
14611         * tests/init.sh: Compare exit code in loop against 9, not 2.
14612         Patch by Bruno Haible.
14613         Make the two tests more similar by adding an empty "then" clause.
14614         Add comments.
14615
14616         init.sh: avoid unnecessary shell re-exec
14617         * tests/init.sh: Improve the re-exec-required check to first test the
14618         current shell.  If it passes the test, do not search for a shell that
14619         does pass, and do not re-exec.  This test is particularly contorted to
14620         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14621         of $(...) evokes a syntax error and causes immediate shell exit with
14622         status 2.  Bruno Haible reported that the re-exec made it impossible
14623         to single-step through any init.sh-using script.
14624
14625 2010-05-16  Bruno Haible  <bruno@clisp.org>
14626
14627         Fix collision between gnulib's and libintl's printf replacements.
14628         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14629         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14630         (printf): When using GNU C, map the __printf__ function to rpl_printf
14631         via __asm__. When not using GNU C, define rpl_printf instead of
14632         __printf__.
14633         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14634         commit.
14635         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14636         commit.
14637         * m4/asm-underscore.m4: New file.
14638         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14639         * modules/stdio (Files): Add m4/asm-underscore.m4.
14640         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14641         Reported by Ben Pfaff.
14642
14643 2010-05-16  Bruno Haible  <bruno@clisp.org>
14644
14645         verify: Avoid skipping the test on openSUSE 11.0.
14646         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14647
14648 2010-05-13  Bruno Haible  <bruno@clisp.org>
14649
14650         Avoid useless warnings from G++.
14651         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14652         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14653         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14654
14655 2010-05-11  Jim Meyering  <meyering@redhat.com>
14656
14657         maint.mk: tweak preceding change
14658         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14659         regexps tighter by anchoring at EOL, and make the new group "shy"
14660         for slightly decreased overhead.
14661
14662 2010-05-11  Eric Blake  <eblake@redhat.com>
14663
14664         maint.mk: gnulib doesn't guarantee NSIG
14665         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14666
14667 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14668
14669         test-pwrite.c: Remove unused variable declaration.
14670         * tests/test-pwrite.c (main): Remove read_buf declaration.
14671
14672         Remove useless test-pwrite.sh file.
14673         * tests/test-pwrite.sh: Delete file.
14674         * modules/pwrite-tests: Remove references.
14675         Reported by Bruno Haible.
14676
14677 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14678
14679         init.sh: fix a typo
14680         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14681
14682 2010-05-10  Jim Meyering  <meyering@redhat.com>
14683
14684         maint.mk: avoid using a temporary file in the always-defined-macros check
14685         * top/maint.mk (.re-defmac): Remove rule.
14686         (gl_trap_): Remove definition.
14687         (sc_prohibit_always-defined_macros): Rewrite not to create and
14688         depend on a temporary file.  Instead, depend on GNU grep's ability
14689         to read a list of regular expressions from stdin when given "-f -".
14690
14691 2010-05-09  Bruno Haible  <bruno@clisp.org>
14692
14693         Update to GNU gettext 0.18, part 1.
14694         * m4/gettext.m4: Update to GNU gettext 0.18.
14695         * m4/intl.m4: Likewise.
14696         * m4/po.m4: Likewise.
14697         * modules/gettext (Files): Add m4/fcntl-o.m4.
14698         (configure.ac): Require gettext infrastructure from version 0.18.
14699
14700 2010-05-09  Jim Meyering  <meyering@redhat.com>
14701
14702         init.sh: enable MALLOC_PERTURB_
14703         * tests/init.sh: Enable glibc's malloc-perturbing option.
14704
14705         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14706         With my recent change in init.sh from the two-line form:
14707             -#   : ${srcdir=.}
14708             -#   . "$srcdir/init.sh"; path_prepend_ .
14709             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14710         I noticed that using the one-line form would cause this test
14711         to fail with a false-positive, or to stop working altogether,
14712         depending on whether help-version changed or all the tests did.
14713         * top/maint.mk (_hv_regex): Remove this definition.
14714         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14715         (_hv_regex_strong): Use a stronger regex to check for conformance.
14716         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14717         Give a separate diagnostic for lack of conforming use.
14718
14719         maint.mk: prohibit definition of symbols defined by gnulib
14720         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14721         definition of symbols defined by gnulib.
14722
14723 2010-05-09  Bruno Haible  <bruno@clisp.org>
14724
14725         acl: Avoid test failure on Cygwin-hosted mingw.
14726         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14727
14728 2010-05-09  Bruno Haible  <bruno@clisp.org>
14729
14730         error: Use system's fcntl function.
14731         * lib/error.c (fcntl): Undefine.
14732
14733 2010-05-09  Jim Meyering  <meyering@redhat.com>
14734
14735         verify: adjust formatting to be more consistent
14736         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14737         argument-list '('s, and after one comma.
14738
14739 2010-05-09  Bruno Haible  <bruno@clisp.org>
14740
14741         error: More reliable output on mingw.
14742         * lib/error.c: Include <windows.h>.
14743         (is_open): New function.
14744         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14745         defined.
14746
14747 2010-05-09  Bruno Haible  <bruno@clisp.org>
14748
14749         vasnprintf: Fix syntax errors in libintl build on mingw.
14750         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14751         pad_ourselves and prec_ourselves after use.
14752
14753 2010-05-08  Bruno Haible  <bruno@clisp.org>
14754
14755         * lib/config.charset: Update comments for Cygwin 1.7.
14756         * lib/localcharset.c: Likewise.
14757
14758 2010-05-07  Jim Meyering  <meyering@redhat.com>
14759
14760         init.sh: improve comments
14761         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14762         . "${srcdir=.}/init.sh"; path_prepend_ .
14763         Add a note about path_prepend_ and the alternative of using
14764         TESTS_ENVIRONMENT.
14765
14766 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14767
14768         exclude: Unescape hashed patterns in wildcard mode.
14769         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14770         to the hash list.
14771         * tests/test-exclude8.sh: New test case.
14772         * modules/exclude-tests: Add new test.
14773
14774 2010-05-05  Eric Blake  <eblake@redhat.com>
14775
14776         verify: automate tests
14777         * modules/verify-tests: New module.
14778         * tests/test-verify.sh: New file.
14779         * tests/test-verify.c: Guard each negative test with a unique id.
14780         Also avoid warning about unused left hand of comma expressions.
14781
14782 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14783
14784         Further improvements to verify.h, suggested by Eric Blake.
14785         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14786         the GL_* versions, to avoid collision with OpenGL.
14787         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14788         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14789         than testing merely whether it's defined.
14790
14791         Modify verify.h to pacify gcc -Wredundant_decls.
14792         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14793         These use the prefix "GL_" since they're likely to be useful elsewhere.
14794         We may need to break them out into a different .h file.
14795         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14796         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14797         of verify_function__.
14798
14799 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14800
14801         Tests for module pwrite.
14802         * modules/pwrite-tests: New file.
14803         * tests/test-pwrite.sh: New file.
14804         * tests/test-pwrite.c: New file.
14805
14806         New module pwrite.
14807         * lib/unistd.in.h (pwrite): New declaration.
14808         * lib/pwrite.c: New file, from glibc with modifications.
14809         * m4/pwrite.m4: New file.
14810         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14811         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14812         REPLACE_PWRITE.
14813         * modules/pwrite: New file.
14814         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14815         REPLACE_PWRITE.
14816         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14817         * doc/posix-functions/pwrite.texi: Mention the new module.
14818
14819 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14820
14821         pread: Update documentation.
14822         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14823
14824 2010-05-04  Eric Blake  <eblake@redhat.com>
14825
14826         docs: update cygwin progress
14827         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14828         this bug.
14829         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14830         Added in cygwin 1.7.2.
14831         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14832         Likewise.
14833         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14834         Likewise.
14835         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14836         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14837         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14838         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14839         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14840         Mention nproc module.
14841         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14842         bug in cygwin 1.7.5 addition.
14843         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14844         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14845         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14846         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14847         1.7.5.
14848         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14849         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14850         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14851         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14852         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14853         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14854         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14855         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14856         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14857         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14858         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14859         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14860         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14861         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14862         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14863         Likewise.
14864         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14865         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14866         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14867         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14868         Likewise.
14869         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14870         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14871         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14872         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14873         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14874         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14875         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14876         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14877         Likewise.
14878         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14879         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14880         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14881         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14882         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14883         Likewise.
14884         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14885         Likewise.
14886         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14887         Likewise.
14888         * doc/glibc-functions/xdrrec_endofrecord.texi
14889         (xdrrec_endofrecord): Likewise.
14890         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14891         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14892         Likewise.
14893         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14894         Likewise.
14895
14896 2010-05-04  Jim Meyering  <meyering@redhat.com>
14897
14898         gendocs.sh: make its "-s FILE" option more useful
14899         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14900         $PACKAGE to reflect the probably-different basename of "FILE".
14901
14902 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14903
14904         bootstrap: don't ignore download_po_files failure
14905         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14906         failure.
14907
14908 2010-05-03  Jim Meyering  <meyering@redhat.com>
14909
14910         maint.mk: allow to pass options to gendocs.sh
14911         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14912         (gendocs_options_): New overridable variable.
14913
14914         gnu-web-doc-update: don't ignore configure or build failure
14915         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14916
14917         announce-gen: backslash-escape '@'s in --help output
14918         * build-aux/announce-gen: Fix syntax errors.
14919
14920         maint.mk, announce-gen: allow project-specific announcement mail headers
14921         * top/maint.mk (translation_project_): Define default.
14922         (announcement_Cc_, announcement_mail_headers_): Likewise.
14923         (announcement): Invoke announce-gen with new --mail-headers option.
14924         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14925
14926         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14927         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14928         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14929         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14930         line in the "err2" output file when running "make check" in verbose
14931         mode (i.e., with set -x enabled).
14932
14933 2010-05-03  Bruno Haible  <bruno@clisp.org>
14934
14935         wctob: Fix for weird platforms.
14936         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14937         argument value.
14938
14939 2010-05-03  Jim Meyering  <meyering@redhat.com>
14940
14941         maint.mk: prohibit unwarranted use of <strings.h>
14942         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14943         strings.h in a file that does not also use strcasecmp, strncasecmp,
14944         ffs or ffsll.
14945
14946         maint.mk: remove obsolete comments
14947         * top/maint.mk: Remove stale, commented-out rules.
14948
14949 2010-05-02  Bruno Haible  <bruno@clisp.org>
14950
14951         wcwidth: Declare also when it's aliased.
14952         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14953         macro.
14954
14955 2010-05-02  Bruno Haible  <bruno@clisp.org>
14956
14957         Fix regression from 2010-04-25.
14958         * gnulib-tool (func_modules_transitive_closure): Check the status of
14959         all modules, not only of the tests that are of the form foo-tests where
14960         foo is a module.
14961
14962 2010-05-02  Bruno Haible  <bruno@clisp.org>
14963
14964         wctob: Work around nasty Cygwin 1.7.2 bug.
14965         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14966         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14967
14968 2010-05-01  Bruno Haible  <bruno@clisp.org>
14969
14970         fpurge: Sharper test.
14971         * tests/test-fpurge.c (main): Add one more ftell check.
14972         * modules/fpurge-tests (Depends-on): Add ftell.
14973         Suggested by Eric Blake.
14974
14975 2010-05-01  Bruno Haible  <bruno@clisp.org>
14976
14977         ftello: Another test.
14978         * tests/test-ftello3.c: New file.
14979         * modules/ftello-tests (Files): Add it.
14980         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14981         MOSTLYCLEANFILES.
14982
14983         ftell: Another test.
14984         * tests/test-ftell3.c: New file.
14985         * modules/ftell-tests (Files): Add it.
14986         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14987         MOSTLYCLEANFILES.
14988
14989 2010-05-01  Bruno Haible  <bruno@clisp.org>
14990
14991         ftell, ftello: Work around Solaris bug.
14992         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14993         * lib/ftello.c: Include stdio-impl.h.
14994         (ftello): On Solaris, when _IOWRT is set, compute the result without
14995         looking at _IOREAD.
14996         * modules/ftello (Files): Add lib/stdio-impl.h.
14997         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14998         * doc/posix-functions/ftello.texi: Likewise.
14999         Reported by Eric Blake.
15000
15001 2010-05-01  Bruno Haible  <bruno@clisp.org>
15002
15003         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15004         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15005         the _IOWRT flag is also set.
15006
15007 2010-05-01  Bruno Haible  <bruno@clisp.org>
15008
15009         Fix doc about a HP-UX stdio bug.
15010         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15011         * doc/posix-functions/ftello.texi: Likewise.
15012
15013 2010-05-01  Bruno Haible  <bruno@clisp.org>
15014
15015         lseek test: Fix failure on Solaris.
15016         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15017         output.
15018
15019 2010-04-30  Jim Meyering  <meyering@redhat.com>
15020
15021         bootstrap: don't ignore failure to generate po*/Makevars
15022         * build-aux/bootstrap (with_gettext): Don't ignore failure
15023         to create po/Makevars or runtime-po/Makevars.
15024
15025 2010-04-29  Eric Blake  <eblake@redhat.com>
15026
15027         headers: relax license to LGPLv2+
15028         * modules/fcntl-h (License): Relax license.
15029         * modules/getopt-posix (License): Likewise.
15030         * modules/locale (License): Likewise.
15031         * modules/math (License): Likewise.
15032         * modules/pty (License): Likewise.
15033         * modules/sched (License): Likewise.
15034         * modules/search (License): Likewise.
15035         * modules/spawn (License): Likewise.
15036         * modules/stdarg (License): Likewise.
15037         * modules/sysexits (License): Likewise.
15038
15039 2010-04-29  Jim Meyering  <meyering@redhat.com>
15040
15041         inttypes: relax license to LGPLv2+
15042         * modules/inttypes (License): Relax license.
15043
15044 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15045
15046         * top/maint.mk (indent): Run twice to produce idempotent results.
15047
15048 2010-04-28  Bruno Haible  <bruno@clisp.org>
15049
15050         getdate: Generate getdate.c in the source directory.
15051         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15052         MOSTLYCLEANFILES.
15053         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15054
15055 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15056
15057         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15058         is not declared as a const *; avoid warnings in that case.
15059
15060 2010-04-28  Eric Blake  <eblake@redhat.com>
15061
15062         canonicalize-lgpl: avoid compiler warning
15063         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15064         declaration' / 'extraneous semicolon' warning with some compilers.
15065         Reported by Andreas Gruenbacher.
15066
15067 2010-04-28  Jim Meyering  <meyering@redhat.com>
15068
15069         init.sh: ensure a more reliable exit status when exiting via trap
15070         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15071         Inspired by patches from Dmitry V. Levin.
15072         Also trap on signal 3 (SIGQUIT).
15073
15074 2010-04-27  Bruno Haible  <bruno@clisp.org>
15075
15076         Update doc about utimes().
15077         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15078         'utimens' module.
15079         Reported by Andreas Gruenbacher <agruen@suse.de>.
15080
15081 2010-04-27  Eric Blake  <eblake@redhat.com>
15082
15083         full-read, full-write: relax license
15084         * modules/full-read (License): Drop to LGPLv2+.
15085         * modules/full-write (License): Likewise.
15086         * modules/safe-read (License): Likewise.
15087         * modules/safe-write (License): Likewise.
15088
15089         pthread: mention library for linking
15090         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15091
15092 2010-04-27  Jim Meyering  <meyering@redhat.com>
15093
15094         maint.mk: fix a bug introduced in last change
15095         * top/maint.mk (gl_assured_headers_): Now that all names are on
15096         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15097         is not anchored to end of word, it should be adequate.
15098
15099         maint.mk: avoid side-effect in latest syntax-check
15100         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15101         to run commands via $(shell...), and hence to incur cost only when
15102         the new rule is actually run.
15103
15104         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15105         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15106         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15107         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15108         (gl_assured_headers_, az_, AZ_): Define.
15109         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15110
15111 2010-04-26  Jim Meyering  <jim@meyering.net>
15112             Bruno Haible  <bruno@clisp.org>
15113
15114         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15115         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15116         Prompted by an exchange with Gilles Espinasse.
15117
15118 2010-04-26  Jim Meyering  <meyering@redhat.com>
15119
15120         git-version-gen: aesthetic tweak
15121         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15122         so that the command remains on a single line.
15123
15124 2010-04-26  Eric Blake  <eblake@redhat.com>
15125
15126         git-version-gen: allow use on EBCDIC hosts
15127         * build-aux/git-version-gen (dirty): Use literal rather than tying
15128         ourselves to ascii.
15129         Reported by Steve Goetze.
15130
15131 2010-04-25  Bruno Haible  <bruno@clisp.org>
15132
15133         netdb: Add support for GNULIB_POSIXCHECK.
15134         * lib/netdb.in.h: Include warn-on-use.h.
15135         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15136         functions are used when GNULIB_POSIXCHECK is defined and the
15137         getaddrinfo module is not in use.
15138         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15139         freeaddrinfo, gai_strerror, getnameinfo are declared.
15140         * modules/netdb (Depends-on): Add warn-on-use.
15141         (Makefile.am): Include warn-on-use.h in netdb.h.
15142
15143 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15144
15145         build: avoid "make check" failure without .git/ directory
15146         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15147         there is no .git/ directory.
15148
15149 2010-04-25  Bruno Haible  <bruno@clisp.org>
15150
15151         ptsname: Fix misuse of ttyname_r.
15152         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15153         of errno.
15154
15155 2010-04-25  Bruno Haible  <bruno@clisp.org>
15156
15157         ttyname_r: Make it work on Solaris 10.
15158         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15159         if the system function has the POSIX declaration. Test whether the
15160         function fails if the buffer is less than 128 bytes large.
15161         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15162         system's ttyname_r function. Provide a reasonably large buffer.
15163         * modules/ttyname_r (Depends-on): Add extensions.
15164         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15165
15166 2010-04-25  Bruno Haible  <bruno@clisp.org>
15167
15168         Use the 'extensions' module for some more functions on Solaris.
15169         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15170         module.
15171         * doc/posix-functions/ctime_r.texi: Likewise.
15172         * doc/posix-functions/getgrgid_r.texi: Likewise.
15173         * doc/posix-functions/getgrnam_r.texi: Likewise.
15174         * doc/posix-functions/getpwnam_r.texi: Likewise.
15175         * doc/posix-functions/getpwuid_r.texi: Likewise.
15176         * doc/posix-functions/readdir_r.texi: Likewise.
15177         * doc/posix-functions/sigwait.texi: Likewise.
15178         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15179         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15180
15181 2010-04-25  Bruno Haible  <bruno@clisp.org>
15182
15183         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15184         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15185         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15186         * lib/ttyname_r.c: Include <limits.h>.
15187         (ttyname_r): Define using the system's ttyname_r function, if it exists
15188         and not on Solaris.
15189         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15190         set.
15191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15192         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15193         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15194         Reported by Simon Josefsson.
15195
15196 2010-04-25  Bruno Haible  <bruno@clisp.org>
15197
15198         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
15199         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
15200         * doc/posix-functions/ctime_r.texi: Likewise.
15201         * doc/posix-functions/getgrgid_r.texi: Likewise.
15202         * doc/posix-functions/getgrnam_r.texi: Likewise.
15203         * doc/posix-functions/getlogin_r.texi: Likewise.
15204         * doc/posix-functions/getpwnam_r.texi: Likewise.
15205         * doc/posix-functions/getpwuid_r.texi: Likewise.
15206         * doc/posix-functions/readdir_r.texi: Likewise.
15207         * doc/posix-functions/sigwait.texi: Likewise.
15208         * doc/posix-functions/ttyname_r.texi: Likewise.
15209         Reported by Simon Josefsson.
15210
15211 2010-04-25  Bruno Haible  <bruno@clisp.org>
15212
15213         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
15214         * gnulib-tool (func_usage): Document that --with-*-tests options apply
15215         also to --create-testdir.
15216         (func_acceptable): Don't consider the status of *-tests modules here.
15217         (func_modules_transitive_closure): Consider it here, before including a
15218         test module.
15219         (func_import, func_create_testdir): Set inc_all_direct_tests,
15220         inc_all_indirect_tests.
15221         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
15222         --create-testdir and --create-megatestdir.
15223
15224 2010-04-25  Bruno Haible  <bruno@clisp.org>
15225
15226         gnulib-tool: Add --without-*-tests options.
15227         * gnulib-tool (func_usage): Document the --without-*-tests options.
15228         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
15229         excl_unportable_tests): New variables.
15230         Fail if they are specified with --import or --update.
15231         (func_acceptable): Respect the excl_*_tests variables.
15232         (func_import): Set the excl_*_tests variables to empty.
15233
15234 2010-04-25  Simon Josefsson  <simon@josefsson.org>
15235             Bruno Haible  <bruno@clisp.org>
15236
15237         Work around a MacOS X 10.4 bug with openpty.
15238         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
15239         * tests/test-openpty.c (main): Close the master side explicitly.
15240
15241 2010-04-25  Bruno Haible  <bruno@clisp.org>
15242
15243         strnlen: Fix a C++ test error on MacOS X and Solaris.
15244         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
15245         the function is not declared.
15246         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
15247         Simon Josefsson.
15248
15249 2010-04-24  Bruno Haible  <bruno@clisp.org>
15250
15251         Avoid a gcc warning.
15252         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
15253         of correct type for %08lx directive.
15254         Reported by Eric Blake.
15255
15256 2010-04-24  Bruno Haible  <bruno@clisp.org>
15257
15258         vasnprintf: Correct errno value in case of out-of-memory.
15259         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
15260         or sprintf. Use the errno value from SNPRINTF or sprintf.
15261         Reported by Ian Beckwith <ianb@erislabs.net>.
15262
15263 2010-04-24  Bruno Haible  <bruno@clisp.org>
15264
15265         ansi-c++-opt: Find correct compiler when cross-compiling.
15266         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
15267         AC_CHECK_PROGS.
15268         Reported by Simon Josefsson.
15269
15270 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
15271
15272         vc-list-files: Add support for subversion
15273         * build-aux/vc-list-files: Use "svn list" to generate the list of
15274         files controlled by subversion.
15275
15276 2010-04-23  Jim Meyering  <meyering@redhat.com>
15277
15278         vc-list-files tests: convert to use init.sh
15279         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15280         path_prepend_.
15281         Use Exit, not exit.
15282         Use skip_ rather than open coding it.
15283         Remove trap set-up and compare definitions.
15284         * tests/test-vc-list-files-git.sh: Likewise.
15285         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15286
15287 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15288
15289         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15290         backup files.
15291
15292 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15293
15294         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15295
15296 2010-04-20  Eric Blake  <eblake@redhat.com>
15297
15298         tests: be robust to ignored SIGPIPE
15299         * tests/test-select-in.sh: Consume all output.
15300         * tests/test-lseek.sh: Check correct exit status, while avoiding
15301         EPIPE.
15302
15303 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15304             Bruno Haible  <bruno@clisp.org>
15305
15306         visibility: Don't use -fvisibility if it leads to a warning.
15307         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15308         yes, don't pretend that visibility works if it leads to a warning.
15309         Reported by Mike Gran <spk121@yahoo.com>.
15310
15311 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
15312
15313         * build-aux/bootstrap: Use "git -h" for testing for supported options
15314         instead of "git --help".  The short-form option only shows a summary,
15315         and doesn't layout the full man page.  Grep for the full option name
15316         in the summary, too.
15317
15318 2010-04-19  Bruno Haible  <bruno@clisp.org>
15319
15320         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
15321         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
15322         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
15323         mention of RELOCATABLE_STRIP.
15324         Reported by Sylvain Beucler <beuc@beuc.net>.
15325
15326 2010-04-19  Bruno Haible  <bruno@clisp.org>
15327
15328         * lib/diffseq.h: Fix typo in comment.
15329         Reported by Eric Blake.
15330
15331 2010-04-19  Bruno Haible  <bruno@clisp.org>
15332
15333         ioctl: Move autoconf macro to a .m4 file.
15334         * m4/ioctl.m4: New file, extracted from modules/ioctl.
15335         * modules/ioctl (Files): Add it.
15336         (configure.ac): Simply invoke gl_FUNC_IOCTL.
15337         Reported by Ian Beckwith <ianb@erislabs.net>.
15338
15339 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
15340             Bruno Haible  <bruno@clisp.org>
15341
15342         diffseq: Accommodate use-case with abstract arrays.
15343         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
15344         is not defined.
15345         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
15346         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
15347
15348 2010-04-18  Bruno Haible  <bruno@clisp.org>
15349
15350         * doc/posix-headers/stdbool.texi: More precise wording.
15351
15352 2010-04-17  Jim Meyering  <meyering@redhat.com>
15353
15354         maint.mk: use gnu-style indentation in an embedded perl script
15355         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
15356         Rename variable: s/two/last_two_bytes/
15357
15358 2010-04-16  Eric Blake  <eblake@redhat.com>
15359
15360         test-stdbool: skip test that fails with Solaris CC
15361         * tests/test-stdbool.c (f): Skip test that causes compilation
15362         error under buggy C++ compiler.
15363         * lib/stdbool.in.h: Document the limitation.
15364         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
15365
15366         setenv: allow compilation with C++
15367         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
15368         register keyword.
15369
15370         stdint: allow test to pass with C++
15371         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15372
15373         getopt: allow compilation with C++
15374         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
15375         struct.
15376         * lib/getopt.c (_getopt_internal_r): Use correct type.
15377         Reported by Dagobert Michelson, via Joel E. Denny.
15378
15379 2010-04-16  Bruno Haible  <bruno@clisp.org>
15380
15381         Override netdb.h always.
15382         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15383         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15384         Reported by Ludovic Courtès <ludo@gnu.org>.
15385
15386 2010-04-15  Bruno Haible  <bruno@clisp.org>
15387
15388         openpty: Fix mistake from 2010-03-21.
15389         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15390         Reported by Simon Josefsson.
15391
15392 2010-04-15  Eric Blake  <eblake@redhat.com>
15393
15394         test-forkpty: fix expected signature
15395         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15396         Reported by Simon Josefsson.
15397
15398 2010-04-15  Jim Meyering  <meyering@redhat.com>
15399
15400         maint.mk: texinfo_suffix_re_: correct the default regexp
15401         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15402
15403         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15404         make it configurable via texinfo_suffix_re_.
15405
15406 2010-04-14  Eric Blake  <eblake@redhat.com>
15407
15408         strtok_r: relax license to LGPLv2+
15409         * modules/strtok_r (License): Relax license.
15410         Reported by Matthias Bolte.
15411
15412 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15413
15414         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15415         version 1.4.4 by default instead of requiring the libgcrypt
15416         version used during build.  This makes it possible to use the
15417         application with older but still binary compatible libgcrypt
15418         versions.
15419
15420 2010-04-13  Eric Blake  <eblake@redhat.com>
15421
15422         getopt-gnu: match recent glibc fixes and posix ruling
15423         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15424         '+' handling, when requesting extensions.
15425         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15426         'W;' handling.
15427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15428         * doc/posix-functions/getopt.texi (getopt): Document this.
15429         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15430         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15431         Likewise.
15432
15433         getopt: merge bug fixes from glibc
15434         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15435         diagnostics.  Honor '+:' correctly.  Reject ';'.
15436
15437         getopt-posix: detect MacOS bug
15438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15439         optind when missing a required argument.
15440         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15441         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15442         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15443         Likewise.
15444
15445         getopt-posix: avoid spurious failure on Solaris
15446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15447         an indicator that setting optind=1 is sufficient for reset.
15448
15449         getopt-posix: avoid spurious failure on FreeBSD
15450         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15451         in POSIX mode, since the m4 test uses it.
15452
15453         gnulib-tool: silence warning on BSD sh
15454         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15455
15456 2010-04-13  Jim Meyering  <meyering@redhat.com>
15457
15458         doc: users.txt: GNU patch now uses gnulib
15459         * users.txt: Add patch.
15460
15461 2010-04-12  Jim Meyering  <meyering@redhat.com>
15462
15463         maint.mk: generate more concise timing data for syntax-check rules
15464         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15465         " done" from each line that reports a syntax-check test duration.
15466
15467 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15468
15469         git-version-gen: use "git update-index..." rather than "git status"
15470         * build-aux/git-version-gen: Use git update-index --refresh, not
15471         "git status".  With some versions of git, "git status" would fail
15472         to update the index and result in an unwarranted "-dirty" suffix.
15473
15474 2010-04-11  Jim Meyering  <meyering@redhat.com>
15475
15476         openat: correct formatting (no semantic change)
15477         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15478         Suggested by Bruno Haible.
15479
15480 2010-04-11  Bruno Haible  <bruno@clisp.org>
15481
15482         Stricter declaration checking in testdirs.
15483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15484         If for_tests is true, augment AM_CPPFLAGS to define
15485         GNULIB_STRICT_CHECKING.
15486         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15487         GNULIB_STRICT_CHECKING is defined, verify that the function is
15488         declared.
15489
15490 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15491             Bruno Haible  <bruno@clisp.org>
15492
15493         libunistring: Improve configure output.
15494         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15495         Don't say "consider installing GNU libunistring" when checking again
15496         with libiconv.
15497
15498 2010-04-11  Bruno Haible  <bruno@clisp.org>
15499
15500         libunistring: Correct value of $LTLIBUNISTRING.
15501         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15502         correct the value of $LTLIBUNISTRING.
15503
15504 2010-04-11  Bruno Haible  <bruno@clisp.org>
15505
15506         havelib: Add static libraries to LIBS in the right order.
15507         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15508         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15509
15510 2010-04-11  Bruno Haible  <bruno@clisp.org>
15511
15512         libunistring: Detect libunistring also when it depends on libiconv.
15513         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15514         the second AC_LIB_HAVE_LINKFLAGS invocation.
15515
15516 2010-04-11  James Youngman  <jay@gnu.org>
15517
15518         close-stream: declare local scalars to be "const"
15519         * lib/close-stream.c (close_stream): Make boolean variables const
15520         to document the fact that we set but do not change them.
15521
15522 2010-04-11  Bruno Haible  <bruno@clisp.org>
15523
15524         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15525
15526 2010-04-11  Jim Meyering  <meyering@redhat.com>
15527
15528         maint.mk: don't include dist-check.mk
15529         * top/maint.mk: Remove bogus include directive.
15530
15531         maint.mk: improve empty-line-at-EOF check
15532         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15533         solution, rather than tail+Perl-based one.  The latter would read
15534         a few kilobytes from the end of each file, and did not handle empty
15535         files properly.
15536
15537         maint.mk: print the elapsed time for each syntax-check rule
15538         * top/maint.mk (sc_m_rules_): Save start time in a file.
15539         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15540         (local-check): Interpose the .z rules
15541
15542 2010-04-11  Jim Meyering  <meyering@redhat.com>
15543
15544         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15545         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15546         empty file with one that ends in an empty line.
15547
15548 2010-04-10  Bruno Haible  <bruno@clisp.org>
15549
15550         mkdir: Make it work on mingw64.
15551         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15552         * lib/mkdir.c: Update comment.
15553         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15554
15555 2010-04-10  Bruno Haible  <bruno@clisp.org>
15556
15557         Don't override improved macro from newer autoconf.
15558         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15559         autoconf >= 2.62.
15560         Reported by Joel E. Denny <jdenny@clemson.edu>.
15561
15562 2010-04-10  Jim Meyering  <meyering@redhat.com>
15563
15564         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15565         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15566
15567         maint.mk: correct a diagnostic
15568         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15569         in diagnostic; now use $prohibit.
15570
15571 2010-04-10  Bruno Haible  <address@hidden>
15572
15573         fchownat: Fix a C++ test error on Solaris 8.
15574         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15575         the function does not exist.
15576
15577 2010-04-10  Bruno Haible  <bruno@clisp.org>
15578
15579         vasnprintf: Add more tests.
15580         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15581         (test_function): Test converting an invalid wide string.
15582
15583         vasnprintf: Correct handling of unconvertible wide string arguments.
15584         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15585         VASNPRINTF.
15586         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15587         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15588         smaller than the expected maximum need for the directive. Set errno to
15589         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15590         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15592         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15593         * modules/vasnprintf (Files): Add m4/printf.m4.
15594         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15595
15596 2010-04-10  Bruno Haible  <bruno@clisp.org>
15597
15598         vasnprintf: Fix crash in %ls directive.
15599         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15600         string is passed as argument to %ls, with no precision and no width.
15601         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15602
15603 2010-04-10  Bruno Haible  <bruno@clisp.org>
15604
15605         vasnprintf: Fix multiple test failures on mingw.
15606         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15607         _snprintf, or snwprintf, not _snwprintf.
15608
15609 2010-04-10  Bruno Haible  <bruno@clisp.org>
15610
15611         write: Fix a C++ test error on mingw.
15612         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15613
15614 2010-04-10  Bruno Haible  <bruno@clisp.org>
15615
15616         vasnprintf test: Reduce code duplication.
15617         * tests/test-vasnprintf.c (test_function): New function, extracted from
15618         test_vasnprintf.
15619         (test_vasnprintf, test_asnprintf): Invoke it.
15620
15621 2010-04-10  Bruno Haible  <bruno@clisp.org>
15622
15623         strnlen: Fix warning in C++ mode on MacOS X.
15624         * lib/string.in.h (strnlen): Use the modern idiom.
15625         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15626         defining strnlen as a macro already in <config.h>.
15627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15628         REPLACE_STRNLEN.
15629         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15630         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15631
15632 2010-04-08  James Youngman  <jay@gnu.org>
15633
15634         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15635         the example.
15636
15637 2010-04-09  Jim Meyering  <meyering@redhat.com>
15638
15639         maint.mk: print better diagnostic when there is no $(_hv_file)
15640         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15641         announce that when $(_hv_file) (aka help-version) does not exist.
15642
15643         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15644         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15645         not try to interpret its random input bytes.  Jarno Rajahalme reported
15646         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15647         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15648         (mktempd_): Likewise, just in case.
15649
15650         ftruncate: add two years to projected module removal date: 2012
15651         * m4/ftruncate.m4: Adjust comments.
15652
15653         ftruncate: mark module as obsolete; even MinGW provides it, now
15654         * modules/ftruncate (Status): Obsolete.
15655         (Notice): Say that.
15656         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15657         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15658
15659 2010-04-08  Bruno Haible  <bruno@clisp.org>
15660
15661         Fix side effects from tests-related modules.
15662         * modules/dprintf-posix (Comment): New section.
15663         * modules/fprintf-posix (Comment): Likewise.
15664         * modules/obstack-printf-posix (Comment): Likewise.
15665         * modules/printf-posix (Comment): Likewise.
15666         * modules/snprintf-posix (Comment): Likewise.
15667         * modules/sprintf-posix (Comment): Likewise.
15668         * modules/vasnprintf-posix (Comment): Likewise.
15669         * modules/vasprintf-posix (Comment): Likewise.
15670         * modules/vdprintf-posix (Comment): Likewise.
15671         * modules/vfprintf-posix (Comment): Likewise.
15672         * modules/vprintf-posix (Comment): Likewise.
15673         * modules/vsnprintf-posix (Comment): Likewise.
15674         * modules/vsprintf-posix (Comment): Likewise.
15675         * modules/xprintf-posix (Comment): Likewise.
15676         * modules/xvasprintf-posix (Comment): Likewise.
15677         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15678         * modules/floorf-tests (Depends-on): Likewise.
15679         * modules/round-tests (Depends-on): Likewise.
15680         * modules/roundf-tests (Depends-on): Likewise.
15681         * modules/trunc-tests (Depends-on): Likewise.
15682         * modules/truncf-tests (Depends-on): Likewise.
15683         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15684         'fprintf-posix' module is not present.
15685         * tests/test-floorf2.c (check): Likewise.
15686         * tests/test-trunc2.c (check): Likewise.
15687         * tests/test-truncf2.c (check): Likewise.
15688         * tests/test-round2.c (equal): Likewise.
15689         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15690
15691 2010-04-07  Karl Berry  <karl@gnu.org>
15692
15693         * config/srclist.txt,
15694         * config/srclistvars.sh,
15695         * config/srclist-update: doc fixes.
15696
15697 2010-04-07  Jim Meyering  <meyering@redhat.com>
15698
15699         maint.mk: add a PATH crosschecking syntax-check rule
15700         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15701         Useful if you use a test like the one in help-version (coreutils,
15702         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15703         printed by prog --version.
15704
15705 2010-04-06  Bruno Haible  <bruno@clisp.org>
15706
15707         Fix link error on mingw.
15708         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15709         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15710
15711 2010-04-06  Bruno Haible  <bruno@clisp.org>
15712
15713         Assume rmdir exists.
15714         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15715
15716 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15717
15718         doc: update users.txt
15719         * users.txt: Add gcal.
15720
15721 2010-04-06  Jim Meyering  <meyering@redhat.com>
15722
15723         init.sh: simply unset TMPDIR rather than risking env -i
15724         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15725         although it probably works fine on all Unix-based systems, some
15726         systems (Cygwin?) cannot tolerate a totally cleared environment.
15727         Suggestion from Eric Blake.
15728
15729 2010-04-06  Jim Meyering  <meyering@redhat.com>
15730
15731         init.sh: portability fix: use env's POSIX-specified -i option not -u
15732         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15733         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15734
15735 2010-04-05  Bruno Haible  <bruno@clisp.org>
15736
15737         btowc: Work around Cygwin 1.7.2 bug.
15738         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15739         does not map NUL to 0.
15740         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15741
15742 2010-04-05  Bruno Haible  <bruno@clisp.org>
15743
15744         Make the multithread modules work on Cygwin 1.7.2.
15745         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15746         imported symbols can be declared weak, so that it returns "no" on
15747         Cygwin 1.7.2.
15748
15749 2010-04-05  Bruno Haible  <bruno@clisp.org>
15750
15751         Use the module 'strncat'.
15752         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15753
15754         Tests for module 'strncat'.
15755         * modules/strncat-tests: New file.
15756         * tests/test-strncat.c: New file.
15757
15758         New module 'strncat'.
15759         * lib/string.in.h (strncat): New declaration.
15760         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15761         * m4/strncat.m4: New file, based on m4/memchr.m4.
15762         * modules/strncat: New file.
15763         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15764         is declared.
15765         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15766         REPLACE_STRNCAT.
15767         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15768         REPLACE_STRNCAT.
15769         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15770         module.
15771         * tests/test-string-c++.cc: Check signature of strncat.
15772
15773 2010-04-05  Jim Meyering  <meyering@redhat.com>
15774
15775         xstrtoumax-tests: convert to use init.sh
15776         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15777         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15778         Use Exit, not exit.
15779         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15780
15781         xstrtoimax-tests: convert to use init.sh
15782         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15783         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15784         Use Exit, not exit.
15785         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15786
15787 2010-04-05  Bruno Haible  <bruno@clisp.org>
15788
15789         sys_socket: Avoid #define replacements in C++ mode.
15790         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15791         warning to the function if possible, rather than #defining the symbol
15792         to a dysfunctional alias.
15793
15794 2010-04-05  Bruno Haible  <bruno@clisp.org>
15795
15796         fseeko: Fix C++ test error on mingw.
15797         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15798         gl_FUNC_FSEEKO.
15799         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15800         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15801         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15802         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15803
15804 2010-04-05  Bruno Haible  <bruno@clisp.org>
15805
15806         duplocale: Improve test output.
15807         * tests/test-duplocale.c (main): Print reason for skipped test.
15808
15809 2010-04-05  Bruno Haible  <bruno@clisp.org>
15810
15811         Assume rmdir exists.
15812         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15813         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15814
15815 2010-04-05  Bruno Haible  <bruno@clisp.org>
15816
15817         Fix link error on Solaris 8 with cc.
15818         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15819
15820 2010-04-05  Bruno Haible  <bruno@clisp.org>
15821
15822         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15823         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15824
15825 2010-04-05  Bruno Haible  <bruno@clisp.org>
15826
15827         vasprintf: Update documentation.
15828         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15829
15830 2010-04-05  Bruno Haible  <bruno@clisp.org>
15831
15832         ptsname: Improve test.
15833         * tests/test-ptsname.c (main): Also try the various master names of BSD
15834         systems.
15835
15836 2010-04-05  Bruno Haible  <bruno@clisp.org>
15837
15838         memchr: Avoid a possible C++ test error.
15839         * lib/string.in.h (memchr): Provide declaration if function is missing.
15840         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15841         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15843         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15844
15845 2010-04-05  Bruno Haible  <bruno@clisp.org>
15846
15847         strtok_r: Improve idiom.
15848         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15849         AC_LIBOBJ is used.
15850
15851 2010-04-05  Bruno Haible  <bruno@clisp.org>
15852
15853         strdup: Improve idiom.
15854         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15855         AC_LIBOBJ is used.
15856         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15857         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15858         when AC_LIBOBJ is used.
15859
15860 2010-04-05  Bruno Haible  <bruno@clisp.org>
15861
15862         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15863         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15864         don't set REPLACE_MBSINIT to 1.
15865         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15866         don't set REPLACE_MBRTOWC to 1.
15867         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15868         exist, don't set REPLACE_MBSRTOWCS to 1.
15869         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15870         exist, don't set REPLACE_MBSNRTOWCS to 1.
15871         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15872         don't set REPLACE_WCRTOMB to 1.
15873         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15874         exist, don't set REPLACE_WCSRTOMBS to 1.
15875         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15876         exist, don't set REPLACE_WCSNRTOMBS to 1.
15877
15878 2010-04-05  Bruno Haible  <bruno@clisp.org>
15879
15880         ldexpl: Improve idiom.
15881         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15882         make sure to set HAVE_DECL_LDEXPL to 0.
15883
15884 2010-04-05  Jim Meyering  <meyering@redhat.com>
15885
15886         xstrtol-tests: convert to use init.sh
15887         * modules/xstrtol-tests (Files): Add tests/init.sh.
15888         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15889         Use Exit, not exit.
15890         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15891
15892         atexit-tests: convert to use init.sh
15893         * modules/atexit-tests (Files): Add tests/init.sh.
15894         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15895         Use Exit, not exit.
15896         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15897
15898         init.sh: fix typo
15899         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15900
15901         init.sh: make it easier for a test script to write to the tty, ...
15902         when using automake's parallel-tests mode.
15903         * tests/init.sh (stderr_fileno_): Define overridable variable.
15904         (warn_): New function, to use it.
15905         (fail_, skip_, framework_failure_): Use warn_.
15906
15907 2010-04-04  Bruno Haible  <bruno@clisp.org>
15908
15909         btowc: Avoid warning.
15910         * lib/btowc.c: Include <stdlib.h>.
15911         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15912
15913 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15914             Bruno Haible  <bruno@clisp.org>
15915
15916         wchar: Port to NetBSD 1.5.
15917         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15918         * lib/wctype.in.h (WEOF): Likewise.
15919
15920 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15921             Bruno Haible  <bruno@clisp.org>
15922
15923         Port extended stdio to NetBSD 1.5.
15924         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15925         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15926         older.
15927
15928 2010-04-04  Bruno Haible  <bruno@clisp.org>
15929
15930         string: Remove unused substitution.
15931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15932         HAVE_DECL_STRERROR.
15933         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15934
15935 2010-04-04  Bruno Haible  <bruno@clisp.org>
15936
15937         strtod: Avoid a possible C++ test error.
15938         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15939         set REPLACE_STRTOD.
15940
15941 2010-04-04  Bruno Haible  <bruno@clisp.org>
15942
15943         strerror: Update documentation.
15944         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15945
15946 2010-04-04  Bruno Haible  <bruno@clisp.org>
15947
15948         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15949         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15950         _GL_CXXALIAS_SYS_CAST.
15951
15952 2010-04-04  Bruno Haible  <bruno@clisp.org>
15953
15954         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15955         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15956         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15957         REPLACE_FREXPL to 1.
15958         * doc/posix-functions/frexpl.texi: Update documentation.
15959
15960 2010-04-04  Bruno Haible  <bruno@clisp.org>
15961
15962         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15963         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15964
15965 2010-04-04  Bruno Haible  <bruno@clisp.org>
15966
15967         Implement nanosleep for native Windows.
15968         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15969
15970 2010-04-04  Bruno Haible  <bruno@clisp.org>
15971
15972         math: Fix some C++ test errors on Solaris 8.
15973         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15974
15975 2010-04-04  Bruno Haible  <bruno@clisp.org>
15976
15977         math: Fix some C++ test errors on Cygwin.
15978         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15979         truncl): Provide declaration if the system does not have it.
15980         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15981         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15982         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15983         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15984         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15985         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15986         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15987         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15988         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15989         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15990         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15991         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15992         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15993         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15994         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15995         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15997         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15998         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15999         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16000         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16001         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16002
16003 2010-04-04  Bruno Haible  <bruno@clisp.org>
16004
16005         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16006         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16007         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16008         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16009         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16010         * m4/isinf.m4 (gl_ISINF): Likewise.
16011         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16012
16013 2010-04-04  Bruno Haible  <bruno@clisp.org>
16014
16015         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16016         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16017
16018 2010-04-04  Bruno Haible  <bruno@clisp.org>
16019
16020         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16021         * modules/tmpfile (configure.ac): Update.
16022
16023         tmpfile: Fix C++ test error on mingw.
16024         * lib/stdio.in.h (tmpfile): New declaration.
16025         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16026         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16027         * modules/tmpfile (Depends-on): Add stdio.
16028         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16029         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16030         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16031         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16032         REPLACE_TMPFILE.
16033         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16034
16035 2010-04-04  Bruno Haible  <bruno@clisp.org>
16036
16037         ioctl: Fix C++ test error on mingw.
16038         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16039         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16040         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16041
16042 2010-04-03  Bruno Haible  <bruno@clisp.org>
16043
16044         wcwidth: Fix C++ test error on mingw.
16045         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16047         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16048
16049 2010-04-03  Bruno Haible  <bruno@clisp.org>
16050
16051         nanosleep: Fix C++ test error on mingw.
16052         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16053         * lib/time.in.h (nanosleep): Use modern idiom.
16054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16055         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16056         REPLACE_NANOSLEEP to 1.
16057         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16058         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16059
16060 2010-04-03  Bruno Haible  <bruno@clisp.org>
16061
16062         strptime: Fix C++ test error on mingw.
16063         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16064         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16065         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16066         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16067         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16068         not REPLACE_STRPTIME.
16069         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16070         REPLACE_STRPTIME.
16071
16072 2010-04-03  Bruno Haible  <bruno@clisp.org>
16073
16074         timegm: Fix C++ test error on mingw.
16075         * lib/time.in.h (timegm): Use modern idiom.
16076         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16077         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16078         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16079         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16080
16081 2010-04-03  Bruno Haible  <bruno@clisp.org>
16082
16083         timegm: Assume declaration if function exists.
16084         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16085         if it exists. Don't clobber ac_cv_func_timegm.
16086
16087 2010-04-03  Bruno Haible  <bruno@clisp.org>
16088
16089         time_r: Fix C++ test error on mingw.
16090         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16091         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16092         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16093         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16094         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16095
16096 2010-04-03  Bruno Haible  <bruno@clisp.org>
16097
16098         time_r: Minor updates.
16099         * modules/time_r (Description): Mention the provided functions.
16100         * lib/time_r.c: Don't include <string.h>.
16101         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16102         * doc/posix-functions/localtime_r.texi: Likewise.
16103
16104 2010-04-03  Bruno Haible  <bruno@clisp.org>
16105
16106         time: Fix regression introduced on 2010-03-08.
16107         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16108         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16109
16110 2010-04-03  Jim Meyering  <meyering@redhat.com>
16111
16112         maint.mk: don't silently disable project-specific syntax-check rules
16113         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16114         that they need to convert their project-specific syntax-check rules
16115         to use the new _sc_search_regexp.
16116
16117 2010-04-03  Bruno Haible  <bruno@clisp.org>
16118
16119         fchdir: Fix regression introduced on 2010-03-08.
16120         * lib/unistd.in.h (fchdir): Fix declaration.
16121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16123         REPLACE_FCHDIR.
16124         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16125         REPLACE_FCHDIR.
16126
16127 2010-04-03  Bruno Haible  <bruno@clisp.org>
16128
16129         getpagesize: Fix C++ test error on mingw.
16130         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16131         system does not declare the function.
16132         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16133         declared.
16134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16135         HAVE_DECL_GETPAGESIZE.
16136         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16137
16138 2010-04-03  Bruno Haible  <bruno@clisp.org>
16139
16140         stdio: Make C++ tests work on mingw.
16141         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16142         does not declare the function.
16143
16144 2010-04-03  Bruno Haible  <bruno@clisp.org>
16145
16146         ftello: Fix C++ test error on mingw.
16147         * lib/stdio.in.h (ftello): Use modern idiom.
16148         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16149         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16150         is missing and that it needs to be replaced.
16151         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16153         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16154
16155 2010-04-03  Bruno Haible  <bruno@clisp.org>
16156
16157         fseeko: Fix C++ test error on mingw.
16158         * lib/stdio.in.h (fseeko): Use modern idiom.
16159         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16160         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16161         is missing and that it needs to be replaced.
16162         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16164         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16165
16166 2010-04-03  Bruno Haible  <bruno@clisp.org>
16167
16168         mkstemp: Fix C++ test error on mingw.
16169         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16170         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16171         function is missing and that it needs to be replaced.
16172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16173         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16174
16175 2010-04-03  Bruno Haible  <bruno@clisp.org>
16176
16177         stpncpy: Fix C++ test error on mingw.
16178         * lib/string.in.h (stpncpy): Use modern idiom.
16179         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16180         function is missing and that it needs to be replaced.
16181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16182         REPLACE_STPNCPY.
16183         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16184
16185 2010-04-03  Bruno Haible  <bruno@clisp.org>
16186
16187         sys_stat: Fix C++ test error on mingw.
16188         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16189         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16190
16191 2010-04-03  Bruno Haible  <bruno@clisp.org>
16192
16193         pty: Update doc.
16194         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16195
16196 2010-04-03  Bruno Haible  <bruno@clisp.org>
16197
16198         unistd: Fix C++ test error on mingw.
16199         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
16200
16201 2010-04-03  Bruno Haible  <bruno@clisp.org>
16202
16203         Update doc regarding mingw.
16204         * doc/glibc-functions/openpty.texi: Update regarding mingw.
16205         * doc/glibc-functions/login_tty.texi: Likewise.
16206         * doc/glibc-functions/forkpty.texi: Likewise.
16207
16208 2010-04-03  Bruno Haible  <bruno@clisp.org>
16209
16210         stdlib: Avoid compilation failure of c-strtold on mingw.
16211         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
16212
16213 2010-04-03  Bruno Haible  <bruno@clisp.org>
16214
16215         locale: Make C++ tests work on Cygwin and mingw.
16216         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
16217         cannot provide the function.
16218         Reported by Simon Josefsson.
16219
16220 2010-04-03  Bruno Haible  <bruno@clisp.org>
16221
16222         localename: Port to MacOS X 10.6.
16223         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
16224         memory layout of the locales in MacOS X 10.6 as well.
16225         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
16226
16227 2010-04-02  Bruno Haible  <bruno@clisp.org>
16228
16229         gnulib-tool: Ensure that long-running tests are executed last.
16230         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
16231         running tests after the one for the other tests.
16232
16233 2010-04-02  Bruno Haible  <bruno@clisp.org>
16234
16235         gnulib-tool: Ensure the tests in the main directory are executed first.
16236         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
16237         start with the current directory.
16238
16239 2010-04-02  Bruno Haible  <bruno@clisp.org>
16240
16241         Tests for module 'havelib', moved here from GNU gettext.
16242         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
16243         modifications.
16244         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
16245         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
16246         with modifications.
16247         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
16248         modifications.
16249         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
16250         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
16251         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
16252         with modifications.
16253         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
16254         with modifications.
16255         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
16256         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
16257         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
16258         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
16259         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
16260         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
16261         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
16262         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
16263         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
16264         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
16265         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
16266         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
16267         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
16268         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
16269         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
16270         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
16271         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
16272         with modifications.
16273         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16274         with modifications.
16275         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16276         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16277         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16278         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16279         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16280         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16281         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16282         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16283         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16284         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16285         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16286         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16287         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16288         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16289         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16290         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16291         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16292         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16293         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16294         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16295         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16296         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16297         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16298         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16299         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16300         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16301         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16302         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16303         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16304         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16305         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16306         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16307         * tests/havelib/rpathx/rpathx.c: New file, from
16308         gettext/autoconf-lib-link.
16309         * tests/havelib/rpathx/Makefile.am: New file, from
16310         gettext/autoconf-lib-link.
16311         * tests/havelib/rpathx/configure.ac: New file, from
16312         gettext/autoconf-lib-link with modifications.
16313         * tests/havelib/rpathy/rpathy.c: New file, from
16314         gettext/autoconf-lib-link.
16315         * tests/havelib/rpathy/Makefile.am: New file, from
16316         gettext/autoconf-lib-link.
16317         * tests/havelib/rpathy/configure.ac: New file, from
16318         gettext/autoconf-lib-link with modifications.
16319         * tests/havelib/rpathz/rpathz.c: New file, from
16320         gettext/autoconf-lib-link.
16321         * tests/havelib/rpathz/Makefile.am: New file, from
16322         gettext/autoconf-lib-link.
16323         * tests/havelib/rpathz/configure.ac: New file, from
16324         gettext/autoconf-lib-link with modifications.
16325         * tests/havelib/rpathlx/usex.c: New file, from
16326         gettext/autoconf-lib-link.
16327         * tests/havelib/rpathlx/Makefile.am: New file, from
16328         gettext/autoconf-lib-link.
16329         * tests/havelib/rpathlx/configure.ac: New file, from
16330         gettext/autoconf-lib-link with modifications.
16331         * tests/havelib/rpathly/usey.c: New file, from
16332         gettext/autoconf-lib-link.
16333         * tests/havelib/rpathly/Makefile.am: New file, from
16334         gettext/autoconf-lib-link.
16335         * tests/havelib/rpathly/configure.ac: New file, from
16336         gettext/autoconf-lib-link with modifications.
16337         * tests/havelib/rpathlz/usez.c: New file, from
16338         gettext/autoconf-lib-link.
16339         * tests/havelib/rpathlz/Makefile.am: New file, from
16340         gettext/autoconf-lib-link.
16341         * tests/havelib/rpathlz/configure.ac: New file, from
16342         gettext/autoconf-lib-link with modifications.
16343         * tests/havelib/rpathlyx/usey.c: New file, from
16344         gettext/autoconf-lib-link.
16345         * tests/havelib/rpathlyx/Makefile.am: New file, from
16346         gettext/autoconf-lib-link.
16347         * tests/havelib/rpathlyx/configure.ac: New file, from
16348         gettext/autoconf-lib-link with modifications.
16349         * tests/havelib/rpathlzyx/usez.c: New file, from
16350         gettext/autoconf-lib-link.
16351         * tests/havelib/rpathlzyx/Makefile.am: New file, from
16352         gettext/autoconf-lib-link.
16353         * tests/havelib/rpathlzyx/configure.ac: New file, from
16354         gettext/autoconf-lib-link with modifications.
16355         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
16356         with modifications.
16357
16358 2010-04-02  Bruno Haible  <bruno@clisp.org>
16359
16360         gnulib-tool: Create distributed built sources also for the tests.
16361         * gnulib-tool (func_create_testdir): Also generate distributed built
16362         sources in the tests directory.
16363
16364 2010-04-02  Bruno Haible  <bruno@clisp.org>
16365
16366         gnulib-tool: Obey user's environment variables.
16367         * gnulib-tool (func_create_testdir): When creating built sources,
16368         respect the environment variables for autoconf, automake, etc. given by
16369         the user.
16370
16371 2010-04-02  Bruno Haible  <bruno@clisp.org>
16372
16373         gnulib-tool: Provide the value of --m4-base to modules.
16374         * gnulib-tool (func_import, func_create_testdir): Emit a definition
16375         of gl_m4_base.
16376
16377 2010-04-02  Eric Blake  <eblake@redhat.com>
16378
16379         maint.mk: fix some fallout
16380         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16381         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16382
16383 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16384
16385         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16386         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16387         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16388         (sc_cast_of_x_alloc_return_value): Likewise.
16389         (sc_cast_of_alloca_return_value): Likewise.
16390         (sc_space_tab): Likewise.
16391         (sc_prohibit_atoi_atof): Likewise.
16392         (sc_prohibit_magic_number_exit): Likewise.
16393         (sc_error_exit_success): Likewise.
16394         (sc_file_system): Likewise.
16395         (sc_prohibit_have_config_h): Likewise.
16396         (sc_require_config_h): Likewise.
16397         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16398         (sc_obsolete_symbols): Likewise.
16399         (sc_changelog): Likewise.
16400         (sc_program_name): Likewise.
16401         (sc_the_the): Likewise.
16402         (sc_trailing_blank): Likewise.
16403         (sc_two_space_separator_in_usage): Likewise.
16404         (sc_useless_cpp_parens): Likewise.
16405         (sc_GPL_version): Likewise.
16406         (sc_GFDL_version): Likewise.
16407         (sc_texinfo_acronym): Likewise.
16408         (sc_prohibit_cvs_keyword): Likewise.
16409         (sc_prohibit_stat_st_blocks): Likewise.
16410         (sc_prohibit_S_IS_definition): Likewise.
16411         (sc_redundant_const): Likewise.
16412         (sc_makefile_TAB_only_indentation): Likewise.
16413         (sc_m4_quote_check): Likewise.
16414         (sc_makefile_path_separator_check): Likewise.
16415         (sc_copyright_check): Likewise.
16416         (sc_Wundef_boolean): Likewise.
16417         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16418
16419         maint.mk: match 0 or more whitespace-before-function-call '('
16420         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16421         that have zero or two-and-more spaces between the function name
16422         and the open parenthesis.
16423         (sc_error_message_warn_fatal): Likewise.
16424         (sc_error_message_uppercase): Likewise.
16425         (sc_error_message_period): Likewise.
16426
16427 2010-03-31  Eric Blake  <eblake@redhat.com>
16428
16429         maint.mk: check for [ as well as test
16430         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16431         Based on a libvirt report by Matthias Bolte.
16432
16433         gnumakefile: don't squelch _version output
16434         * top/GNUmakefile (_version): Create one-shot dependency rather
16435         than using $(shell) when version must be regenerated.
16436         (_autoreconf): Run verbosely, by default.
16437
16438         sys_time: avoid compiler warnings
16439         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16440         unconditional, fixing regression from 2010-03-29.
16441         Reported by Simon Josefsson.
16442
16443 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16444
16445         maint.mk: s/_header_without_use/_sc_header_without_use/
16446         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16447         (sc_prohibit_assert_without_use): Use the new name.
16448         (sc_prohibit_close_stream_without_use): Likewise.
16449         (sc_prohibit_getopt_without_use): Likewise.
16450         (sc_prohibit_quotearg_without_use): Likewise.
16451         (sc_prohibit_quote_without_use): Likewise.
16452         (sc_prohibit_long_options_without_use): Likewise.
16453         (sc_prohibit_inttostr_without_use): Likewise.
16454         (sc_prohibit_ignore_value_without_use): Likewise.
16455         (sc_prohibit_error_without_use): Likewise.
16456         (sc_prohibit_xalloc_without_use): Likewise.
16457         (sc_prohibit_hash_without_use): Likewise.
16458         (sc_prohibit_hash_pjw_without_use): Likewise.
16459         (sc_prohibit_safe_read_without_use): Likewise.
16460         (sc_prohibit_argmatch_without_use): Likewise.
16461         (sc_prohibit_canonicalize_without_use): Likewise.
16462         (sc_prohibit_root_dev_ino_without_use): Likewise.
16463         (sc_prohibit_openat_without_use): Likewise.
16464         (sc_prohibit_c_ctype_without_use): Likewise.
16465         (sc_prohibit_signal_without_use): Likewise.
16466         (sc_prohibit_intprops_without_use): Likewise.
16467
16468 2010-03-30  Eric Blake  <eblake@redhat.com>
16469
16470         maint: improve module indicators
16471         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16472         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16473         columns, and avoid extra macro expansion.
16474
16475         fdopendir: work around FreeBSD bug
16476         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16477         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16478         * modules/dirent (Makefile.am): Substitute it.
16479         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16480         declaration.
16481         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16482         fix.
16483         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16484
16485 2010-03-29  Bruno Haible  <bruno@clisp.org>
16486
16487         Emit #pragma system_header after the inclusion guard, not before.
16488         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16489         guard that spans the entire file, not before. This enables an
16490         optimization in GCC's preprocessor.
16491         * lib/ctype.in.h: Likewise.
16492         * lib/dirent.in.h: Likewise.
16493         * lib/errno.in.h: Likewise.
16494         * lib/float.in.h: Likewise.
16495         * lib/getopt.in.h: Likewise.
16496         * lib/iconv.in.h: Likewise.
16497         * lib/langinfo.in.h: Likewise.
16498         * lib/locale.in.h: Likewise.
16499         * lib/math.in.h: Likewise.
16500         * lib/netdb.in.h: Likewise.
16501         * lib/netinet_in.in.h: Likewise.
16502         * lib/pty.in.h: Likewise.
16503         * lib/sched.in.h: Likewise.
16504         * lib/se-selinux.in.h: Likewise.
16505         * lib/search.in.h: Likewise.
16506         * lib/spawn.in.h: Likewise.
16507         * lib/stdarg.in.h: Likewise.
16508         * lib/stdint.in.h: Likewise.
16509         * lib/string.in.h: Likewise.
16510         * lib/strings.in.h: Likewise.
16511         * lib/sys_file.in.h: Likewise.
16512         * lib/sys_ioctl.in.h: Likewise.
16513         * lib/sys_time.in.h: Likewise.
16514         * lib/sys_times.in.h: Likewise.
16515         * lib/sys_utsname.in.h: Likewise.
16516         * lib/sys_wait.in.h: Likewise.
16517         * lib/sysexits.in.h: Likewise.
16518         * lib/wctype.in.h: Likewise.
16519
16520 2010-03-28  James Youngman  <jay@gnu.org>
16521
16522         save-cwd: don't leak a file descriptor when the caller execs.
16523         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16524         saved file descriptor.
16525         * modules/save-cwd (Depends-on): Depend on cloexec.
16526
16527 2010-03-29  Bruno Haible  <bruno@clisp.org>
16528
16529         Remove vestiges of fts-lgpl module.
16530         * lib/fts_.h: Assume GNULIB_FTS is 1.
16531         * lib/fts.c: Likewise.
16532         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16533
16534 2010-03-28  Bruno Haible  <bruno@clisp.org>
16535
16536         Fix definition of tests witness macro.
16537         * gnulib-tool (func_import): Fix definition of witness macro.
16538
16539 2010-03-28  Bruno Haible  <bruno@clisp.org>
16540
16541         Fix ioctl's protoype on glibc systems.
16542         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16543         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16544         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16545         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16546         signature. If not, arrange to replace the ioctl function.
16547         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16548         REPLACE_IOCTL.
16549         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16550         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16551         Reported by Ludovic Courtès <ludo@gnu.org>.
16552
16553 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16554
16555         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16556         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16557         made it so grep -r --include=GLOB* ... did not work.
16558
16559 2010-03-26  Jim Meyering  <meyering@redhat.com>
16560             Eric Blake  <eblake@redhat.com>
16561
16562         maint.mk: prohibit use of test's -o and -a operators
16563         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16564
16565 2010-03-28  Bruno Haible  <bruno@clisp.org>
16566
16567         Remove unused GNULIB_XYZ macro definitions.
16568         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16569         invocation.
16570
16571 2010-03-28  Bruno Haible  <bruno@clisp.org>
16572
16573         Mark privileged tests modules.
16574         * modules/idpriv-drop-tests (Status): New section.
16575         * modules/idpriv-droptemp-tests (Status): New section.
16576
16577 2010-03-28  Bruno Haible  <bruno@clisp.org>
16578
16579         Split C++ tests into separate tests modules.
16580         * modules/dirent-c++-tests: New file, extracted from
16581         modules/dirent-tests.
16582         * modules/dirent-tests: Depend on it.
16583         * modules/fcntl-h-c++-tests: New file, extracted from
16584         modules/fcntl-h-tests.
16585         * modules/fcntl-h-tests: Depend on it.
16586         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16587         * modules/glob-tests: Depend on it.
16588         * modules/iconv-h-c++-tests: New file, extracted from
16589         modules/iconv-h-tests.
16590         * modules/iconv-h-tests: Depend on it.
16591         * modules/langinfo-c++-tests: New file, extracted from
16592         modules/langinfo-tests.
16593         * modules/langinfo-tests: Depend on it.
16594         * modules/locale-c++-tests: New file, extracted from
16595         modules/locale-tests.
16596         * modules/locale-tests: Depend on it.
16597         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16598         * modules/math-tests: Depend on it.
16599         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16600         * modules/pty-tests: Depend on it.
16601         * modules/search-c++-tests: New file, extracted from
16602         modules/search-tests.
16603         * modules/search-tests: Depend on it.
16604         * modules/signal-c++-tests: New file, extracted from
16605         modules/signal-tests.
16606         * modules/signal-tests: Depend on it.
16607         * modules/spawn-c++-tests: New file, extracted from
16608         modules/spawn-tests.
16609         * modules/spawn-tests: Depend on it.
16610         * modules/stdio-c++-tests: New file, extracted from
16611         modules/stdio-tests.
16612         * modules/stdio-tests: Depend on it.
16613         * modules/stdlib-c++-tests: New file, extracted from
16614         modules/stdlib-tests.
16615         * modules/stdlib-tests: Depend on it.
16616         * modules/string-c++-tests: New file, extracted from
16617         modules/string-tests.
16618         * modules/string-tests: Depend on it.
16619         * modules/sys_ioctl-c++-tests: New file, extracted from
16620         modules/sys_ioctl-tests.
16621         * modules/sys_ioctl-tests: Depend on it.
16622         * modules/sys_select-c++-tests: New file, extracted from
16623         modules/sys_select-tests.
16624         * modules/sys_select-tests: Depend on it.
16625         * modules/sys_socket-c++-tests: New file, extracted from
16626         modules/sys_socket-tests.
16627         * modules/sys_socket-tests: Depend on it.
16628         * modules/sys_stat-c++-tests: New file, extracted from
16629         modules/sys_stat-tests.
16630         * modules/sys_stat-tests: Depend on it.
16631         * modules/sys_time-c++-tests: New file, extracted from
16632         modules/sys_time-tests.
16633         * modules/sys_time-tests: Depend on it.
16634         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16635         * modules/time-tests: Depend on it.
16636         * modules/unistd-c++-tests: New file, extracted from
16637         modules/unistd-tests.
16638         * modules/unistd-tests: Depend on it.
16639         * modules/wchar-c++-tests: New file, extracted from
16640         modules/wchar-tests.
16641         * modules/wchar-tests: Depend on it.
16642         * modules/wctype-c++-tests: New file, extracted from
16643         modules/wctype-tests.
16644         * modules/wctype-tests: Depend on it.
16645         Reported by Simon Josefsson.
16646
16647 2010-03-28  Bruno Haible  <bruno@clisp.org>
16648
16649         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16650         * gnulib-tool (func_exists_module): New function, extracted from
16651         func_verify_module.
16652         (func_verify_module): Use it.
16653         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16654         'foo' only if 'foo' exists.
16655         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16656         module.
16657
16658 2010-03-28  Bruno Haible  <bruno@clisp.org>
16659
16660         gnulib-tool: Add support for special categories of tests.
16661         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16662         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16663         (func_usage): Document them.
16664         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16665         inc_unportable_tests, inc_all_tests): New variables.
16666         (func_acceptable): Consider these variables.
16667         (func_modules_transitive_closure): Make it work when the 'Status' field
16668         consists of multiple words.
16669         (func_import): Store and restore the values of inc_cxx_tests,
16670         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16671         inc_all_tests in gnulib-comp.m4.
16672         (func_create_testdir): Set inc_all_tests to true.
16673         * doc/gnulib.texi (Extra tests modules): New section.
16674         Suggested by Jim Meyering.
16675
16676 2010-03-28  Bruno Haible  <bruno@clisp.org>
16677
16678         ansi-c++-opt: Allow turning off the C++ build by default.
16679         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16680         gl_CXX_CHOICE_DEFAULT_NO is defined.
16681         Requested by Eric Blake.
16682
16683 2010-03-28  Bruno Haible  <bruno@clisp.org>
16684
16685         unistd: Avoid #define replacements in C++ mode.
16686         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16687         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16688         setsockopt, shutdown, select): In C++, attach a warning to the function
16689         if possible, rather than #defining the symbol to a dysfunctional alias.
16690         Reported by John W. Eaton <jwe@gnu.org>.
16691
16692 2010-03-28  Bruno Haible  <bruno@clisp.org>
16693
16694         Fix link errors on mingw.
16695         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16696         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16697         $(LIBSOCKET).
16698         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16699         $(LIBSOCKET).
16700
16701 2010-03-28  Bruno Haible  <bruno@clisp.org>
16702             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16703
16704         lib-ignore: Determine different options for different compilers.
16705         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16706         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16707         Add comments.
16708         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16709         * NEWS: Mention the change.
16710
16711 2010-03-27  Bruno Haible  <bruno@clisp.org>
16712
16713         Remove unused GNULIB_XYZ macro definitions.
16714         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16715         * modules/fseek (configure.ac): Likewise.
16716         * modules/ioctl (configure.ac): Likewise.
16717         * modules/open (configure.ac): Likewise.
16718         * modules/stdlib-safer (configure.ac): Likewise.
16719
16720 2010-03-27  Bruno Haible  <bruno@clisp.org>
16721
16722         Add a remark about certain modules.
16723         * modules/malloc (Comment): New section.
16724         * modules/realloc (Comment): Likewise.
16725         * modules/sigpipe (Comment): Likewise.
16726
16727 2010-03-27  Bruno Haible  <bruno@clisp.org>
16728
16729         Resolve conflict between the two kinds of module indicators.
16730         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16731         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16732         * modules/canonicalize (configure.ac): Invoke
16733         gl_MODULE_INDICATOR_FOR_TESTS.
16734         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16735         GNULIB_XYZ.
16736         * tests/test-dirent-c++.cc: Likewise.
16737         * tests/test-dirent-safer.c: Likewise.
16738         * tests/test-dup2.c: Likewise.
16739         * tests/test-fchdir.c: Likewise.
16740         * tests/test-fcntl-h-c++.cc: Likewise.
16741         * tests/test-getopt.c: Likewise.
16742         * tests/test-getopt.h: Likewise.
16743         * tests/test-langinfo-c++.cc: Likewise.
16744         * tests/test-locale-c++.cc: Likewise.
16745         * tests/test-math-c++.cc: Likewise.
16746         * tests/test-pty-c++.cc: Likewise.
16747         * tests/test-search-c++.cc: Likewise.
16748         * tests/test-signal-c++.cc: Likewise.
16749         * tests/test-spawn-c++.cc: Likewise.
16750         * tests/test-stdio-c++.cc: Likewise.
16751         * tests/test-stdlib-c++.cc: Likewise.
16752         * tests/test-string-c++.cc: Likewise.
16753         * tests/test-sys_ioctl-c++.cc: Likewise.
16754         * tests/test-sys_select-c++.cc: Likewise.
16755         * tests/test-sys_socket-c++.cc: Likewise.
16756         * tests/test-sys_stat-c++.cc: Likewise.
16757         * tests/test-sys_time-c++.cc: Likewise.
16758         * tests/test-time-c++.cc: Likewise.
16759         * tests/test-unistd-c++.cc: Likewise.
16760         * tests/test-wchar-c++.cc: Likewise.
16761         * tests/uninorm/test-u8-nfc.c: Likewise.
16762         * tests/uninorm/test-u8-nfd.c: Likewise.
16763         * tests/uninorm/test-u8-nfkc.c: Likewise.
16764         * tests/uninorm/test-u8-nfkd.c: Likewise.
16765         * tests/uninorm/test-u16-nfc.c: Likewise.
16766         * tests/uninorm/test-u16-nfd.c: Likewise.
16767         * tests/uninorm/test-u16-nfkc.c: Likewise.
16768         * tests/uninorm/test-u16-nfkd.c: Likewise.
16769         * tests/uninorm/test-u32-nfc.c: Likewise.
16770         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16771         * tests/uninorm/test-u32-nfd.c: Likewise.
16772         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16773         * tests/uninorm/test-u32-nfkc.c: Likewise.
16774         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16775         * tests/uninorm/test-u32-nfkd.c: Likewise.
16776         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16777         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16778
16779 2010-03-27  Bruno Haible  <bruno@clisp.org>
16780
16781         Distinguish two kinds of module indicators.
16782         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16783         gl_MODULE_INDICATOR.
16784         (gl_MODULE_INDICATOR): New macro.
16785         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16786         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16787         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16788         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16789         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16790         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16791         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16792         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16793         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16794         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16795         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16796         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16797         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16798         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16799         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16800         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16801         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16802         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16803         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16804         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16805         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16806         * modules/cloexec (configure.ac): Likewise.
16807         * modules/getopt-gnu (configure.ac): Likewise.
16808         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16809         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16810         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16811         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16812
16813 2010-03-27  Bruno Haible  <bruno@clisp.org>
16814
16815         New module description field 'Comment'.
16816         * gnulib-tool: New option --extract-comment.
16817         (func_usage): Document it.
16818         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16819         (func_get_comment): New function.
16820         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16821
16822 2010-03-27  Bruno Haible  <bruno@clisp.org>
16823
16824         Addendum to 2010-02-07 commit.
16825         * gnulib-tool (func_usage): Document --extract-applicability option.
16826
16827 2010-03-27  Bruno Haible  <bruno@clisp.org>
16828
16829         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16830         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16831         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16832         rather than link errors.
16833
16834 2010-03-27  Bruno Haible  <bruno@clisp.org>
16835
16836         Avoid side effects from tests-related modules on the compilation of lib.
16837         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16838         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16839         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16840         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16841         macro.
16842         (func_import): Define a witness macro. Assign it a value that depends
16843         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16844         tests-related modules.
16845         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16846         Reported by Jim Meyering.
16847
16848 2010-03-27  Bruno Haible  <bruno@clisp.org>
16849
16850         Factorize common .m4 code.
16851         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16852         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16853         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16854         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16855         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16856         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16857         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16858         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16859         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16860         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16861         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16862         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16863         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16864         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16865         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16866         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16867         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16868         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16870         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16871         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16872         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16873         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16874         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16875         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16876         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16877         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16878         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16879         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16880         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16881         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16882         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16883
16884 2010-03-27  Bruno Haible  <bruno@clisp.org>
16885
16886         Fix a compilation error on Cygwin with g++ >= 4.3.
16887         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16888         if it is undefined or if we alias it to chmod.
16889         (lstat): Don't warn about the use of this function if it is undefined
16890         or if we alias it to stat.
16891         Reported by Simon Josefsson.
16892
16893 2010-03-27  Bruno Haible  <bruno@clisp.org>
16894
16895         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16896         * modules/getlogin (configure.ac): Update.
16897
16898         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16899         * modules/getlogin_r (configure.ac): Update.
16900
16901         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16902         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16903         * modules/inet_ntop (configure.ac): Update.
16904
16905         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16906         * modules/inet_pton (configure.ac): Update.
16907
16908         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16909         * modules/mbslen (configure.ac): Update.
16910
16911         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16912         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16913         * modules/forkpty (configure.ac): Update.
16914         * modules/openpty (configure.ac): Update.
16915
16916 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16917
16918         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16919         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16920
16921 2010-03-25  Eric Blake  <eblake@redhat.com>
16922
16923         maint: use pragma consistently across replacement headers
16924         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16925         * lib/dirent.in.h (system_header): Likewise.
16926         * lib/errno.in.h (system_header): Likewise.
16927         * lib/float.in.h (system_header): Likewise.
16928         * lib/getopt.in.h (system_header): Likewise.
16929         * lib/iconv.in.h (system_header): Likewise.
16930         * lib/inttypes.in.h (system_header): Likewise.
16931         * lib/langinfo.in.h (system_header): Likewise.
16932         * lib/locale.in.h (system_header): Likewise.
16933         * lib/math.in.h (system_header): Likewise.
16934         * lib/netdb.in.h (system_header): Likewise.
16935         * lib/netinet_in.in.h (system_header): Likewise.
16936         * lib/pty.in.h (system_header): Likewise.
16937         * lib/sched.in.h (system_header): Likewise.
16938         * lib/se-selinux.in.h (system_header): Likewise.
16939         * lib/search.in.h (system_header): Likewise.
16940         * lib/spawn.in.h (system_header): Likewise.
16941         * lib/stdarg.in.h (system_header): Likewise.
16942         * lib/stdint.in.h (system_header): Likewise.
16943         * lib/string.in.h (system_header): Likewise.
16944         * lib/strings.in.h (system_header): Likewise.
16945         * lib/sys_file.in.h (system_header): Likewise.
16946         * lib/sys_ioctl.in.h (system_header): Likewise.
16947         * lib/sys_socket.in.h (system_header): Likewise.
16948         * lib/sys_times.in.h (system_header): Likewise.
16949         * lib/sys_utsname.in.h (system_header): Likewise.
16950         * lib/sys_wait.in.h (system_header): Likewise.
16951         * lib/sysexits.in.h (system_header): Likewise.
16952         * lib/unistd.in.h (system_header): Likewise.
16953         * lib/wctype.in.h (system_header): Likewise.
16954
16955         arpa/inet: fix mingw compilation warning
16956         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16957         Reported by Matthew Bolte.
16958
16959 2010-03-25  Bruno Haible  <bruno@clisp.org>
16960
16961         Avoid collision between gnulib wrapper and libintl wrapper.
16962         * lib/printf.c (printf): Don't define if a printf wrapper is already
16963         defined in intl/printf.c.
16964         Reported by Michel Boaventura <michel@michelboaventura.com>.
16965
16966 2010-03-25  Bruno Haible  <bruno@clisp.org>
16967
16968         Use ANSI C.
16969         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16970
16971 2010-03-25  Bruno Haible  <bruno@clisp.org>
16972
16973         Minor formatting changes.
16974         * lib/acosl.c: Insert space before function argument list.
16975         * lib/argz.c: Likewise.
16976         * lib/asinl.c: Likewise.
16977         * lib/expl.c: Likewise.
16978         * lib/gen-uni-tables.c: Likewise.
16979         * lib/gettext.h: Likewise.
16980         * lib/glthread/lock.h: Likewise.
16981         * lib/tanl.c: Likewise.
16982         * lib/uniname/uniname.c: Likewise.
16983         * tests/test-idpriv-drop.c: Likewise.
16984         * tests/test-idpriv-droptemp.c: Likewise.
16985         * tests/test-lock.c: Likewise.
16986         * tests/test-tls.c: Likewise.
16987         * lib/argp-help.c: Insert space before function-like macro argument
16988         list.
16989         * lib/memcmp.c: Likewise.
16990         * tests/test-base64.c: Likewise.
16991         * lib/localename.c: Insert space before sizeof's argument list.
16992         * lib/safe-alloc.h: Likewise.
16993         * lib/file-set.h: Insert space before macro argument list.
16994         * tests/test-argp.c: Likewise.
16995         * lib/argp-namefrob.h: Insert space before function parameter list.
16996         * lib/getaddrinfo.c: Likewise.
16997         * lib/netdb.in.h: Likewise.
16998         * lib/parse-duration.h: Likewise.
16999         * lib/parse-duration.c: Likewise.
17000         * lib/poll.c: Likewise.
17001         * lib/select.c: Likewise.
17002         * lib/trim.h: Likewise.
17003         * tests/test-usleep.c: Likewise.
17004         * lib/ldexpl.c: Insert space before function parameter list and before
17005         function argument list.
17006         * lib/logl.c: Likewise.
17007         * lib/sqrtl.c: Likewise.
17008         * lib/trim.c: Likewise.
17009         * lib/cosl.c: Use GNU style indentation. Insert space before function
17010         argument list.
17011         * lib/sinl.c: Likewise.
17012         * lib/tsearch.c: Insert space after 'for'.
17013         Reported by Jim Meyering.
17014
17015 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17016
17017         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17018         config header before grepping, as it's not present before
17019         autoreconf/configure are run.  Reported by Simon Josefsson.
17020
17021 2010-03-23  Bruno Haible  <bruno@clisp.org>
17022
17023         pt_chown: Make it work with automake < 1.11.
17024         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17025         Reported by Simon Josefsson.
17026
17027 2010-03-23  Bruno Haible  <bruno@clisp.org>
17028
17029         pt_chown: Don't depend on GPLed modules.
17030         * lib/pt_chown.c: Don't include idpriv.h.
17031         (main): Don't drop privileges.
17032         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17033         Reported by Simon Josefsson.
17034
17035 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17036
17037         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17038         suggestions from karl@freefriends.org (Karl Berry).
17039
17040 2010-03-22  Eric Blake  <eblake@redhat.com>
17041
17042         gethostname: further tweaks
17043         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17044         are overriding gethostname.
17045         Suggested by Bruno Haible.
17046
17047 2010-03-21  Bruno Haible  <bruno@clisp.org>
17048
17049         Fix comments.
17050         * lib/forkpty.c (rpl_forkpty): Fix comment.
17051         * lib/openpty.c (rpl_openpty): Likewise.
17052         Reported by Eric Blake.
17053
17054 2010-03-22  Eric Blake  <eblake@redhat.com>
17055
17056         gethostname: fix build on mingw
17057         * lib/unistd.in.h (includes): Work around fact that mingw
17058         <winsock2.h> re-includes <unistd.h>, by avoiding any
17059         redeclarations if we are being included by <winsock2.h>.
17060         Reported by Matthias Bolte.
17061
17062 2010-03-21  Bruno Haible  <bruno@clisp.org>
17063
17064         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17065         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17066         modifications.
17067         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17068         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17069         provide the replacement.
17070         * modules/forkpty (Depends-on): Add openpty, login_tty.
17071         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17072         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17073         * doc/glibc-functions/forkpty.texi: More supported platforms.
17074         * config/srclist.txt: Add forkpty.c (commented).
17075
17076 2010-03-21  Bruno Haible  <bruno@clisp.org>
17077
17078         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17079         (Makefile.am): Verify that PTY_LIB is defined.
17080
17081         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17082
17083 2010-03-21  Bruno Haible  <bruno@clisp.org>
17084
17085         Tests for module 'login_tty'.
17086         * modules/login_tty-tests: New file.
17087         * tests/test-login_tty.c: New file.
17088
17089         New module 'login_tty'.
17090         * lib/login_tty.c: New file.
17091         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17092         * modules/login_tty: New file.
17093         * doc/glibc-functions/login_tty.texi: Mention the new module.
17094
17095 2010-03-21  Bruno Haible  <bruno@clisp.org>
17096
17097         login_tty: Documentation.
17098         * doc/glibc-functions/login_tty.texi: New file.
17099         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17100
17101 2010-03-21  Bruno Haible  <bruno@clisp.org>
17102
17103         pty: Consistent macro naming.
17104         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17105         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17106         * modules/pty (configure.ac): Update.
17107
17108 2010-03-21  Bruno Haible  <bruno@clisp.org>
17109
17110         Tests for openpty: Make stricter.
17111         * tests/test-openpty.c (main): Add test of canonical processing and
17112         erase.
17113         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17114
17115         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17116         * lib/openpty.c (openpty): New replacement function.
17117         * lib/pty.in.h: Include <termios.h>.
17118         (openpty): Update declaration. Add comments.
17119         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17120         is not declared, arrange to provide the replacement. Check for _getpty
17121         and posix_openpt.
17122         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17123         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17124         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17125         * modules/pty-tests (test_pty_c___LDADD): New variable.
17126         * doc/glibc-functions/openpty.texi: More supported platforms.
17127
17128 2010-03-21  Bruno Haible  <bruno@clisp.org>
17129
17130         setenv: Tweaks.
17131         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17132         the test program.
17133         * doc/posix-functions/setenv.texi: Update platforms list.
17134
17135 2010-03-21  Bruno Haible  <bruno@clisp.org>
17136
17137         New module 'unlockpt'.
17138         * lib/unlockpt.c: New file, from glibc with modifications.
17139         * m4/unlockpt.m4: New file.
17140         * modules/unlockpt: New file.
17141         * lib/stdlib.in.h (unlockpt): New declaration.
17142         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17143         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17144         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17145         HAVE_UNLOCKPT.
17146         * doc/posix-functions/unlockpt.texi: Mention the new module.
17147         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17148         * config/srclist.txt: Add unlockpt.c (commented).
17149
17150 2010-03-21  Jim Meyering  <meyering@redhat.com>
17151
17152         maint.mk: prohibit inclusion of "intprops.h" without use
17153         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17154
17155 2010-03-21  Bruno Haible  <bruno@clisp.org>
17156
17157         New module 'grantpt'.
17158         * lib/grantpt.c: New file, from glibc with modifications.
17159         * m4/grantpt.m4: New file.
17160         * modules/grantpt: New file.
17161         * lib/stdlib.in.h (grantpt): New declaration.
17162         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17163         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17164         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17165         HAVE_GRANTPT.
17166         * doc/posix-functions/grantpt.texi: Mention the new module.
17167         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17168         * config/srclist.txt: Add grantpt.c (commented).
17169
17170 2010-03-21  Bruno Haible  <bruno@clisp.org>
17171
17172         New module 'pt_chown'.
17173         * lib/pt_chown.c: New file, from glibc with modifications.
17174         * lib/pty-private.h: New file, from glibc with modifications.
17175         * modules/pt_chown: New file.
17176         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17177
17178 2010-03-21  Bruno Haible  <bruno@clisp.org>
17179
17180         Tests for module 'ptsname'.
17181         * modules/ptsname-tests: New file.
17182         * tests/test-ptsname.c: New file.
17183
17184         New module 'ptsname'.
17185         * lib/ptsname.c: New file, from glibc with modifications.
17186         * m4/ptsname.m4: New file.
17187         * modules/ptsname: New file.
17188         * lib/stdlib.in.h (ptsname): New declaration.
17189         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17190         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17191         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17192         HAVE_PTSNAME.
17193         * doc/posix-functions/ptsname.texi: Mention the new module.
17194         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17195         * config/srclist.txt: Add ptsname.c (commented).
17196
17197 2010-03-21  Bruno Haible  <bruno@clisp.org>
17198
17199         Tests for module 'ttyname_r'.
17200         * modules/ttyname_r-tests: New file.
17201         * tests/test-ttyname_r.c: New file.
17202
17203         New module 'ttyname_r'.
17204         * lib/ttyname_r.c: New file.
17205         * m4/ttyname_r.m4: New file.
17206         * modules/ttyname_r: New file.
17207         * lib/unistd.in.h (ttyname_r): New declaration.
17208         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
17209         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
17210         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
17211         HAVE_TTYNAME_R.
17212         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
17213         * doc/posix-functions/ttyname_r.texi: Mention the new module.
17214
17215 2010-03-20  Bruno Haible  <bruno@clisp.org>
17216
17217         signal: Undefine macro definitions in C++ mode.
17218         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
17219         sigfillset): Undefine macro definitions from the system header in C++
17220         mode.
17221         Reported by John W. Eaton <jwe@gnu.org>.
17222
17223 2010-03-20  Bruno Haible  <bruno@clisp.org>
17224
17225         Ensure no #include statements inside extern "C" { ... }.
17226         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
17227         contain #include statements.
17228         * lib/time.in.h: Likewise.
17229
17230 2010-03-20  Bruno Haible  <bruno@clisp.org>
17231
17232         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
17233         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
17234         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
17235         Reported by John W. Eaton <jwe@gnu.org>.
17236
17237 2010-03-20  Bruno Haible  <bruno@clisp.org>
17238
17239         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
17240         Reported by Jim Meyering.
17241
17242 2010-03-20  Bruno Haible  <bruno@clisp.org>
17243
17244         pipe: Set errno upon failure.
17245         * lib/pipe.h: Specify that when -1 is returned, errno is set.
17246         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
17247         errno value in error message.
17248
17249 2010-03-20  Bruno Haible  <bruno@clisp.org>
17250             Jim Meyering  <meyering@redhat.com>
17251
17252         lchown: Avoid "unused variable" warning.
17253         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
17254
17255 2010-03-20  Bruno Haible  <bruno@clisp.org>
17256
17257         Work around unlink() bug on MacOS X 10.5.6.
17258         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
17259         attempting to unlink a parent directory.
17260         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
17261         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
17262         activate for the replacement function.
17263         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
17264
17265 2010-03-20  Bruno Haible  <bruno@clisp.org>
17266
17267         Fix link errors on Solaris 8.
17268         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
17269         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
17270
17271 2010-03-19  Jim Meyering  <meyering@redhat.com>
17272
17273         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17274         The _LIBC implementation of build_range_exp correctly honors the
17275         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17276         However, the non-_LIBC implementation would ignore that syntax-bit
17277         flag and return REG_ERANGE unconditionally.
17278         This change makes it honor that flag.
17279         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17280         Make two pointer parameters "const".
17281         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17282         (parse_bracket_exp): Update caller.
17283
17284         regex.m4: correct the reversed range endpoint ([b-a]) test
17285         * m4/regex.m4: When requiring that [b-a] evoke failure,
17286         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17287         test pass once again for x86-based systems.
17288
17289 2010-03-19  Bruno Haible  <bruno@clisp.org>
17290
17291         scandir: Fix link error on Solaris 8.
17292         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17293         macros.
17294
17295 2010-03-19  Bruno Haible  <bruno@clisp.org>
17296
17297         getusershell: Fix documentation.
17298         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17299         module.
17300         * doc/glibc-functions/setusershell.texi: Likewise.
17301
17302         getusershell: Provide declaration, missing on Solaris 9.
17303         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17304         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17305         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17306         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17308         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17309         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
17310         HAVE_GETUSERSHELL.
17311         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
17312
17313 2010-03-19  Bruno Haible  <bruno@clisp.org>
17314
17315         wctype: Provide iswblank function.
17316         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17317         exists and is fine.
17318         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
17319         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
17320         * tests/test-wctype.c (main): Re-enable the iswblank tests.
17321         * doc/posix-functions/iswblank.texi: Update.
17322
17323 2010-03-19  Bruno Haible  <bruno@clisp.org>
17324
17325         Tests of module 'pty' in C++ mode.
17326         * modules/pty-tests: New file.
17327         * tests/test-pty-c++.cc: New file.
17328         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17329
17330 2010-03-19  Eric Blake  <eblake@redhat.com>
17331
17332         logb: fix documentation
17333         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
17334         1.5 declaration bug.
17335
17336         forkpty, openpty: prefer glibc's const-safe prototype
17337         * lib/forkpty.c (rpl_forkpty): New file.
17338         * lib/openpty.c (rpl_openpty): Likewise.
17339         * modules/forkpty (Files): Distribute it.
17340         * modules/openpty (Files): Likewise.
17341         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
17342         check...
17343         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
17344         replacement for for non-const BSD signature.
17345         * modules/pty (Makefile.am): Substitute witnesses.
17346         * lib/pty.in.h (forkpty, openpty): Declare replacements.
17347         * tests/test-forkpty.c: Update signature check.
17348         * tests/test-openpty.c: Likewise.
17349         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
17350         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17351
17352         forkpty, openpty: split functions into new modules
17353         * modules/pty (Makefile.am): Substitute new witnesses.
17354         (Libraries): Move library detection...
17355         * modules/forkpty: ...into new module.
17356         * modules/openpty: Another new module.
17357         * modules/pty-tests: Rename and split...
17358         * modules/forkpty-tests: ...to this...
17359         * modules/openpty-tests: ...and this.
17360         * tests/test-pty.c: Rename and split...
17361         * tests/test-forkpty.c: ...to this...
17362         * tests/test-openpty.c: ...and this.
17363         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
17364         (gl_PTY): Split library searching...
17365         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
17366         (gl_FORKPTY, gl_OPENPTY): New macros.
17367         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
17368         * NEWS: Mention the split.
17369         * MODULES.html.sh (Misc): Document the modules.
17370         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
17371         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17372
17373         pty: improve replacement header
17374         * lib/pty.in.h: New file.
17375         * modules/pty (Files): Ship it.
17376         (Makefile.am): Always build replacement.
17377         * m4/pty.m4: Rename...
17378         * m4/pty_h.m4: ...to this.
17379         (gl_PTY): Modernize setting of witness macros; update check of
17380         forkpty to take proper advantage of cache.
17381         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17382
17383         getopt: avoid compiler warning
17384         * lib/getopt.c (attribute_hidden): Remove unused macro.
17385
17386 2010-03-18  Bruno Haible  <bruno@clisp.org>
17387
17388         Fix link errors on Solaris 8.
17389         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17390         * modules/search-tests (test_search_c___LDADD): Likewise.
17391         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17392         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17393         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17394         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17395         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17396         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17397         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17398
17399 2010-03-18  Bruno Haible  <bruno@clisp.org>
17400
17401         Fix bug introduced on 2010-03-14.
17402         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17403         (gl_SPAWN_H): Require it.
17404         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17405         Reported by Simon Josefsson.
17406
17407 2010-03-18  Bruno Haible  <bruno@clisp.org>
17408
17409         Fix typo introduced on 2009-12-31.
17410         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17411         posix_spawn_file_actions_adddup2.
17412
17413 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17414         and Eric Blake  <eblake@redhat.com>
17415
17416         test-vc-list-files-git: make more robust
17417         * tests/test-vc-list-files-git.sh: Unset problematic environment
17418         variables.  Chain commands together.
17419
17420 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17421
17422         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17423         `AC_CHECK_DECL' invocation.
17424
17425 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17426
17427         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17428         appears before executable statements. Suggested by Petr Sumbera
17429         <Petr.Sumbera@Sun.COM>.
17430
17431 2010-03-14  Bruno Haible  <bruno@clisp.org>
17432
17433         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17434         portability problems. Instead use a simpler test.
17435         (main): Check that invalid arguments are rejected only on Linux.
17436
17437 2010-03-14  Bruno Haible  <bruno@clisp.org>
17438
17439         Fix bug introduced on 2009-12-31.
17440         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17441         gl_PREREQ_SYS_H_WINSOCK2 always.
17442         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17443         SYS_SOCKET_H variable.
17444         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17445         Update comments.
17446         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17447         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17448         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17449         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17450         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17451
17452 2010-03-14  Bruno Haible  <bruno@clisp.org>
17453
17454         Fix values returned by sinl, cosl.
17455         * lib/trigl.h: Add specification comments.
17456         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17457         that combines the values from the precomputed table with the values of
17458         the Chebyshev polynomials.
17459
17460 2010-03-14  Bruno Haible  <bruno@clisp.org>
17461
17462         Fix compilation error when modules 'posix_spawn[p]' are not used.
17463         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17465
17466 2010-03-14  Bruno Haible  <bruno@clisp.org>
17467
17468         Fix compilation error on mingw when module 'time_r' is not used.
17469         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17470         is 1.
17471         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17472         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17473         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17474         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17475
17476 2010-03-14  Bruno Haible  <bruno@clisp.org>
17477
17478         Fix compilation error with Sun C.
17479         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17480         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17481         instead of GCC specific ULONG_LONG_MAX.
17482         * lib/xstrtoll.c: Likewise.
17483         * lib/xstrtoull.c: Likewise.
17484
17485 2010-03-13  Bruno Haible  <bruno@clisp.org>
17486
17487         Allow the user to disable C++ code and tests.
17488         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17489         (gl_PROG_ANSI_CXX): Require it.
17490
17491 2010-03-13  Bruno Haible  <bruno@clisp.org>
17492
17493         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17494         cases.
17495
17496 2010-03-13  Bruno Haible  <bruno@clisp.org>
17497
17498         Test that gnulib does not break the standard C++ headers.
17499         * tests/test-locale-c++2.cc: New file.
17500         * modules/locale-tests (Files): Add it.
17501         (Makefile.am): Compile it for test-locale-c++.
17502         * tests/test-math-c++2.cc: New file.
17503         * modules/math-tests (Files): Add it.
17504         (Makefile.am): Compile it for test-math-c++.
17505         * tests/test-signal-c++2.cc: New file.
17506         * modules/signal-tests (Files): Add it.
17507         (Makefile.am): Compile it for test-signal-c++.
17508         * tests/test-stdio-c++2.cc: New file.
17509         * modules/stdio-tests (Files): Add it.
17510         (Makefile.am): Compile it for test-stdio-c++.
17511         * tests/test-stdlib-c++2.cc: New file.
17512         * modules/stdlib-tests (Files): Add it.
17513         (Makefile.am): Compile it for test-stdlib-c++.
17514         * tests/test-string-c++2.cc: New file.
17515         * modules/string-tests (Files): Add it.
17516         (Makefile.am): Compile it for test-string-c++.
17517         * tests/test-time-c++2.cc: New file.
17518         * modules/time-tests (Files): Add it.
17519         (Makefile.am): Compile it for test-time-c++.
17520         Reported by John W. Eaton <jwe@gnu.org>.
17521
17522 2010-03-13  Bruno Haible  <bruno@clisp.org>
17523
17524         * gnulib-tool (func_usage): Clarify which options are available for
17525         --create-testdir and --create-megatestdir.
17526
17527 2010-03-13  Bruno Haible  <bruno@clisp.org>
17528
17529         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17530         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17531         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17532         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17533         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17534         when appropriate.
17535         Reported by Jim Meyering.
17536
17537 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17538
17539         * gnulib-tool (func_import): Explain origin of code.
17540
17541 2010-03-12  Bruno Haible  <bruno@clisp.org>
17542
17543         Fix problem with automake's definition of CXXLINK.
17544         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17545         Reported by Simon Josefsson and Ludovic Courtès.
17546
17547 2010-03-12  Bruno Haible  <bruno@clisp.org>
17548
17549         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17550         stable releases.
17551
17552 2010-03-11  Bruno Haible  <bruno@clisp.org>
17553
17554         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17555         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17556         whether the system provides one variant or multiple variants of the
17557         function.
17558         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17559         C++ compilers.
17560         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17561         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17562         Reported by Jim Meyering.
17563
17564 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17565
17566         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17567
17568 2010-03-08  Bruno Haible  <bruno@clisp.org>
17569
17570         gnulib-tool: Add support for --libtool in --create-testdir.
17571         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17572         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17573
17574 2010-03-08  Eric Blake  <eblake@redhat.com>
17575
17576         gnulib-tool.texi: mention possibility of git submodule
17577         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17578         submodules.
17579         * doc/.gitignore: Ignore another generated file.
17580
17581 2010-03-08  Karl Berry  <karl@gnu.org>
17582
17583         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17584         of committing gnulib files while skipping others.
17585
17586 2010-03-07  Bruno Haible  <bruno@clisp.org>
17587
17588         Tests of module 'wctype' in C++ mode.
17589         * tests/test-wctype-c++.cc: New file.
17590         * modules/wctype-tests (Files): Add it and tests/signature.h.
17591         (Depends-on): Add ansi-c++-opt.
17592         (Makefile.am): Arrange to compile and run test-wctype-c++.
17593
17594         Tests of module 'wchar' in C++ mode.
17595         * tests/test-wchar-c++.cc: New file.
17596         * modules/wchar-tests (Files): Add it and tests/signature.h.
17597         (Depends-on): Add ansi-c++-opt.
17598         (Makefile.am): Arrange to compile and run test-wchar-c++.
17599         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17600         gl_MODULE_INDICATOR.
17601
17602         Tests of module 'unistd' in C++ mode.
17603         * tests/test-unistd-c++.cc: New file.
17604         * modules/unistd-tests (Files): Add it and tests/signature.h.
17605         (Depends-on): Add ansi-c++-opt.
17606         (Makefile.am): Arrange to compile and run test-unistd-c++.
17607         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17608         gl_MODULE_INDICATOR.
17609
17610         Tests of module 'time' in C++ mode.
17611         * tests/test-time-c++.cc: New file.
17612         * modules/time-tests (Files): Add it and tests/signature.h.
17613         (Depends-on): Add ansi-c++-opt.
17614         (Makefile.am): Arrange to compile and run test-time-c++.
17615         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17616
17617         Tests of module 'sys_time' in C++ mode.
17618         * tests/test-sys_time-c++.cc: New file.
17619         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17620         (Depends-on): Add ansi-c++-opt.
17621         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17622         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17623         gl_MODULE_INDICATOR.
17624
17625         Tests of module 'sys_stat' in C++ mode.
17626         * tests/test-sys_stat-c++.cc: New file.
17627         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17628         (Depends-on): Add ansi-c++-opt.
17629         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17630         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17631         gl_MODULE_INDICATOR.
17632
17633         Tests of module 'sys_socket' in C++ mode.
17634         * tests/test-sys_socket-c++.cc: New file.
17635         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17636         (Depends-on): Add ansi-c++-opt.
17637         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17638         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17639         gl_MODULE_INDICATOR.
17640
17641         Tests of module 'sys_select' in C++ mode.
17642         * tests/test-sys_select-c++.cc: New file.
17643         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17644         (Depends-on): Add ansi-c++-opt.
17645         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17646         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17647         gl_MODULE_INDICATOR.
17648
17649         Tests of module 'sys_ioctl' in C++ mode.
17650         * tests/test-sys_ioctl-c++.cc: New file.
17651         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17652         (Depends-on): Add ansi-c++-opt.
17653         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17654         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17655         gl_MODULE_INDICATOR.
17656
17657         Tests of module 'string' in C++ mode.
17658         * tests/test-string-c++.cc: New file.
17659         * modules/string-tests (Files): Add it and tests/signature.h.
17660         (Depends-on): Add ansi-c++-opt.
17661         (Makefile.am): Arrange to compile and run test-string-c++.
17662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17663         gl_MODULE_INDICATOR.
17664
17665         Tests of module 'stdlib' in C++ mode.
17666         * tests/test-stdlib-c++.cc: New file.
17667         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17668         (Depends-on): Add ansi-c++-opt.
17669         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17670         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17671         gl_MODULE_INDICATOR.
17672
17673         Tests of module 'stdio' in C++ mode.
17674         * tests/test-stdio-c++.cc: New file.
17675         * modules/stdio-tests (Files): Add it and tests/signature.h.
17676         (Depends-on): Add ansi-c++-opt.
17677         (Makefile.am): Arrange to compile and run test-stdio-c++.
17678         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17679         gl_MODULE_INDICATOR.
17680
17681         Tests of module 'spawn' in C++ mode.
17682         * tests/test-spawn-c++.cc: New file.
17683         * modules/spawn-tests (Files): Add it and tests/signature.h.
17684         (Depends-on): Add ansi-c++-opt.
17685         (Makefile.am): Arrange to compile and run test-spawn-c++.
17686         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17687         gl_MODULE_INDICATOR.
17688
17689         Tests of module 'signal' in C++ mode.
17690         * tests/test-signal-c++.cc: New file.
17691         * modules/signal-tests (Files): Add it and tests/signature.h.
17692         (Depends-on): Add ansi-c++-opt.
17693         (Makefile.am): Arrange to compile and run test-signal-c++.
17694         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17695         gl_MODULE_INDICATOR.
17696
17697         Tests of module 'search' in C++ mode.
17698         * tests/test-search-c++.cc: New file.
17699         * modules/search-tests (Files): Add it and tests/signature.h.
17700         (Depends-on): Add ansi-c++-opt.
17701         (Makefile.am): Arrange to compile and run test-search-c++.
17702         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17703         gl_MODULE_INDICATOR.
17704
17705         Tests of module 'math' in C++ mode.
17706         * tests/test-math-c++.cc: New file.
17707         * modules/math-tests (Files): Add it and tests/signature.h.
17708         (Depends-on): Add ansi-c++-opt.
17709         (Makefile.am): Arrange to compile and run test-math-c++.
17710         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17711
17712         Tests of module 'locale' in C++ mode.
17713         * tests/test-locale-c++.cc: New file.
17714         * modules/locale-tests (Files): Add it and tests/signature.h.
17715         (Depends-on): Add ansi-c++-opt.
17716         (Makefile.am): Arrange to compile and run test-locale-c++.
17717         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17718         gl_MODULE_INDICATOR.
17719
17720         Tests of module 'langinfo' in C++ mode.
17721         * tests/test-langinfo-c++.cc: New file.
17722         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17723         (Depends-on): Add ansi-c++-opt.
17724         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17725         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17726         gl_MODULE_INDICATOR.
17727
17728         Tests of module 'iconv-h' in C++ mode.
17729         * tests/test-iconv-h-c++.cc: New file.
17730         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17731         (Depends-on): Add ansi-c++-opt.
17732         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17733
17734         Tests of module 'glob' in C++ mode.
17735         * tests/test-glob-c++.cc: New file.
17736         * modules/glob-tests (Files): Add it.
17737         (Depends-on): Add ansi-c++-opt.
17738         (Makefile.am): Arrange to compile and run test-glob-c++.
17739
17740         Tests of module 'fcntl-h' in C++ mode.
17741         * tests/test-fcntl-h-c++.cc: New file.
17742         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17743         (Depends-on): Add ansi-c++-opt.
17744         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17745         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17746         gl_MODULE_INDICATOR.
17747
17748         Tests of module 'dirent' in C++ mode.
17749         * tests/test-dirent-c++.cc: New file.
17750         * modules/dirent-tests (Files): Add it and tests/signature.h.
17751         (Depends-on): Add ansi-c++-opt.
17752         (Makefile.am): Arrange to compile and run test-dirent-c++.
17753         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17754         gl_MODULE_INDICATOR.
17755
17756         New module 'ansi-c++-opt'.
17757         * modules/ansi-c++-opt: New file.
17758         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17759
17760         Document C++ namespace mode.
17761         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17762
17763         wctype: Avoid #define replacements in C++ mode.
17764         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17765         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17766         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17767         In C++, define a namespaced alias symbol.
17768         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17769         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17770         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17771         rule.
17772
17773         wchar: Avoid #define replacements in C++ mode.
17774         * lib/wchar.in.h: Include c++defs.h.
17775         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17776         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17777         symbol.
17778         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17779         * modules/wchar (Depends-on): Add c++defs.
17780         (Makefile.am): Update wchar.h rule.
17781
17782         unistd: Avoid #define replacements in C++ mode.
17783         * lib/unistd.in.h: Include c++defs.h.
17784         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17785         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17786         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17787         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17788         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17789         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17790         symbol.
17791         (environ): Update.
17792         * modules/unistd (Depends-on): Add c++defs.
17793         (Makefile.am): Update unistd.h rule.
17794
17795         time: Avoid #define replacements in C++ mode.
17796         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17797         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17798         define a namespaced alias symbol.
17799         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17800         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17801         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17802         * modules/time (Depends-on): Add c++defs, warn-on-use.
17803         (Makefile.am): Update time.h rule.
17804         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17805         * modules/nanosleep (configure.ac): Likewise.
17806         * modules/strptime (configure.ac): Likewise.
17807         * modules/timegm (configure.ac): Likewise.
17808
17809         sys_time: Avoid #define replacements in C++ mode.
17810         * lib/sys_time.in.h: Include c++defs.h.
17811         (gettimeofday): In C++, define a namespaced alias symbol.
17812         * modules/sys_time (Depends-on): Add c++defs.
17813         (Makefile.am): Update sys/time.h rule.
17814
17815         sys_stat: Avoid #define replacements in C++ mode.
17816         * lib/sys_stat.in.h: Include c++defs.h.
17817         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17818         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17819         namespaced alias symbol.
17820         In C++, define a namespaced alias symbol.
17821         * modules/sys_stat (Depends-on): Add c++defs.
17822         (Makefile.am): Update sys/stat.h rule.
17823
17824         sys_socket: Avoid #define replacements in C++ mode.
17825         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17826         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17827         definitions also when the system has a <sys/socket.h>.
17828         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17829         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17830         In C++, define a namespaced alias symbol.
17831         * modules/sys_socket (Depends-on): Add c++defs.
17832         (Makefile.am): Update sys/socket.h rule.
17833
17834         sys_select: Avoid #define replacements in C++ mode.
17835         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17836         definitions also when the system has a <sys/select.h>.
17837         (select): In C++, define a namespaced alias symbol.
17838         * modules/sys_select (Depends-on): Add c++defs.
17839         (Makefile.am): Update sys/select.h rule.
17840
17841         sys_ioctl: Avoid #define replacements in C++ mode.
17842         * lib/sys_ioctl.in.h: Include c++defs.h.
17843         (ioctl): In C++, define a namespaced alias symbol.
17844         * modules/sys_ioctl (Depends-on): Add c++defs.
17845         (Makefile.am): Update sys/ioctl.h rule.
17846
17847         string: Avoid #define replacements in C++ mode.
17848         * lib/string.in.h: Include c++defs.h.
17849         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17850         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17851         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17852         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17853         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17854         * modules/string (Depends-on): Add c++defs.
17855         (Makefile.am): Update string.h rule.
17856
17857         stdlib: Avoid #define replacements in C++ mode.
17858         * lib/stdlib.in.h: Include c++defs.h.
17859         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17860         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17861         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17862         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17863         symbol.
17864         * modules/stdlib (Depends-on): Add c++defs.
17865         (Makefile.am): Update stdlib.h rule.
17866
17867         stdio: Avoid #define replacements in C++ mode.
17868         * lib/stdio.in.h: Include c++defs.h.
17869         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17870         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17871         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17872         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17873         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17874         namespaced alias symbol.
17875         * modules/stdio (Depends-on): Add c++defs.
17876         (Makefile.am): Update stdio.h rule.
17877
17878         spawn: Avoid #define replacements in C++ mode.
17879         * lib/spawn.in.h: Include c++defs.h.
17880         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17881         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17882         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17883         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17884         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17885         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17886         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17887         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17888         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17889         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17890         In C++, define a namespaced alias symbol.
17891         * modules/spawn (Depends-on): Add c++defs.
17892         (Makefile.am): Update spawn.h rule.
17893
17894         signal: Avoid #define replacements in C++ mode.
17895         * lib/signal.in.h: Include c++defs.h.
17896         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17897         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17898         namespaced alias symbol.
17899         * modules/signal (Depends-on): Add c++defs.
17900         (Makefile.am): Update signal.h rule.
17901
17902         search: Avoid #define replacements in C++ mode.
17903         * lib/search.in.h: Include c++defs.h.
17904         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17905         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17906         symbol.
17907         * modules/search (Depends-on): Add c++defs.
17908         (Makefile.am): Update search.h rule.
17909
17910         math: Avoid #define replacements in C++ mode.
17911         * lib/math.in.h: Include c++defs.h.
17912         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17913         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17914         trunc, truncl): In C++, define a namespaced alias symbol.
17915         * modules/math (Depends-on): Add c++defs.
17916         (Makefile.am): Update math.h rule.
17917
17918         locale: Avoid #define replacements in C++ mode.
17919         * lib/locale.in.h: Include c++defs.h.
17920         (duplocale): In C++, define a namespaced alias symbol.
17921         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17922         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17923         * modules/locale (Depends-on): Add c++defs.
17924         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17925
17926         langinfo: Avoid #define replacements in C++ mode.
17927         * lib/langinfo.in.h: Include c++defs.h.
17928         (nl_langinfo): In C++, define a namespaced alias symbol.
17929         * modules/langinfo (Depends-on): Add c++defs.
17930         (Makefile.am): Update langinfo.h rule.
17931
17932         iconv-h: Avoid #define replacements in C++ mode.
17933         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17934         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17935         symbol.
17936         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17937         whenever iconv is present.
17938         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17939         (Makefile.am): Update iconv.h rule.
17940
17941         glob: Avoid #define replacements in C++ mode.
17942         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17943         (_gl_glob_errfunc_fn): New type.
17944         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17945         symbol.
17946         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17947         (Makefile.am): Update glob.h rule.
17948
17949         fcntl-h: Avoid #define replacements in C++ mode.
17950         * lib/fcntl.in.h: Include c++defs.h.
17951         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17952         * modules/fcntl-h (Depends-on): Add c++defs.
17953         (Makefile.am): Update fcntl.h rule.
17954
17955         dirent: Avoid #define replacements in C++ mode.
17956         * lib/dirent.in.h: Include c++defs.h.
17957         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17958         namespaced alias symbol.
17959         (dirfd): Update declaration.
17960         * modules/dirent (Depends-on): Add c++defs.
17961         (Makefile.am): Update dirent.h rule.
17962
17963         ctype: Make it usable in C++ code.
17964         * lib/ctype.in.h: Include c++defs.h.
17965         (isblank): Declare as extern "C".
17966         * modules/ctype (Depends-on): Add c++defs.
17967         (Makefile.am): Update ctype.h rule.
17968
17969         New module 'c++defs'.
17970         * modules/c++defs: New file.
17971         * build-aux/c++defs.h: New file.
17972         Reported by John W. Eaton <jwe@gnu.org>.
17973
17974 2010-03-07  Bruno Haible  <bruno@clisp.org>
17975
17976         logb: Provide missing declaration for Cygwin.
17977         * lib/math.in.h (logb): New declaration.
17978         * m4/logb.m4: New file.
17979         * modules/logb (Files): Add m4/logb.m4.
17980         (Depends-on): Add math.
17981         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17982         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17984         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17985         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17986
17987 2010-03-07  Bruno Haible  <bruno@clisp.org>
17988
17989         Fix test-cond link error.
17990         * tests/test-cond.c: Include <stdio.h>.
17991
17992 2010-03-07  Bruno Haible  <bruno@clisp.org>
17993
17994         Fix test-dirent-safer link error.
17995         * modules/dirent-safer-tests (Makefile.am): Define
17996         test_dirent_safer_LDADD.
17997
17998 2010-03-07  Bruno Haible  <bruno@clisp.org>
17999
18000         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18001         among default module list.
18002
18003 2010-03-07  Bruno Haible  <bruno@clisp.org>
18004
18005         Fix link error on platforms with GNU libiconv.
18006         * modules/unistr/u8-strcoll-tests (Makefile): Define
18007         test_u8_strcoll_LDADD.
18008         * modules/unistr/u16-strcoll-tests (Makefile): Define
18009         test_u16_strcoll_LDADD.
18010         * modules/unistr/u32-strcoll-tests (Makefile): Define
18011         test_u32_strcoll_LDADD.
18012
18013 2010-03-07  Bruno Haible  <bruno@clisp.org>
18014
18015         Use POSIX declarations for socket functions.
18016         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18017         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18018         rpl_sendto): Change declaration to match POSIX.
18019         * lib/connect.c (rpl_connect): Likewise.
18020         * lib/accept.c (rpl_accept): Likewise.
18021         * lib/bind.c (rpl_bind): Likewise.
18022         * lib/getpeername.c (rpl_getpeername): Likewise.
18023         * lib/getsockname.c (rpl_getsockname): Likewise.
18024         * lib/recv.c (rpl_recv): Likewise.
18025         * lib/send.c (rpl_send): Likewise.
18026         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18027         * lib/sendto.c (rpl_sendto): Likewise.
18028
18029 2010-03-06  Bruno Haible  <bruno@clisp.org>
18030
18031         Clarify access, euidaccess, faccessat.
18032         * doc/posix-functions/faccessat.texi: Mention security problem under
18033         "Other problems", not "Portability problems".
18034         * doc/posix-functions/access.texi: Likewise. Mention a related security
18035         problem.
18036         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18037         * lib/euidaccess.c: Add comments about platforms.
18038         * lib/unistd.in.h (access, euidaccess): Add warnings.
18039
18040 2010-03-07  Bruno Haible  <bruno@clisp.org>
18041
18042         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18043         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18044         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18045         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18046         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18047         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18048         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18049         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18050         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18051         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18052         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18053         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18054         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18055         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18056         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18057         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18058         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18059         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18060         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18061         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18062         Likewise.
18063         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18064         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18065         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18066         Likewise.
18067         * tests/test-spawn.c (main): Make it work when
18068         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18069
18070 2010-03-07  Bruno Haible  <bruno@clisp.org>
18071
18072         Fix incorrect Makefile.am generation in German locale.
18073         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18074         Execute sed command with character range in C locale.
18075
18076 2010-03-06  Bruno Haible  <bruno@clisp.org>
18077
18078         Tests for module 'iconv-h'.
18079         * modules/iconv-h-tests: New file.
18080         * tests/test-iconv-h.c: New file.
18081
18082         New module 'iconv-h'.
18083         * modules/iconv-h: New file.
18084         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18085         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18086         (configure.ac): Remove gl_ICONV_H.
18087         (Makefile.am): Remove rule for iconv.h.
18088
18089 2010-03-06  Bruno Haible  <bruno@clisp.org>
18090
18091         More consistent naming of *.m4 files.
18092         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18093         * modules/wctype (Files): Update.
18094
18095         More consistent naming of *.m4 files.
18096         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18097         * modules/wchar (Files): Update.
18098
18099 2010-03-06  Jim Meyering  <meyering@redhat.com>
18100
18101         euidaccess: relax license to LGPLv2+
18102         * modules/euidaccess (License): Relax to LGPLv2+.
18103
18104 2010-03-06  Bruno Haible  <bruno@clisp.org>
18105
18106         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18107         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18108         (Makefile.am): Augment lib_SOURCES instead.
18109
18110 2010-03-04  Jim Meyering  <meyering@redhat.com>
18111
18112         utime: remove obsolete module
18113         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18114         unnecessary for years, and has been marked as obsolete for 10 months.
18115         * modules/utime: Remove file.
18116         * lib/utime.c: Remove file.
18117         * m4/utime.m4: Remove file.
18118         * m4/utimes-null.m4: Remove file.
18119         * doc/posix-functions/utime.texi (utime): Remove reference to
18120         the module.  Move the sole "fixed by gnulib" item into the
18121         "problems not fixed by Gnulib" list.
18122         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18123
18124 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18125
18126         * modules/exit (License): Relax license to LGPLv2+.
18127         (Status): Mark as obsolete.
18128         * NEWS: Mention deprecated 'exit' module.
18129         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18130         of now obsolete 'exit'.
18131
18132 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18133
18134         fts-lgpl: remove unused module
18135         * modules/fts-lgpl: Remove.
18136         * MODULES.html.sh (func_all_modules): Adjust.
18137         * check-module (find_included_lib_files): Adjust.
18138         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18139
18140 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18141
18142         copy-acl: enhance Solaris ACL error handling
18143         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18144         * lib/set-mode-acl.c (qset_acl): Likewise.
18145
18146 2010-03-02  Bruno Haible  <bruno@clisp.org>
18147
18148         spawn: Don't override the system defined values on FreeBSD 8.
18149         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18150         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18151         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18152         if HAVE_POSIX_SPAWN is 1.
18153         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18154
18155 2010-03-01  Bruno Haible  <bruno@clisp.org>
18156
18157         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18158         regarding Automake.
18159
18160 2010-02-25  Bruno Haible  <bruno@clisp.org>
18161
18162         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18163         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18164         setting, not afterwards.
18165         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18166
18167 2010-02-24  Eric Blake  <eblake@redhat.com>
18168
18169         bootstrap, git-version-gen: use timestamp
18170         * build-aux/git-version-gen (scriptversion): Force UTC.
18171         * build-aux/bootstrap (scriptversion): New variable.
18172
18173         bootstrap: allow older git
18174         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18175         older than 1.6.4.  Requested by the libvirt project.
18176
18177 2010-02-23  Eric Blake  <eblake@redhat.com>
18178
18179         warn-on-use: work with old autoconf
18180         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18181         AS_VAR semantics of autoconf 2.60.
18182         Reported by Bruno Haible.
18183
18184         bootstrap: improve some comments
18185         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18186         clarification comments.
18187
18188         gettimeofday: provide correct function
18189         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18190         when replacement is declared, otherwise provide gettimeofday.
18191         Reported by Michael Goffioul.
18192
18193 2010-02-23  Jim Meyering  <meyering@redhat.com>
18194
18195         lib-ignore: relax license to "unlimited", not LGPLv2+
18196         * modules/lib-ignore (License): Relax to "unlimited".
18197
18198 2010-02-23  Jim Meyering  <meyering@redhat.com>
18199
18200         lib-ignore: relax license to LGPLv2+
18201         * modules/lib-ignore (License): Relax to LGPLv2+.
18202
18203 2010-02-22  Eric Blake  <eblake@redhat.com>
18204
18205         lseek: avoid bash 3.2 broken pipe bug
18206         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
18207         warning from bash 3.2.
18208         Reported by Ben Pfaff, with analysis from Bruno Haible.
18209
18210         bootstrap: support non-FSF copyright holder
18211         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
18212         bootstrap.conf override of COPYRIGHT_HOLDER.
18213         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
18214
18215         bootstrap: interoperate with gettext 0.14.1
18216         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
18217
18218         bootstrap: allow for alternate submodule location
18219         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18220         hardcoding submodule location.
18221         (gnulib_mk): Allow direct use of Makefile.am.
18222
18223         bootstrap: use GNULIB_SRCDIR to reduce disk usage
18224         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
18225         rather than reconfiguring where the submodule points.
18226
18227         gettimeofday: restore support for platforms that lack function
18228         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
18229         replacement if function is missing.
18230         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
18231         * modules/sys_time (Makefile.am): Substitute it.
18232         * lib/sys_time.in.h (gettimeofday): Check it.
18233         Reported by Michael Goffioul.
18234
18235 2010-02-21  Bruno Haible  <bruno@clisp.org>
18236
18237         * lib/stdio.in.h (obstack_printf): Fix typo.
18238
18239 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
18240
18241         vc-list-files: use bzr ls's -R option
18242         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
18243         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
18244
18245 2010-02-21  Jim Meyering  <meyering@redhat.com>
18246
18247         init.sh: fix EXEEXT shims to work also for names like test-prog
18248         * tests/init.sh: Re-exec a better shell, when needed.
18249         If the current shell lacks support for posix $(...), an init.sh-using
18250         test will now try to find a shell that supports that.  If EXEEXT is
18251         nonempty, we also require support for hyphen-in-alias-name and shell
18252         substitutions like ${var#glob}.  Failure to find such a shell results
18253         in a skipped test.
18254
18255 2010-02-21  Bruno Haible  <bruno@clisp.org>
18256
18257         Really work around around "broken pipe" error message from bash 3.2.
18258         * gnulib-tool (func_reset_sigpipe): Remove function.
18259         (echo): In bash 3.2, define to a function that uses printf.
18260         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
18261
18262 2010-02-20  Bruno Haible  <bruno@clisp.org>
18263
18264         Restore support for automake 1.9.6 with autoconf 2.61.
18265         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
18266         Reported by James Youngman <jay@gnu.org>.
18267
18268 2010-02-20  Bruno Haible  <bruno@clisp.org>
18269
18270         Improve *printf warning condition.
18271         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
18272         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18273         and the function is overridden due to SIGPIPE emulation.
18274
18275 2010-02-20  Bruno Haible  <bruno@clisp.org>
18276
18277         * lib/stdio.in.h: Tweak comments.
18278
18279 2010-02-19  Bruno Haible  <bruno@clisp.org>
18280
18281         Make it easier to find modules. New gnulib-tool option '--find'.
18282         * gnulib-tool: New option --find.
18283         (func_usage): Document it.
18284         (func_sanitize_modulelist): New function, extracted from
18285         func_all_modules.
18286         (func_all_modules): Invoke it.
18287         * doc/gnulib-tool.texi (Which modules?): New node.
18288
18289 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18290
18291         * lib/sys_select.in.h: Provide select replacement even if
18292         sys/select.h exists on a system, for Interix.
18293
18294 2010-02-18  Jim Meyering  <meyering@redhat.com>
18295
18296         init.sh: don't use $(...) just yet
18297         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18298         to accommodate e.g., Solaris' /bin/sh.
18299
18300 2010-02-17  Bruno Haible  <bruno@clisp.org>
18301
18302         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18303         Reported by Ludovic Courtès <ludo@gnu.org>.
18304
18305 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18306
18307         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18308         linking with -lintl.
18309
18310 2010-02-17  Simon Josefsson  <simon@josefsson.org>
18311
18312         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
18313         if not provided by the system's netdb.h.  Reported by
18314         ludo@gnu.org (Ludovic Courtès).
18315
18316 2010-02-15  Jim Meyering  <meyering@redhat.com>
18317
18318         init.sh: improve portability and efficiency
18319         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
18320         "dummy" in a for loop.
18321         Use '!', not '^' to select the complement of a character set used
18322         in a "case" statement.
18323         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
18324         Suggestions from Eric Blake.
18325
18326         init.sh: automatically accommodate programs with the .exe suffix
18327         Automatically arrange for an invocation of "prog" to execute the
18328         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
18329         may use the simpler "prog", yet still work when built on a system
18330         that requires specifying the added suffix.
18331         Do this by constructing a function named "prog" that invokes
18332         "prog.exe" for each .exe file in selected directories.
18333         * tests/init.sh (find_exe_basenames_): New function.
18334         (create_exe_shim_functions_): New function.
18335         (path_prepend_): Use it.
18336
18337         maint.mk: mark syntax-check sc_*.m rules as .PHONY
18338         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
18339         "make -t syntax-check" doesn't create a ton of sc_*.m files.
18340
18341 2010-02-14  Jim Meyering  <meyering@redhat.com>
18342
18343         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
18344         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
18345         (sc_prohibit_hash_pjw_without_use): New rule.
18346
18347         maint.mk: allow the default upload destination dir to be overridden
18348         * top/maint.mk (upload_dest_dir_): Define with a default that
18349         preserves the status quo.
18350         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
18351         Reported by Peter Simons.
18352
18353         maint.mk: prohibit inclusion of "hash.h" without_use
18354         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
18355
18356 2010-02-10  Jim Meyering  <meyering@redhat.com>
18357
18358         maint.mk: prohibit inclusion of "ignore-value.h" without_use
18359         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
18360
18361 2010-02-09  Eric Blake  <ebb9@byu.net>
18362         and Bruno Haible  <bruno@clisp.org>
18363
18364         obstack-printf-posix: ensure declaration
18365         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
18366         extracted from gl_FUNC_OBSTACK_PRINTF.
18367         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
18368         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18369         Likewise.
18370         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
18371         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
18372         0.
18373
18374 2010-02-08  Bruno Haible  <bruno@clisp.org>
18375
18376         gnulib-tool: Fix typo in 2010-02-07 commit.
18377         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18378         Reported by Eric Blake.
18379
18380 2010-02-07  Bruno Haible  <bruno@clisp.org>
18381
18382         gnulib-tool: Fix up caching patches.
18383         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18384         option --no-cache. Use associative arrays when supported by the shell.
18385         (sed_comments): New variable.
18386         (modcache): Renamed from do_cache.
18387         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18388         abbreviate unnecessarily.
18389         (have_associative): New variable.
18390         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18391         way also for ksh and zsh.
18392         (func_init_sed_convert_to_cache_statements): New function, extracted
18393         from func_cache_lookup_module. Add support for associative arrays.
18394         Don't set the c_MODULE_cached variable here. Ignore all lines before
18395         the first field header. Remove only the final newline, not all trailing
18396         newlines. Support empty fields correctly. Limit the use of 'eval' to
18397         assignments.
18398         (func_get_description, func_get_status, func_get_notice,
18399         func_get_applicability, func_get_filelist, func_get_dependencies,
18400         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18401         func_get_automake_snippet, func_get_include_directive,
18402         func_get_link_directive, func_get_license, func_get_maintainer):
18403         Update documentation. List the unoptimized code first. Add support for
18404         associative arrays. Limit the use of 'eval' to assignments.
18405         (func_get_applicability): Undo stylistic pessimisations.
18406         (func_get_automake_snippet, func_get_include_directive): Reduce code
18407         duplication.
18408         (func_modules_transitive_closure, func_modules_add_dummy,
18409         func_modules_notice, func_modules_to_filelist, func_add_file,
18410         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18411         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18412         func_create_testdir, func_create_megatestdir): Update documentation.
18413
18414 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18415
18416         * gnulib-tool (func_cache_lookup_module): Store the module name
18417         belonging to the cache variable; error out if two different
18418         module names map to the same cache variable name.
18419
18420 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18421
18422         gnulib-tool: Make caching optional.
18423         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18424         Update matching short versions of --no-changelog.
18425         (func_usage): Update.
18426         (sed_extract_cache_prog): Renamed from ...
18427         (sed_extract_prog): ... this; revert to old extraction script.
18428         (func_get_description, func_get_status)
18429         (func_get_notice, func_get_applicability, func_get_filelist)
18430         (func_get_dependencies, func_get_autoconf_early_snippet)
18431         (func_get_autoconf_snippet, func_get_automake_snippet)
18432         (func_get_include_directive, func_get_link_directive)
18433         (func_get_license, func_get_maintainer): If $do_cache is false,
18434         use old, non-caching extraction scripts.
18435         Suggestion by Bruno Haible.
18436
18437 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18438
18439         gnulib-tool: cache module metainformation.
18440         * gnulib-tool (sed_extract_prog): Match newline before each
18441         header, and rewrite header to a shell variable suffix.
18442         (func_cache_var, func_cache_lookup_module): New functions,
18443         to turn a module name into a cache variable prefix, and to
18444         look up and cache module metainformation.
18445         (func_get_description, func_get_status)
18446         (func_get_notice, func_get_applicability, func_get_filelist)
18447         (func_get_dependencies, func_get_autoconf_early_snippet)
18448         (func_get_autoconf_snippet, func_get_automake_snippet)
18449         (func_get_include_directive, func_get_link_directive)
18450         (func_get_license, func_get_maintainer): Use
18451         func_cache_lookup_module.
18452
18453 2010-02-07  Bruno Haible  <bruno@clisp.org>
18454
18455         fnctl: Fix missing dependency.
18456         * modules/fcntl (Depends-on): Add getdtablesize.
18457         Reported by John W. Eaton <jwe@gnu.org>.
18458
18459 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18460
18461         Argp: fix recognition of short alias options.
18462
18463         * lib/argp-parse.c (convert_options): Fix improper use of
18464         `|' between character values.
18465         * tests/test-argp.c (group1_option): New alias option
18466         --read (-r).
18467         (group1_parser): Special handling for 'r'.
18468         (test15): New test case.
18469         (test_fun): Add test15.
18470         * tests/test-argp-2.sh: Update expected --help and --usage
18471         outputs.
18472
18473 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18474
18475         * tests/test-argp.c: Fix indentation.
18476
18477 2010-02-04  Eric Blake  <ebb9@byu.net>
18478
18479         gettimeofday: expose type of second argument
18480         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18481         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18482         * tests/test-gettimeofday.c: Use it to silence warning.
18483         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18484         the issue.
18485
18486 2010-02-03  Jim Meyering  <meyering@redhat.com>
18487
18488         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18489         * lib/regcomp.c (TYPE_SIGNED): Define.
18490         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18491
18492         regcomp.c: avoid a new -Wshadow warning
18493         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18494
18495 2010-02-01  Jim Meyering  <meyering@redhat.com>
18496
18497         removing useless parentheses in cpp #define directives
18498         For motivation, see commit c0221df4, "define STREQ(a,b)
18499         consistently, removing useless parentheses"
18500         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18501         * lib/mountlist.c (MNT_IGNORE): Likewise.
18502         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18503
18504 2010-02-01  Eric Blake  <ebb9@byu.net>
18505
18506         sys_time: use link-warning
18507         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18508         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18509         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18510         * modules/sys_time (Depends-on): Add warn-on-use.
18511         (Makefile.am): Always build replacement.
18512         (configure.ac): Update substitutions.
18513         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18514         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18515         bother with SYS_TIME_H.
18516         * modules/gettimeofday (configure.ac): Declare indicator.
18517         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18518         in use.
18519
18520         closein-tests: silence compiler warning
18521         * tests/test-closein.c (main): Ignore fread result.
18522         * modules/closein-tests (Depends-on): Add ignore-value.
18523
18524         tests: silence warning about system return
18525         * tests/test-areadlink-with-size.c (main): Ignore system result.
18526         * tests/test-areadlink.c (main): Likewise.
18527         * tests/test-areadlinkat-with-size.c (main): Likewise.
18528         * tests/test-areadlinkat.c (main): Likewise.
18529         * tests/test-canonicalize-lgpl.c (main): Likewise.
18530         * tests/test-canonicalize.c (main): Likewise.
18531         * tests/test-chown.c (main): Likewise.
18532         * tests/test-fchownat.c (main): Likewise.
18533         * tests/test-fdutimensat.c (main): Likewise.
18534         * tests/test-fstatat.c (main): Likewise.
18535         * tests/test-futimens.c (main): Likewise.
18536         * tests/test-lchown.c (main): Likewise.
18537         * tests/test-link.c (main): Likewise.
18538         * tests/test-linkat.c (main): Likewise.
18539         * tests/test-lstat.c (main): Likewise.
18540         * tests/test-mkdir.c (main): Likewise.
18541         * tests/test-mkdirat.c (main): Likewise.
18542         * tests/test-mkfifo.c (main): Likewise.
18543         * tests/test-mkfifoat.c (main): Likewise.
18544         * tests/test-mknod.c (main): Likewise.
18545         * tests/test-readlink.c (main): Likewise.
18546         * tests/test-remove.c (main): Likewise.
18547         * tests/test-rename.c (main): Likewise.
18548         * tests/test-renameat.c (main): Likewise.
18549         * tests/test-rmdir.c (main): Likewise.
18550         * tests/test-symlink.c (main): Likewise.
18551         * tests/test-symlinkat.c (main): Likewise.
18552         * tests/test-unlink.c (main): Likewise.
18553         * tests/test-unlinkat.c (main): Likewise.
18554         * tests/test-utimens.c (main): Likewise.
18555         * tests/test-utimensat.c (main): Likewise.
18556         * modules/areadlink-tests (Depends-on): Add ignore-value.
18557         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18558         * modules/areadlinkat-tests (Depends-on): Likewise.
18559         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18560         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18561         * modules/canonicalize-tests (Depends-on): Likewise.
18562         * modules/chown-tests (Depends-on): Likewise.
18563         * modules/fdutimensat-tests (Depends-on): Likewise.
18564         * modules/futimens-tests (Depends-on): Likewise.
18565         * modules/lchown-tests (Depends-on): Likewise.
18566         * modules/link-tests (Depends-on): Likewise.
18567         * modules/linkat-tests (Depends-on): Likewise.
18568         * modules/lstat-tests (Depends-on): Likewise.
18569         * modules/mkdir-tests (Depends-on): Likewise.
18570         * modules/mkfifo-tests (Depends-on): Likewise.
18571         * modules/mkfifoat-tests (Depends-on): Likewise.
18572         * modules/mknod-tests (Depends-on): Likewise.
18573         * modules/openat-tests (Depends-on): Likewise.
18574         * modules/readlink-tests (Depends-on): Likewise.
18575         * modules/remove-tests (Depends-on): Likewise.
18576         * modules/rename-tests (Depends-on): Likewise.
18577         * modules/renameat-tests (Depends-on): Likewise.
18578         * modules/rmdir-tests (Depends-on): Likewise.
18579         * modules/symlink-tests (Depends-on): Likewise.
18580         * modules/symlinkat-tests (Depends-on): Likewise.
18581         * modules/unlink-tests (Depends-on): Likewise.
18582         * modules/utimens-tests (Depends-on): Likewise.
18583         * modules/utimensat-tests (Depends-on): Likewise.
18584
18585 2010-01-31  Bruno Haible  <bruno@clisp.org>
18586
18587         Perform the same test for many <math.h> functions.
18588         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18589         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18590         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18591         of gl_MATHFUNC.
18592         * modules/acos (configure.ac): Likewise.
18593         * modules/asin (configure.ac): Likewise.
18594         * modules/atan (configure.ac): Likewise.
18595         * modules/atan2 (configure.ac): Likewise.
18596         * modules/cbrt (configure.ac): Likewise.
18597         * modules/copysign (configure.ac): Likewise.
18598         * modules/cos (configure.ac): Likewise.
18599         * modules/cosh (configure.ac): Likewise.
18600         * modules/erf (configure.ac): Likewise.
18601         * modules/erfc (configure.ac): Likewise.
18602         * modules/exp (configure.ac): Likewise.
18603         * modules/fmod (configure.ac): Likewise.
18604         * modules/hypot (configure.ac): Likewise.
18605         * modules/j0 (configure.ac): Likewise.
18606         * modules/j1 (configure.ac): Likewise.
18607         * modules/jn (configure.ac): Likewise.
18608         * modules/lgamma (configure.ac): Likewise.
18609         * modules/log (configure.ac): Likewise.
18610         * modules/log10 (configure.ac): Likewise.
18611         * modules/log1p (configure.ac): Likewise.
18612         * modules/pow (configure.ac): Likewise.
18613         * modules/remainder (configure.ac): Likewise.
18614         * modules/sin (configure.ac): Likewise.
18615         * modules/sinh (configure.ac): Likewise.
18616         * modules/tan (configure.ac): Likewise.
18617         * modules/tanh (configure.ac): Likewise.
18618         * modules/y0 (configure.ac): Likewise.
18619         * modules/y1 (configure.ac): Likewise.
18620         * modules/yn (configure.ac): Likewise.
18621         Suggested by Paolo Bonzini.
18622
18623 2010-01-31  Bruno Haible  <bruno@clisp.org>
18624
18625         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18626
18627 2010-01-31  Bruno Haible  <bruno@clisp.org>
18628
18629         Work around getdelim() bug on FreeBSD 8.0.
18630         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18631         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18632         not work.
18633         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18634         is 1.
18635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18636         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18637         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18638         a non-zero size.
18639         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18640
18641 2010-01-31  Bruno Haible  <bruno@clisp.org>
18642
18643         Work around getline() bug on FreeBSD 8.0.
18644         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18645         and a non-zero size.
18646         * tests/test-getline.c (main): Likewise.
18647         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18648         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18649
18650 2010-01-28  Eric Blake  <ebb9@byu.net>
18651
18652         regex: fix build failure
18653         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18654         platforms.
18655
18656 2010-01-28  Jim Meyering  <meyering@redhat.com>
18657
18658         regex: do not ignore memory allocation failure
18659         * lib/regex_internal.c (create_cd_newstate): Detect
18660         re_node_set_init_copy failure.   Extracted from glibc commit
18661         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18662
18663         regex: sync more white-space changes from libc
18664         * lib/regex_internal.c: White-space only changes.
18665         * lib/regexec.c: Likewise.
18666
18667         regex: add many uses of __attribute_warn_unused_result__
18668         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18669         * lib/regexec.c: Likewise.
18670         Extracted from a messy glibc commit.
18671
18672         regcomp.c: spelling and merge-artifact from glibc
18673         * lib/regcomp.c: Merge remainder of glibc's
18674         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18675
18676         regcomp.c: sync white-space changes from glibc
18677         * lib/regcomp.c: Merge to accommodate white space
18678         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18679
18680         regcomp.c: do not ignore internal return values
18681         * lib/regcomp.c: Do not ignore internal return values.
18682         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18683         but without its white-space changes and spelling fixes.
18684
18685         regex_internal.h: define __attribute_warn_unused_result__
18686         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18687
18688         maint: add a syntax-check rule to check for vulnerable Makefile.in
18689         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18690
18691 2010-01-27  Jim Meyering  <meyering@redhat.com>
18692
18693         ncftpput-ftp: clean up spaces
18694         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18695         Remove trailing blanks.
18696
18697 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18698
18699         * build-aux/git-version-gen: Fix copyright statement.
18700         * build-aux/gnupload: Likewise.
18701         * tests/test-arcfour.c: Likewise.
18702         * tests/test-arctwo.c: Likewise.
18703         * tests/test-count-one-bits.c: Likewise.
18704         * tests/test-crc.c: Likewise.
18705         * tests/test-des.c: Likewise.
18706         * tests/test-gc-arcfour.c: Likewise.
18707         * tests/test-gc-arctwo.c: Likewise.
18708         * tests/test-gc-des.c: Likewise.
18709         * tests/test-gc-hmac-md5.c: Likewise.
18710         * tests/test-gc-hmac-sha1.c: Likewise.
18711         * tests/test-gc-md2.c: Likewise.
18712         * tests/test-gc-md4.c: Likewise.
18713         * tests/test-gc-md5.c: Likewise.
18714         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18715         * tests/test-gc-rijndael.c: Likewise.
18716         * tests/test-gc-sha1.c: Likewise.
18717         * tests/test-gc.c: Likewise.
18718         * tests/test-gethostname.c: Likewise.
18719         * tests/test-gettimeofday.c: Likewise.
18720         * tests/test-hash.c: Likewise.
18721         * tests/test-hmac-md5.c: Likewise.
18722         * tests/test-hmac-sha1.c: Likewise.
18723         * tests/test-md2.c: Likewise.
18724         * tests/test-md4.c: Likewise.
18725         * tests/test-md5.c: Likewise.
18726         * tests/test-memchr.c: Likewise.
18727         * tests/test-memchr2.c: Likewise.
18728         * tests/test-memcmp.c: Likewise.
18729         * tests/test-memmem.c: Likewise.
18730         * tests/test-memrchr.c: Likewise.
18731         * tests/test-rawmemchr.c: Likewise.
18732         * tests/test-read-file.c: Likewise.
18733         * tests/test-rijndael.c: Likewise.
18734         * tests/test-sockets.c: Likewise.
18735         * tests/test-strchrnul.c: Likewise.
18736         * tests/test-strstr.c: Likewise.
18737         * tests/test-strtod.c: Likewise.
18738         * build-aux/ncftpput-ftp: Likewise.
18739
18740 2010-01-26  Eric Blake  <ebb9@byu.net>
18741
18742         ignore-value: update recommended header name
18743         * modules/ignore-value (Include): Only use <> for headers that
18744         exist in glibc.
18745
18746 2010-01-26  Jim Meyering  <meyering@redhat.com>
18747
18748         test-userspec.c: avoid compiler warnings
18749         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18750         and "initialization discards qualifiers..." warnings.
18751         Put the first "uid" in its own scope, and make char* members "const".
18752
18753 2010-01-25  Bruno Haible  <bruno@clisp.org>
18754
18755         gnulib-tool: Make warning diagnostics consistent.
18756         * gnulib-tool (func_warning): New function.
18757         Use it everywhere where gnulib-tool produces output to stderr and it is
18758         not a fatal error.
18759
18760 2010-01-25  Bruno Haible  <bruno@clisp.org>
18761
18762         Fix test dependencies.
18763         * modules/xstrtol-tests (Depends-on): Add inttypes.
18764         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18765
18766 2010-01-25 Pádraig Brady <P@draigBrady.com>
18767
18768         syntax-check: detect incorrect boolean macro values in config.h
18769         * modules/maintainer-makefile (configure.ac): Parameterize the location
18770         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18771         The logic is from Eric Blake and the location indicated by Jim Meyering.
18772         Note the more natural CONFIG_HEADER name is prohibited by automake
18773         for backwards compatibility reasons.
18774         * top/maint.mk (sc_Wundef_boolean): New rule.
18775
18776 2010-01-25  Jim Meyering  <meyering@redhat.com>
18777
18778         bootstrap: detect MacOS 10.6's shasum, too
18779         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18780         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18781
18782 2010-01-23  Jim Meyering  <meyering@redhat.com>
18783
18784         xstrtoll: new module
18785         * modules/xstrtoll: New file.
18786         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18787         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18788         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18789         ./configure fails if you use this module and lack "long long".
18790         * modules/xstrtoll-tests: New module.
18791         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18792         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18793         new init.sh-based test framework.
18794
18795 2010-01-24  Bruno Haible  <bruno@clisp.org>
18796
18797         Tests for module 'yn'.
18798         * modules/yn-tests: New file.
18799         * tests/test-yn.c: New file.
18800
18801         Tests for module 'y1'.
18802         * modules/y1-tests: New file.
18803         * tests/test-y1.c: New file.
18804
18805         Tests for module 'y0'.
18806         * modules/y0-tests: New file.
18807         * tests/test-y0.c: New file.
18808
18809         Tests for module 'tanh'.
18810         * modules/tanh-tests: New file.
18811         * tests/test-tanh.c: New file.
18812
18813         Tests for module 'tan'.
18814         * modules/tan-tests: New file.
18815         * tests/test-tan.c: New file.
18816
18817         Tests for module 'sqrt'.
18818         * modules/sqrt-tests: New file.
18819         * tests/test-sqrt.c: New file.
18820
18821         Tests for module 'sinh'.
18822         * modules/sinh-tests: New file.
18823         * tests/test-sinh.c: New file.
18824
18825         Tests for module 'sin'.
18826         * modules/sin-tests: New file.
18827         * tests/test-sin.c: New file.
18828
18829         Tests for module 'rint'.
18830         * modules/rint-tests: New file.
18831         * tests/test-rint.c: New file.
18832
18833         Tests for module 'remainder'.
18834         * modules/remainder-tests: New file.
18835         * tests/test-remainder.c: New file.
18836
18837         Tests for module 'pow'.
18838         * modules/pow-tests: New file.
18839         * tests/test-pow.c: New file.
18840
18841         Tests for module 'nextafter'.
18842         * modules/nextafter-tests: New file.
18843         * tests/test-nextafter.c: New file.
18844
18845         Tests for module 'modf'.
18846         * modules/modf-tests: New file.
18847         * tests/test-modf.c: New file.
18848
18849         Tests for module 'logb'.
18850         * modules/logb-tests: New file.
18851         * tests/test-logb.c: New file.
18852
18853         Tests for module 'log1p'.
18854         * modules/log1p-tests: New file.
18855         * tests/test-log1p.c: New file.
18856
18857         Tests for module 'log10'.
18858         * modules/log10-tests: New file.
18859         * tests/test-log10.c: New file.
18860
18861         Tests for module 'log'.
18862         * modules/log-tests: New file.
18863         * tests/test-log.c: New file.
18864
18865         Tests for module 'lgamma'.
18866         * modules/lgamma-tests: New file.
18867         * tests/test-lgamma.c: New file.
18868
18869         Tests for module 'ldexp'.
18870         * modules/ldexp-tests: New file.
18871         * tests/test-ldexp.c: New file.
18872
18873         Tests for module 'jn'.
18874         * modules/jn-tests: New file.
18875         * tests/test-jn.c: New file.
18876
18877         Tests for module 'j1'.
18878         * modules/j1-tests: New file.
18879         * tests/test-j1.c: New file.
18880
18881         Tests for module 'j0'.
18882         * modules/j0-tests: New file.
18883         * tests/test-j0.c: New file.
18884
18885         Tests for module 'hypot'.
18886         * modules/hypot-tests: New file.
18887         * tests/test-hypot.c: New file.
18888
18889         Tests for module 'fmod'.
18890         * modules/fmod-tests: New file.
18891         * tests/test-fmod.c: New file.
18892
18893         Tests for module 'fabs'.
18894         * modules/fabs-tests: New file.
18895         * tests/test-fabs.c: New file.
18896
18897         Tests for module 'exp'.
18898         * modules/exp-tests: New file.
18899         * tests/test-exp.c: New file.
18900
18901         Tests for module 'erfc'.
18902         * modules/erfc-tests: New file.
18903         * tests/test-erfc.c: New file.
18904
18905         Tests for module 'erf'.
18906         * modules/erf-tests: New file.
18907         * tests/test-erf.c: New file.
18908
18909         Tests for module 'cosh'.
18910         * modules/cosh-tests: New file.
18911         * tests/test-cosh.c: New file.
18912
18913         Tests for module 'cos'.
18914         * modules/cos-tests: New file.
18915         * tests/test-cos.c: New file.
18916
18917         Tests for module 'copysign'.
18918         * modules/copysign-tests: New file.
18919         * tests/test-copysign.c: New file.
18920
18921         Tests for module 'cbrt'.
18922         * modules/cbrt-tests: New file.
18923         * tests/test-cbrt.c: New file.
18924
18925         Tests for module 'atan2'.
18926         * modules/atan2-tests: New file.
18927         * tests/test-atan2.c: New file.
18928
18929         Tests for module 'atan'.
18930         * modules/atan-tests: New file.
18931         * tests/test-atan.c: New file.
18932
18933         Tests for module 'asin'.
18934         * modules/asin-tests: New file.
18935         * tests/test-asin.c: New file.
18936
18937         Tests for module 'acos'.
18938         * modules/acos-tests: New file.
18939         * tests/test-acos.c: New file.
18940
18941 2010-01-24  Bruno Haible  <bruno@clisp.org>
18942
18943         Fix tests for common <math.h> functions.
18944         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18945         code snippet that references the function pointer, rather than merely
18946         calling the function. Substitute the FUNC_LIBM variable.
18947         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18948         * modules/acos (configure.ac): Likewise.
18949         * modules/asin (configure.ac): Likewise.
18950         * modules/atan (configure.ac): Likewise.
18951         * modules/atan2 (configure.ac): Likewise.
18952         * modules/cbrt (configure.ac): Likewise.
18953         * modules/copysign (configure.ac): Likewise.
18954         * modules/cos (configure.ac): Likewise.
18955         * modules/cosh (configure.ac): Likewise.
18956         * modules/erf (configure.ac): Likewise.
18957         * modules/erfc (configure.ac): Likewise.
18958         * modules/exp (configure.ac): Likewise.
18959         * modules/fabs (configure.ac): Likewise.
18960         * modules/fmod (configure.ac): Likewise.
18961         * modules/hypot (configure.ac): Likewise.
18962         * modules/j0 (configure.ac): Likewise.
18963         * modules/j1 (configure.ac): Likewise.
18964         * modules/jn (configure.ac): Likewise.
18965         * modules/ldexp (configure.ac): Likewise.
18966         * modules/lgamma (configure.ac): Likewise.
18967         * modules/log (configure.ac): Likewise.
18968         * modules/log10 (configure.ac): Likewise.
18969         * modules/log1p (configure.ac): Likewise.
18970         * modules/logb (configure.ac): Likewise.
18971         * modules/modf (configure.ac): Likewise.
18972         * modules/nextafter (configure.ac): Likewise.
18973         * modules/pow (configure.ac): Likewise.
18974         * modules/remainder (configure.ac): Likewise.
18975         * modules/rint (configure.ac): Likewise.
18976         * modules/sin (configure.ac): Likewise.
18977         * modules/sinh (configure.ac): Likewise.
18978         * modules/tan (configure.ac): Likewise.
18979         * modules/tanh (configure.ac): Likewise.
18980         * modules/y0 (configure.ac): Likewise.
18981         * modules/y1 (configure.ac): Likewise.
18982         * modules/yn (configure.ac): Likewise.
18983
18984 2010-01-24  Bruno Haible  <bruno@clisp.org>
18985
18986         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18987         * tests/test-acosl.c (x): New variable.
18988         (main): Store argument in x and fetch it from x.
18989         * tests/test-asinl.c (x): New variable.
18990         (main): Store argument in x and fetch it from x.
18991         * tests/test-atanl.c (x): New variable.
18992         (main): Store argument in x and fetch it from x.
18993         * tests/test-cosl.c (x): New variable.
18994         (main): Store argument in x and fetch it from x.
18995         * tests/test-expl.c (x): New variable.
18996         (main): Store argument in x and fetch it from x.
18997         * tests/test-logl.c (x): New variable.
18998         (main): Store argument in x and fetch it from x.
18999         * tests/test-sinl.c (x): New variable.
19000         (main): Store argument in x and fetch it from x.
19001         * tests/test-sqrtl.c (x): New variable.
19002         (main): Store argument in x and fetch it from x.
19003         * tests/test-tanl.c (x): New variable.
19004         (main): Store argument in x and fetch it from x.
19005
19006 2010-01-24  Bruno Haible  <bruno@clisp.org>
19007
19008         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19009         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19010         assignments to the initial TESTS_ENVIRONMENT.
19011         * doc/gnulib.texi (Unit test modules): Document it.
19012         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19013         TESTS_ENVIRONMENT.
19014         * modules/btowc-tests (Makefile.am): Likewise.
19015         * modules/c-stack-tests (Makefile.am): Likewise.
19016         * modules/c-strcase-tests (Makefile.am): Likewise.
19017         * modules/copy-file-tests (Makefile.am): Likewise.
19018         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19019         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19020         * modules/mbrtowc-tests (Makefile.am): Likewise.
19021         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19022         * modules/mbscasestr-tests (Makefile.am): Likewise.
19023         * modules/mbschr-tests (Makefile.am): Likewise.
19024         * modules/mbscspn-tests (Makefile.am): Likewise.
19025         * modules/mbsinit-tests (Makefile.am): Likewise.
19026         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19027         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19028         * modules/mbspbrk-tests (Makefile.am): Likewise.
19029         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19030         * modules/mbsrchr-tests (Makefile.am): Likewise.
19031         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19032         * modules/mbsspn-tests (Makefile.am): Likewise.
19033         * modules/mbsstr-tests (Makefile.am): Likewise.
19034         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19035         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19036         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19037         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19038         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19039         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19040         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19041         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19042         * modules/wcrtomb-tests (Makefile.am): Likewise.
19043         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19044         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19045         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19046         assignments from TESTS_ENVIRONMENT.
19047         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19048         augmentation.
19049         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19050         * modules/atexit-tests (Makefile.am): Likewise.
19051         * modules/binary-io-tests (Makefile.am): Likewise.
19052         * modules/closein-tests (Makefile.am): Likewise.
19053         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19054         * modules/exclude-tests (Makefile.am): Likewise.
19055         * modules/fflush-tests (Makefile.am): Likewise.
19056         * modules/fpending-tests (Makefile.am): Likewise.
19057         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19058         * modules/freadahead-tests (Makefile.am): Likewise.
19059         * modules/freadptr-tests (Makefile.am): Likewise.
19060         * modules/freadseek-tests (Makefile.am): Likewise.
19061         * modules/fseek-tests (Makefile.am): Likewise.
19062         * modules/fseeko-tests (Makefile.am): Likewise.
19063         * modules/ftell-tests (Makefile.am): Likewise.
19064         * modules/ftello-tests (Makefile.am): Likewise.
19065         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19066         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19067         * modules/lseek-tests (Makefile.am): Likewise.
19068         * modules/parse-duration-tests (Makefile.am): Likewise.
19069         * modules/perror-tests (Makefile.am): Likewise.
19070         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19071         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19072         * modules/pipe-tests (Makefile.am): Likewise.
19073         * modules/pread-tests (Makefile.am): Likewise.
19074         * modules/printf-posix-tests (Makefile.am): Likewise.
19075         * modules/select-tests (Makefile.am): Likewise.
19076         * modules/sigpipe-tests (Makefile.am): Likewise.
19077         * modules/tsearch-tests (Makefile.am): Likewise.
19078         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19079         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19080         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19081         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19082         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19083         * modules/version-etc-tests (Makefile.am): Likewise.
19084         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19085         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19086         * modules/xalloc-die-tests (Makefile.am): Likewise.
19087         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19088         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19089         * modules/xstrtol-tests (Makefile.am): Likewise.
19090         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19091         * modules/yesno-tests (Makefile.am): Likewise.
19092         Suggested by Jim Meyering.
19093
19094 2010-01-24  Bruno Haible  <bruno@clisp.org>
19095
19096         More documentation.
19097         * doc/gnulib.texi (Writing modules): New chapter.
19098         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19099         the new chapter.
19100
19101 2010-01-24  Jim Meyering  <meyering@redhat.com>
19102
19103         maint.mk: do not prepend "./" after filtering
19104         * top/maint.mk (_prepend_srcdir_prefix): New variable
19105         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19106         "./" when $(srcdir) is ".".
19107
19108         define STREQ(a,b) consistently, removing useless parentheses
19109         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19110         since the only risk is that "a" or "b" contains an unparenthesized
19111         comma, but if either did that, STREQ would have 3 or more arguments.
19112         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19113         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19114         * lib/hash-triple.c (STREQ): Likewise.
19115         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19116         * lib/getugroups.c (STREQ): Likewise.
19117
19118 2010-01-23  Jim Meyering  <meyering@redhat.com>
19119
19120         maint.mk: fix syntax-check in a non-srcdir build directory
19121         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19122         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19123
19124 2010-01-22  Jim Meyering  <meyering@redhat.com>
19125
19126         userspec: add unit tests
19127         * tests/test-userspec.c: New file.
19128         * modules/userspec-tests: Likewise.
19129
19130 2010-01-21  Jim Meyering  <meyering@redhat.com>
19131
19132         maint.mk: handle source file names containing "." robustly
19133         * top/maint.mk (_dot_escaped_srcdir): Define.
19134         (VC_LIST): Use it in LHS of sed substitution.
19135
19136 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19137
19138         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19139         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19140         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19141         from a non-srcdir build.
19142
19143 2010-01-20  Eric Blake  <ebb9@byu.net>
19144
19145         warn-on-use: use instead of link-warning
19146         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19147         * modules/unistd (Depends-on, Makefile.am): Likewise.
19148         * modules/arpa_inet (Depends-on): Replace link-warning with
19149         warn-on-use.
19150         (Makefile.am): Update rules accordingly.
19151         * modules/ctype (Depends-on, Makefile.am): Likewise.
19152         * modules/dirent (Depends-on, Makefile.am): Likewise.
19153         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19154         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19155         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19156         * modules/locale (Depends-on, Makefile.am): Likewise.
19157         * modules/math (Depends-on, Makefile.am): Likewise.
19158         * modules/search (Depends-on, Makefile.am): Likewise.
19159         * modules/signal (Depends-on, Makefile.am): Likewise.
19160         * modules/spawn (Depends-on, Makefile.am): Likewise.
19161         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19162         * modules/string (Depends-on, Makefile.am): Likewise.
19163         * modules/strings (Depends-on, Makefile.am): Likewise.
19164         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19165         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19166         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19167         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19168         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19169         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19170         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19171         * modules/wchar (Depends-on, Makefile.am): Likewise.
19172         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19173         should be poisoned.
19174         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19175         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19176         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19177         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19178         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19179         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19180         * m4/math_h.m4 (gl_MATH_H): Likewise.
19181         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19182         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19183         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19184         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19185         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19186         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19187         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19188         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19189         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19191         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19192         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19193         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19194         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19195         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19196         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19197         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19198         GL_LINK_WARNING.
19199         * lib/ctype.in.h: Likewise.
19200         * lib/dirent.in.h: Likewise.
19201         * lib/fcntl.in.h: Likewise.
19202         * lib/inttypes.in.h: Likewise.
19203         * lib/langinfo.in.h: Likewise.
19204         * lib/locale.in.h: Likewise.
19205         * lib/math.in.h: Likewise.
19206         * lib/search.in.h: Likewise.
19207         * lib/signal.in.h: Likewise.
19208         * lib/spawn.in.h: Likewise.
19209         * lib/stdio.in.h: Likewise.
19210         * lib/stdlib.in.h: Likewise.
19211         * lib/string.in.h: Likewise.
19212         * lib/strings.in.h: Likewise.
19213         * lib/sys_file.in.h: Likewise.
19214         * lib/sys_ioctl.in.h: Likewise.
19215         * lib/sys_select.in.h: Likewise.
19216         * lib/sys_socket.in.h: Likewise.
19217         * lib/sys_stat.in.h: Likewise.
19218         * lib/sys_times.in.h: Likewise.
19219         * lib/sys_utsname.in.h: Likewise.
19220         * lib/unistd.in.h: Likewise.
19221         * lib/wchar.in.h: Likewise.
19222
19223 2010-01-20  Bruno Haible  <bruno@clisp.org>
19224
19225         Avoid duplicate -lm.
19226         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
19227         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
19228         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
19229         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
19230         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
19231         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
19232         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
19233         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
19234         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
19235         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
19236         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
19237         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19238         Reported by Paolo Bonzini.
19239
19240 2010-01-19  Bruno Haible  <bruno@clisp.org>
19241
19242         langinfo, nl_langinfo: Relicense under LGPLv2+.
19243         * modules/langinfo (License): Change to LGPLv2+.
19244         * modules/nl_langinfo (License): Likewise.
19245         Patch by David Lutterkort <lutter@redhat.com>.
19246
19247 2010-01-19  Bruno Haible  <bruno@clisp.org>
19248
19249         Avoid compilation error with cc on OSF/1 5.1.
19250         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
19251         statement, not before.
19252         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19253
19254 2010-01-18  Bruno Haible  <bruno@clisp.org>
19255
19256         Avoid a link error due to the __printf__ symbol.
19257         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
19258         and 2.6.x.
19259         (__format__, __printf__): Remove definitions.
19260         * lib/argp-fmtstream.h: Likewise.
19261         * lib/argp.h: Likewise.
19262         * lib/error.h: Likewise.
19263         * lib/vasnprintf.h: Likewise.
19264         * lib/xprintf.h: Likewise.
19265         * lib/xvasprintf.h: Likewise.
19266         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19267
19268 2010-01-18  Bruno Haible  <bruno@clisp.org>
19269
19270         Tests for module 'tanl'.
19271         * modules/tanl-tests: New file.
19272         * tests/test-tanl.c: New file.
19273
19274         Tests for module 'sqrtl'.
19275         * modules/sqrtl-tests: New file.
19276         * tests/test-sqrtl.c: New file.
19277
19278         Tests for module 'sinl'.
19279         * modules/sinl-tests: New file.
19280         * tests/test-sinl.c: New file.
19281
19282         Tests for module 'logl'.
19283         * modules/logl-tests: New file.
19284         * tests/test-logl.c: New file.
19285
19286         Tests for module 'expl'.
19287         * modules/expl-tests: New file.
19288         * tests/test-expl.c: New file.
19289
19290         Tests for module 'cosl'.
19291         * modules/cosl-tests: New file.
19292         * tests/test-cosl.c: New file.
19293
19294         Tests for module 'atanl'.
19295         * modules/atanl-tests: New file.
19296         * tests/test-atanl.c: New file.
19297
19298         Tests for module 'asinl'.
19299         * modules/asinl-tests: New file.
19300         * tests/test-asinl.c: New file.
19301
19302         Tests for module 'acosl'.
19303         * modules/acosl-tests: New file.
19304         * tests/test-acosl.c: New file.
19305
19306         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19307         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19308         tanl): Use the standard gnulib idiom.
19309         * lib/cosl.c: Don't include trigl.c and sincosl.c.
19310         * lib/sinl.c: Likewise.
19311         * lib/tanl.c: Don't include trigl.c.
19312         (kernel_tanl): Make static.
19313         * lib/sincosl.c: Include trigl.h first.
19314         * lib/trigl.c: Likewise.
19315         * m4/acosl.m4: New file.
19316         * m4/asinl.m4: New file.
19317         * m4/atanl.m4: New file.
19318         * m4/cosl.m4: New file.
19319         * m4/expl.m4: New file.
19320         * m4/logl.m4: New file.
19321         * m4/sinl.m4: New file.
19322         * m4/sqrtl.m4: New file.
19323         * m4/tanl.m4: New file.
19324         * m4/mathl.m4: Remove file.
19325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
19326         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19327         Don't initialize GNULIB_MATHL.
19328         * modules/acosl: New file.
19329         * modules/asinl: New file.
19330         * modules/atanl: New file.
19331         * modules/cosl: New file.
19332         * modules/expl: New file.
19333         * modules/logl: New file.
19334         * modules/sinl: New file.
19335         * modules/sqrtl: New file.
19336         * modules/tanl: New file.
19337         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
19338         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
19339         substitute GNULIB_MATHL.
19340         * modules/mathl: Rewritten.
19341         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
19342         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
19343         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
19344         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
19345         * doc/posix-functions/expl.texi: Mention the 'expl' module.
19346         * doc/posix-functions/logl.texi: Mention the 'logl' module.
19347         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
19348         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
19349         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
19350
19351 2010-01-18  Bruno Haible  <bruno@clisp.org>
19352
19353         sqrt: Make gl_FUNC_SQRT requirable.
19354         * m4/sqrt.m4: New file.
19355         * modules/sqrt (Files): Add it.
19356         (configure.ac): Invoke gl_FUNC_SQRT.
19357
19358 2010-01-18  Bruno Haible  <bruno@clisp.org>
19359
19360         New modules for common <math.h> functions.
19361         * m4/mathfunc.m4: New file.
19362         * modules/acos: New file.
19363         * modules/asin: New file.
19364         * modules/atan: New file.
19365         * modules/atan2: New file.
19366         * modules/cbrt: New file.
19367         * modules/copysign: New file.
19368         * modules/cos: New file.
19369         * modules/cosh: New file.
19370         * modules/erf: New file.
19371         * modules/erfc: New file.
19372         * modules/exp: New file.
19373         * modules/fabs: New file.
19374         * modules/fmod: New file.
19375         * modules/hypot: New file.
19376         * modules/j0: New file.
19377         * modules/j1: New file.
19378         * modules/jn: New file.
19379         * modules/ldexp: New file.
19380         * modules/lgamma: New file.
19381         * modules/log: New file.
19382         * modules/log10: New file.
19383         * modules/log1p: New file.
19384         * modules/logb: New file.
19385         * modules/modf: New file.
19386         * modules/nextafter: New file.
19387         * modules/pow: New file.
19388         * modules/remainder: New file.
19389         * modules/rint: New file.
19390         * modules/sin: New file.
19391         * modules/sinh: New file.
19392         * modules/sqrt: New file.
19393         * modules/tan: New file.
19394         * modules/tanh: New file.
19395         * modules/y0: New file.
19396         * modules/y1: New file.
19397         * modules/yn: New file.
19398         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19399         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19400         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19401         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19402         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19403         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19404         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19405         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19406         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19407         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19408         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19409         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19410         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19411         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19412         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19413         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19414         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19415         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19416         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19417         * doc/posix-functions/log.texi: Mention the 'log' module.
19418         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19419         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19420         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19421         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19422         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19423         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19424         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19425         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19426         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19427         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19428         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19429         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19430         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19431         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19432         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19433         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19434
19435 2010-01-18  Jim Meyering  <meyering@redhat.com>
19436
19437         ignore-value: relax license to LGPLv2+
19438         * modules/ignore-value (License): Relax to LGPLv2+.
19439
19440         getdate: don't leak when TZ contains two or more '"'s
19441         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19442         double quote in TZ after the first one.
19443
19444         readtokens: do not leak internal token_lengths buffer
19445         * lib/readtokens.c (readtokens): Free the local, lengths,
19446         when the supplied "token_lengths" parameter is NULL.
19447
19448 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19449
19450         Fix a couple of missing LIBTHREAD link failures on AIX.
19451         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19452         $(LIBTHREAD).
19453         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19454
19455         Link test-poll against INET_PTON_LIB.
19456         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19457         for inet_pton on Solaris 10.
19458
19459 2010-01-17  Bruno Haible  <bruno@clisp.org>
19460
19461         unistdio/*-sprintf: Fix typo in module description.
19462         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19463         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19464         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19465         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19466         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19467         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19468         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19469         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19470
19471 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19472
19473         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19474         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19475         variables in shell case patterns, for AIX and HP-UX ksh.
19476
19477         Split large sed scripts, for HP-UX sed.
19478         * modules/stdio: Split sed scripts around 50 sed commands,
19479         to avoid HP-UX limit of 99 commands, in the near future.
19480         * modules/string: Likewise.
19481         * modules/unistd: Likewise.
19482
19483         gnulib-tool: avoid writing in the current directory.
19484         * gnulib-tool (func_emit_lib_Makefile_am)
19485         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19486         not in the current directory, so concurrent gnulib-tool
19487         instances do not interfere.
19488
19489 2010-01-16  Jim Meyering  <meyering@redhat.com>
19490
19491         doc: update users.txt
19492         * users.txt: Add grep.
19493         (diffutils, gzip): Update URLs.
19494
19495 2010-01-12  Bruno Haible  <bruno@clisp.org>
19496
19497         posix_spawn: Avoid test failure on Cygwin.
19498         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19499         characters.
19500         Reported by Simon Josefsson.
19501
19502 2010-01-12  Bruno Haible  <bruno@clisp.org>
19503
19504         * tests/test-cond.c (main): When skipping the test, show the reason.
19505
19506 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19507
19508         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19509
19510 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19511
19512         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19513         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19514
19515 2010-01-12  Eric Blake  <ebb9@byu.net>
19516
19517         build: guarantee AS_VAR_IF
19518         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19519         (gl_AS_VAR_IF): Move...
19520         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19521         Reported by Simon Josefsson.
19522
19523 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19524
19525         * lib/stdio.in.h: Fix typo.
19526
19527 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19528
19529         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19530         libgpg-error.
19531
19532 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19533
19534         * tests/test-xalloc-die.sh: Use $EXEEXT.
19535
19536 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19537             Bruno Haible  <bruno@clisp.org>
19538
19539         getlogin, getlogin_r: Avoid test failure.
19540         * tests/test-getlogin.c: Include <stdio.h>.
19541         (main): Skip the test when the function fails because stdin is not a
19542         tty.
19543         * tests/test-getlogin_r.c: Include <stdio.h>.
19544         (main): Skip the test when the function fails because stdin is not a
19545         tty.
19546
19547 2010-01-11  Eric Blake  <ebb9@byu.net>
19548
19549         tests: avoid more large file warnings
19550         * tests/test-fflush.c: Avoid warning about ftell use.
19551         * tests/test-fseek.c: Avoid warning about fseek use.
19552
19553 2010-01-10  Bruno Haible  <bruno@clisp.org>
19554
19555         nproc: Work better on Linux when /proc and /sys are not mounted.
19556         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19557         as lower bound when, on glibc/Linux systems,
19558         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19559         Suggested by Pádraig Brady <P@draigbrady.com>.
19560         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19561
19562         nproc: Refactor.
19563         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19564         extracted from num_processors.
19565         (num_processors): Call it.
19566
19567 2010-01-11  Jim Meyering  <meyering@redhat.com>
19568
19569         utimecmp: avoid new warning from upcoming gcc-4.5.0
19570         * lib/utimecmp.c (BILLION): Define using #define rather than an
19571         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19572
19573 2010-01-11  Eric Blake  <ebb9@byu.net>
19574
19575         math: add portability warnings for classification macros
19576         * modules/math (Depends-on): Add warn-on-use.
19577         (Makefile.am): Provide new substitutions.
19578         * m4/math_h.m4 (gl_MATH_H): Require inline.
19579         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19580         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19581         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19582         implement warnings.
19583
19584         unistd: warn on use of environ without module
19585         * modules/unistd (Depends-on): Add warn-on-use.
19586         (Makefile.am): Provide new substitutions.
19587         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19588         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19589
19590         stdio: warn on suspicious uses
19591         * modules/stdio (Depends-on): Add warn-on-use.
19592         (Makefile.am): Provide new substitutions.
19593         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19594         fseeko.
19595         * lib/stdio.in.h (gets): Always warn on use.
19596         (fseek, ftell): Adjust when warnings are issued, and honor
19597         _GL_NO_LARGE_FILES as a way to silence the warning.
19598         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19599         any warning about large file offsets.
19600         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19601         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19602         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19603         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19604         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19605         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19606         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19607         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19608
19609         warn-on-use: new module
19610         * modules/warn-on-use: New file.
19611         * build-aux/warn-on-use.h: Likewise.
19612         * m4/warn-on-use.m4: Likewise.
19613         * MODULES.html.sh (Support for building): Mention it.
19614
19615 2010-01-10  Bruno Haible  <bruno@clisp.org>
19616
19617         Tests for module 'unistr/u32-strdup'.
19618         * modules/unistr/u32-strdup-tests: New file.
19619         * tests/unistr/test-u32-strdup.c: New file.
19620
19621         Tests for module 'unistr/u16-strdup'.
19622         * modules/unistr/u16-strdup-tests: New file.
19623         * tests/unistr/test-u16-strdup.c: New file.
19624
19625         Tests for module 'unistr/u8-strdup'.
19626         * modules/unistr/u8-strdup-tests: New file.
19627         * tests/unistr/test-u8-strdup.c: New file.
19628         * tests/unistr/test-strdup.h: New file.
19629
19630         Tests for module 'unistr/u32-strncmp'.
19631         * modules/unistr/u32-strncmp-tests: New file.
19632         * tests/unistr/test-u32-strncmp.c: New file.
19633
19634         Tests for module 'unistr/u16-strncmp'.
19635         * modules/unistr/u16-strncmp-tests: New file.
19636         * tests/unistr/test-u16-strncmp.c: New file.
19637
19638         Tests for module 'unistr/u8-strncmp'.
19639         * modules/unistr/u8-strncmp-tests: New file.
19640         * tests/unistr/test-u8-strncmp.c: New file.
19641         * tests/unistr/test-strncmp.h: New file.
19642
19643         Tests for module 'unistr/u32-strcoll'.
19644         * modules/unistr/u32-strcoll-tests: New file.
19645         * tests/unistr/test-u32-strcoll.c: New file.
19646
19647         Tests for module 'unistr/u16-strcoll'.
19648         * modules/unistr/u16-strcoll-tests: New file.
19649         * tests/unistr/test-u16-strcoll.c: New file.
19650
19651         Tests for module 'unistr/u8-strcoll'.
19652         * modules/unistr/u8-strcoll-tests: New file.
19653         * tests/unistr/test-u8-strcoll.c: New file.
19654
19655         Tests for module 'unistr/u32-strcmp'.
19656         * modules/unistr/u32-strcmp-tests: New file.
19657         * tests/unistr/test-u32-strcmp.c: New file.
19658         * tests/unistr/test-u32-strcmp.h: New file.
19659
19660         Tests for module 'unistr/u16-strcmp'.
19661         * modules/unistr/u16-strcmp-tests: New file.
19662         * tests/unistr/test-u16-strcmp.c: New file.
19663         * tests/unistr/test-u16-strcmp.h: New file.
19664
19665         Tests for module 'unistr/u8-strcmp'.
19666         * modules/unistr/u8-strcmp-tests: New file.
19667         * tests/unistr/test-u8-strcmp.c: New file.
19668         * tests/unistr/test-u8-strcmp.h: New file.
19669         * tests/unistr/test-strcmp.h: New file.
19670
19671         Tests for module 'unistr/u32-strncat'.
19672         * modules/unistr/u32-strncat-tests: New file.
19673         * tests/unistr/test-u32-strncat.c: New file.
19674
19675         Tests for module 'unistr/u16-strncat'.
19676         * modules/unistr/u16-strncat-tests: New file.
19677         * tests/unistr/test-u16-strncat.c: New file.
19678
19679         Tests for module 'unistr/u8-strncat'.
19680         * modules/unistr/u8-strncat-tests: New file.
19681         * tests/unistr/test-u8-strncat.c: New file.
19682         * tests/unistr/test-strncat.h: New file.
19683
19684         Tests for module 'unistr/u32-strcat'.
19685         * modules/unistr/u32-strcat-tests: New file.
19686         * tests/unistr/test-u32-strcat.c: New file.
19687
19688         Tests for module 'unistr/u16-strcat'.
19689         * modules/unistr/u16-strcat-tests: New file.
19690         * tests/unistr/test-u16-strcat.c: New file.
19691
19692         Tests for module 'unistr/u8-strcat'.
19693         * modules/unistr/u8-strcat-tests: New file.
19694         * tests/unistr/test-u8-strcat.c: New file.
19695         * tests/unistr/test-strcat.h: New file.
19696
19697         Tests for module 'unistr/u32-stpncpy'.
19698         * modules/unistr/u32-stpncpy-tests: New file.
19699         * tests/unistr/test-u32-stpncpy.c: New file.
19700
19701         Tests for module 'unistr/u16-stpncpy'.
19702         * modules/unistr/u16-stpncpy-tests: New file.
19703         * tests/unistr/test-u16-stpncpy.c: New file.
19704
19705         Tests for module 'unistr/u8-stpncpy'.
19706         * modules/unistr/u8-stpncpy-tests: New file.
19707         * tests/unistr/test-u8-stpncpy.c: New file.
19708         * tests/unistr/test-stpncpy.h: New file.
19709
19710         Tests for module 'unistr/u32-strncpy'.
19711         * modules/unistr/u32-strncpy-tests: New file.
19712         * tests/unistr/test-u32-strncpy.c: New file.
19713
19714         Tests for module 'unistr/u16-strncpy'.
19715         * modules/unistr/u16-strncpy-tests: New file.
19716         * tests/unistr/test-u16-strncpy.c: New file.
19717
19718         Tests for module 'unistr/u8-strncpy'.
19719         * modules/unistr/u8-strncpy-tests: New file.
19720         * tests/unistr/test-u8-strncpy.c: New file.
19721         * tests/unistr/test-strncpy.h: New file.
19722
19723         Tests for module 'unistr/u32-stpcpy'.
19724         * modules/unistr/u32-stpcpy-tests: New file.
19725         * tests/unistr/test-u32-stpcpy.c: New file.
19726
19727         Tests for module 'unistr/u16-stpcpy'.
19728         * modules/unistr/u16-stpcpy-tests: New file.
19729         * tests/unistr/test-u16-stpcpy.c: New file.
19730
19731         Tests for module 'unistr/u8-stpcpy'.
19732         * modules/unistr/u8-stpcpy-tests: New file.
19733         * tests/unistr/test-u8-stpcpy.c: New file.
19734         * tests/unistr/test-stpcpy.h: New file.
19735
19736         Tests for module 'unistr/u32-strcpy'.
19737         * modules/unistr/u32-strcpy-tests: New file.
19738         * tests/unistr/test-u32-strcpy.c: New file.
19739
19740         Tests for module 'unistr/u16-strcpy'.
19741         * modules/unistr/u16-strcpy-tests: New file.
19742         * tests/unistr/test-u16-strcpy.c: New file.
19743
19744         Tests for module 'unistr/u8-strcpy'.
19745         * modules/unistr/u8-strcpy-tests: New file.
19746         * tests/unistr/test-u8-strcpy.c: New file.
19747         * tests/unistr/test-strcpy.h: New file.
19748
19749         Tests for module 'unistr/u32-strnlen'.
19750         * modules/unistr/u32-strnlen-tests: New file.
19751         * tests/unistr/test-u32-strnlen.c: New file.
19752
19753         Tests for module 'unistr/u16-strnlen'.
19754         * modules/unistr/u16-strnlen-tests: New file.
19755         * tests/unistr/test-u16-strnlen.c: New file.
19756
19757         Tests for module 'unistr/u8-strnlen'.
19758         * modules/unistr/u8-strnlen-tests: New file.
19759         * tests/unistr/test-u8-strnlen.c: New file.
19760         * tests/unistr/test-strnlen.h: New file.
19761
19762         Tests for module 'unistr/u32-strlen'.
19763         * modules/unistr/u32-strlen-tests: New file.
19764         * tests/unistr/test-u32-strlen.c: New file.
19765
19766         Tests for module 'unistr/u16-strlen'.
19767         * modules/unistr/u16-strlen-tests: New file.
19768         * tests/unistr/test-u16-strlen.c: New file.
19769
19770         Tests for module 'unistr/u8-strlen'.
19771         * modules/unistr/u8-strlen-tests: New file.
19772         * tests/unistr/test-u8-strlen.c: New file.
19773
19774         Tests for module 'unistr/u32-prev'.
19775         * modules/unistr/u32-prev-tests: New file.
19776         * tests/unistr/test-u32-prev.c: New file.
19777
19778         Tests for module 'unistr/u16-prev'.
19779         * modules/unistr/u16-prev-tests: New file.
19780         * tests/unistr/test-u16-prev.c: New file.
19781
19782         Tests for module 'unistr/u8-prev'.
19783         * modules/unistr/u8-prev-tests: New file.
19784         * tests/unistr/test-u8-prev.c: New file.
19785
19786         Tests for module 'unistr/u32-next'.
19787         * modules/unistr/u32-next-tests: New file.
19788         * tests/unistr/test-u32-next.c: New file.
19789
19790         Tests for module 'unistr/u16-next'.
19791         * modules/unistr/u16-next-tests: New file.
19792         * tests/unistr/test-u16-next.c: New file.
19793
19794         Tests for module 'unistr/u8-next'.
19795         * modules/unistr/u8-next-tests: New file.
19796         * tests/unistr/test-u8-next.c: New file.
19797
19798         Tests for module 'unistr/u32-strmbtouc'.
19799         * modules/unistr/u32-strmbtouc-tests: New file.
19800         * tests/unistr/test-u32-strmbtouc.c: New file.
19801
19802         Tests for module 'unistr/u16-strmbtouc'.
19803         * modules/unistr/u16-strmbtouc-tests: New file.
19804         * tests/unistr/test-u16-strmbtouc.c: New file.
19805
19806         Tests for module 'unistr/u8-strmbtouc'.
19807         * modules/unistr/u8-strmbtouc-tests: New file.
19808         * tests/unistr/test-u8-strmbtouc.c: New file.
19809
19810         Tests for module 'unistr/u32-strmblen'.
19811         * modules/unistr/u32-strmblen-tests: New file.
19812         * tests/unistr/test-u32-strmblen.c: New file.
19813
19814         Tests for module 'unistr/u16-strmblen'.
19815         * modules/unistr/u16-strmblen-tests: New file.
19816         * tests/unistr/test-u16-strmblen.c: New file.
19817
19818         Tests for module 'unistr/u8-strmblen'.
19819         * modules/unistr/u8-strmblen-tests: New file.
19820         * tests/unistr/test-u8-strmblen.c: New file.
19821
19822         Tests for module 'unistr/u32-cpy-alloc'.
19823         * modules/unistr/u32-cpy-alloc-tests: New file.
19824         * tests/unistr/test-u32-cpy-alloc.c: New file.
19825
19826         Tests for module 'unistr/u16-cpy-alloc'.
19827         * modules/unistr/u16-cpy-alloc-tests: New file.
19828         * tests/unistr/test-u16-cpy-alloc.c: New file.
19829
19830         Tests for module 'unistr/u8-cpy-alloc'.
19831         * modules/unistr/u8-cpy-alloc-tests: New file.
19832         * tests/unistr/test-u8-cpy-alloc.c: New file.
19833         * tests/unistr/test-cpy-alloc.h: New file.
19834
19835         Tests for module 'unistr/u32-mbsnlen'.
19836         * modules/unistr/u32-mbsnlen-tests: New file.
19837         * tests/unistr/test-u32-mbsnlen.c: New file.
19838
19839         Tests for module 'unistr/u16-mbsnlen'.
19840         * modules/unistr/u16-mbsnlen-tests: New file.
19841         * tests/unistr/test-u16-mbsnlen.c: New file.
19842
19843         Tests for module 'unistr/u8-mbsnlen'.
19844         * modules/unistr/u8-mbsnlen-tests: New file.
19845         * tests/unistr/test-u8-mbsnlen.c: New file.
19846
19847         Tests for module 'unistr/u32-chr'.
19848         * modules/unistr/u32-chr-tests: New file.
19849         * tests/unistr/test-u32-chr.c: New file.
19850
19851         Tests for module 'unistr/u16-chr'.
19852         * modules/unistr/u16-chr-tests: New file.
19853         * tests/unistr/test-u16-chr.c: New file.
19854
19855         Tests for module 'unistr/u8-chr'.
19856         * modules/unistr/u8-chr-tests: New file.
19857         * tests/unistr/test-u8-chr.c: New file.
19858         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19859
19860         Tests for module 'unistr/u32-cmp2'.
19861         * modules/unistr/u32-cmp2-tests: New file.
19862         * tests/unistr/test-u32-cmp2.c: New file.
19863
19864         Tests for module 'unistr/u16-cmp2'.
19865         * modules/unistr/u16-cmp2-tests: New file.
19866         * tests/unistr/test-u16-cmp2.c: New file.
19867
19868         Tests for module 'unistr/u8-cmp2'.
19869         * modules/unistr/u8-cmp2-tests: New file.
19870         * tests/unistr/test-u8-cmp2.c: New file.
19871         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19872
19873         Tests for module 'unistr/u32-cmp'.
19874         * modules/unistr/u32-cmp-tests: New file.
19875         * tests/unistr/test-u32-cmp.c: New file.
19876
19877         Tests for module 'unistr/u16-cmp'.
19878         * modules/unistr/u16-cmp-tests: New file.
19879         * tests/unistr/test-u16-cmp.c: New file.
19880
19881         Tests for module 'unistr/u8-cmp'.
19882         * modules/unistr/u8-cmp-tests: New file.
19883         * tests/unistr/test-u8-cmp.c: New file.
19884         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19885
19886         Tests for module 'unistr/u32-set'.
19887         * modules/unistr/u32-set-tests: New file.
19888         * tests/unistr/test-u32-set.c: New file.
19889
19890         Tests for module 'unistr/u16-set'.
19891         * modules/unistr/u16-set-tests: New file.
19892         * tests/unistr/test-u16-set.c: New file.
19893
19894         Tests for module 'unistr/u8-set'.
19895         * modules/unistr/u8-set-tests: New file.
19896         * tests/unistr/test-u8-set.c: New file.
19897         * tests/unistr/test-set.h: New file.
19898
19899         Tests for module 'unistr/u32-move'.
19900         * modules/unistr/u32-move-tests: New file.
19901         * tests/unistr/test-u32-move.c: New file.
19902
19903         Tests for module 'unistr/u16-move'.
19904         * modules/unistr/u16-move-tests: New file.
19905         * tests/unistr/test-u16-move.c: New file.
19906
19907         Tests for module 'unistr/u8-move'.
19908         * modules/unistr/u8-move-tests: New file.
19909         * tests/unistr/test-u8-move.c: New file.
19910         * tests/unistr/test-move.h: New file.
19911
19912         Tests for module 'unistr/u32-cpy'.
19913         * modules/unistr/u32-cpy-tests: New file.
19914         * tests/unistr/test-u32-cpy.c: New file.
19915
19916         Tests for module 'unistr/u16-cpy'.
19917         * modules/unistr/u16-cpy-tests: New file.
19918         * tests/unistr/test-u16-cpy.c: New file.
19919
19920         Tests for module 'unistr/u8-cpy'.
19921         * modules/unistr/u8-cpy-tests: New file.
19922         * tests/unistr/test-u8-cpy.c: New file.
19923         * tests/unistr/test-cpy.h: New file.
19924
19925 2010-01-09  Bruno Haible  <bruno@clisp.org>
19926
19927         Tests for module 'unistr/u32-uctomb'.
19928         * modules/unistr/u32-uctomb-tests: New file.
19929         * tests/unistr/test-u32-uctomb.c: New file.
19930
19931         Tests for module 'unistr/u16-uctomb'.
19932         * modules/unistr/u16-uctomb-tests: New file.
19933         * tests/unistr/test-u16-uctomb.c: New file.
19934
19935         Tests for module 'unistr/u8-uctomb'.
19936         * modules/unistr/u8-uctomb-tests: New file.
19937         * tests/unistr/test-u8-uctomb.c: New file.
19938
19939         Tests for module 'unistr/u32-mbtoucr'.
19940         * modules/unistr/u32-mbtoucr-tests: New file.
19941         * tests/unistr/test-u32-mbtoucr.c: New file.
19942
19943         Tests for module 'unistr/u16-mbtoucr'.
19944         * modules/unistr/u16-mbtoucr-tests: New file.
19945         * tests/unistr/test-u16-mbtoucr.c: New file.
19946
19947         Tests for module 'unistr/u8-mbtoucr'.
19948         * modules/unistr/u8-mbtoucr-tests: New file.
19949         * tests/unistr/test-u8-mbtoucr.c: New file.
19950
19951         Tests for module 'unistr/u32-mbtouc'.
19952         * modules/unistr/u32-mbtouc-tests: New file.
19953         * tests/unistr/test-u32-mbtouc.c: New file.
19954
19955         Tests for module 'unistr/u16-mbtouc'.
19956         * modules/unistr/u16-mbtouc-tests: New file.
19957         * tests/unistr/test-u16-mbtouc.c: New file.
19958
19959         Tests for module 'unistr/u8-mbtouc'.
19960         * modules/unistr/u8-mbtouc-tests: New file.
19961         * tests/unistr/test-u8-mbtouc.c: New file.
19962
19963         Tests for module 'unistr/u32-mbtouc-unsafe'.
19964         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19965         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19966         * tests/unistr/test-u32-mbtouc.h: New file.
19967
19968         Tests for module 'unistr/u16-mbtouc-unsafe'.
19969         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19970         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19971         * tests/unistr/test-u16-mbtouc.h: New file.
19972
19973         Tests for module 'unistr/u8-mbtouc-unsafe'.
19974         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19975         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19976         * tests/unistr/test-u8-mbtouc.h: New file.
19977
19978         Tests for module 'unistr/u32-mblen'.
19979         * modules/unistr/u32-mblen-tests: New file.
19980         * tests/unistr/test-u32-mblen.c: New file.
19981
19982         Tests for module 'unistr/u16-mblen'.
19983         * modules/unistr/u16-mblen-tests: New file.
19984         * tests/unistr/test-u16-mblen.c: New file.
19985
19986         Tests for module 'unistr/u8-mblen'.
19987         * modules/unistr/u8-mblen-tests: New file.
19988         * tests/unistr/test-u8-mblen.c: New file.
19989
19990         Tests for module 'unistr/u32-to-u16'.
19991         * modules/unistr/u32-to-u16-tests: New file.
19992         * tests/unistr/test-u32-to-u16.c: New file.
19993
19994         Tests for module 'unistr/u32-to-u8'.
19995         * modules/unistr/u32-to-u8-tests: New file.
19996         * tests/unistr/test-u32-to-u8.c: New file.
19997
19998         Tests for module 'unistr/u16-to-u32'.
19999         * modules/unistr/u16-to-u32-tests: New file.
20000         * tests/unistr/test-u16-to-u32.c: New file.
20001
20002         Tests for module 'unistr/u16-to-u8'.
20003         * modules/unistr/u16-to-u8-tests: New file.
20004         * tests/unistr/test-u16-to-u8.c: New file.
20005
20006         Tests for module 'unistr/u8-to-u32'.
20007         * modules/unistr/u8-to-u32-tests: New file.
20008         * tests/unistr/test-u8-to-u32.c: New file.
20009
20010         Tests for module 'unistr/u8-to-u16'.
20011         * modules/unistr/u8-to-u16-tests: New file.
20012         * tests/unistr/test-u8-to-u16.c: New file.
20013
20014         Tests for module 'unistr/u32-check'.
20015         * modules/unistr/u32-check-tests: New file.
20016         * tests/unistr/test-u32-check.c: New file.
20017
20018         Tests for module 'unistr/u16-check'.
20019         * modules/unistr/u16-check-tests: New file.
20020         * tests/unistr/test-u16-check.c: New file.
20021
20022         Tests for module 'unistr/u8-check'.
20023         * modules/unistr/u8-check-tests: New file.
20024         * tests/unistr/test-u8-check.c: New file.
20025
20026         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20027         (category_equals): New function.
20028         (main): Add more tests.
20029         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20030
20031         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20032
20033 2010-01-10  Bruno Haible  <bruno@clisp.org>
20034
20035         unistr/u*-strcoll: Try harder to distinguish different strings.
20036         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20037         compare s1 and s2 to see if they are different.
20038
20039 2010-01-10  Bruno Haible  <bruno@clisp.org>
20040
20041         unistr/u*-stpncpy: Fix the return value.
20042         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20043         description of the return value consistent with stpncpy in glibc.
20044         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20045         written non-NUL unit.
20046
20047 2010-01-10  Bruno Haible  <bruno@clisp.org>
20048
20049         unistr/u*-next: Add missing dependencies.
20050         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20051         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20052         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20053
20054 2010-01-10  Bruno Haible  <bruno@clisp.org>
20055
20056         unistr/u8-mbsnlen: Fix return value for incomplete character.
20057         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20058         u8_mblen.
20059         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20060         Remove unistr/u8-mblen.
20061         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20062         u16_mblen.
20063         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20064         Remove unistr/u16-mblen.
20065
20066 2010-01-10  Bruno Haible  <bruno@clisp.org>
20067
20068         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20069         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20070         Reported by Brian Gough <bjg@gnu.org> and
20071         Chris Clayton <chris2553@googlemail.com> via
20072         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20073
20074 2010-01-09  Bruno Haible  <bruno@clisp.org>
20075
20076         unistr/u16-to-u32: Reject invalid input.
20077         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20078         u16_mbtouc.
20079         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20080         Remove unistr/u16-mbtouc.
20081
20082         unistr/u16-to-u8: Reject invalid input.
20083         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20084         u16_mbtouc.
20085         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20086         Remove unistr/u16-mbtouc.
20087
20088         unistr/u8-to-u32: Reject invalid input.
20089         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20090         u8_mbtouc.
20091         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20092         Remove unistr/u8-mbtouc.
20093
20094         unistr/u8-to-u16: Reject invalid input.
20095         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20096         u8_mbtouc.
20097         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20098         Remove unistr/u8-mbtouc.
20099
20100 2010-01-09  Bruno Haible  <bruno@clisp.org>
20101
20102         Tests for module 'getlogin'.
20103         * modules/getlogin-tests: New file.
20104         * tests/test-getlogin.c: New file.
20105
20106         New module 'getlogin'.
20107         * lib/unistd.in.h (getlogin): New declaration.
20108         * lib/getlogin.c: New file.
20109         * m4/getlogin.m4: New file.
20110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20111         HAVE_GETLOGIN.
20112         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20113         HAVE_GETLOGIN.
20114         * modules/getlogin: New file.
20115         * doc/posix-functions/getlogin.texi: Mention the new module.
20116         Reported by John W. Eaton <jwe@gnu.org>.
20117
20118 2010-01-09  Bruno Haible  <bruno@clisp.org>
20119
20120         getlogin_r: Support for native Windows.
20121         * lib/getlogin_r.c: Include <windows.h>
20122         (getlogin_r): Implement for native Windows.
20123         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20124         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20125         via John W. Eaton <jwe@gnu.org>.
20126
20127 2010-01-09  Bruno Haible  <bruno@clisp.org>
20128
20129         getlogin_r: Small fixes.
20130         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20131         succeeds.
20132         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20133         before testing whether getlogin_r is declared. No need to set
20134         HAVE_DECL_GETLOGIN_R to 1.
20135         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20136
20137 2010-01-09  Bruno Haible  <bruno@clisp.org>
20138
20139         * lib/unistd.in.h (getlogin_r): Add comment.
20140
20141 2010-01-09  Bruno Haible  <bruno@clisp.org>
20142
20143         Tests for module 'getlogin_r'.
20144         * modules/getlogin_r-tests: New file.
20145         * tests/test-getlogin_r.c: New file.
20146
20147 2010-01-09  Jim Meyering  <meyering@redhat.com>
20148
20149         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20150         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20151         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20152
20153 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20154
20155         * lib/dup2.c (rpl_dup2): Improve comment.
20156
20157 2010-01-08  Eric Blake  <ebb9@byu.net>
20158
20159         maint.mk: allow packages to add makefile @@ exceptions
20160         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20161         (sc_makefile_check): Rename...
20162         (sc_makefile_at_at_check): ...to this, and use hook.
20163
20164         dup2: work around mingw bug
20165         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20166         Reported by Simon Josefsson.
20167
20168 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20169
20170         glob: Fix C++ compilation.
20171         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20172         C++.
20173
20174 2010-01-07  Bruno Haible  <bruno@clisp.org>
20175
20176         Fix indentation of wctype.in.h, broken since 2007-01-06.
20177         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20178
20179 2010-01-07  Bruno Haible  <bruno@clisp.org>
20180
20181         mbslen: Avoid collision with system function.
20182         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20183         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20184         * m4/mbslen.m4: New file.
20185         * modules/mbslen (Files): Add it.
20186         (configure.ac): Invoke gl_MBSLEN.
20187         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20188         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20189         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20190         via Ian Beckwith <ianb@erislabs.net>.
20191
20192 2010-01-07  Bruno Haible  <bruno@clisp.org>
20193
20194         dirent: Document the last fix.
20195         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20196
20197 2010-01-07  Bruno Haible  <bruno@clisp.org>
20198
20199         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
20200         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
20201         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
20202         va_list are defined.
20203         * doc/posix-headers/stdio.texi: Document the bug of missing types.
20204         Reported by Eric Blake.
20205
20206 2010-01-07  Bruno Haible  <bruno@clisp.org>
20207
20208         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
20209         * modules/xlist (Depends-on): Add 'list',
20210         * modules/xoset (Depends-on): Add 'oset'.
20211         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20212
20213 2010-01-07  Bruno Haible  <bruno@clisp.org>
20214
20215         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
20216         * doc/posix-functions/strncasecmp.texi: Likewise.
20217
20218 2010-01-07  Bruno Haible  <bruno@clisp.org>
20219
20220         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
20221
20222 2010-01-07  John W. Eaton  <jwe@octave.org>
20223
20224         wctype: allow C++ use
20225         * lib/wctype.in.h: Add extern "C" block for C++.
20226
20227 2010-01-06  Eric Blake  <ebb9@byu.net>
20228
20229         maint.mk: detect incorrect GFDL usage
20230         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
20231
20232 2010-01-06  Jim Meyering  <meyering@redhat.com>
20233         and Eric Blake  <ebb9@byu.net>
20234
20235         maint.mk: ignore multi-line copyright in NEWS
20236         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
20237
20238 2010-01-06  Eric Blake  <ebb9@byu.net>
20239
20240         select: add missing dependency
20241         * modules/select-tests (Depends-on): Move sockets dependency...
20242         * modules/select (Depends-on): ...here.
20243         Reported by Ian Beckwith.
20244
20245         doc: regenerate INSTALL
20246         * doc/INSTALL: Reflect recent autoconf update.
20247         * doc/INSTALL.ISO: Likewise.
20248         * doc/INSTALL.UTF-8: Likewise.
20249
20250         pread: fix compilation on glibc
20251         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
20252         Reported by Ralf Wildenhues.
20253
20254         dirent: fix test failure
20255         * lib/dirent.in.h (includes): Guarantee ino_t.
20256         Reported by Ralf Wildenhues.
20257
20258 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
20259
20260         linkat, renameat: avoid bad free
20261         * lib/at-func2.c (at_func2): Fix typo.
20262         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
20263
20264 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20265
20266         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
20267         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
20268         to avoid failure of symlink test later.
20269
20270 2010-01-06  Eric Blake  <ebb9@byu.net>
20271
20272         stdio, unistd: guarantee ssize_t
20273         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20274         2008 are exposed when needed.
20275         * lib/stdio.in.h (includes): Likewise.
20276         Reported by Ralf Wildenhues.
20277
20278 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20279
20280         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20281         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20282         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20283
20284 2010-01-06  Jim Meyering  <meyering@redhat.com>
20285
20286         readtokens: this module *does* require xalloc.h
20287         It uses only functions that were omitted by the old syntax-check rule.
20288         * lib/readtokens.c: Include "xalloc.h" once again.
20289         * modules/readtokens (Depends-on): Add xalloc.
20290         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20291
20292 2010-01-05  Eric Blake  <ebb9@byu.net>
20293
20294         maint: support 'make announcement' from a VPATH build
20295         * top/maint.mk (announcement): Look for correct NEWS file.
20296
20297 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20298
20299         utimens (fdutimens): ignore a negative FD, per contract
20300         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20301         when we have a valid file descriptor.  Otherwise, using a brand
20302         new glibc (with just-patched futimens that now fails with EBADF)
20303         would cause this function to fail with ENOSYS.
20304         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20305         See also http://bugzilla.redhat.com/552320.
20306
20307 2010-01-05  Eric Blake  <ebb9@byu.net>
20308
20309         strcase: document what it provides
20310         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
20311         gnulib module.
20312         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
20313         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20314
20315 2010-01-05  Jim Meyering  <meyering@redhat.com>
20316
20317         maint: remove useless inclusions of "xalloc.h"
20318         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
20319         * lib/readtokens.c: Likewise.
20320         * lib/same.c: Likewise.
20321         * modules/getloadavg (Depends-on): Remove xalloc.
20322         * modules/readtokens: Likewise.
20323         * modules/same: Likewise.
20324
20325         maint.mk: include 4 more function names in alloca.h-checking regexp
20326         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
20327         regexp.  Before, we would give a false-positive (saying alloca.h
20328         is included unnecessarily) when the only uses involved omitted symbols.
20329
20330         xalloc.h: use consistent formatting
20331         * lib/xalloc.h: Move declarations to start in the first column.
20332
20333 2010-01-05  Eric Blake  <ebb9@byu.net>
20334
20335         mkdir: avoid xalloc
20336         * lib/mkdir.c (includes): Drop unused header.
20337         Reported by John W. Eaton.
20338
20339 2010-01-04  Jim Meyering  <meyering@redhat.com>
20340
20341         nl_langinfo: avoid configure-time syntax error
20342         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
20343         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
20344         the empty string.  Don't let that provoke a shell syntax error.
20345
20346         regcomp, regexec, fnmatch: avoid array bounds read error
20347         * lib/regcomp.c (build_equiv_class): From glibc:
20348         Use only the low 24 bits of a findidx return value as an index
20349         into the weights array.  Patch by Ulrich Drepper:
20350         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
20351         * lib/regexec.c (check_node_accept_bytes): Likewise.
20352         * lib/fnmatch_loop.c (FCT): Likewise.
20353
20354         regcomp: skip collseq lookup when there are no rules
20355         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
20356         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
20357
20358         regcomp: recognize ill-formed { } expressions
20359         * lib/regcomp.c (parse_dup_op): From glibc:
20360         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
20361
20362         regcomp: fix typo in comment
20363         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
20364         s/satisfy/satisfies/.
20365
20366         regcomp: sync from glibc: remove dead store
20367         * lib/regcomp.c (duplicate_node_closure): Remove useless
20368         search_duplicated_node call and dead store.
20369
20370         regcomp: sync from glibc; always use nl_langinfo
20371         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
20372         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
20373         * modules/regex (Depends-on): Add nl_langinfo.
20374
20375 2010-01-04  Eric Blake  <ebb9@byu.net>
20376
20377         fdopendir: fix configure test
20378         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20379
20380 2010-01-01  Bruno Haible  <bruno@clisp.org>
20381
20382         wchar: Remove unused configure check.
20383         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20384
20385 2010-01-01  Eric Blake  <ebb9@byu.net>
20386
20387         headers: make check of system header explicit
20388         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20389         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20390         ourselves.
20391         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20393         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20394         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20395         internals.
20396         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20397         missing.
20398         Suggested by Bruno Haible.
20399
20400 2010-01-01  Jim Meyering  <meyering@redhat.com>
20401
20402         ChangeLog: tweak to eliminate unnecessary copyright line
20403         * ChangeLog: Remove a copyright line that was mistakenly updated
20404         by today's update-copyright run.  Reported by Eric Blake.
20405
20406         test-update-copyright: don't let envvar setting cause test failure
20407         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20408
20409 2010-01-01  Bruno Haible  <bruno@clisp.org>
20410
20411         localename: Avoid gcc warning.
20412         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20413         function if it is not used.
20414
20415 2010-01-01  Jim Meyering  <meyering@redhat.com>
20416
20417         update nearly all FSF copyright year lists to include 2010
20418         Use the same procedure as for 2009, outlined in
20419         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20420
20421         version-etc: set COPYRIGHT_YEAR to 2010
20422         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20423
20424 2009-12-31  Eric Blake  <ebb9@byu.net>
20425
20426         doc: correct availability of cygwin 1.5.x getopt
20427         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20428         variables.
20429         * doc/posix-functions/opterr.texi (opterr): Likewise.
20430         * doc/posix-functions/optind.texi (optind): Likewise.
20431         * doc/posix-functions/optopt.texi (optopt): Likewise.
20432         * doc/posix-functions/tzname.texi (tzname): Likewise.
20433
20434         openat: update maintainer
20435         * modules/openat (Maintainer): Add myself.
20436
20437         utimens: avoid shadowing warning
20438         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20439         buffers into one, to avoid shadowing, as well as avoiding a
20440         redundant stat.
20441         Reported by Jim Meyering.
20442
20443         test-dup2: avoid compiler warning
20444         * tests/test-dup2.c (is_inheritable): Only define if used.
20445
20446 2010-01-01  Bruno Haible  <bruno@clisp.org>
20447
20448         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20449         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20450         defined, use wctomb instead of wcrtomb.
20451
20452 2010-01-01  Bruno Haible  <bruno@clisp.org>
20453
20454         iconv: Reject native Solaris iconv.
20455         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20456         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20457
20458 2009-12-31  Bruno Haible  <bruno@clisp.org>
20459
20460         * tests/test-signal.c (main): Remove test of 'SIG'.
20461
20462 2009-12-31  Bruno Haible  <bruno@clisp.org>
20463
20464         spawn: Fix incomplete fix.
20465         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20466         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20467         warnings for GNULIB_POSIXCHECK again.
20468         Reported by Eric Blake.
20469
20470 2009-12-31  Bruno Haible  <bruno@clisp.org>
20471
20472         Avoid namespace pollution on glibc systems.
20473         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20474         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20475         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20476         glibc systems.
20477
20478 2009-12-31  Bruno Haible  <bruno@clisp.org>
20479
20480         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20481         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20482         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20483         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20484         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20485         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20486         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20487
20488 2009-12-31  Bruno Haible  <bruno@clisp.org>
20489
20490         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20491         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20492         afterwards.
20493
20494 2009-12-31  Bruno Haible  <bruno@clisp.org>
20495
20496         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20497         SYS_UTSNAME_H.
20498
20499 2009-12-31  Bruno Haible  <bruno@clisp.org>
20500
20501         spawn: Fix misapplied patch.
20502         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20503         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20504         warnings for GNULIB_POSIXCHECK.
20505
20506 2009-12-31  Bruno Haible  <bruno@clisp.org>
20507
20508         times: Update after sys_times changed.
20509         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20510         * modules/times (Files): Add it.
20511         (configure.ac): Invoke gl_FUNC_TIMES.
20512
20513 2009-12-31  Bruno Haible  <bruno@clisp.org>
20514
20515         Use AC_C_INLINE where necessary.
20516         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20517         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20518         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20519         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20520         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20521         * m4/mbiter.m4 (gl_MBITER): Likewise.
20522         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20523         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20524         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20525         * modules/u64 (configure.ac): Likewise.
20526
20527 2009-12-31  Bruno Haible  <bruno@clisp.org>
20528
20529         Use AC_C_INLINE instead of module 'inline' where possible.
20530         * modules/inline (Description): Clarify purpose.
20531         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20532         * modules/count-one-bits (Depends-on): Remove inline.
20533         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20534         * modules/openat (Depends-on): Remove inline.
20535         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20536         instead of depending on module 'inline'.
20537         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20538         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20539         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20540         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20541         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20542         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20543         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20544         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20545         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20546         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20547         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20548         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20549         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20550         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20551         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20552         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20553         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20554         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20555         Likewise.
20556         * modules/unictype/property-ascii-hex-digit (Depends-on,
20557         configure.ac): Likewise.
20558         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20559         configure.ac): Likewise.
20560         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20561         configure.ac): Likewise.
20562         * modules/unictype/property-bidi-block-separator (Depends-on,
20563         configure.ac): Likewise.
20564         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20565         configure.ac): Likewise.
20566         * modules/unictype/property-bidi-common-separator (Depends-on,
20567         configure.ac): Likewise.
20568         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20569         Likewise.
20570         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20571         configure.ac): Likewise.
20572         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20573         configure.ac): Likewise.
20574         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20575         configure.ac): Likewise.
20576         * modules/unictype/property-bidi-european-digit (Depends-on,
20577         configure.ac): Likewise.
20578         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20579         configure.ac): Likewise.
20580         * modules/unictype/property-bidi-left-to-right (Depends-on,
20581         configure.ac): Likewise.
20582         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20583         configure.ac): Likewise.
20584         * modules/unictype/property-bidi-other-neutral (Depends-on,
20585         configure.ac): Likewise.
20586         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20587         Likewise.
20588         * modules/unictype/property-bidi-segment-separator (Depends-on,
20589         configure.ac): Likewise.
20590         * modules/unictype/property-bidi-whitespace (Depends-on,
20591         configure.ac): Likewise.
20592         * modules/unictype/property-combining (Depends-on, configure.ac):
20593         Likewise.
20594         * modules/unictype/property-composite (Depends-on, configure.ac):
20595         Likewise.
20596         * modules/unictype/property-currency-symbol (Depends-on,
20597         configure.ac): Likewise.
20598         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20599         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20600         Likewise.
20601         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20602         configure.ac): Likewise.
20603         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20604         Likewise.
20605         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20606         Likewise.
20607         * modules/unictype/property-extender (Depends-on, configure.ac):
20608         Likewise.
20609         * modules/unictype/property-format-control (Depends-on, configure.ac):
20610         Likewise.
20611         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20612         Likewise.
20613         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20614         Likewise.
20615         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20616         Likewise.
20617         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20618         Likewise.
20619         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20620         Likewise.
20621         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20622         Likewise.
20623         * modules/unictype/property-id-start (Depends-on, configure.ac):
20624         Likewise.
20625         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20626         Likewise.
20627         * modules/unictype/property-ids-binary-operator (Depends-on,
20628         configure.ac): Likewise.
20629         * modules/unictype/property-ids-trinary-operator (Depends-on,
20630         configure.ac): Likewise.
20631         * modules/unictype/property-ignorable-control (Depends-on,
20632         configure.ac): Likewise.
20633         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20634         Likewise.
20635         * modules/unictype/property-join-control (Depends-on, configure.ac):
20636         Likewise.
20637         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20638         Likewise.
20639         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20640         Likewise.
20641         * modules/unictype/property-logical-order-exception (Depends-on,
20642         configure.ac): Likewise.
20643         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20644         Likewise.
20645         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20646         * modules/unictype/property-non-break (Depends-on, configure.ac):
20647         Likewise.
20648         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20649         Likewise.
20650         * modules/unictype/property-numeric (Depends-on, configure.ac):
20651         Likewise.
20652         * modules/unictype/property-other-alphabetic (Depends-on,
20653         configure.ac): Likewise.
20654         * modules/unictype/property-other-default-ignorable-code-point
20655         (Depends-on, configure.ac): Likewise.
20656         * modules/unictype/property-other-grapheme-extend (Depends-on,
20657         configure.ac): Likewise.
20658         * modules/unictype/property-other-id-continue (Depends-on,
20659         configure.ac): Likewise.
20660         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20661         Likewise.
20662         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20663         Likewise.
20664         * modules/unictype/property-other-math (Depends-on, configure.ac):
20665         Likewise.
20666         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20667         Likewise.
20668         * modules/unictype/property-paired-punctuation (Depends-on,
20669         configure.ac): Likewise.
20670         * modules/unictype/property-paragraph-separator (Depends-on,
20671         configure.ac): Likewise.
20672         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20673         Likewise.
20674         * modules/unictype/property-pattern-white-space (Depends-on,
20675         configure.ac): Likewise.
20676         * modules/unictype/property-private-use (Depends-on, configure.ac):
20677         Likewise.
20678         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20679         Likewise.
20680         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20681         Likewise.
20682         * modules/unictype/property-radical (Depends-on, configure.ac):
20683         Likewise.
20684         * modules/unictype/property-sentence-terminal (Depends-on,
20685         configure.ac): Likewise.
20686         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20687         Likewise.
20688         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20689         * modules/unictype/property-terminal-punctuation (Depends-on,
20690         configure.ac): Likewise.
20691         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20692         Likewise.
20693         * modules/unictype/property-unassigned-code-value (Depends-on,
20694         configure.ac): Likewise.
20695         * modules/unictype/property-unified-ideograph (Depends-on,
20696         configure.ac): Likewise.
20697         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20698         Likewise.
20699         * modules/unictype/property-variation-selector (Depends-on,
20700         configure.ac): Likewise.
20701         * modules/unictype/property-white-space (Depends-on, configure.ac):
20702         Likewise.
20703         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20704         Likewise.
20705         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20706         Likewise.
20707         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20708         Likewise.
20709         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20710         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20711         Likewise.
20712
20713 2009-12-31  Bruno Haible  <bruno@clisp.org>
20714
20715         Remove unnecessary AC_C_INLINE invocation.
20716         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20717         since 2009-08-21.
20718
20719 2009-12-31  Jim Meyering  <meyering@redhat.com>
20720
20721         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20722         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20723         With this change, we can all remove the gpg_key_ID = ... definition
20724         from our respective cfg.mk files.
20725
20726         maint.mk: create announcement template in ~/, not in /tmp
20727         * top/maint.mk (emit_upload_commands): Adjust.
20728         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20729         Remove temporary file, .ci-msg.
20730
20731 2009-12-31  Eric Blake  <ebb9@byu.net>
20732
20733         link-warning: always build headers with link warnings
20734         * modules/arpa_inet (Makefile.am): Always build replacement
20735         header.
20736         * modules/ctype (Makefile.am): Likewise.
20737         * modules/dirent (Makefile.am): Likewise.
20738         * modules/inttypes (Makefile.am): Likewise.
20739         * modules/langinfo (Makefile.am): Likewise.
20740         * modules/locale (Makefile.am): Likewise.
20741         * modules/spawn (Makefile.am): Likewise.
20742         * modules/sys_file (Makefile.am): Likewise.
20743         * modules/sys_ioctl (Makefile.am): Likewise.
20744         * modules/sys_select (Makefile.am): Likewise.
20745         * modules/sys_socket (Makefile.am): Likewise.
20746         * modules/sys_times (Makefile.am): Likewise.
20747         * modules/sys_utsname (Makefile.am): Likewise.
20748         * modules/sys_wait (Makefile.am): Likewise.
20749         * modules/wchar (Makefile.am): Likewise.
20750         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20751         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20752         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20753         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20754         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20755         Likewise.
20756         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20757         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20758         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20759         Likewise.
20760         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20761         Likewise.
20762         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20763         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20764         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20765         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20766         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20767         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20768         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20769         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20770         (gl_WCHAR_H_DEFAULTS): Likewise.
20771
20772 2009-12-31  Eric Blake  <ebb9@byu.net>
20773
20774         signal, spawn: use link warnings
20775         * lib/signal.in.h (sigset_t): Make unconditional.
20776         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20777         (sigpending, sigprocmask, sigaction): Add link warnings.
20778         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20779         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20780         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20781         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20782         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20783         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20784         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20785         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20786         (posix_spawn_file_actions_destroy)
20787         (posix_spawn_file_actions_addopen)
20788         (posix_spawn_file_actions_addclose)
20789         (posix_spawn_file_actions_adddup2): Likewise.
20790         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20791         * tests/test-signal.c (main): Enhance test.
20792
20793         spawn: improve wrapper support
20794         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20795         (gl_SPAWN_H_DEFAULTS): New defaults.
20796         * modules/spawn (Makefile.am): Substitute them.
20797         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20798         Only declare if missing or broken.
20799
20800         sys_times, sys_utsname: use include_next
20801         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20802         header.
20803         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20804         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20805         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20806         * modules/sys_times (Depends-on): Add include_next.
20807         (Makefile.am): Substitute additional values.
20808         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20809         * lib/sys_times.in.h (includes): Include native header, if
20810         available.
20811         * lib/sys_utsname.in.h (includes): Likewise.
20812         * tests/test-sys_times.c (main): Enhance test.
20813
20814         fdutimensat: revert prior patch
20815         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20816         utimens.h.
20817         Reported by Bruno Haible.
20818
20819 2009-12-30  Eric Blake  <ebb9@byu.net>
20820
20821         sys_wait: drop link-warning dependency
20822         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20823         link-warning efforts.
20824         * lib/sys_wait.in.h: Likewise.
20825
20826         fdutimensat: remove bogus dependency
20827         * modules/fdutimensat (Depends-on): Drop inline.
20828
20829         unistd: fix typo
20830         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20831
20832 2009-12-30  Bruno Haible  <bruno@clisp.org>
20833
20834         Fix compilation error with Solaris cc.
20835         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20836         * lib/unicase/u16-is-invariant.c: Likewise.
20837         * lib/unicase/u32-is-invariant.c: Likewise.
20838         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20839
20840 2009-12-30  Bruno Haible  <bruno@clisp.org>
20841
20842         Fix test crash.
20843         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20844         locales.
20845         Reported by Simon Josefsson <simon@josefsson.org>.
20846
20847 2009-12-30  Bruno Haible  <bruno@clisp.org>
20848
20849         Fix compilation error on most platforms.
20850         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20851         Reported by Simon Josefsson <simon@josefsson.org>
20852         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20853
20854 2009-12-30  Eric Blake  <ebb9@byu.net>
20855
20856         futimens, utimensat: work around ntfs-3g bug
20857         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20858         a ctime bug is present, and expand workaround to cover ntfs-3g.
20859         * lib/utimens.c (fdutimens, lutimens): Likewise.
20860         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20861         (validate_timespec): Adjust return value.
20862         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20863         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20864         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20865
20866 2009-12-29  Eric Blake  <ebb9@byu.net>
20867
20868         link-warning: make usage consistent
20869         * modules/ctype (Depends-on): Add link-warning.
20870         (Makefile.am): Update rules accordingly.
20871         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20872         * modules/locale (Depends-on, Makefile.am): Likewise.
20873         * modules/sys_file (Makefile.am): Likewise.
20874         * modules/getopt-posix (Makefile.am): Delete unused link warning
20875         efforts.
20876         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20877         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20878         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20879         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20880
20881         stdio: remove unused variables
20882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20883         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20884         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20885
20886         tests: test more substitute headers
20887         * modules/ctype-tests: New file.
20888         * modules/dirent-tests: Likewise.
20889         * modules/spawn-tests: Likewise.
20890         * modules/sys_file-tests: Likewise.
20891         * modules/sys_ioctl-tests: Likewise.
20892         * modules/sys_wait-tests: Likewise.
20893         * tests/test-ctype.c: Likewise.
20894         * tests/test-dirent.c: Likewise.
20895         * tests/test-spawn.c: Likewise.
20896         * tests/test-sys_file.c: Likewise.
20897         * tests/test-sys_ioctl.c: Likewise.
20898         * tests/test-sys_wait.c: Likewise.
20899         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20900         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20901         whether or not flock is in use.
20902
20903         tests: remove License section from module
20904         * modules/arpa_inet-tests: Remove unneeded section.
20905         * modules/byteswap-tests: Likewise.
20906         * modules/ceilf-tests: Likewise.
20907         * modules/ceill-tests: Likewise.
20908         * modules/crypto/des-tests: Likewise.
20909         * modules/crypto/gc-arcfour-tests: Likewise.
20910         * modules/crypto/gc-arctwo-tests: Likewise.
20911         * modules/crypto/gc-des-tests: Likewise.
20912         * modules/crypto/gc-hmac-md5-tests: Likewise.
20913         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20914         * modules/crypto/gc-md2-tests: Likewise.
20915         * modules/crypto/gc-md4-tests: Likewise.
20916         * modules/crypto/gc-md5-tests: Likewise.
20917         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20918         * modules/crypto/gc-rijndael-tests: Likewise.
20919         * modules/crypto/gc-sha1-tests: Likewise.
20920         * modules/crypto/gc-tests: Likewise.
20921         * modules/crypto/md2-tests: Likewise.
20922         * modules/crypto/md4-tests: Likewise.
20923         * modules/fcntl-h-tests: Likewise.
20924         * modules/floorf-tests: Likewise.
20925         * modules/floorl-tests: Likewise.
20926         * modules/frexp-nolibm-tests: Likewise.
20927         * modules/frexp-tests: Likewise.
20928         * modules/frexpl-nolibm-tests: Likewise.
20929         * modules/frexpl-tests: Likewise.
20930         * modules/getaddrinfo-tests: Likewise.
20931         * modules/inttypes-tests: Likewise.
20932         * modules/isfinite-tests: Likewise.
20933         * modules/isinf-tests: Likewise.
20934         * modules/ldexpl-tests: Likewise.
20935         * modules/locale-tests: Likewise.
20936         * modules/math-tests: Likewise.
20937         * modules/netdb-tests: Likewise.
20938         * modules/netinet_in-tests: Likewise.
20939         * modules/printf-frexp-tests: Likewise.
20940         * modules/printf-frexpl-tests: Likewise.
20941         * modules/priv-set-tests: Likewise.
20942         * modules/random_r-tests: Likewise.
20943         * modules/round-tests: Likewise.
20944         * modules/roundf-tests: Likewise.
20945         * modules/roundl-tests: Likewise.
20946         * modules/search-tests: Likewise.
20947         * modules/select-tests: Likewise.
20948         * modules/signal-tests: Likewise.
20949         * modules/stdbool-tests: Likewise.
20950         * modules/stddef-tests: Likewise.
20951         * modules/stdint-tests: Likewise.
20952         * modules/stdio-tests: Likewise.
20953         * modules/stdlib-tests: Likewise.
20954         * modules/string-tests: Likewise.
20955         * modules/strings-tests: Likewise.
20956         * modules/sys_select-tests: Likewise.
20957         * modules/sys_socket-tests: Likewise.
20958         * modules/sys_stat-tests: Likewise.
20959         * modules/sys_time-tests: Likewise.
20960         * modules/sys_utsname-tests: Likewise.
20961         * modules/sysexits-tests: Likewise.
20962         * modules/time-tests: Likewise.
20963         * modules/trunc-tests: Likewise.
20964         * modules/truncf-tests: Likewise.
20965         * modules/truncl-tests: Likewise.
20966         * modules/tsearch-tests: Likewise.
20967         * modules/unistd-tests: Likewise.
20968         * modules/wchar-tests: Likewise.
20969         * modules/wctype-tests: Likewise.
20970
20971         tests: fix license on several tests
20972         * tests/test-des.c: Update to GPLv3+.
20973         * tests/test-flock.c: Likewise.
20974         * tests/test-fsync.c: Likewise.
20975         * tests/test-futimens.h: Likewise.
20976         * tests/test-gc-arcfour.c: Likewise.
20977         * tests/test-gc-arctwo.c: Likewise.
20978         * tests/test-gc-des.c: Likewise.
20979         * tests/test-gc-hmac-md5.c: Likewise.
20980         * tests/test-gc-hmac-sha1.c: Likewise.
20981         * tests/test-gc-md2.c: Likewise.
20982         * tests/test-gc-md4.c: Likewise.
20983         * tests/test-gc-md5.c: Likewise.
20984         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20985         * tests/test-gc-rijndael.c: Likewise.
20986         * tests/test-gc-sha1.c: Likewise.
20987         * tests/test-gc.c: Likewise.
20988         * tests/test-getcwd.c: Likewise.
20989         * tests/test-link.c: Likewise.
20990         * tests/test-link.h: Likewise.
20991         * tests/test-lutimens.h: Likewise.
20992         * tests/test-md2.c: Likewise.
20993         * tests/test-md4.c: Likewise.
20994         * tests/test-mkdir.h: Likewise.
20995         * tests/test-rename.c: Likewise.
20996         * tests/test-rename.h: Likewise.
20997         * tests/test-safe-alloc.c: Likewise.
20998         * tests/test-utimens-common.h: Likewise.
20999         * tests/test-utimens.h: Likewise.
21000
21001         maint: sync license texts
21002         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21003         * doc/gpl-3.0.texi: Revert copyright year update.
21004         * doc/lgpl-3.0.texi: Likewise.
21005
21006 2009-12-29  Jim Meyering  <meyering@redhat.com>
21007
21008         update nearly all FSF copyright year lists to include 2009
21009         The files named by the following are exempted:
21010             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21011               test -f "$dst" && { echo "$dst"; continue; }
21012               test -d "$dst" || continue
21013               echo "$dst"/$(basename "$src")
21014             done > exempt
21015             git ls-files tests/unictype >> exempt
21016         In the remaining files, convert to all-interval notation if
21017         - there is already at least one year interval like 2000-2003
21018         - the file is maintained by me
21019         - the file is in lib/uni*/, where that style already prevails
21020         Otherwise, use update-copyright's default.
21021
21022 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21023         and Eric Blake  <ebb9@byu.net>
21024
21025         tests: don't require debug system() to pass
21026         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21027         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21028         * tests/test-unlink.h (test_unlink_func): Likewise.
21029         * tests/test-fstatat.c (main): ...into callers.
21030         * tests/test-lstat.c (main): Likewise.
21031         * tests/test-rmdir.c (main): Likewise.
21032         * tests/test-unlink.c (main): Likewise.
21033         * tests/test-unlinkat.c (main): Likewise.
21034         * tests/test-areadlink-with-size.c (main): Don't require a
21035         debug-only system call to pass, aiding cross-testing to mingw.
21036         * tests/test-areadlink.c (main): Likewise.
21037         * tests/test-areadlinkat-with-size.c (main): Likewise.
21038         * tests/test-areadlinkat.c (main): Likewise.
21039         * tests/test-canonicalize-lgpl.c (main): Likewise.
21040         * tests/test-canonicalize.c (main): Likewise.
21041         * tests/test-chown.c (main): Likewise.
21042         * tests/test-fchownat.c (main): Likewise.
21043         * tests/test-lchown.c (main): Likewise.
21044         * tests/test-fdutimensat.c (main): Likewise.
21045         * tests/test-futimens.c (main): Likewise.
21046         * tests/test-link.c (main): Likewise.
21047         * tests/test-linkat.c (main): Likewise.
21048         * tests/test-mkdir.c (main): Likewise.
21049         * tests/test-mkdirat.c (main): Likewise.
21050         * tests/test-mkfifo.c (main): Likewise.
21051         * tests/test-mkfifoat.c (main): Likewise.
21052         * tests/test-mknod.c (main): Likewise.
21053         * tests/test-readlink.c (main): Likewise.
21054         * tests/test-remove.c (main): Likewise.
21055         * tests/test-rename.c (main): Likewise.
21056         * tests/test-renameat.c (main): Likewise.
21057         * tests/test-symlink.c (main): Likewise.
21058         * tests/test-symlinkat.c (main): Likewise.
21059         * tests/test-utimens.c (main): Likewise.
21060         * tests/test-utimensat.c (main): Likewise.
21061
21062 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21063
21064         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21065         on $(UNUSED_PARAMETER_H) to avoid build failure.
21066
21067 2009-12-28  Jim Meyering  <meyering@redhat.com>
21068
21069         update-copyright: you may specify a max. line length other than 72
21070         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21071
21072         maint: use consistent FSF copyright line syntax
21073         * lib/posixtm.c: Add missing comma in FSF copyright line.
21074         * lib/posixtm.h: Likewise.
21075         * lib/getugroups.c: Add missing ", Inc.".
21076
21077         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21078         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21079         FSF copyright line.  Remove trailing blanks.
21080
21081 2009-12-28  Eric Blake  <ebb9@byu.net>
21082
21083         test-dup2: reduce dependencies
21084         * modules/cloexec (Configure.ac): Set witness.
21085         * modules/dup2-tests (Depends-on): Drop cloexec.
21086         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21087         not present.
21088         Suggested by Bruno Haible.
21089
21090 2009-12-26  Bruno Haible  <bruno@clisp.org>
21091
21092         Remove an unneeded dependency.
21093         * modules/fseterr (Depends-on): Remove dup2.
21094
21095 2009-12-26  Eric Blake  <ebb9@byu.net>
21096
21097         tests: use macros.h in more places
21098         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21099         (ASSERT_STREAM): Provide default of stderr.
21100         * tests/test-dirent-safer.c: Include macros.h, using alternate
21101         stream for assertions.
21102         * tests/test-dup-safer.c: Likewise.
21103         * tests/test-freopen-safer.c: Likewise.
21104         * tests/test-getopt.c: Likewise.
21105         * tests/test-openat-safer.c: Likewise.
21106         * tests/test-pipe.c: Likewise.
21107         * tests/test-popen-safer.c: Likewise.
21108         * modules/dirent-safer-tests (Files): Include macros.h.
21109         * modules/unistd-safer-tests (Files): Likewise.
21110         * modules/freopen-safer-tests (Files): Likewise.
21111         * modules/getopt-posix-tests (Files): Likewise.
21112         * modules/openat-safer-tests (Files): Likewise.
21113         * modules/pipe-tests (Files): Likewise.
21114
21115 2009-12-26  Bruno Haible  <bruno@clisp.org>
21116
21117         javacomp: Portability fix.
21118         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21119         that it also works on Solaris.
21120
21121 2009-12-26  Bruno Haible  <bruno@clisp.org>
21122
21123         localename: Fix storage allocation of gl_locale_name_thread's result.
21124         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21125         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21126         all platforms that have 'uselocale'.
21127         (gl_locale_name_thread_unsafe): New function, extracted from
21128         gl_locale_name_thread.
21129         (gl_locale_name_thread): Call struniq on all platforms that have
21130         'uselocale'.
21131         * tests/test-localename.c (test_locale_name_thread): Check that the
21132         resulting strings are permanently allocated.
21133         * modules/localename-tests (Depends-on): Add strdup.
21134
21135 2009-12-26  Bruno Haible  <bruno@clisp.org>
21136
21137         * tests/test-localename.c (categories): Fill in the strings.
21138
21139 2009-12-26  Jim Meyering  <meyering@redhat.com>
21140
21141         isdir: complete the removal of m4/isdir.m4
21142         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21143
21144         isdir: clean up, since at least grep still uses it
21145         * lib/isdir.c: Include "isdir.h".
21146         (S_ISDIR): Remove now-unneeded definition.
21147         * modules/isdir (Files): Add lib/isdir.h.
21148         * lib/isdir.h: New file, with declaration.
21149         * m4/isdir.m4: Remove file -- unneeded.
21150
21151 2009-12-25  Bruno Haible  <bruno@clisp.org>
21152
21153         selinux-h: Make generated .h files standalone.
21154         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21155         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21156         * lib/se-selinux.in.h: Likewise.
21157         * modules/selinux-h (Depends-on): Add unused-parameter.
21158         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21159         selinux/selinux.h and selinux/context.h.
21160         Suggested by Eric Blake.
21161
21162 2009-12-25  Bruno Haible  <bruno@clisp.org>
21163
21164         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21165         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21166         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21167         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21168         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21169
21170 2009-12-24  Bruno Haible  <bruno@clisp.org>
21171
21172         openat: Fix warning.
21173         * lib/openat-proc.c: Include <unistd.h>.
21174
21175 2009-12-24  Bruno Haible  <bruno@clisp.org>
21176
21177         New module 'unused-parameter'.
21178         * build-aux/unused-parameter.h: New file, extracted from earlier
21179         gnulib-common.m4.
21180         * modules/unused-parameter: New file.
21181         * lib/unistr.h: Include unused-parameter.h.
21182         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21183         _GL_UNUSED.
21184         * modules/unistr/base (Depends-on): Add unused-parameter.
21185
21186 2009-12-24  Bruno Haible  <bruno@clisp.org>
21187
21188         Add missing dependencies to 'extensions' module.
21189         * m4/extensions.m4: Add comment.
21190         * modules/accept4 (Depends-on): Add extensions.
21191         * modules/dup3 (Depends-on): Likewise.
21192         * modules/fcntl (Depends-on): Likewise.
21193         * modules/futimens (Depends-on): Likewise.
21194         * modules/mknod (Depends-on): Likewise.
21195         * modules/pipe2 (Depends-on): Likewise.
21196         * modules/stat-time (Depends-on): Likewise.
21197         * modules/strcasestr-simple (Depends-on): Likewise.
21198         * modules/strsignal (Depends-on): Likewise.
21199         * modules/utimensat (Depends-on): Likewise.
21200         * modules/localcharset (Depends-on): Likewise. Needed because of
21201         gl_FCNTL_O_FLAGS.
21202         * modules/wcrtomb (Depends-on): Likewise. Needed because of
21203         AC_TYPE_MBSTATE_T.
21204         * modules/wcsnrtombs (Depends-on): Likewise.
21205         * modules/wcsrtombs (Depends-on): Likewise.
21206
21207 2009-12-24  Bruno Haible  <bruno@clisp.org>
21208
21209         binary-io: Avoid gcc warning due to SET_BINARY.
21210         * lib/binary-io.h (SET_BINARY): Cast the result to void.
21211         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
21212
21213 2009-12-24  Bruno Haible  <bruno@clisp.org>
21214
21215         Avoid future namespace pollution on glibc systems.
21216         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
21217         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
21218         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
21219         glibc systems.
21220
21221 2009-12-24  Bruno Haible  <bruno@clisp.org>
21222
21223         Refactor common macros used in tests.
21224         * tests/macros.h: New file.
21225         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
21226         and/or <stdlib.h>, if appropriate.
21227         (ASSERT, SIZEOF): Remove macros.
21228         * tests/test-areadlink-with-size.c: Likewise.
21229         * tests/test-areadlinkat.c: Likewise.
21230         * tests/test-areadlinkat-with-size.c: Likewise.
21231         * tests/test-argmatch.c: Likewise.
21232         * tests/test-argv-iter.c: Likewise.
21233         * tests/test-array-mergesort.c: Likewise.
21234         * tests/test-array_list.c: Likewise.
21235         * tests/test-array_oset.c: Likewise.
21236         * tests/test-avltree_list.c: Likewise.
21237         * tests/test-avltree_oset.c: Likewise.
21238         * tests/test-avltreehash_list.c: Likewise.
21239         * tests/test-base64.c: Likewise.
21240         * tests/test-binary-io.c: Likewise.
21241         * tests/test-bitrotate.c: Likewise.
21242         * tests/test-btowc.c: Likewise.
21243         * tests/test-byteswap.c: Likewise.
21244         * tests/test-c-ctype.c: Likewise.
21245         * tests/test-c-stack.c: Likewise.
21246         * tests/test-c-strcasecmp.c: Likewise.
21247         * tests/test-c-strcasestr.c: Likewise.
21248         * tests/test-c-strncasecmp.c: Likewise.
21249         * tests/test-c-strstr.c: Likewise.
21250         * tests/test-canonicalize-lgpl.c: Likewise.
21251         * tests/test-canonicalize.c: Likewise.
21252         * tests/test-carray_list.c: Likewise.
21253         * tests/test-ceilf1.c: Likewise.
21254         * tests/test-ceilf2.c: Likewise.
21255         * tests/test-ceill.c: Likewise.
21256         * tests/test-chown.c: Likewise.
21257         * tests/test-cloexec.c: Likewise.
21258         * tests/test-copy-acl.c: Likewise.
21259         * tests/test-copy-file.c: Likewise.
21260         * tests/test-count-one-bits.c: Likewise.
21261         * tests/test-dprintf-posix.c: Likewise.
21262         * tests/test-dup2.c: Likewise.
21263         * tests/test-dup3.c: Likewise.
21264         * tests/test-duplocale.c: Likewise.
21265         * tests/test-fbufmode.c: Likewise.
21266         * tests/test-fchdir.c: Likewise.
21267         * tests/test-fchownat.c: Likewise.
21268         * tests/test-fcntl-safer.c: Likewise.
21269         * tests/test-fcntl.c: Likewise.
21270         * tests/test-fdopendir.c: Likewise.
21271         * tests/test-fdutimensat.c: Likewise.
21272         * tests/test-fflush2.c: Likewise.
21273         * tests/test-file-has-acl.c: Likewise.
21274         * tests/test-filevercmp.c: Likewise.
21275         * tests/test-flock.c: Likewise.
21276         * tests/test-floorf1.c: Likewise.
21277         * tests/test-floorf2.c: Likewise.
21278         * tests/test-floorl.c: Likewise.
21279         * tests/test-fnmatch.c: Likewise.
21280         * tests/test-fopen.h: Likewise.
21281         * tests/test-fpending.c: Likewise.
21282         * tests/test-fprintf-posix.c: Likewise.
21283         * tests/test-fpurge.c: Likewise.
21284         * tests/test-freadable.c: Likewise.
21285         * tests/test-freadahead.c: Likewise.
21286         * tests/test-freading.c: Likewise.
21287         * tests/test-freadptr.c: Likewise.
21288         * tests/test-freadptr2.c: Likewise.
21289         * tests/test-freadseek.c: Likewise.
21290         * tests/test-freopen.c: Likewise.
21291         * tests/test-frexp.c: Likewise.
21292         * tests/test-frexpl.c: Likewise.
21293         * tests/test-fseek.c: Likewise.
21294         * tests/test-fseeko.c: Likewise.
21295         * tests/test-fstatat.c: Likewise.
21296         * tests/test-fstrcmp.c: Likewise.
21297         * tests/test-fsync.c: Likewise.
21298         * tests/test-ftell.c: Likewise.
21299         * tests/test-ftello.c: Likewise.
21300         * tests/test-func.c: Likewise.
21301         * tests/test-futimens.c: Likewise.
21302         * tests/test-fwritable.c: Likewise.
21303         * tests/test-fwriting.c: Likewise.
21304         * tests/test-getcwd.c: Likewise.
21305         * tests/test-getdate.c: Likewise.
21306         * tests/test-getdelim.c: Likewise.
21307         * tests/test-getdtablesize.c: Likewise.
21308         * tests/test-getgroups.c: Likewise.
21309         * tests/test-getline.c: Likewise.
21310         * tests/test-getndelim2.c: Likewise.
21311         * tests/test-glob.c: Likewise.
21312         * tests/test-hash.c: Likewise.
21313         * tests/test-i-ring.c: Likewise.
21314         * tests/test-iconv-utf.c: Likewise.
21315         * tests/test-iconv.c: Likewise.
21316         * tests/test-idpriv-drop.c: Likewise.
21317         * tests/test-idpriv-droptemp.c: Likewise.
21318         * tests/test-inet_ntop.c: Likewise.
21319         * tests/test-inet_pton.c: Likewise.
21320         * tests/test-isblank.c: Likewise.
21321         * tests/test-isfinite.c: Likewise.
21322         * tests/test-isinf.c: Likewise.
21323         * tests/test-isnan.c: Likewise.
21324         * tests/test-isnand.h: Likewise.
21325         * tests/test-isnanf.h: Likewise.
21326         * tests/test-isnanl.h: Likewise.
21327         * tests/test-lchown.c: Likewise.
21328         * tests/test-ldexpl.c: Likewise.
21329         * tests/test-link.c: Likewise.
21330         * tests/test-linkat.c: Likewise.
21331         * tests/test-linked_list.c: Likewise.
21332         * tests/test-linkedhash_list.c: Likewise.
21333         * tests/test-localename.c: Likewise.
21334         * tests/test-lseek.c: Likewise.
21335         * tests/test-lstat.c: Likewise.
21336         * tests/test-mbmemcasecmp.c: Likewise.
21337         * tests/test-mbmemcasecoll.c: Likewise.
21338         * tests/test-mbrtowc.c: Likewise.
21339         * tests/test-mbscasecmp.c: Likewise.
21340         * tests/test-mbscasestr1.c: Likewise.
21341         * tests/test-mbscasestr2.c: Likewise.
21342         * tests/test-mbscasestr3.c: Likewise.
21343         * tests/test-mbscasestr4.c: Likewise.
21344         * tests/test-mbschr.c: Likewise.
21345         * tests/test-mbscspn.c: Likewise.
21346         * tests/test-mbsinit.c: Likewise.
21347         * tests/test-mbsncasecmp.c: Likewise.
21348         * tests/test-mbsnrtowcs.c: Likewise.
21349         * tests/test-mbspbrk.c: Likewise.
21350         * tests/test-mbspcasecmp.c: Likewise.
21351         * tests/test-mbsrchr.c: Likewise.
21352         * tests/test-mbsrtowcs.c: Likewise.
21353         * tests/test-mbsspn.c: Likewise.
21354         * tests/test-mbsstr1.c: Likewise.
21355         * tests/test-mbsstr2.c: Likewise.
21356         * tests/test-mbsstr3.c: Likewise.
21357         * tests/test-memchr.c: Likewise.
21358         * tests/test-memchr2.c: Likewise.
21359         * tests/test-memcmp.c: Likewise.
21360         * tests/test-memmem.c: Likewise.
21361         * tests/test-memrchr.c: Likewise.
21362         * tests/test-mkdir.c: Likewise.
21363         * tests/test-mkdirat.c: Likewise.
21364         * tests/test-mkfifo.c: Likewise.
21365         * tests/test-mkfifoat.c: Likewise.
21366         * tests/test-mknod.c: Likewise.
21367         * tests/test-nanosleep.c: Likewise.
21368         * tests/test-nl_langinfo.c: Likewise.
21369         * tests/test-obstack-printf.c: Likewise.
21370         * tests/test-open.c: Likewise.
21371         * tests/test-openat.c: Likewise.
21372         * tests/test-pipe-filter-gi1.c: Likewise.
21373         * tests/test-pipe-filter-gi2-main.c: Likewise.
21374         * tests/test-pipe-filter-ii1.c: Likewise.
21375         * tests/test-pipe-filter-ii2-main.c: Likewise.
21376         * tests/test-pipe2.c: Likewise.
21377         * tests/test-popen.h: Likewise.
21378         * tests/test-posixtm.c: Likewise.
21379         * tests/test-pread.c: Likewise.
21380         * tests/test-printf-frexp.c: Likewise.
21381         * tests/test-printf-frexpl.c: Likewise.
21382         * tests/test-printf-posix.c: Likewise.
21383         * tests/test-priv-set.c: Likewise.
21384         * tests/test-quotearg.c: Likewise.
21385         * tests/test-random_r.c: Likewise.
21386         * tests/test-rawmemchr.c: Likewise.
21387         * tests/test-rbtree_list.c: Likewise.
21388         * tests/test-rbtree_oset.c: Likewise.
21389         * tests/test-rbtreehash_list.c: Likewise.
21390         * tests/test-readlink.c: Likewise.
21391         * tests/test-remove.c: Likewise.
21392         * tests/test-rename.c: Likewise.
21393         * tests/test-renameat.c: Likewise.
21394         * tests/test-rmdir.c: Likewise.
21395         * tests/test-round1.c: Likewise.
21396         * tests/test-roundf1.c: Likewise.
21397         * tests/test-roundl.c: Likewise.
21398         * tests/test-safe-alloc.c: Likewise.
21399         * tests/test-sameacls.c: Likewise.
21400         * tests/test-set-mode-acl.c: Likewise.
21401         * tests/test-setenv.c: Likewise.
21402         * tests/test-sigaction.c: Likewise.
21403         * tests/test-signbit.c: Likewise.
21404         * tests/test-sleep.c: Likewise.
21405         * tests/test-snprintf-posix.c: Likewise.
21406         * tests/test-snprintf.c: Likewise.
21407         * tests/test-sprintf-posix.c: Likewise.
21408         * tests/test-stat-time.c: Likewise.
21409         * tests/test-stat.c: Likewise.
21410         * tests/test-strcasestr.c: Likewise.
21411         * tests/test-strchrnul.c: Likewise.
21412         * tests/test-strerror.c: Likewise.
21413         * tests/test-striconv.c: Likewise.
21414         * tests/test-striconveh.c: Likewise.
21415         * tests/test-striconveha.c: Likewise.
21416         * tests/test-strsignal.c: Likewise.
21417         * tests/test-strstr.c: Likewise.
21418         * tests/test-strtod.c: Likewise.
21419         * tests/test-strverscmp.c: Likewise.
21420         * tests/test-symlink.c: Likewise.
21421         * tests/test-symlinkat.c: Likewise.
21422         * tests/test-trunc1.c: Likewise.
21423         * tests/test-trunc2.c: Likewise.
21424         * tests/test-truncf1.c: Likewise.
21425         * tests/test-truncf2.c: Likewise.
21426         * tests/test-truncl.c: Likewise.
21427         * tests/test-uname.c: Likewise.
21428         * tests/test-unlink.c: Likewise.
21429         * tests/test-unlinkat.c: Likewise.
21430         * tests/test-unsetenv.c: Likewise.
21431         * tests/test-usleep.c: Likewise.
21432         * tests/test-utimens.c: Likewise.
21433         * tests/test-utimensat.c: Likewise.
21434         * tests/test-vasnprintf-posix.c: Likewise.
21435         * tests/test-vasnprintf-posix2.c: Likewise.
21436         * tests/test-vasnprintf.c: Likewise.
21437         * tests/test-vasprintf-posix.c: Likewise.
21438         * tests/test-vasprintf.c: Likewise.
21439         * tests/test-vdprintf-posix.c: Likewise.
21440         * tests/test-vfprintf-posix.c: Likewise.
21441         * tests/test-vprintf-posix.c: Likewise.
21442         * tests/test-vsnprintf-posix.c: Likewise.
21443         * tests/test-vsnprintf.c: Likewise.
21444         * tests/test-vsprintf-posix.c: Likewise.
21445         * tests/test-wcrtomb.c: Likewise.
21446         * tests/test-wcsnrtombs.c: Likewise.
21447         * tests/test-wcsrtombs.c: Likewise.
21448         * tests/test-wctype.c: Likewise.
21449         * tests/test-wcwidth.c: Likewise.
21450         * tests/test-xfprintf-posix.c: Likewise.
21451         * tests/test-xmemdup0.c: Likewise.
21452         * tests/test-xprintf-posix.c: Likewise.
21453         * tests/test-xvasprintf.c: Likewise.
21454         * tests/unicase/test-locale-language.c: Likewise.
21455         * tests/unicase/test-mapping-part1.h: Likewise.
21456         * tests/unicase/test-predicate-part1.h: Likewise.
21457         * tests/unicase/test-u8-casecmp.c: Likewise.
21458         * tests/unicase/test-u8-casecoll.c: Likewise.
21459         * tests/unicase/test-u8-casefold.c: Likewise.
21460         * tests/unicase/test-u8-is-cased.c: Likewise.
21461         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21462         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21463         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21464         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21465         * tests/unicase/test-u8-tolower.c: Likewise.
21466         * tests/unicase/test-u8-totitle.c: Likewise.
21467         * tests/unicase/test-u8-toupper.c: Likewise.
21468         * tests/unicase/test-u16-casecmp.c: Likewise.
21469         * tests/unicase/test-u16-casecoll.c: Likewise.
21470         * tests/unicase/test-u16-casefold.c: Likewise.
21471         * tests/unicase/test-u16-is-cased.c: Likewise.
21472         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21473         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21474         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21475         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21476         * tests/unicase/test-u16-tolower.c: Likewise.
21477         * tests/unicase/test-u16-totitle.c: Likewise.
21478         * tests/unicase/test-u16-toupper.c: Likewise.
21479         * tests/unicase/test-u32-casecmp.c: Likewise.
21480         * tests/unicase/test-u32-casecoll.c: Likewise.
21481         * tests/unicase/test-u32-casefold.c: Likewise.
21482         * tests/unicase/test-u32-is-cased.c: Likewise.
21483         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21484         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21485         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21486         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21487         * tests/unicase/test-u32-tolower.c: Likewise.
21488         * tests/unicase/test-u32-totitle.c: Likewise.
21489         * tests/unicase/test-u32-toupper.c: Likewise.
21490         * tests/unicase/test-ulc-casecmp.c: Likewise.
21491         * tests/unicase/test-ulc-casecoll.c: Likewise.
21492         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21493         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21494         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21495         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21496         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21497         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21498         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21499         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21500         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21501         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21502         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21503         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21504         * tests/unictype/test-bidi_byname.c: Likewise.
21505         * tests/unictype/test-bidi_name.c: Likewise.
21506         * tests/unictype/test-bidi_of.c: Likewise.
21507         * tests/unictype/test-bidi_test.c: Likewise.
21508         * tests/unictype/test-block_list.c: Likewise.
21509         * tests/unictype/test-block_of.c: Likewise.
21510         * tests/unictype/test-block_test.c: Likewise.
21511         * tests/unictype/test-categ_and.c: Likewise.
21512         * tests/unictype/test-categ_and_not.c: Likewise.
21513         * tests/unictype/test-categ_byname.c: Likewise.
21514         * tests/unictype/test-categ_name.c: Likewise.
21515         * tests/unictype/test-categ_none.c: Likewise.
21516         * tests/unictype/test-categ_of.c: Likewise.
21517         * tests/unictype/test-categ_or.c: Likewise.
21518         * tests/unictype/test-categ_test_withtable.c: Likewise.
21519         * tests/unictype/test-combining.c: Likewise.
21520         * tests/unictype/test-decdigit.c: Likewise.
21521         * tests/unictype/test-digit.c: Likewise.
21522         * tests/unictype/test-mirror.c: Likewise.
21523         * tests/unictype/test-numeric.c: Likewise.
21524         * tests/unictype/test-pr_byname.c: Likewise.
21525         * tests/unictype/test-pr_test.c: Likewise.
21526         * tests/unictype/test-predicate-part1.h: Likewise.
21527         * tests/unictype/test-scripts.c: Likewise.
21528         * tests/unictype/test-sy_c_ident.c: Likewise.
21529         * tests/unictype/test-sy_java_ident.c: Likewise.
21530         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21531         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21532         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21533         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21534         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21535         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21536         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21537         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21538         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21539         * tests/uninorm/test-compat-decomposition.c: Likewise.
21540         * tests/uninorm/test-composition.c: Likewise.
21541         * tests/uninorm/test-decomposing-form.c: Likewise.
21542         * tests/uninorm/test-decomposition.c: Likewise.
21543         * tests/uninorm/test-u8-nfc.c: Likewise.
21544         * tests/uninorm/test-u8-nfd.c: Likewise.
21545         * tests/uninorm/test-u8-nfkc.c: Likewise.
21546         * tests/uninorm/test-u8-nfkd.c: Likewise.
21547         * tests/uninorm/test-u8-normcmp.c: Likewise.
21548         * tests/uninorm/test-u8-normcoll.c: Likewise.
21549         * tests/uninorm/test-u16-nfc.c: Likewise.
21550         * tests/uninorm/test-u16-nfd.c: Likewise.
21551         * tests/uninorm/test-u16-nfkc.c: Likewise.
21552         * tests/uninorm/test-u16-nfkd.c: Likewise.
21553         * tests/uninorm/test-u16-normcmp.c: Likewise.
21554         * tests/uninorm/test-u16-normcoll.c: Likewise.
21555         * tests/uninorm/test-u32-nfc.c: Likewise.
21556         * tests/uninorm/test-u32-nfd.c: Likewise.
21557         * tests/uninorm/test-u32-nfkc.c: Likewise.
21558         * tests/uninorm/test-u32-nfkd.c: Likewise.
21559         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21560         * tests/uninorm/test-u32-normcmp.c: Likewise.
21561         * tests/uninorm/test-u32-normcoll.c: Likewise.
21562         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21563         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21564         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21565         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21566         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21567         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21568         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21569         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21570         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21571         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21572         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21573         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21574         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21575         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21576         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21577         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21578         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21579         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21580         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21581         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21582         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21583         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21584         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21585         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21586         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21587         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21588         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21589         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21590         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21591         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21592         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21593         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21594         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21595         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21596         * tests/uniwidth/test-u8-width.c: Likewise.
21597         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21598         * tests/uniwidth/test-u16-width.c: Likewise.
21599         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21600         * tests/uniwidth/test-u32-width.c: Likewise.
21601         * tests/uniwidth/test-uc_width.c: Likewise.
21602         * tests/uniwidth/test-uc_width2.c: Likewise.
21603         * modules/acl-tests (Files): Add tests/macros.h.
21604         * modules/areadlink-tests (Files): Likewise.
21605         * modules/areadlink-with-size-tests (Files): Likewise.
21606         * modules/areadlinkat-tests (Files): Likewise.
21607         * modules/areadlinkat-with-size-tests (Files): Likewise.
21608         * modules/argmatch-tests (Files): Likewise.
21609         * modules/argv-iter-tests (Files): Likewise.
21610         * modules/array-list-tests (Files): Likewise.
21611         * modules/array-mergesort-tests (Files): Likewise.
21612         * modules/array-oset-tests (Files): Likewise.
21613         * modules/avltree-list-tests (Files): Likewise.
21614         * modules/avltree-oset-tests (Files): Likewise.
21615         * modules/avltreehash-list-tests (Files): Likewise.
21616         * modules/base64-tests (Files): Likewise.
21617         * modules/binary-io-tests (Files): Likewise.
21618         * modules/bitrotate-tests (Files): Likewise.
21619         * modules/btowc-tests (Files): Likewise.
21620         * modules/byteswap-tests (Files): Likewise.
21621         * modules/c-ctype-tests (Files): Likewise.
21622         * modules/c-stack-tests (Files): Likewise.
21623         * modules/c-strcase-tests (Files): Likewise.
21624         * modules/c-strcasestr-tests (Files): Likewise.
21625         * modules/c-strstr-tests (Files): Likewise.
21626         * modules/canonicalize-lgpl-tests (Files): Likewise.
21627         * modules/canonicalize-tests (Files): Likewise.
21628         * modules/carray-list-tests (Files): Likewise.
21629         * modules/ceilf-tests (Files): Likewise.
21630         * modules/ceill-tests (Files): Likewise.
21631         * modules/chown-tests (Files): Likewise.
21632         * modules/cloexec-tests (Files): Likewise.
21633         * modules/copy-file-tests (Files): Likewise.
21634         * modules/count-one-bits-tests (Files): Likewise.
21635         * modules/dprintf-posix-tests (Files): Likewise.
21636         * modules/dup2-tests (Files): Likewise.
21637         * modules/dup3-tests (Files): Likewise.
21638         * modules/duplocale-tests (Files): Likewise.
21639         * modules/fbufmode-tests (Files): Likewise.
21640         * modules/fchdir-tests (Files): Likewise.
21641         * modules/fcntl-safer-tests (Files): Likewise.
21642         * modules/fcntl-tests (Files): Likewise.
21643         * modules/fdopendir-tests (Files): Likewise.
21644         * modules/fdutimensat-tests (Files): Likewise.
21645         * modules/fflush-tests (Files): Likewise.
21646         * modules/filevercmp-tests (Files): Likewise.
21647         * modules/flock-tests (Files): Likewise.
21648         * modules/floorf-tests (Files): Likewise.
21649         * modules/floorl-tests (Files): Likewise.
21650         * modules/fnmatch-tests (Files): Likewise.
21651         * modules/fopen-safer-tests (Files): Likewise.
21652         * modules/fopen-tests (Files): Likewise.
21653         * modules/fpending-tests (Files): Likewise.
21654         * modules/fprintf-posix-tests (Files): Likewise.
21655         * modules/fpurge-tests (Files): Likewise.
21656         * modules/freadable-tests (Files): Likewise.
21657         * modules/freadahead-tests (Files): Likewise.
21658         * modules/freading-tests (Files): Likewise.
21659         * modules/freadptr-tests (Files): Likewise.
21660         * modules/freadseek-tests (Files): Likewise.
21661         * modules/freopen-tests (Files): Likewise.
21662         * modules/frexp-nolibm-tests (Files): Likewise.
21663         * modules/frexp-tests (Files): Likewise.
21664         * modules/frexpl-nolibm-tests (Files): Likewise.
21665         * modules/frexpl-tests (Files): Likewise.
21666         * modules/fseek-tests (Files): Likewise.
21667         * modules/fseeko-tests (Files): Likewise.
21668         * modules/fstrcmp-tests (Files): Likewise.
21669         * modules/fsync-tests (Files): Likewise.
21670         * modules/ftell-tests (Files): Likewise.
21671         * modules/ftello-tests (Files): Likewise.
21672         * modules/func-tests (Files): Likewise.
21673         * modules/futimens-tests (Files): Likewise.
21674         * modules/fwritable-tests (Files): Likewise.
21675         * modules/fwriting-tests (Files): Likewise.
21676         * modules/getcwd-tests (Files): Likewise.
21677         * modules/getdate-tests (Files): Likewise.
21678         * modules/getdelim-tests (Files): Likewise.
21679         * modules/getdtablesize-tests (Files): Likewise.
21680         * modules/getgroups-tests (Files): Likewise.
21681         * modules/getline-tests (Files): Likewise.
21682         * modules/getndelim2-tests (Files): Likewise.
21683         * modules/glob-tests (Files): Likewise.
21684         * modules/hash-tests (Files): Likewise.
21685         * modules/i-ring-tests (Files): Likewise.
21686         * modules/iconv-tests (Files): Likewise.
21687         * modules/iconv_open-utf-tests (Files): Likewise.
21688         * modules/idpriv-drop-tests (Files): Likewise.
21689         * modules/idpriv-droptemp-tests (Files): Likewise.
21690         * modules/inet_ntop-tests (Files): Likewise.
21691         * modules/inet_pton-tests (Files): Likewise.
21692         * modules/isblank-tests (Files): Likewise.
21693         * modules/isfinite-tests (Files): Likewise.
21694         * modules/isinf-tests (Files): Likewise.
21695         * modules/isnan-tests (Files): Likewise.
21696         * modules/isnand-nolibm-tests (Files): Likewise.
21697         * modules/isnand-tests (Files): Likewise.
21698         * modules/isnanf-nolibm-tests (Files): Likewise.
21699         * modules/isnanf-tests (Files): Likewise.
21700         * modules/isnanl-nolibm-tests (Files): Likewise.
21701         * modules/isnanl-tests (Files): Likewise.
21702         * modules/lchown-tests (Files): Likewise.
21703         * modules/ldexpl-tests (Files): Likewise.
21704         * modules/link-tests (Files): Likewise.
21705         * modules/linkat-tests (Files): Likewise.
21706         * modules/linked-list-tests (Files): Likewise.
21707         * modules/linkedhash-list-tests (Files): Likewise.
21708         * modules/localename-tests (Files): Likewise.
21709         * modules/lseek-tests (Files): Likewise.
21710         * modules/lstat-tests (Files): Likewise.
21711         * modules/mbmemcasecmp-tests (Files): Likewise.
21712         * modules/mbmemcasecoll-tests (Files): Likewise.
21713         * modules/mbrtowc-tests (Files): Likewise.
21714         * modules/mbscasecmp-tests (Files): Likewise.
21715         * modules/mbscasestr-tests (Files): Likewise.
21716         * modules/mbschr-tests (Files): Likewise.
21717         * modules/mbscspn-tests (Files): Likewise.
21718         * modules/mbsinit-tests (Files): Likewise.
21719         * modules/mbsncasecmp-tests (Files): Likewise.
21720         * modules/mbsnrtowcs-tests (Files): Likewise.
21721         * modules/mbspbrk-tests (Files): Likewise.
21722         * modules/mbspcasecmp-tests (Files): Likewise.
21723         * modules/mbsrchr-tests (Files): Likewise.
21724         * modules/mbsrtowcs-tests (Files): Likewise.
21725         * modules/mbsspn-tests (Files): Likewise.
21726         * modules/mbsstr-tests (Files): Likewise.
21727         * modules/memchr-tests (Files): Likewise.
21728         * modules/memchr2-tests (Files): Likewise.
21729         * modules/memcmp-tests (Files): Likewise.
21730         * modules/memmem-tests (Files): Likewise.
21731         * modules/memrchr-tests (Files): Likewise.
21732         * modules/mkdir-tests (Files): Likewise.
21733         * modules/mkfifo-tests (Files): Likewise.
21734         * modules/mkfifoat-tests (Files): Likewise.
21735         * modules/mknod-tests (Files): Likewise.
21736         * modules/nanosleep-tests (Files): Likewise.
21737         * modules/nl_langinfo-tests (Files): Likewise.
21738         * modules/obstack-printf-tests (Files): Likewise.
21739         * modules/open-tests (Files): Likewise.
21740         * modules/openat-tests (Files): Likewise.
21741         * modules/pipe-filter-gi-tests (Files): Likewise.
21742         * modules/pipe-filter-ii-tests (Files): Likewise.
21743         * modules/pipe2-tests (Files): Likewise.
21744         * modules/popen-safer-tests (Files): Likewise.
21745         * modules/popen-tests (Files): Likewise.
21746         * modules/posixtm-tests (Files): Likewise.
21747         * modules/pread-tests (Files): Likewise.
21748         * modules/printf-frexp-tests (Files): Likewise.
21749         * modules/printf-frexpl-tests (Files): Likewise.
21750         * modules/printf-posix-tests (Files): Likewise.
21751         * modules/priv-set-tests (Files): Likewise.
21752         * modules/quotearg-tests (Files): Likewise.
21753         * modules/random_r-tests (Files): Likewise.
21754         * modules/rawmemchr-tests (Files): Likewise.
21755         * modules/rbtree-list-tests (Files): Likewise.
21756         * modules/rbtree-oset-tests (Files): Likewise.
21757         * modules/rbtreehash-list-tests (Files): Likewise.
21758         * modules/readlink-tests (Files): Likewise.
21759         * modules/remove-tests (Files): Likewise.
21760         * modules/rename-tests (Files): Likewise.
21761         * modules/renameat-tests (Files): Likewise.
21762         * modules/rmdir-tests (Files): Likewise.
21763         * modules/round-tests (Files): Likewise.
21764         * modules/roundf-tests (Files): Likewise.
21765         * modules/roundl-tests (Files): Likewise.
21766         * modules/safe-alloc-tests (Files): Likewise.
21767         * modules/setenv-tests (Files): Likewise.
21768         * modules/sigaction-tests (Files): Likewise.
21769         * modules/signbit-tests (Files): Likewise.
21770         * modules/sleep-tests (Files): Likewise.
21771         * modules/snprintf-posix-tests (Files): Likewise.
21772         * modules/snprintf-tests (Files): Likewise.
21773         * modules/sprintf-posix-tests (Files): Likewise.
21774         * modules/stat-tests (Files): Likewise.
21775         * modules/stat-time-tests (Files): Likewise.
21776         * modules/strcasestr-tests (Files): Likewise.
21777         * modules/strchrnul-tests (Files): Likewise.
21778         * modules/strerror-tests (Files): Likewise.
21779         * modules/striconv-tests (Files): Likewise.
21780         * modules/striconveh-tests (Files): Likewise.
21781         * modules/striconveha-tests (Files): Likewise.
21782         * modules/strsignal-tests (Files): Likewise.
21783         * modules/strstr-tests (Files): Likewise.
21784         * modules/strtod-tests (Files): Likewise.
21785         * modules/strverscmp-tests (Files): Likewise.
21786         * modules/symlink-tests (Files): Likewise.
21787         * modules/symlinkat-tests (Files): Likewise.
21788         * modules/trunc-tests (Files): Likewise.
21789         * modules/truncf-tests (Files): Likewise.
21790         * modules/truncl-tests (Files): Likewise.
21791         * modules/uname-tests (Files): Likewise.
21792         * modules/unicase/cased-tests (Files): Likewise.
21793         * modules/unicase/ignorable-tests (Files): Likewise.
21794         * modules/unicase/locale-language-tests (Files): Likewise.
21795         * modules/unicase/tolower-tests (Files): Likewise.
21796         * modules/unicase/totitle-tests (Files): Likewise.
21797         * modules/unicase/toupper-tests (Files): Likewise.
21798         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21799         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21800         * modules/unicase/u8-casefold-tests (Files): Likewise.
21801         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21802         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21803         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21804         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21805         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21806         * modules/unicase/u8-tolower-tests (Files): Likewise.
21807         * modules/unicase/u8-totitle-tests (Files): Likewise.
21808         * modules/unicase/u8-toupper-tests (Files): Likewise.
21809         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21810         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21811         * modules/unicase/u16-casefold-tests (Files): Likewise.
21812         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21813         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21814         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21815         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21816         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21817         * modules/unicase/u16-tolower-tests (Files): Likewise.
21818         * modules/unicase/u16-totitle-tests (Files): Likewise.
21819         * modules/unicase/u16-toupper-tests (Files): Likewise.
21820         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21821         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21822         * modules/unicase/u32-casefold-tests (Files): Likewise.
21823         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21824         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21825         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21826         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21827         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21828         * modules/unicase/u32-tolower-tests (Files): Likewise.
21829         * modules/unicase/u32-totitle-tests (Files): Likewise.
21830         * modules/unicase/u32-toupper-tests (Files): Likewise.
21831         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21832         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21833         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21834         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21835         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21836         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21837         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21838         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21839         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21840         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21841         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21842         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21843         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21844         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21845         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21846         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21847         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21848         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21849         * modules/unictype/block-list-tests (Files): Likewise.
21850         * modules/unictype/block-of-tests (Files): Likewise.
21851         * modules/unictype/block-test-tests (Files): Likewise.
21852         * modules/unictype/category-C-tests (Files): Likewise.
21853         * modules/unictype/category-Cc-tests (Files): Likewise.
21854         * modules/unictype/category-Cf-tests (Files): Likewise.
21855         * modules/unictype/category-Cn-tests (Files): Likewise.
21856         * modules/unictype/category-Co-tests (Files): Likewise.
21857         * modules/unictype/category-Cs-tests (Files): Likewise.
21858         * modules/unictype/category-L-tests (Files): Likewise.
21859         * modules/unictype/category-Ll-tests (Files): Likewise.
21860         * modules/unictype/category-Lm-tests (Files): Likewise.
21861         * modules/unictype/category-Lo-tests (Files): Likewise.
21862         * modules/unictype/category-Lt-tests (Files): Likewise.
21863         * modules/unictype/category-Lu-tests (Files): Likewise.
21864         * modules/unictype/category-M-tests (Files): Likewise.
21865         * modules/unictype/category-Mc-tests (Files): Likewise.
21866         * modules/unictype/category-Me-tests (Files): Likewise.
21867         * modules/unictype/category-Mn-tests (Files): Likewise.
21868         * modules/unictype/category-N-tests (Files): Likewise.
21869         * modules/unictype/category-Nd-tests (Files): Likewise.
21870         * modules/unictype/category-Nl-tests (Files): Likewise.
21871         * modules/unictype/category-No-tests (Files): Likewise.
21872         * modules/unictype/category-P-tests (Files): Likewise.
21873         * modules/unictype/category-Pc-tests (Files): Likewise.
21874         * modules/unictype/category-Pd-tests (Files): Likewise.
21875         * modules/unictype/category-Pe-tests (Files): Likewise.
21876         * modules/unictype/category-Pf-tests (Files): Likewise.
21877         * modules/unictype/category-Pi-tests (Files): Likewise.
21878         * modules/unictype/category-Po-tests (Files): Likewise.
21879         * modules/unictype/category-Ps-tests (Files): Likewise.
21880         * modules/unictype/category-S-tests (Files): Likewise.
21881         * modules/unictype/category-Sc-tests (Files): Likewise.
21882         * modules/unictype/category-Sk-tests (Files): Likewise.
21883         * modules/unictype/category-Sm-tests (Files): Likewise.
21884         * modules/unictype/category-So-tests (Files): Likewise.
21885         * modules/unictype/category-Z-tests (Files): Likewise.
21886         * modules/unictype/category-Zl-tests (Files): Likewise.
21887         * modules/unictype/category-Zp-tests (Files): Likewise.
21888         * modules/unictype/category-Zs-tests (Files): Likewise.
21889         * modules/unictype/category-and-not-tests (Files): Likewise.
21890         * modules/unictype/category-and-tests (Files): Likewise.
21891         * modules/unictype/category-byname-tests (Files): Likewise.
21892         * modules/unictype/category-name-tests (Files): Likewise.
21893         * modules/unictype/category-none-tests (Files): Likewise.
21894         * modules/unictype/category-of-tests (Files): Likewise.
21895         * modules/unictype/category-or-tests (Files): Likewise.
21896         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21897         * modules/unictype/combining-class-tests (Files): Likewise.
21898         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21899         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21900         * modules/unictype/ctype-blank-tests (Files): Likewise.
21901         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21902         * modules/unictype/ctype-digit-tests (Files): Likewise.
21903         * modules/unictype/ctype-graph-tests (Files): Likewise.
21904         * modules/unictype/ctype-lower-tests (Files): Likewise.
21905         * modules/unictype/ctype-print-tests (Files): Likewise.
21906         * modules/unictype/ctype-punct-tests (Files): Likewise.
21907         * modules/unictype/ctype-space-tests (Files): Likewise.
21908         * modules/unictype/ctype-upper-tests (Files): Likewise.
21909         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21910         * modules/unictype/decimal-digit-tests (Files): Likewise.
21911         * modules/unictype/digit-tests (Files): Likewise.
21912         * modules/unictype/mirror-tests (Files): Likewise.
21913         * modules/unictype/numeric-tests (Files): Likewise.
21914         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21915         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21916         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21917         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21918         Likewise.
21919         * modules/unictype/property-bidi-block-separator-tests (Files):
21920         Likewise.
21921         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21922         Likewise.
21923         * modules/unictype/property-bidi-common-separator-tests (Files):
21924         Likewise.
21925         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21926         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21927         Likewise.
21928         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21929         Likewise.
21930         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21931         Likewise.
21932         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21933         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21934         Likewise.
21935         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21936         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21937         Likewise.
21938         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21939         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21940         * modules/unictype/property-bidi-segment-separator-tests (Files):
21941         Likewise.
21942         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21943         * modules/unictype/property-byname-tests (Files): Likewise.
21944         * modules/unictype/property-combining-tests (Files): Likewise.
21945         * modules/unictype/property-composite-tests (Files): Likewise.
21946         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21947         * modules/unictype/property-dash-tests (Files): Likewise.
21948         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21949         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21950         Likewise.
21951         * modules/unictype/property-deprecated-tests (Files): Likewise.
21952         * modules/unictype/property-diacritic-tests (Files): Likewise.
21953         * modules/unictype/property-extender-tests (Files): Likewise.
21954         * modules/unictype/property-format-control-tests (Files): Likewise.
21955         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21956         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21957         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21958         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21959         * modules/unictype/property-hyphen-tests (Files): Likewise.
21960         * modules/unictype/property-id-continue-tests (Files): Likewise.
21961         * modules/unictype/property-id-start-tests (Files): Likewise.
21962         * modules/unictype/property-ideographic-tests (Files): Likewise.
21963         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21964         * modules/unictype/property-ids-trinary-operator-tests (Files):
21965         Likewise.
21966         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21967         * modules/unictype/property-iso-control-tests (Files): Likewise.
21968         * modules/unictype/property-join-control-tests (Files): Likewise.
21969         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21970         * modules/unictype/property-line-separator-tests (Files): Likewise.
21971         * modules/unictype/property-logical-order-exception-tests (Files):
21972         Likewise.
21973         * modules/unictype/property-lowercase-tests (Files): Likewise.
21974         * modules/unictype/property-math-tests (Files): Likewise.
21975         * modules/unictype/property-non-break-tests (Files): Likewise.
21976         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21977         * modules/unictype/property-numeric-tests (Files): Likewise.
21978         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21979         * modules/unictype/property-other-default-ignorable-code-point-tests
21980         (Files): Likewise.
21981         * modules/unictype/property-other-grapheme-extend-tests (Files):
21982         Likewise.
21983         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21984         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21985         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21986         * modules/unictype/property-other-math-tests (Files): Likewise.
21987         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21988         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21989         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21990         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21991         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21992         * modules/unictype/property-private-use-tests (Files): Likewise.
21993         * modules/unictype/property-punctuation-tests (Files): Likewise.
21994         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21995         * modules/unictype/property-radical-tests (Files): Likewise.
21996         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21997         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21998         * modules/unictype/property-space-tests (Files): Likewise.
21999         * modules/unictype/property-terminal-punctuation-tests (Files):
22000         Likewise.
22001         * modules/unictype/property-test-tests (Files): Likewise.
22002         * modules/unictype/property-titlecase-tests (Files): Likewise.
22003         * modules/unictype/property-unassigned-code-value-tests (Files):
22004         Likewise.
22005         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22006         * modules/unictype/property-uppercase-tests (Files): Likewise.
22007         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22008         * modules/unictype/property-white-space-tests (Files): Likewise.
22009         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22010         * modules/unictype/property-xid-start-tests (Files): Likewise.
22011         * modules/unictype/property-zero-width-tests (Files): Likewise.
22012         * modules/unictype/scripts-tests (Files): Likewise.
22013         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22014         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22015         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22016         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22017         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22018         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22019         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22020         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22021         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22022         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22023         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22024         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22025         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22026         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22027         * modules/uninorm/composition-tests (Files): Likewise.
22028         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22029         * modules/uninorm/decomposition-tests (Files): Likewise.
22030         * modules/uninorm/filter-tests (Files): Likewise.
22031         * modules/uninorm/nfc-tests (Files): Likewise.
22032         * modules/uninorm/nfd-tests (Files): Likewise.
22033         * modules/uninorm/nfkc-tests (Files): Likewise.
22034         * modules/uninorm/nfkd-tests (Files): Likewise.
22035         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22036         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22037         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22038         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22039         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22040         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22041         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22042         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22043         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22044         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22045         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22046         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22047         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22048         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22049         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22050         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22051         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22052         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22053         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22054         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22055         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22056         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22057         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22058         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22059         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22060         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22061         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22062         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22063         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22064         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22065         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22066         * modules/uniwidth/u8-width-tests (Files): Likewise.
22067         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22068         * modules/uniwidth/u16-width-tests (Files): Likewise.
22069         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22070         * modules/uniwidth/u32-width-tests (Files): Likewise.
22071         * modules/uniwidth/width-tests (Files): Likewise.
22072         * modules/unlink-tests (Files): Likewise.
22073         * modules/unsetenv-tests (Files): Likewise.
22074         * modules/usleep-tests (Files): Likewise.
22075         * modules/utimens-tests (Files): Likewise.
22076         * modules/utimensat-tests (Files): Likewise.
22077         * modules/vasnprintf-posix-tests (Files): Likewise.
22078         * modules/vasnprintf-tests (Files): Likewise.
22079         * modules/vasprintf-posix-tests (Files): Likewise.
22080         * modules/vasprintf-tests (Files): Likewise.
22081         * modules/vdprintf-posix-tests (Files): Likewise.
22082         * modules/vfprintf-posix-tests (Files): Likewise.
22083         * modules/vprintf-posix-tests (Files): Likewise.
22084         * modules/vsnprintf-posix-tests (Files): Likewise.
22085         * modules/vsnprintf-tests (Files): Likewise.
22086         * modules/vsprintf-posix-tests (Files): Likewise.
22087         * modules/wcrtomb-tests (Files): Likewise.
22088         * modules/wcsnrtombs-tests (Files): Likewise.
22089         * modules/wcsrtombs-tests (Files): Likewise.
22090         * modules/wctype-tests (Files): Likewise.
22091         * modules/wcwidth-tests (Files): Likewise.
22092         * modules/xmemdup0-tests (Files): Likewise.
22093         * modules/xprintf-posix-tests (Files): Likewise.
22094         * modules/xvasprintf-tests (Files): Likewise.
22095
22096 2009-12-24  Eric Blake  <ebb9@byu.net>
22097
22098         test-nanosleep: fix typo
22099         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22100         patch.
22101         Reported by Bruno Haible.
22102
22103 2009-12-24  Bruno Haible  <bruno@clisp.org>
22104
22105         Reduce namespace pollution on glibc systems.
22106         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22107         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22108         systems.
22109         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22110         <getopt.h> on glibc systems.
22111         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22112         systems.
22113         * lib/fcntl.c: Include <unistd.h> here instead.
22114
22115 2009-12-24  Bruno Haible  <bruno@clisp.org>
22116
22117         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22118
22119 2009-12-24  Eric Blake  <ebb9@byu.net>
22120
22121         tests: add signature checks
22122         * tests/signature.h (SIGNATURE_CHECK): New file.
22123         * modules/atexit-tests (Files): Use it.
22124         * modules/btowc-tests (Files): Likewise.
22125         * modules/canonicalize-lgpl-tests (Files): Likewise.
22126         * modules/ceilf-tests (Files): Likewise.
22127         * modules/ceill-tests (Files): Likewise.
22128         * modules/chown-tests (Files): Likewise.
22129         * modules/dprintf-posix-tests (Files): Likewise.
22130         * modules/dup2-tests (Files): Likewise.
22131         * modules/dup3-tests (Files): Likewise.
22132         * modules/duplocale-tests (Files): Likewise.
22133         * modules/fchdir-tests (Files): Likewise.
22134         * modules/fcntl-tests (Files): Likewise.
22135         * modules/fdopendir-tests (Files): Likewise.
22136         * modules/fflush-tests (Files): Likewise.
22137         * modules/flock-tests (Files): Likewise.
22138         * modules/floorf-tests (Files): Likewise.
22139         * modules/floorl-tests (Files): Likewise.
22140         * modules/fnmatch-tests (Files): Likewise.
22141         * modules/fopen-tests (Files): Likewise.
22142         * modules/fprintf-posix-tests (Files): Likewise.
22143         * modules/freopen-tests (Files): Likewise.
22144         * modules/frexp-nolibm-tests (Files): Likewise.
22145         * modules/frexp-tests (Files): Likewise.
22146         * modules/frexpl-nolibm-tests (Files): Likewise.
22147         * modules/frexpl-tests (Files): Likewise.
22148         * modules/fseek-tests (Files): Likewise.
22149         * modules/fseeko-tests (Files): Likewise.
22150         * modules/fsync-tests (Files): Likewise.
22151         * modules/ftell-tests (Files): Likewise.
22152         * modules/ftello-tests (Files): Likewise.
22153         * modules/futimens-tests (Files): Likewise.
22154         * modules/getaddrinfo-tests (Files): Likewise.
22155         * modules/getcwd-tests (Files): Likewise.
22156         * modules/getdelim-tests (Files): Likewise.
22157         * modules/getdtablesize-tests (Files): Likewise.
22158         * modules/getgroups-tests (Files): Likewise.
22159         * modules/gethostname-tests (Files): Likewise.
22160         * modules/getline-tests (Files): Likewise.
22161         * modules/getopt-posix-tests (Files): Likewise.
22162         * modules/gettimeofday-tests (Files): Likewise.
22163         * modules/glob-tests (Files): Likewise.
22164         * modules/iconv-tests (Files): Likewise.
22165         * modules/inet_ntop-tests (Files): Likewise.
22166         * modules/inet_pton-tests (Files): Likewise.
22167         * modules/isblank-tests (Files): Likewise.
22168         * modules/lchown-tests (Files): Likewise.
22169         * modules/ldexpl-tests (Files): Likewise.
22170         * modules/link-tests (Files): Likewise.
22171         * modules/linkat-tests (Files): Likewise.
22172         * modules/lseek-tests (Files): Likewise.
22173         * modules/lstat-tests (Files): Likewise.
22174         * modules/mbrtowc-tests (Files): Likewise.
22175         * modules/mbsinit-tests (Files): Likewise.
22176         * modules/mbsnrtowcs-tests (Files): Likewise.
22177         * modules/mbsrtowcs-tests (Files): Likewise.
22178         * modules/memchr-tests (Files): Likewise.
22179         * modules/memcmp-tests (Files): Likewise.
22180         * modules/memmem-tests (Files): Likewise.
22181         * modules/memrchr-tests (Files): Likewise.
22182         * modules/mkdir-tests (Files): Likewise.
22183         * modules/mkfifo-tests (Files): Likewise.
22184         * modules/mkfifoat-tests (Files): Likewise.
22185         * modules/mknod-tests (Files): Likewise.
22186         * modules/nanosleep-tests (Files): Likewise.
22187         * modules/nl_langinfo-tests (Files): Likewise.
22188         * modules/obstack-printf-tests (Files): Likewise.
22189         * modules/open-tests (Files): Likewise.
22190         * modules/openat-tests (Files): Likewise.
22191         * modules/perror-tests (Files): Likewise.
22192         * modules/pipe2-tests (Files): Likewise.
22193         * modules/poll-tests (Files): Likewise.
22194         * modules/popen-tests (Files): Likewise.
22195         * modules/posix_spawn-tests (Files): Likewise.
22196         * modules/posix_spawnp-tests (Files): Likewise.
22197         * modules/pread-tests (Files): Likewise.
22198         * modules/printf-posix-tests (Files): Likewise.
22199         * modules/pty-tests (Files): Likewise.
22200         * modules/random_r-tests (Files): Likewise.
22201         * modules/rawmemchr-tests (Files): Likewise.
22202         * modules/readlink-tests (Files): Likewise.
22203         * modules/remove-tests (Files): Likewise.
22204         * modules/rename-tests (Files): Likewise.
22205         * modules/renameat-tests (Files): Likewise.
22206         * modules/rmdir-tests (Files): Likewise.
22207         * modules/round-tests (Files): Likewise.
22208         * modules/roundf-tests (Files): Likewise.
22209         * modules/roundl-tests (Files): Likewise.
22210         * modules/select-tests (Files): Likewise.
22211         * modules/setenv-tests (Files): Likewise.
22212         * modules/sigaction-tests (Files): Likewise.
22213         * modules/sleep-tests (Files): Likewise.
22214         * modules/snprintf-posix-tests (Files): Likewise.
22215         * modules/snprintf-tests (Files): Likewise.
22216         * modules/sprintf-posix-tests (Files): Likewise.
22217         * modules/stat-tests (Files): Likewise.
22218         * modules/strcasestr-tests (Files): Likewise.
22219         * modules/strchrnul-tests (Files): Likewise.
22220         * modules/strerror-tests (Files): Likewise.
22221         * modules/strsignal-tests (Files): Likewise.
22222         * modules/strstr-tests (Files): Likewise.
22223         * modules/strtod-tests (Files): Likewise.
22224         * modules/strverscmp-tests (Files): Likewise.
22225         * modules/symlink-tests (Files): Likewise.
22226         * modules/symlinkat-tests (Files): Likewise.
22227         * modules/times-tests (Files): Likewise.
22228         * modules/trunc-tests (Files): Likewise.
22229         * modules/truncf-tests (Files): Likewise.
22230         * modules/truncl-tests (Files): Likewise.
22231         * modules/tsearch-tests (Files): Likewise.
22232         * modules/uname-tests (Files): Likewise.
22233         * modules/unlink-tests (Files): Likewise.
22234         * modules/unsetenv-tests (Files): Likewise.
22235         * modules/usleep-tests (Files): Likewise.
22236         * modules/utimensat-tests (Files): Likewise.
22237         * modules/vasprintf-tests (Files): Likewise.
22238         * modules/vdprintf-posix-tests (Files): Likewise.
22239         * modules/vfprintf-posix-tests (Files): Likewise.
22240         * modules/vprintf-posix-tests (Files): Likewise.
22241         * modules/vsnprintf-posix-tests (Files): Likewise.
22242         * modules/vsnprintf-tests (Files): Likewise.
22243         * modules/vsprintf-posix-tests (Files): Likewise.
22244         * modules/wcrtomb-tests (Files): Likewise.
22245         * modules/wcsnrtombs-tests (Files): Likewise.
22246         * modules/wcsrtombs-tests (Files): Likewise.
22247         * modules/wcwidth-tests (Files): Likewise.
22248         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
22249         * tests/test-isinf.c (isinf): Likewise.
22250         * tests/test-isnan.c (isnan): Likewise.
22251         * tests/test-signbit.c (signbit): Likewise.
22252         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
22253         declaration, either as macro or with correct signature.
22254         (select): Ensure function under test is declared with correct
22255         signature in correct header.
22256         * tests/test-atexit.c (atexit): Likewise.
22257         * tests/test-btowc.c (btowc): Likewise.
22258         * tests/test-canonicalize-lgpl.c (realpath)
22259         (canonicalize_file_name): Likewise.
22260         * tests/test-ceilf1.c (ceilf): Likewise.
22261         * tests/test-ceill.c (ceill): Likewise.
22262         * tests/test-chown.c (chown): Likewise.
22263         * tests/test-dprintf-posix.c (dprintf): Likewise.
22264         * tests/test-dup2.c (dup2): Likewise.
22265         * tests/test-dup3.c (dup3): Likewise.
22266         * tests/test-duplocale.c (duplocale): Likewise.
22267         * tests/test-fchdir.c (fchdir): Likewise.
22268         * tests/test-fchownat.c (fchownat): Likewise.
22269         * tests/test-fcntl.c (fcntl): Likewise.
22270         * tests/test-fdopendir.c (fdopendir): Likewise.
22271         * tests/test-fflush.c (fflush): Likewise.
22272         * tests/test-flock.c (flock): Likewise.
22273         * tests/test-floorf1.c (floorf): Likewise.
22274         * tests/test-floorl.c (floorl): Likewise.
22275         * tests/test-fnmatch.c (fnmatch): Likewise.
22276         * tests/test-fopen.c (fopen): Likewise.
22277         * tests/test-fprintf-posix.c (fprintf): Likewise.
22278         * tests/test-freopen.c (freopen): Likewise.
22279         * tests/test-frexp.c (frexp): Likewise.
22280         * tests/test-frexpl.c (frexpl): Likewise.
22281         * tests/test-fseek.c (fseek): Likewise.
22282         * tests/test-fseeko.c (fseeko): Likewise.
22283         * tests/test-fstatat.c (fstatat): Likewise.
22284         * tests/test-fsync.c (fsync): Likewise.
22285         * tests/test-ftell.c (ftell): Likewise.
22286         * tests/test-ftello.c (ftello): Likewise.
22287         * tests/test-futimens.c (futimens): Likewise.
22288         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22289         (gai_strerror): Likewise.
22290         * tests/test-getcwd.c (getcwd): Likewise.
22291         * tests/test-getdelim.c (getdelim): Likewise.
22292         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22293         * tests/test-getgroups.c (getgroups): Likewise.
22294         * tests/test-gethostname.c (gethostname): Likewise.
22295         * tests/test-getline.c (getline): Likewise.
22296         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22297         Likewise.
22298         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22299         * tests/test-glob.c (glob, globfree): Likewise.
22300         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22301         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22302         * tests/test-inet_pton.c (inet_pton): Likewise.
22303         * tests/test-isblank.c (isblank): Likewise.
22304         * tests/test-lchown.c (lchown): Likewise.
22305         * tests/test-ldexpl.c (ldexpl): Likewise.
22306         * tests/test-link.c (link): Likewise.
22307         * tests/test-linkat.c (linkat): Likewise.
22308         * tests/test-lseek.c (lseek): Likewise.
22309         * tests/test-lstat.c (lstat): Likewise.
22310         * tests/test-mbrtowc.c (mbrtowc): Likewise.
22311         * tests/test-mbsinit.c (mbsinit): Likewise.
22312         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
22313         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22314         * tests/test-memchr.c (memchr): Likewise.
22315         * tests/test-memcmp.c (memcmp): Likewise.
22316         * tests/test-memmem.c (memmem): Likewise.
22317         * tests/test-memrchr.c (memrchr): Likewise.
22318         * tests/test-mkdir.c (mkdir): Likewise.
22319         * tests/test-mkdirat.c (mkdirat): Likewise.
22320         * tests/test-mkfifo.c (mkfifo): Likewise.
22321         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
22322         * tests/test-mknod.c (mknod): Likewise.
22323         * tests/test-nanosleep.c (nanosleep): Likewise.
22324         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
22325         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
22326         Likewise.
22327         * tests/test-open.c (open): Likewise.
22328         * tests/test-openat.c (openat): Likewise.
22329         * tests/test-perror.c (perror): Likewise.
22330         * tests/test-pipe2.c (pipe2): Likewise.
22331         * tests/test-poll.c (poll): Likewise.
22332         * tests/test-popen.c (popen, pclose): Likewise.
22333         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
22334         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
22335         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
22336         (posix_spawn_file_actions_destroy)
22337         (posix_spawn_file_actions_addclose)
22338         (posix_spawn_file_actions_addopen)
22339         (posix_spawn_file_actions_adddup2): Likewise.
22340         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
22341         * tests/test-pread.c (pread): Likewise.
22342         * tests/test-printf-posix.c (printf): Likewise.
22343         * tests/test-pty.c (openpty, forkpty): Likewise.
22344         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
22345         (random_r): Likewise.
22346         * tests/test-rawmemchr.c (rawmemchr): Likewise.
22347         * tests/test-readlink.c (readlink): Likewise.
22348         * tests/test-remove.c (remove): Likewise.
22349         * tests/test-rename.c (rename): Likewise.
22350         * tests/test-renameat.c (renameat): Likewise.
22351         * tests/test-rmdir.c (rmdir): Likewise.
22352         * tests/test-round1.c (round): Likewise.
22353         * tests/test-roundf1.c (roundf): Likewise.
22354         * tests/test-roundl.c (roundl): Likewise.
22355         * tests/test-setenv.c (setenv): Likewise.
22356         * tests/test-sigaction.c (sigaction): Likewise.
22357         * tests/test-sleep.c (sleep): Likewise.
22358         * tests/test-snprintf.c (snprintf): Likewise.
22359         * tests/test-sprintf-posix.c (sprintf): Likewise.
22360         * tests/test-stat.c (stat): Likewise.
22361         * tests/test-stpncpy.c (stpncpy): Likewise.
22362         * tests/test-strcasestr.c (strcasestr): Likewise.
22363         * tests/test-strchrnul.c (strchrnul): Likewise.
22364         * tests/test-strerror.c (strerror): Likewise.
22365         * tests/test-strsignal.c (strsignal): Likewise.
22366         * tests/test-strstr.c (strstr): Likewise.
22367         * tests/test-strtod.c (strtod): Likewise.
22368         * tests/test-strverscmp.c (strverscmp): Likewise.
22369         * tests/test-symlink.c (symlink): Likewise.
22370         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
22371         * tests/test-times.c (times): Likewise.
22372         * tests/test-trunc1.c (trunc): Likewise.
22373         * tests/test-truncf1.c (truncf): Likewise.
22374         * tests/test-truncl.c (truncl): Likewise.
22375         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
22376         Likewise.
22377         * tests/test-uname.c (uname): Likewise.
22378         * tests/test-unlink.c (unlink): Likewise.
22379         * tests/test-unlinkat.c (unlinkat): Likewise.
22380         * tests/test-unsetenv.c (unsetenv): Likewise.
22381         * tests/test-usleep.c (usleep): Likewise.
22382         * tests/test-utimensat.c (utimensat): Likewise.
22383         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22384         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22385         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22386         * tests/test-vprintf-posix.c (vprintf): Likewise.
22387         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22388         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22389         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22390         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22391         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22392         * tests/test-wcwidth.c (wcwidth): Likewise.
22393
22394         build: pull in conditional headers during GNULIB_POSIXCHECK
22395         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22396         definitions from any conditionally-included headers.
22397         * lib/stdlib.in.h (includes): Likewise.
22398         * lib/unistd.in.h (includes): Likewise.
22399
22400 2009-12-24  Bruno Haible  <bruno@clisp.org>
22401
22402         * tests/test-argv-iter.c: Include header file being tested immediately
22403         after config.h.
22404         * tests/test-base64.c: Likewise.
22405         * tests/test-flock.c: Likewise.
22406         * tests/test-fsync.c: Likewise.
22407         * tests/test-getdate.c: Likewise.
22408         * tests/test-getndelim2.c: Likewise.
22409         * tests/test-isfinite.c: Likewise.
22410         * tests/test-isinf.c: Likewise.
22411         * tests/test-strerror.c: Likewise.
22412         * tests/test-strsignal.c: Likewise.
22413
22414 2009-12-23  Eric Blake  <ebb9@byu.net>
22415
22416         unistd: work around cygwin bug
22417         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22418         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22419         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22420
22421 2009-12-23  Bruno Haible  <bruno@clisp.org>
22422
22423         localename: More tests.
22424         * tests/test-localename.c (SIZEOF): New macro.
22425         (categories): New variable.
22426         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22427         test_locale_name_default): Add test w.r.t. thread locale.
22428         (test_locale_name_thread): New function.
22429         (main): Invoke it.
22430
22431         localename: Make aware of thread locale.
22432         * lib/localename.h (gl_locale_name_thread): New declaration.
22433         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22434         behaviour with respect to thread locale.
22435         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22436         <langinfo.h>, glthread/lock.h.
22437         (SIZE_BITS): New macro.
22438         (string_hash): New function.
22439         (struct hash_node): New type.
22440         (HASH_TABLE_SIZE): New macro.
22441         (struniq_hash_table, struniq_lock): New variables.
22442         (struniq): New function.
22443         (gl_locale_name_thread): New function.
22444         (gl_locale_name): Invoke it.
22445         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22446         * modules/localename (Depends-on): Add lock.
22447         Reported by Mike Gran <spk121@yahoo.com>.
22448
22449 2009-12-23  Eric Blake  <ebb9@byu.net>
22450
22451         va-args: new module
22452         * modules/va-args: New file.
22453         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22454         * MODULES.html.sh (Core language properties): Mention it.
22455
22456         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22457         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22458         named alias for __attribute__((__unused__)).
22459         * lib/chown.c: Update client.
22460         * lib/fchmodat.c: Likewise.
22461         * lib/fts.c: Likewise.
22462         * lib/getdate.y: Likewise.
22463         * lib/getgroups.c: Likewise.
22464         * lib/getopt.c: Likewise.
22465         * lib/getugroups.c: Likewise.
22466         * lib/mkdir.c: Likewise.
22467         * lib/mkfifo.c: Likewise.
22468         * lib/mkfifoat.c: Likewise.
22469         * lib/mknod.c: Likewise.
22470         * lib/mknodat.c: Likewise.
22471         * lib/readlink.c: Likewise.
22472         * lib/se-context.in.h: Likewise.
22473         * lib/se-selinux.in.h: Likewise.
22474         * lib/sockets.c: Likewise.
22475         * lib/symlink.c: Likewise.
22476         * lib/symlinkat.c: Likewise.
22477         * lib/unicodeio.c: Likewise.
22478         * lib/unistr.h: Likewise.
22479         * tests/test-areadlink.c: Likewise.
22480         * tests/test-areadlinkat.c: Likewise.
22481         * tests/test-filenamecat.c: Likewise.
22482         * tests/test-fseeko.c: Likewise.
22483         * tests/test-ftello.c: Likewise.
22484         * tests/test-getdate.c: Likewise.
22485         * tests/test-getgroups.c: Likewise.
22486         * tests/test-gethostname.c: Likewise.
22487         * tests/test-quotearg.c: Likewise.
22488         * tests/test-version-etc.c: Likewise.
22489         * tests/test-xalloc-die.c: Likewise.
22490         * tests/test-xfprintf-posix.c: Likewise.
22491         * tests/test-xprintf-posix.c: Likewise.
22492         * tests/test-xvasprintf.c: Likewise.
22493
22494         tests: avoid compiler warnings
22495         * tests/test-fcntl.c (main): Delete unused parameters.
22496         * tests/test-freopen-safer.c (main): Likewise.
22497         * tests/test-xalloc-die.c (main): Mark unused parameters.
22498         * tests/test-fseeko.c (main): Likewise.
22499         * tests/test-ftello.c (main): Likewise.
22500         * tests/test-nanosleep.c (main): Avoid declaration warning.
22501         * tests/test-sleep.c (main): Likewise.
22502         * tests/test-unsetenv.c (main): Silence warning about string
22503         literal.
22504         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22505
22506 2009-12-23  Bruno Haible  <bruno@clisp.org>
22507
22508         * tests/test-localename.c (test_locale_name): New function, extracted
22509         from main. Also test mixed situations.
22510         (test_locale_name_posix, test_locale_name_environ,
22511         test_locale_name_default): New functions.
22512         (main): Invoke them all.
22513         * modules/localename-tests (configure.ac): Test for newlocale.
22514
22515 2009-12-23  Bruno Haible  <bruno@clisp.org>
22516
22517         unistd: Ensure getcwd gets declared before being overridden.
22518         * lib/unistd.in.h: Conditionally include <io.h>.
22519
22520 2009-12-22  Bruno Haible  <bruno@clisp.org>
22521
22522         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22523         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22524         (gl_WCHAR_H): Invoke it.
22525         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22526         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22527         Reported by Karl Berry <karl@freefriends.org>.
22528
22529 2009-12-22  Eric Blake  <ebb9@byu.net>
22530
22531         math, unistd: avoid redundant includes
22532         * lib/math.in.h (isnan): No need to re-include <math.h>.
22533         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22534
22535         getsubopt: work around cygwin bug
22536         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22537         avoid conflicting with system getsubopt.
22538         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22539         bug.
22540
22541         getopt: synchronize from glibc
22542         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22543         parameter order.  Adjust all callers.
22544         (_getopt_internal_r, main): Adjust quoting in error messages.
22545         Drop considerations for outdated POSIX 1003.2 error message.
22546         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22547         callers.
22548         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22549
22550         test-getopt: test stderr behavior
22551         * modules/getopt-posix-tests (Depends-on): Add dup2.
22552         * tests/test-getopt.c (ASSERT): Avoid stderr.
22553         (main): Move stderr to a temporary file.
22554         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22555         Instead, add parameter to inform caller if output occurred.
22556         (test_getopt): Adjust all existing tests to expect silence, and
22557         add new tests of leading ":".
22558         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22559         glibc shortcomings with leading "-:" or "+:" in optstring.
22560         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22561         Likewise.
22562         * doc/posix-functions/getopt.texi (getopt): Likewise.
22563
22564         test-getopt: enhance test
22565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22566         supports optind=0.
22567         * tests/test-getopt.c (OPTIND_MIN): Move...
22568         * tests/test-getopt.h (OPTIND_MIN): ...here.
22569         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22570         Require that optind=0 works, since modern BSD supports it in
22571         addition to optreset, and since coreutils expects it.
22572         (test_getopt_long_only): New test.
22573         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22574         glibc shortcomings with 'W;', and enforcement of optind=0.
22575         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22576         Likewise.
22577
22578 2009-12-21  Bruno Haible  <bruno@clisp.org>
22579
22580         localename: Improvements for MacOS X and Cygwin.
22581         * lib/localename.h (gl_locale_name_environ): New declaration.
22582         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22583         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22584         (gl_locale_name_posix): Invoke it.
22585         (gl_locale_name_default): Add comments. Use Windows native API also on
22586         Cygwin.
22587
22588 2009-12-21  Bruno Haible  <bruno@clisp.org>
22589
22590         Update list of Win32 locale ids.
22591         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22592         (LANG_SAMI): Renamed from LANG_SAAMI.
22593         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22594         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22595         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22596         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22597         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22598         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22599         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22600         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22601         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22602         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22603         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22604         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22605         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22606         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22607         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22608         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22609         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22610         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22611         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22612         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22613         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22614         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22615         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22616         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22617         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22618         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22619         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22620         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22621         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22622         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22623         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22624         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22625         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22626         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22627         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22628         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22629         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22630         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22631         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22632         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22633         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22634         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22635         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22636         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22637         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22638         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22639         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22640         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22641         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22642         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22643         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22644         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22645         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22646         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22647         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22648         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22649         Add more languages and countries for Sami, Sorbian. Add more countries
22650         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22651         for Pashto. Change country for Syriac, Tswana.
22652
22653 2009-12-21  Eric Blake  <ebb9@byu.net>
22654
22655         test-utimens: avoid spurious failure
22656         * tests/test-chown.h (nap): Factor...
22657         * tests/nap.h: ...into new file.
22658         * tests/test-lchown.h (nap): Avoid duplication.
22659         * tests/test-utimens-common.h (nap): Use shared implementation,
22660         necessary on file systems with 1-second resolution.
22661         * modules/chown-tests (Files): Include new file.
22662         * modules/fdutimensat-tests (Files): Likewise.
22663         * modules/futimens-tests (Files): Likewise.
22664         * modules/lchown-tests (Files): Likewise.
22665         * modules/openat-tests (Files): Likewise.
22666         * modules/utimens-tests (Files): Likewise.
22667         * modules/utimensat-tests (Files): Likewise.
22668
22669 2009-12-19  Eric Blake  <ebb9@byu.net>
22670
22671         futimens, utimensat: work around Linux bug
22672         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22673         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22674         * lib/utimensat.c (rpl_utimensat): Work around it.
22675         * lib/futimens.c (rpl_futimens): Adjust comment.
22676
22677         utimens: work around Linux ctime bug
22678         * lib/utimens.c (detect_ctime_bug): New helper function.
22679         (update_timespec): Differentiate between workaround needed for
22680         this bug vs. what is needed for systems that lack utimensat.
22681         (fdutimens, lutimens): Work around bug.
22682
22683         utimens: check for ctime update
22684         * tests/test-utimens-common.h (check_ctime): Define.
22685         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22686         * tests/test-futimens.h (test_futimens): Likewise.
22687         * tests/test-lutimens.h (test_lutimens): Likewise.
22688         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22689         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22690
22691 2009-12-19  Bruno Haible  <bruno@clisp.org>
22692
22693         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22694         * tests/test-dprintf-posix2.sh: New file.
22695         * tests/test-dprintf-posix2.c: New file.
22696         * modules/dprintf-posix-tests (Files): Add them.
22697         (configure.ac): Check for getrlimit and setrlimit.
22698         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22699
22700 2009-12-19  Bruno Haible  <bruno@clisp.org>
22701
22702         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22703         * tests/test-fprintf-posix3.sh: New file.
22704         * tests/test-fprintf-posix3.c: New file.
22705         * modules/fprintf-posix-tests (Files): Add them.
22706         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22707
22708 2009-12-19  Eric Blake  <ebb9@byu.net>
22709
22710         dirfd: fix prototype
22711         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22712         * lib/dirfd.c (dirfd): Likewise.
22713
22714         canonicalize: reduce memory usage
22715         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22716         allocation to size.
22717         Reported by Solar Designer <solar@openwall.com>.
22718
22719 2009-12-19  Bruno Haible  <bruno@clisp.org>
22720
22721         New module attribute 'Applicability'.
22722         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22723         * gnulib-tool: New option --extract-applicability.
22724         (func_usage): Document it.
22725         (sed_extract_prog): Recognize it.
22726         (func_get_applicability): New function.
22727         (func_import): Generalize handling of 'link-warning' module.
22728         * modules/link-warning (Applicability): New section.
22729         * modules/arg-nonnull (Applicability): New section.
22730         Repoted by Simon Josefsson <simon@josefsson.org>.
22731
22732 2009-12-19  Bruno Haible  <bruno@clisp.org>
22733
22734         fflush: tweak
22735         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22736         * lib/fseeko.c (rpl_fseeko): Likewise.
22737
22738 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22739
22740         * lib/gl_list.h: Fix typo in comment.
22741
22742 2009-12-16  Eric Blake  <ebb9@byu.net>
22743
22744         fcntl: use to simplify other modules
22745         * modules/cloexec (Depends-on): Add fcntl.
22746         * modules/fchdir (Depends-on): Likewise.
22747         * modules/fd-safer-flag (Depends-on): Likewise.
22748         * modules/unistd-safer (Depends-on): Likewise.
22749         * modules/dup3 (configure.ac): Set module indicator.
22750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22751         missing.
22752         * lib/fchdir.c (_gl_register_dup): Fix comment.
22753         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22754         * lib/dup-safer.c (dup_safer): Likewise.
22755         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22756         * lib/dup3.c (dup3): Likewise.
22757         * tests/test-fchdir.c (main): Enhance test.
22758         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22759
22760         fcntl: port portions of fcntl to mingw
22761         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22762         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22763         replacement for mingw.
22764         * modules/fcntl (Description): Update.
22765         (Depends-on): Add dup2.
22766         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22767         * modules/fcntl-h (Makefile.am): Substitute it.
22768         * lib/fcntl.in.h (fcntl): Update declaration.
22769         (F_DUPFD, F_GETFD): New macros, when needed.
22770         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22771         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22772         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22773         we now guarantee.
22774
22775         fcntl: work around cygwin bug in F_DUPFD
22776         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22777         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22778         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22779         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22780         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22781
22782         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22783         * modules/fcntl (Files): List new files.
22784         (configure.ac): Run a test.
22785         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22786         * lib/fcntl.c (rpl_fcntl): Likewise.
22787         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22788         (gl_FCNTL_H): Always replace fcntl.h.
22789         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22790         * lib/fcntl.in.h (fcntl): Declare replacement.
22791         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22792         needed, plus a witness.
22793         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22794         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22795         * tests/test-fcntl.c: New file.
22796         * modules/fcntl-tests: Likewise.
22797
22798         binary-io: avoid potential compilation warning
22799         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22800         directives.
22801
22802         fflush: avoid compilation error on NetBSD
22803         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22804         between off_t and fpos_t, since the latter is sometimes a struct.
22805         * lib/fseeko.c (rpl_fseeko): Likewise.
22806         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22807
22808 2009-12-15  Eric Blake  <ebb9@byu.net>
22809
22810         fcntl-h, stdio, sys_ioctl: fix declarations
22811         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22812         function must not take arguments.
22813         * lib/sys_ioctl.in.h (ioctl): Likewise.
22814         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22815         (open): Add a link warning.
22816
22817 2009-12-15  Jim Meyering  <meyering@redhat.com>
22818
22819         areadlink, areadlink-with-size: relax license to LGPLv2+
22820         * modules/areadlink (License): Relax to LGPLv2+.
22821         * modules/areadlink-with-size (License): Likewise.
22822
22823 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22824             Bruno Haible  <bruno@clisp.org>
22825
22826         *printf: Fix memory leak.
22827         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22828         * lib/vfprintf.c (vfprintf): Likewise.
22829         * lib/dprintf.c (dprintf): Likewise.
22830         * lib/vdprintf.c (vdprintf): Likewise.
22831
22832 2009-12-14  Eric Blake  <ebb9@byu.net>
22833
22834         accept4: adjust module dependencies
22835         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22836
22837         utimens: one more try at avoiding compiler warning
22838         * lib/utimens.c (lutimens): Lower scope of result.
22839
22840 2009-12-13  Bruno Haible  <bruno@clisp.org>
22841
22842         Move the malloc checking from module 'list' to new module 'xlist'.
22843         * modules/xlist: New file.
22844         * lib/gl_xlist.h: New file.
22845         * lib/gl_xlist.c: New file.
22846         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22847         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22848         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22849         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22850         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22851         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22852         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22853         gl_sortedlist_nx_add): New declarations.
22854         (struct gl_list_implementation): Rename and change methods accordingly.
22855         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22856         (gl_list_nx_create): Renamed from gl_list_create.
22857         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22858         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22859         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22860         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22861         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22862         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22863         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22864         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22865         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22866         gl_list_create_empty.
22867         (gl_list_nx_create): Renamed from gl_list_create.
22868         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22869         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22870         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22871         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22872         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22873         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22874         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22875         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22876         * lib/gl_array_list.c: Don't include xalloc.h.
22877         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22878         NULL upon out-of-memory.
22879         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22880         out-of-memory.
22881         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22882         Change return type to 'int'.
22883         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22884         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22885         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22886         upon out-of-memory.
22887         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22888         upon out-of-memory.
22889         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22890         upon out-of-memory.
22891         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22892         upon out-of-memory.
22893         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22894         out-of-memory.
22895         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22896         Update.
22897         (gl_array_list_implementation): Update.
22898         * lib/gl_carray_list.c: Don't include xalloc.h.
22899         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22900         Return NULL upon out-of-memory.
22901         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22902         out-of-memory.
22903         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22904         Change return type to 'int'.
22905         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22906         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22907         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22908         upon out-of-memory.
22909         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22910         upon out-of-memory.
22911         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22912         out-of-memory.
22913         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22914         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22915         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22916         Update.
22917         (gl_carray_list_implementation): Update.
22918         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22919         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22920         gl_linked_create_empty. Return NULL upon out-of-memory.
22921         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22922         out-of-memory.
22923         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22924         Change return type to 'int'. Return -1 upon out-of-memory.
22925         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22926         out-of-memory.
22927         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22928         upon out-of-memory.
22929         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22930         upon out-of-memory.
22931         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22932         NULL upon out-of-memory.
22933         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22934         upon out-of-memory.
22935         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22936         out-of-memory.
22937         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22938         Update.
22939         * lib/gl_linked_list.c: Don't include xalloc.h.
22940         (gl_linked_list_implementation): Update.
22941         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22942         (add_to_bucket): Change return type to 'int'.
22943         (gl_linkedhash_list_implementation): Update.
22944         * lib/gl_anytree_list1.h (free_subtree): New function.
22945         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22946         gl_tree_create_empty. Return NULL upon out-of-memory.
22947         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22948         Change return type to 'int'. Return -1 upon out-of-memory.
22949         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22950         out-of-memory.
22951         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22952         (gl_tree_remove_node): New function, moved here from
22953         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22954         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22955         Update.
22956         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22957         malloc, not xmalloc. Return NULL upon out-of-memory.
22958         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22959         out-of-memory.
22960         (gl_tree_remove_node_from_tree): New function, extracted from
22961         gl_tree_remove_node.
22962         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22963         upon out-of-memory.
22964         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22965         out-of-memory.
22966         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22967         upon out-of-memory.
22968         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22969         upon out-of-memory.
22970         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22971         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22972         not xmalloc. Return NULL upon out-of-memory.
22973         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22974         out-of-memory.
22975         (gl_tree_remove_node_from_tree): New function, extracted from
22976         gl_tree_remove_node.
22977         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22978         upon out-of-memory.
22979         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22980         out-of-memory.
22981         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22982         upon out-of-memory.
22983         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22984         upon out-of-memory.
22985         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22986         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22987         gl_anytree_list1.h before gl_anyavltree_list2.h.
22988         (gl_avltree_list_implementation): Update.
22989         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22990         gl_anytree_list1.h before gl_anyavltree_list2.h.
22991         (gl_rbtree_list_implementation): Update.
22992         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22993         Change return type to 'int'. Return -1 upon out-of-memory. Use
22994         __builtin_expect.
22995         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22996         (gl_avltreehash_list_implementation): Update.
22997         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22998         (gl_rbtreehash_list_implementation): Update.
22999         * modules/array-list (Depends-on): Remove xalloc.
23000         * modules/carray-list (Depends-on): Likewise.
23001         * modules/linked-list (Depends-on): Likewise.
23002         * modules/linkedhash-list (Depends-on): Likewise.
23003         * modules/avltree-list (Depends-on): Likewise.
23004         * modules/rbtree-list (Depends-on): Likewise.
23005         * modules/avltreehash-list (Depends-on): Likewise.
23006         * modules/rbtreehash-list (Depends-on): Likewise.
23007
23008         * modules/xsublist: New file.
23009         * lib/gl_xsublist.h: New file.
23010         * lib/gl_xsublist.c: New file.
23011         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23012         (gl_sublist_nx_create): New declaration.
23013         * lib/gl_sublist.c: Don't include xalloc.h.
23014         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23015         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23016         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23017         Change return type to 'int'. Return -1 upon out-of-memory.
23018         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23019         upon out-of-memory.
23020         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23021         NULL upon out-of-memory.
23022         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23023         upon out-of-memory.
23024         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23025         NULL upon out-of-memory.
23026         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23027         NULL upon out-of-memory.
23028         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23029         upon out-of-memory.
23030         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23031         (gl_sublist_list_implementation): Update.
23032         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23033         upon out-of-memory.
23034         * modules/sublist (Depends-on): Remove xalloc.
23035
23036         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23037         * tests/test-carray_list.c: Likewise.
23038         * tests/test-linked_list.c: Likewise.
23039         * tests/test-linkedhash_list.c: Likewise.
23040         * tests/test-avltree_list.c: Likewise.
23041         * tests/test-rbtree_list.c: Likewise.
23042         * tests/test-avltreehash_list.c: Likewise.
23043         * tests/test-rbtreehash_list.c: Likewise.
23044         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23045         * modules/carray-list-tests (Makefile.am): Likewise.
23046         * modules/linked-list-tests (Makefile.am): Likewise.
23047         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23048         * modules/avltree-list-tests (Makefile.am): Likewise.
23049         * modules/rbtree-list-tests (Makefile.am): Likewise.
23050         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23051         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23052
23053         * NEWS: Mention the changes.
23054
23055         * lib/clean-temp.c: Include gl_xlist.h.
23056         * modules/clean-temp (Depends-on): Add xlist.
23057
23058         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23059         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23060
23061         * tests/test-array_oset.c: Include gl_xlist.h.
23062         * modules/array-oset-tests (Depends-on): Add xlist.
23063
23064         Reported by José E. Marchesi <jemarch@gnu.org>.
23065
23066 2009-12-13  Bruno Haible  <bruno@clisp.org>
23067
23068         Move the malloc checking from module 'oset' to new module 'xoset'.
23069         * modules/xoset: New file.
23070         * lib/gl_xoset.h: New file.
23071         * lib/gl_xoset.c: New file.
23072         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23073         declarations.
23074         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23075         (struct gl_oset_implementation): Rename and change methods accordingly.
23076         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23077         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23078         'int'. Mark as __warn_unused_result__.
23079         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23080         gl_oset_create_empty.
23081         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23082         'int'.
23083         * lib/gl_array_oset.c: Don't include xalloc.h.
23084         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23085         malloc, not xmalloc.
23086         (grow): Change return type to 'int'. Don't call xalloc_die.
23087         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23088         to 'int'.
23089         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23090         'int'.
23091         (gl_array_oset_implementation): Update.
23092         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23093         gl_tree_create_empty.
23094         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23095         'int'.
23096         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23097         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23098         xmalloc.
23099         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23100         not xmalloc.
23101         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23102         xmalloc.
23103         (gl_avltree_oset_implementation): Update.
23104         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23105         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23106         xmalloc.
23107         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23108         not xmalloc.
23109         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23110         xmalloc.
23111         (gl_rbtree_oset_implementation): Update.
23112         * modules/array-oset (Depends-on): Remove xalloc.
23113         * modules/avltree-oset (Depends-on): Likewise.
23114         * modules/rbtree-oset (Depends-on): Likewise.
23115         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23116         * tests/test-avltree_oset.c: Likewise.
23117         * tests/test-rbtree_oset.c: Likewise.
23118         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23119         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23120         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23121         * NEWS: Mention the change.
23122
23123 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23124
23125         maint.mk: allow a project to override release-prep commands
23126         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23127         commands into a new rule.
23128         (release-prep): New rule.
23129         (release-prep-hook): New overridable variable.
23130
23131 2009-12-13  Bruno Haible  <bruno@clisp.org>
23132
23133         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23134
23135 2009-12-13  Jim Meyering  <meyering@redhat.com>
23136
23137         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23138         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23139
23140 2009-12-12  Bruno Haible  <bruno@clisp.org>
23141
23142         duplocale: Tweak.
23143         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23144
23145 2009-12-12  Karl Berry  <karl@gnu.org>
23146
23147         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23148
23149 2009-12-12  Bruno Haible  <bruno@clisp.org>
23150
23151         * m4/po.m4: Undo incorrect untabification.
23152
23153 2009-12-12  Bruno Haible  <bruno@clisp.org>
23154
23155         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23156         * modules/c-strtod (Depends-on): Add locale.
23157         * modules/c-strtold (Depends-on): Likewise.
23158
23159 2009-12-12  Bruno Haible  <bruno@clisp.org>
23160
23161         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23162
23163 2009-12-11  Eric Blake  <ebb9@byu.net>
23164
23165         setenv: relax requirement in light of POSIX ruling
23166         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23167         not NULL.
23168         * tests/test-setenv.c (main): Relax test.
23169         * tests/test-unsetenv.c (main): Likewise.
23170         * doc/posix-functions/setenv.texi (setenv): Document this.
23171         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23172
23173 2009-12-11  Bruno Haible  <bruno@clisp.org>
23174
23175         New module 'fd-safer-flag'.
23176         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23177         * lib/dup-safer.c (dup_safer_flag): Remove function.
23178         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23179         * lib/fd-safer.c (fd_safer_flag): Remove function.
23180         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23181         * modules/cloexec (configure.ac): Drop indicator macro.
23182         * modules/fd-safer-flag: New file.
23183         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23184         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23185         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23186
23187 2009-12-11  Bruno Haible  <bruno@clisp.org>
23188
23189         Tests for module 'nl_langinfo'.
23190         * modules/nl_langinfo-tests: New file.
23191         * tests/test-nl_langinfo.sh: New file.
23192         * tests/test-nl_langinfo.c: New file.
23193
23194         New module 'nl_langinfo'.
23195         * lib/nl_langinfo.c: New file.
23196         * m4/nl_langinfo.m4: New file.
23197         * modules/nl_langinfo: New file.
23198         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
23199
23200 2009-12-11  Bruno Haible  <bruno@clisp.org>
23201
23202         Tests for module 'langinfo'.
23203         * modules/langinfo-tests: New file.
23204         * tests/test-langinfo.c: New file.
23205
23206         New module 'langinfo'.
23207         * lib/langinfo.in.h: New file.
23208         * m4/langinfo_h.m4: New file.
23209         * modules/langinfo: New file.
23210         * doc/posix-headers/langinfo.texi: Mention the new module.
23211
23212 2009-12-11  Bruno Haible  <bruno@clisp.org>
23213
23214         * lib/config.charset: Untabify.
23215
23216 2009-12-11  Bruno Haible  <bruno@clisp.org>
23217
23218         * modules/unistd-safer (configure.ac): Drop indicator macro.
23219
23220 2009-12-11  Bruno Haible  <bruno@clisp.org>
23221
23222         Move pipe2-safer code to its own file.
23223         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
23224         * lib/pipe-safer.c (pipe2_safer): Remove function.
23225         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
23226         (Makefile.am): Add it to lib_SOURCES.
23227
23228 2009-12-10  Bruno Haible  <bruno@clisp.org>
23229
23230         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
23231
23232 2009-12-10  Bruno Haible  <bruno@clisp.org>
23233
23234         Declare which arguments expect non-NULL values, for GCC and clang.
23235         * build-aux/arg-nonnull.h: New file.
23236         * modules/arg-nonnull: New file.
23237         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
23238         (inet_ntop, inet_pton): Use it.
23239         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
23240         (closedir, dirfd, opendir, scandir, alphasort): Use it.
23241         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
23242         (open, openat): Use it.
23243         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
23244         (fnmatch): Use it.
23245         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
23246         (getopt, getopt_long, getopt_long_only): Use it.
23247         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
23248         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
23249         Use it.
23250         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
23251         (iconv_open): Use it.
23252         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
23253         (strtoimax, strtoumax): Use it.
23254         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
23255         (duplocale): Use it.
23256         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
23257         (frexp, frexpl): Use it.
23258         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
23259         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
23260         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
23261         (tsearch, tfind, tdelete, twalk): Use it.
23262         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
23263         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23264         sigpending): Use it.
23265         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
23266         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23267         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23268         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23269         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23270         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23271         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23272         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23273         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23274         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23275         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23276         Use it.
23277         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23278         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23279         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23280         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23281         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23282         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23283         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23284         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23285         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23286         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23287         strtoull, unsetenv): Use it.
23288         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23289         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23290         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23291         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23292         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23293         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23294         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23295         (strcasecmp, strncasecmp): Use it.
23296         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23297         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23298         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23299         rpl_setsockopt): Use it.
23300         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23301         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23302         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23303         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23304         (gettimeofday): Use it.
23305         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23306         (times): Use it.
23307         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23308         (uname): Use it.
23309         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
23310         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
23311         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
23312         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
23313         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23314         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23315         unlinkat, write): Use it.
23316         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23317         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
23318         * lib/argv-iter.h: Include arg-nonnull.h.
23319         (_ATTRIBUTE_NONNULL_): Remove macro.
23320         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
23321         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
23322         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
23323         optimization.
23324         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
23325         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
23326         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
23327         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
23328         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
23329         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
23330         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
23331         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
23332         * modules/arpa_inet (Depends-on): Add arg-nonnull.
23333         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
23334         * modules/dirent (Depends-on): Add arg-nonnull.
23335         (Makefile.am): Insert arg-nonnull.h into dirent.h.
23336         * modules/fcntl-h (Depends-on): Add arg-nonnull.
23337         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
23338         * modules/fnmatch (Depends-on): Add arg-nonnull.
23339         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
23340         * modules/getopt-posix (Depends-on): Add arg-nonnull.
23341         (Makefile.am): Insert arg-nonnull.h into getopt.h.
23342         * modules/glob (Depends-on): Add arg-nonnull.
23343         (Makefile.am): Insert arg-nonnull.h into glob.h.
23344         * modules/iconv_open (Depends-on): Add arg-nonnull.
23345         (Makefile.am): Insert arg-nonnull.h into iconv.h.
23346         * modules/inttypes (Depends-on): Add arg-nonnull.
23347         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
23348         * modules/locale (Depends-on): Add arg-nonnull.
23349         (Makefile.am): Insert arg-nonnull.h into locale.h.
23350         * modules/math (Depends-on): Add arg-nonnull.
23351         (Makefile.am): Insert arg-nonnull.h into math.h.
23352         * modules/netdb (Depends-on): Add arg-nonnull.
23353         (Makefile.am): Insert arg-nonnull.h into netdb.h.
23354         * modules/search (Depends-on): Add arg-nonnull.
23355         (Makefile.am): Insert arg-nonnull.h into search.h.
23356         * modules/signal (Depends-on): Add arg-nonnull.
23357         (Makefile.am): Insert arg-nonnull.h into signal.h.
23358         * modules/spawn (Depends-on): Add arg-nonnull.
23359         (Makefile.am): Insert arg-nonnull.h into spawn.h.
23360         * modules/stdio (Depends-on): Add arg-nonnull.
23361         (Makefile.am): Insert arg-nonnull.h into stdio.h.
23362         * modules/stdlib (Depends-on): Add arg-nonnull.
23363         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
23364         * modules/string (Depends-on): Add arg-nonnull.
23365         (Makefile.am): Insert arg-nonnull.h into string.h.
23366         * modules/strings (Depends-on): Add arg-nonnull.
23367         (Makefile.am): Insert arg-nonnull.h into strings.h.
23368         * modules/sys_socket (Depends-on): Add arg-nonnull.
23369         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
23370         * modules/sys_stat (Depends-on): Add arg-nonnull.
23371         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
23372         * modules/sys_time (Depends-on): Add arg-nonnull.
23373         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
23374         * modules/sys_times (Depends-on): Add arg-nonnull.
23375         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
23376         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23377         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23378         * modules/time (Depends-on): Add arg-nonnull.
23379         (Makefile.am): Insert arg-nonnull.h into time.h.
23380         * modules/unistd (Depends-on): Add arg-nonnull.
23381         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23382         * modules/wchar (Depends-on): Add arg-nonnull.
23383         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23384         * modules/argv-iter (Depends-on): Add arg-nonnull.
23385         * tests/test-canonicalize.c (null_ptr): New function.
23386         (main): Use it.
23387         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23388         (main): Use it.
23389         * tests/test-memmem.c (null_ptr): New function.
23390         (main): Use it.
23391         Reported by Jim Meyering.
23392
23393 2009-12-10  Bruno Haible  <bruno@clisp.org>
23394
23395         Use spaces for indentation, not tabs.
23396         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23397         * m4/*.m4: Untabify.
23398         * build-aux/*.h: Untabify.
23399         * tests/**/*.[hc]: Untabify.
23400         * README: New section "Indent with spaces, not TABs", based on
23401         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23402         * NEWS: Mention the change.
23403
23404 2009-12-10  Bruno Haible  <bruno@clisp.org>
23405
23406         pty test: Fix link error.
23407         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23408         test_pty_LDADD.
23409
23410 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23411
23412         * modules/pty: New file.
23413         * modules/pty-tests: New file.
23414         * m4/pty.m4: New file.
23415         * tests/test-pty.c: New file.
23416         * doc/glibc-headers/pty.texi: Modified.
23417         * doc/glibc-functions/forkpty.texi: Modified.
23418         * doc/glibc-functions/openpty.texi: Modified.
23419
23420 2009-12-10  Bruno Haible  <bruno@clisp.org>
23421
23422         Avoid syntax error in C++ mode.
23423         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23424
23425 2009-12-10  Bruno Haible  <bruno@clisp.org>
23426
23427         Use sed with option -e.
23428         * gnulib-tool (func_version, func_emit_copyright_notice,
23429         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23430         option -e to sed.
23431         * modules/link-warning (Makefile.am): Likewise.
23432
23433 2009-12-10  Jim Meyering  <meyering@redhat.com>
23434
23435         mgetgroups: do not write bytes beyond end of malloc'd buffer
23436         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23437         username, we call getgroups with a one-element-shorter buffer,
23438         but still told it the length was original, max_n_groups.
23439
23440 2009-12-09  Eric Blake  <ebb9@byu.net>
23441
23442         cloexec: relax license
23443         * modules/cloexec (Maintainer): Add myself.
23444         (License): Use LGPL, not GPL.
23445
23446         link-warning: optimize generation
23447         * modules/link-warning (Makefile.am): Reduce process usage.
23448
23449 2009-12-09  Bruno Haible  <bruno@clisp.org>
23450
23451         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23452         workaround was added on 2009-11-17.
23453
23454 2009-12-09  Jim Meyering  <meyering@redhat.com>
23455             Bruno Haible  <bruno@clisp.org>
23456
23457         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23458         * modules/link-warning (Makefile.am): Make the comment-removing sed
23459         command more robust in the face of bootstrap-prepended comment lines.
23460
23461 2009-12-09  Bruno Haible  <bruno@clisp.org>
23462
23463         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23464         most one group.
23465
23466 2009-12-09  Simon Josefsson <simon@josefsson.org>
23467             Bruno Haible  <bruno@clisp.org>
23468
23469         * build-aux/link-warning.h: Add copyright notice.
23470         * modules/link-warning (Makefile.am): Generate link-warning.h from
23471         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23472         * NEWS: Mention change in link-warning module.
23473         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23474         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23475         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23476         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23477         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23478         * modules/math (Makefile.am): Add dependency to math.h.
23479         * modules/search (Makefile.am): Add dependency to search.h.
23480         * modules/signal (Makefile.am): Add dependency to signal.h.
23481         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23482         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23483         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23484         * modules/string (Makefile.am): Add dependency to string.h.
23485         * modules/strings (Makefile.am): Add dependency to strings.h.
23486         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23487         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23488         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23489         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23490         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23491         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23492         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23493         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23494         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23495
23496 2009-12-09  Bruno Haible  <bruno@clisp.org>
23497
23498         fchdir: Optimize away rpl_fstat when possible.
23499         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23500         REPLACE_OPEN_DIRECTORY.
23501         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23502
23503 2009-12-09  Bruno Haible  <bruno@clisp.org>
23504
23505         * lib/fchdir.c: Update comment.
23506
23507 2009-12-09  Bruno Haible  <bruno@clisp.org>
23508
23509         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23510
23511 2009-12-08  Eric Blake  <ebb9@byu.net>
23512
23513         fchdir: avoid memory leak on re-registration.
23514         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23515
23516 2009-12-08  Jim Meyering  <meyering@redhat.com>
23517
23518         init.sh: avoid Solaris 10 /bin/sh portability problem
23519         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23520         sourced script:
23521           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23522           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23523           bar
23524         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23525         and two tests used that idiom.
23526         * tests/init.sh: Update suggested usage comments.
23527         (path_prepend_): New function, to be used in place
23528         of the --src-path=DIR option.
23529         (setup_): Move PATH-prepending code into path_prepend_.
23530         * tests/test-pread.sh: Adapt to new usage.
23531         * tests/test-xalloc-die.sh: Likewise.
23532
23533 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23534
23535         * doc/gnulib.texi (Glibc pty.h): Add.
23536         * doc/glibc-functions/forkpty.texi: Add.
23537         * doc/glibc-functions/openpty.texi: Add.
23538         Suggested by Bruno Haible.
23539
23540 2009-12-08  Eric Blake  <ebb9@byu.net>
23541
23542         fchdir: fix logic bugs
23543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23544         * tests/test-fchdir.c (main): Enhance test.
23545         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23546         is in use.
23547
23548         dup2: fix logic bugs
23549         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23550         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23551         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23552         exists.
23553         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23554
23555 2009-12-07  Eric Blake  <ebb9@byu.net>
23556
23557         unlink: fix m4 detection
23558         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23559
23560         unistd-safer: add unit test
23561         * modules/unistd-safer-tests: New file.
23562         * tests/test-dup-safer.c: Likewise.
23563         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23564         * tests/test-dup2.c (setmode): Likewise.
23565         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23566
23567         cloexec: preserve text vs. binary across dup_cloexec
23568         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23569         mode.
23570         * modules/dup2-tests (Depends-on): Add binary-io.
23571         * modules/cloexec-tests (Depends-on): Likewise.
23572         * tests/test-dup2.c (setmode, is_mode): New helpers.
23573         (main): Add tests that translation mode is preserved.
23574         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23575         Reported by Bruno Haible.
23576
23577         mgetgroups: reduce duplicate listings
23578         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23579         resulting array.
23580         * tests/test-chown.h (test_chown): Simplify client.
23581         * tests/test-lchown.h (test_lchown): Likewise.
23582
23583 2009-12-06  Bruno Haible  <bruno@clisp.org>
23584
23585         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23586         value.
23587
23588 2009-12-06  Bruno Haible  <bruno@clisp.org>
23589
23590         * lib/progname.c: Include stdio.h, stdlib.h.
23591         (set_program_name): Reject a NULL argument.
23592
23593 2009-12-05  Eric Blake  <ebb9@byu.net>
23594
23595         pipe2-safer: new module
23596         * modules/pipe2-safer: New file.
23597         * lib/unistd-safer.h (pipe2_safer): New prototype.
23598         * lib/unistd--.h (pipe2): New wrapper.
23599         * lib/pipe-safer.c (pipe2_safer): New function.
23600         * modules/pipe (Depends-on): Add pipe2-safer.
23601         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23602
23603         stdlib-safer: preserve cloexec flag for mkostemp[s]
23604         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23605         fd_safer_flag.
23606
23607         unistd-safer: allow preservation of cloexec status via flag
23608         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23609         prototypes.
23610         * lib/dup-safer.c (dup_safer_flag): New function.
23611         * lib/fd-safer.c (fd_safer_flag): Likewise.
23612         * modules/cloexec (configure.ac): Set witness.
23613
23614         test-dup2: enhance test
23615         * modules/dup2-tests (Depends-on): Add cloexec.
23616         * tests/test-dup2.c (main): Enhance test.
23617
23618         cloexec: add dup_cloexec
23619         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23620         header and comments.
23621         * lib/cloexec.c (set_cloexec_flag): Add comments.
23622         (dup_cloexec): New function, with mingw implementation borrowed
23623         from...
23624         * lib/w32spawn.h (dup_noinherit): ...here.
23625         * modules/execute (Depends-on): Add cloexec.
23626         * modules/pipe (Depends-on): Likewise.
23627         * modules/cloexec (Depends-on): Add dup2.
23628         * modules/cloexec-tests (Files): New file.
23629         * tests/test-cloexec.c: Likewise.
23630
23631         test-xalloc-die: fix test for mingw
23632         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23633         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23634         directory and .exe suffix off argv[0] output.
23635
23636         test-fseeko: fix test for mingw
23637         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23638         than undefining fseek, so test will pass on mingw.
23639
23640 2009-12-05  Bruno Haible  <bruno@clisp.org>
23641
23642         * lib/progname.h (set_program_name): Clarify specification.
23643         * lib/progname.c (set_program_name): Likewise.
23644         Reported by Jim Meyering.
23645
23646 2009-12-05  Jim Meyering  <meyering@redhat.com>
23647
23648         maint.mk: backslash-escape parens in default regexp
23649         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23650         backslash-escape the literal parentheses.
23651
23652         maint.mk: news-date-check: use grep -E
23653         * top/maint.mk (today): Define a Make variable, not a...
23654         (news-date-check): ...shell variable.
23655         (news-date-regexp): Use the Make variable.
23656         Use grep's -E option.  Change the failing diagnostic to mention
23657         the variable, $(news-date-regexp).
23658
23659 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23660
23661         maintainer-makefile: allow customization of NEWS entry format
23662         * top/maint.mk (news-date-regexp): New overridable variable.
23663         (news-date-check): Use it.
23664
23665 2009-12-04  Eric Blake  <ebb9@byu.net>
23666
23667         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23668         * lib/mgetgroups.h (xgetgroups): New prototype.
23669         * lib/mgetgroups.c (xgetgroups): New wrapper.
23670         (mgetgroups): Handle ENOSYS.
23671         * modules/mgetgroups (Depends-on): Add realloc.
23672         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23673
23674         mgetgroups: avoid argument promotion issues with -1
23675         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23676         for invalid gid_t.
23677         * tests/test-chown.h (getegid, test_chown): Likewise.
23678         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23679
23680 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23681
23682         exclude: Fix header file problems.
23683         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23684
23685 2009-12-01  Jim Meyering  <meyering@redhat.com>
23686
23687         fts: fts_open: do not let an empty string cause immediate failure
23688         This is required in support of GNU rm, for which the command
23689         "rm A '' B" must process and remove both A and B, in spite of
23690         the empty string argument.
23691         * lib/fts.c (fts_open): Do not let the presence of an empty string
23692         cause fts_open to fail immediately.  Most fts-using tools must be
23693         able to process all arguments, in order, and can be expected to
23694         diagnose such arguments themselves.
23695
23696 2009-11-30  Eric Blake  <ebb9@byu.net>
23697
23698         utimens: fix compilation error
23699         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23700         Declare variable at right scope.
23701
23702 2009-11-29  Jim Meyering  <meyering@redhat.com>
23703
23704         bootstrap: handle perl-5.11's changed --version output
23705         * build-aux/bootstrap (get_version): Handle perl separately,
23706         since perl-5.11's --version output is different.
23707
23708 2009-11-28  Jim Meyering  <meyering@redhat.com>
23709
23710         userspec: depend on the inttostr module, too
23711         * modules/userspec (Depends-on): Add inttostr.
23712
23713         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23714         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23715         number of MAXUID when it evaluates to (uid_t) -1.
23716         Likewise for group ID.  Reported by Matt McCutchen in
23717         <http://savannah.gnu.org/bugs/?28113>
23718
23719         userspec: reformat to use spaces, not TABs
23720         * lib/userspec.c: Expand TABs to spaces.
23721         Add Emacs' "indent-tabs-mode: nil" hint.
23722
23723 2009-11-27  Eric Blake  <ebb9@byu.net>
23724
23725         getopt-gnu: flush out another BSD bug
23726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23727         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23728         flush out BSD bug.
23729         * tests/test-getopt.h (test_getopt): End lists with NULL.
23730         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23731         (test_getopt_long_posix): Enhance test.
23732         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23733         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23734         getopt-gnu.
23735         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23736         Likewise.
23737
23738 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23739
23740         * modules/idpriv-droptemp-tests (Notice): Fix text.
23741
23742 2009-11-27  Jim Meyering  <meyering@redhat.com>
23743
23744         test-xalloc-die: avoid spurious failure due to libtool argv difference
23745         In a libtool-enabled project, this test would fail due to a difference
23746         in the emitted program name, e.g.,
23747         -test-xalloc-die: memory exhausted
23748         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23749         Use program to avoid that.
23750         * modules/xalloc-die-tests (Depends-on): Add progname.
23751         * tests/test-xalloc-die.c: Include progname.h".
23752         (program_name): Remove decl.
23753         (main): Call set_program_name.
23754         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23755
23756 2009-11-26  Richard Jones  <rjones@redhat.com>
23757
23758         w32sock: leave win32 error in place.
23759         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23760
23761 2009-11-26  Eric Blake  <ebb9@byu.net>
23762
23763         init.sh: suggest to use skip_ and fail_ functions in comments
23764         * tests/init.sh: Add a sentence.
23765
23766 2009-11-25  Bruno Haible  <bruno@clisp.org>
23767
23768         init.sh: add documentation in comments
23769         * tests/init.sh: Add some developer and user documentation.
23770
23771 2009-11-26  Jim Meyering  <meyering@redhat.com>
23772
23773         init.sh: accommodate even those who specify bogus srcdir manually
23774         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23775         configure-time tests to be sanitized, so that there is no need to
23776         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23777         (with no double quotes) suffices.  However, since tests may be
23778         invoked manually, and since you may explicitly set srcdir to the
23779         name of a directory containing spaces, do quote its uses here.
23780         * tests/test-pread.sh: Likewise.
23781         Suggested by Bruno Haible.
23782
23783         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23784         * tests/test-pread.sh: Write no data into the pipe, because
23785         test-pread actually reads none.  This avoids a diagnostic,
23786         "bash: echo: write error: Broken pipe", that arises in the unusual
23787         event something is ignoring SIGPIPE, and might be interpreted
23788         as some sort of failure.  Reported by Bruno Haible.
23789
23790 2009-11-25  Jim Meyering  <meyering@redhat.com>
23791
23792         test-pread: cover failure with ESPIPE and EINVAL
23793         * tests/test-pread.c (main): Test for failure, too.
23794         * tests/test-pread.sh: Invoke with stdin on a pipe.
23795         Suggested by Eric Blake.
23796
23797         pread: improvement and fix
23798         * modules/pread (Depends-on): Depend on lseek, for portability to
23799         e.g., mingw.  Suggested by Eric Blake.
23800         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23801
23802         unistd.in.h: correct declaration of pread
23803         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23804         Reported by Richard W.M. Jones.
23805
23806         test-pread.sh: distribute the test script
23807         * modules/pread-tests (Files): Include test-pread.sh.
23808
23809         test-pread.sh: clean up
23810         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23811         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23812         That is unnecessary, since it's always ".".
23813         Suggestion from Eric Blake.
23814
23815         test-pread.sh: make executable
23816         * tests/test-pread.sh: Set executable bit.
23817         Reported by Eric Blake.
23818
23819         correct typo in test-pread.sh
23820         * tests/test-pread.sh: Add #! line.
23821
23822         test pread
23823         * tests/test-pread.c: New file.
23824         * tests/test-pread.sh: Likewise.
23825         * modules/pread-tests: Likewise.
23826
23827         pread: new module
23828         * modules/pread: New file.
23829         * lib/unistd.in.h (pread): Define/declare.
23830         * lib/pread.c (pread): New file.
23831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23832         * modules/unistd (Makefile.am): Substitute witnesses.
23833         * doc/posix-functions/pread.texi (pread): Update.
23834         * MODULES.html.sh: Add pread.
23835
23836 2009-11-25  Jim Meyering  <meyering@redhat.com>
23837
23838         tests/init.sh: new file to be used via most *.sh tests
23839         * tests/init.sh: New file.
23840
23841 2009-11-25  Eric Blake  <ebb9@byu.net>
23842
23843         utimens: work around older Linux failure with symlinks
23844         * lib/utimens.c (lutimensat_works_really): New variable.
23845         (fdutimens, lutimens): Use it to manage kernels that support
23846         nanosecond times on files, but not on symlinks.
23847         Reported by OndÅ™ej Vašík.
23848
23849         utimes: fix configure grammar
23850         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23851
23852 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23853
23854         regex: Fix fastmap for multibyte character ranges.
23855         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23856         characters when a multibyte character range is included.
23857
23858 2009-11-22  Andy Wingo  <wingo@pobox.com>
23859
23860         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23861         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23862
23863 2009-11-24  Bruno Haible  <bruno@clisp.org>
23864
23865         doc: Most *_l functions exist in MacOS X 10.5.
23866         * doc/posix-functions/duplocale.texi: Update platforms list.
23867         * doc/posix-functions/freelocale.texi: Likewise.
23868         * doc/posix-functions/newlocale.texi: Likewise.
23869         * doc/posix-functions/uselocale.texi: Likewise.
23870         * doc/posix-functions/isalnum_l.texi: Likewise.
23871         * doc/posix-functions/isalpha_l.texi: Likewise.
23872         * doc/posix-functions/isblank_l.texi: Likewise.
23873         * doc/posix-functions/iscntrl_l.texi: Likewise.
23874         * doc/posix-functions/isdigit_l.texi: Likewise.
23875         * doc/posix-functions/isgraph_l.texi: Likewise.
23876         * doc/posix-functions/islower_l.texi: Likewise.
23877         * doc/posix-functions/isprint_l.texi: Likewise.
23878         * doc/posix-functions/ispunct_l.texi: Likewise.
23879         * doc/posix-functions/isspace_l.texi: Likewise.
23880         * doc/posix-functions/isupper_l.texi: Likewise.
23881         * doc/posix-functions/iswalnum_l.texi: Likewise.
23882         * doc/posix-functions/iswalpha_l.texi: Likewise.
23883         * doc/posix-functions/iswblank_l.texi: Likewise.
23884         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23885         * doc/posix-functions/iswctype_l.texi: Likewise.
23886         * doc/posix-functions/iswdigit_l.texi: Likewise.
23887         * doc/posix-functions/iswgraph_l.texi: Likewise.
23888         * doc/posix-functions/iswlower_l.texi: Likewise.
23889         * doc/posix-functions/iswprint_l.texi: Likewise.
23890         * doc/posix-functions/iswpunct_l.texi: Likewise.
23891         * doc/posix-functions/iswspace_l.texi: Likewise.
23892         * doc/posix-functions/iswupper_l.texi: Likewise.
23893         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23894         * doc/posix-functions/isxdigit_l.texi: Likewise.
23895         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23896         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23897         * doc/posix-functions/strcoll_l.texi: Likewise.
23898         * doc/posix-functions/strfmon_l.texi: Likewise.
23899         * doc/posix-functions/strftime_l.texi: Likewise.
23900         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23901         * doc/posix-functions/strxfrm_l.texi: Likewise.
23902         * doc/posix-functions/tolower_l.texi: Likewise.
23903         * doc/posix-functions/toupper_l.texi: Likewise.
23904         * doc/posix-functions/towctrans_l.texi: Likewise.
23905         * doc/posix-functions/towlower_l.texi: Likewise.
23906         * doc/posix-functions/towupper_l.texi: Likewise.
23907         * doc/posix-functions/wcscoll_l.texi: Likewise.
23908         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23909         * doc/posix-functions/wctrans_l.texi: Likewise.
23910         * doc/posix-functions/wctype_l.texi: Likewise.
23911         * doc/glibc-functions/strptime_l.texi: Likewise.
23912         * doc/glibc-functions/strtod_l.texi: Likewise.
23913         * doc/glibc-functions/strtof_l.texi: Likewise.
23914         * doc/glibc-functions/strtol_l.texi: Likewise.
23915         * doc/glibc-functions/strtold_l.texi: Likewise.
23916         * doc/glibc-functions/strtoll_l.texi: Likewise.
23917         * doc/glibc-functions/strtoul_l.texi: Likewise.
23918         * doc/glibc-functions/strtoull_l.texi: Likewise.
23919         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23920         * doc/glibc-functions/wcstod_l.texi: Likewise.
23921         * doc/glibc-functions/wcstof_l.texi: Likewise.
23922         * doc/glibc-functions/wcstol_l.texi: Likewise.
23923         * doc/glibc-functions/wcstold_l.texi: Likewise.
23924         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23925         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23926         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23927
23928 2009-11-24  Bruno Haible  <bruno@clisp.org>
23929
23930         duplocale: Fix logic bug.
23931         * lib/duplocale.c: Don't include <langinfo.h>.
23932         (_NL_LOCALE_NAME): Remove macro.
23933         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23934         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23935
23936 2009-11-23  Jim Meyering  <meyering@redhat.com>
23937
23938         test-update-copyright: don't hard-code /usr/bin/perl
23939         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23940         perl to print the current year.  Gilles Espinasse reported that
23941         the replaced use of perl was hard-coded as /usr/bin/perl.
23942
23943 2009-11-23  Bruno Haible  <bruno@clisp.org>
23944
23945         duplocale: Add support for glibc 2.3.x.
23946         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23947
23948 2009-11-22  Bruno Haible  <bruno@clisp.org>
23949
23950         vasnprintf: Tiny optimization.
23951         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23952         MacOS X.
23953
23954 2009-11-22  Bruno Haible  <bruno@clisp.org>
23955
23956         Tests for module 'duplocale'.
23957         * modules/duplocale-tests: New file.
23958         * tests/test-duplocale.c: New file.
23959
23960         New module 'duplocale'.
23961         * m4/duplocale.m4: New file.
23962         * lib/locale.in.h (duplocale): New declaration.
23963         * lib/duplocale.c: New file.
23964         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23965         gl_LOCALE_H_DEFAULTS): New macros.
23966         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23967         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23968         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23969         REPLACE_DUPLOCALE.
23970         * modules/duplocale: New file.
23971         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23972
23973 2009-11-22  Bruno Haible  <bruno@clisp.org>
23974
23975         * modules/locale-tests (configure.ac): Test for newlocale function.
23976         * tests/test-locale.c: When the system has extended locale functions,
23977         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23978
23979         locale: Make locale_t available when possible.
23980         * lib/locale.in.h: Include <xlocale.h> when it exists.
23981         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23982         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23983         * modules/locale (Depends-on): Add extensions.
23984         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23985         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23986
23987 2009-11-22  Bruno Haible  <bruno@clisp.org>
23988
23989         Add comments.
23990         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23991         invocation.
23992         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23993         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23994         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23995
23996 2009-11-22  Bruno Haible  <bruno@clisp.org>
23997
23998         error: account for the possibility of freopen (stdout).
23999         * lib/error.c: Include <unistd.h>.
24000         (flush_stdout): New function, extracted from error and error_at_line.
24001         Determine stdout's fd dynamically.
24002         (error, error_at_line): Invoke flush_stdout.
24003         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24004         * modules/error (Depends-on): Add unistd.
24005
24006 2009-11-22  Bruno Haible  <bruno@clisp.org>
24007
24008         diffseq: Add comment.
24009         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24010
24011 2009-11-22  Jim Meyering  <meyering@redhat.com>
24012
24013         c-stack: avoid defining an unused static function
24014         * lib/c-stack.c (find_stack_direction): Do not define this function
24015         when it will not be used.
24016
24017         diffseq: avoid spurious gcc warnings
24018         * lib/diffseq.h (IF_LINT2): Define.
24019         (compareseq): Use it to initialize two members of "part".
24020         This avoids two used-uninitialized warnings.
24021
24022 2009-11-21  Jim Meyering  <meyering@redhat.com>
24023
24024         c-stack: avoid "ignoring return value of `write'" warning
24025         * lib/c-stack.c: Include "ignore-value.h".
24026         (die): Explicitly ignore each write return value.
24027         * modules/c-stack (Depends-on): Add ignore-value.
24028
24029 2009-11-21  Bruno Haible  <bruno@clisp.org>
24030
24031         diffseq: reduce scope of variable 'best'.
24032         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24033         variable, earlier used for two different purposes.
24034
24035 2009-11-21  Jim Meyering  <meyering@redhat.com>
24036
24037         diffseq: remove useless assignment to "best"
24038         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24039         assignment.  At that point "best" is already guaranteed to be zero.
24040
24041 2009-11-20  Eric Blake  <ebb9@byu.net>
24042
24043         build: mention ftp redirector in release announcements
24044         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24045         values that used to come from cfg.mk; mention FTP redirect URL.
24046         * build-aux/announce-gen: Mention the mirror list.
24047         Suggested by Karl Berry.
24048
24049         nanosleep: improve port to mingw
24050         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24052         LIB_NANOSLEEP, but only when needed.
24053         * modules/select (Link): Document LIBSOCKET.
24054         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24055         enough.
24056
24057         nanosleep: work around cygwin bug
24058         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24059         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24060         bug.
24061         (getnow): Delete, not needed.
24062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24063         LIB_CLOCK_GETTIME.
24064         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24065         clock-time, gettime.
24066         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24067         bug.
24068         * modules/nanosleep-tests: New test.
24069         * tests/test-nanosleep.c: New file.
24070
24071         sleep: work around cygwin bug
24072         * lib/sleep.c (rpl_sleep): Work around the bug.
24073         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24074         (gl_PREREQ_SLEEP): Delete unused macro.
24075         * modules/sleep (Depends-on): Add verify.
24076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24077         * modules/unistd (Makefile.am): Substitute witness.
24078         * lib/unistd.in.h (sleep): Update prototype.
24079         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24080         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24081         * modules/sleep-tests (Depends-on): Check for alarm.
24082
24083 2009-11-20  Jim Meyering  <meyering@redhat.com>
24084
24085         maint.mk: improve sc_prohibit_magic_number_exit
24086         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24087         so it does not match uses like System.exit(1).
24088         Add comments showing how to correct all offenders.
24089
24090 2009-11-19  Eric Blake  <ebb9@byu.net>
24091
24092         xalloc-die-tests: add missing library
24093         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24094
24095         test-xvasprintf: silence compiler warnings
24096         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24097         empty string from gcc.
24098
24099 2009-11-19  Jim Meyering  <meyering@redhat.com>
24100
24101         xfreopen: new module, from coreutils
24102         * modules/xfreopen: New module.
24103         * lib/xfreopen.c: New file.
24104         * lib/xfreopen.h: New file.
24105         * MODULES.html.sh (File stream based Input/Output"): Add it.
24106
24107 2009-11-19  Eric Blake  <ebb9@byu.net>
24108
24109         manywarnings: depend on warnings
24110         * modules/manywarnings (Depends-on): Add warnings.
24111
24112         build: avoid compiler warnings
24113         * lib/select.c (rpl_select): Delete unused variable.
24114         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24115
24116 2009-11-18  Eric Blake  <ebb9@byu.net>
24117
24118         tests: avoid false negative with --with-packager
24119         * tests/test-version-etc.sh: Discard packager information.
24120         * tests/test-argp-version-etc-1.sh: Likewise.
24121         Reported by Mike Frysinger.
24122
24123         utimens: fix regression on Solaris
24124         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24125         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24126         can only change fd timestamps via futimesat.  Instead, use an
24127         additional witness macro to avoid BSD bug.
24128         Reported by Jim Meyering.
24129
24130 2009-11-17  Eric Blake  <ebb9@byu.net>
24131
24132         usleep: use it to simplify tests
24133         * modules/stat-time-tests (Depends-on): Add usleep.
24134         (configure.ac): Drop usleep check.
24135         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24136         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24137         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24138         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24139         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24140         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24141         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24142         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24143         Likewise.
24144         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24145         * tests/test-lchown.h (nap): Likewise.
24146         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24147         * tests/test-stat-time.c (nap): Likewise.
24148         * tests/test-utimens-common.h (nap): Update comments.
24149
24150         usleep: new module
24151         * modules/usleep: New file.
24152         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24153         * lib/usleep.c (usleep): Likewise.
24154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24155         * modules/unistd (Makefile.am): Substitute witnesses.
24156         * lib/unistd.in.h (usleep): Add declaration.
24157         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24158         * MODULES.html.sh (Date and time): Likewise.
24159         * modules/usleep-tests (Depends-on): New test.
24160         * tests/test-usleep.c: New file.
24161
24162         chown: work around OpenBSD bug
24163         * lib/chown.c (rpl_chown): Work around the bug.
24164         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24165         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24166         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24167         * modules/chown (Depends-on): Add stdbool.
24168         * modules/lchown (Depends-on): Likewise.
24169         * doc/posix-functions/chown.texi (chown): Document the bug.
24170         * doc/posix-functions/lchown.texi (lchown): Likewise.
24171         * tests/test-lchown.h (test_chown): Relax test.
24172
24173         mkstemp: avoid conflict with C++ keyword template
24174         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24175         * lib/mkostemp.c (mkostemp): Likewise.
24176         * lib/mkostemps.c (mkostemps): Likewise.
24177         * lib/mkstemp.c (mkstemp): Likewise.
24178         * lib/mkstemps.c (mkstemps): Likewise.
24179
24180         xalloc-die-tests: optimize
24181         * tests/test-xalloc-die.sh: Reduce number of processes.
24182
24183 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24184
24185         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24186         patch from ludo@gnu.org (Ludovic Courtès).
24187
24188 2009-11-17  Jim Meyering  <meyering@redhat.com>
24189
24190         version-etc: use proper license string
24191         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24192         * modules/version-etc-fsf: Likewise.
24193
24194 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24195
24196         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24197         printed to stdout.  Deal with EOL differences.
24198
24199 2009-11-17  Eric Blake  <ebb9@byu.net>
24200
24201         unsetenv: work around Solaris bug
24202         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
24203         * lib/unsetenv.c (rpl_unsetenv): Work around it.
24204         Reported by Jim Meyering.
24205
24206         vasnprintf: avoid compiler warnings
24207         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
24208         variables.
24209         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
24210
24211 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24212
24213         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
24214         settings since xalloc-die is no longer the self test,
24215         xalloc-die.sh is.
24216
24217 2009-11-17  Jim Meyering  <meyering@redhat.com>
24218
24219         test-xalloc-die.sh: make the code agree with the commit log
24220         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
24221         at the end, just in case you happen to have a test-xalloc-die
24222         program in some other PATH directory.
24223
24224         test-xalloc-die.sh: fix a portability bug
24225         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
24226         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
24227         Otherwise, argv[0] (as often seen in diagnostics) would be too
24228         system-dependent, sometimes with, and sometimes without the leading "./".
24229
24230         version-etc-fsf: relax license to LGPLv3+
24231         * modules/version-etc-fsf (License): Relax license.
24232
24233 2009-11-16  Eric Blake  <ebb9@byu.net>
24234
24235         xalloc-die-tests: avoid printing null pointer
24236         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
24237         shell script.
24238         * tests/test-xalloc-die.c (program_name): Declare.
24239         * tests/test-xalloc-die.sh (tmpfiles): New file.
24240
24241         setenv, unsetenv: work around various bugs
24242         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
24243         (setenv) [HAVE_SETENV]: Work around bugs.
24244         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
24245         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
24246         for bugs.
24247         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
24248         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
24249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
24250         * modules/stdlib (Makefile.am): Update substitutions.
24251         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
24252         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
24253         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24254         * modules/setenv-tests: New test.
24255         * modules/unsetenv-tests: Likewise.
24256         * tests/test-setenv.c: New file.
24257         * tests/test-unsetenv.c: Likewise.
24258
24259 2009-11-16  Jim Meyering  <meyering@redhat.com>
24260
24261         version-etc: relax license to LGPLv3+
24262         * modules/version-etc (License): Relax license.
24263
24264         better AC_REQUIRE expanded-before-required-warning avoidance
24265         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
24266         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
24267         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
24268         which is no longer needed.
24269
24270 2009-11-16  Eric Blake  <ebb9@byu.net>
24271
24272         test-freading: clean up temporary file
24273         * tests/test-freading.c (main): Remove file on success, and use
24274         ASSERT more liberally.
24275         Reported by Jim Meyering.
24276
24277 2009-11-16  Jim Meyering  <meyering@redhat.com>
24278
24279         avoid new AC_REQUIRE expanded-before-required warnings
24280         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24281         merely using it.
24282         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24283         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24284
24285 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24286
24287         * tests/test-xalloc-die.c: New file.
24288         * modules/xalloc-die-tests: New file.
24289         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24290         XFAIL_TESTS so it can be appended by modules.
24291
24292 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24293
24294         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24295         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24296
24297 2009-11-14  Eric Blake  <ebb9@byu.net>
24298
24299         fnmatch: avoid compiler warning
24300         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24301         to silence compiler warning about mismatch signedness in ?:.
24302         Reported by Robert Millan.
24303
24304         intprops: add double-inclusion guard
24305         * lib/intprops.h: Allow idempotent includes.
24306         Suggested by Bruce Korb.
24307
24308         openat: detect Solaris fchownat bug
24309         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
24310         penalizing glibc chownat when only lchownat is broken.
24311         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
24312         trailing slash bugs.
24313         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24314         * modules/openat-tests (Files): Include more files.
24315         (Depends-on): Add mgetgroups, sleep, stat-time.
24316         (configure.ac): Add additional checks.
24317         (Makefile.am): Build new test.
24318         * tests/test-fchownat.c: New file.
24319
24320         lchown: detect Solaris and FreeBSD bug
24321         * lib/lchown.c (rpl_lchown): Work around bug.
24322         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
24323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24324         * modules/unistd (Makefile.am): Populate it.
24325         * lib/unistd.in.h (lchown): Update declaration.
24326         * doc/posix-functions/lchown.texi (lchown): Document the bug.
24327         * modules/lchown-tests: New file.
24328         * tests/test-lchown.h (test_lchown): Likewise.
24329         * tests/test-lchown.c (main): Likewise.
24330
24331         chown: detect Solaris and FreeBSD bug
24332         * lib/chown.c (rpl_chown): Work around bug.
24333         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
24334         (gl_PREREQ_CHOWN): Delete.
24335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24336         * modules/unistd (Makefile.am): Populate it.
24337         * lib/unistd.in.h (chown): Update declaration.
24338         * lib/lchown.c (chown): Update client.
24339         * modules/lchown (Depends-on): Add lstat.
24340         * doc/posix-functions/chown.texi (chown): Document the bug.
24341         * doc/posix-functions/getgroups.texi (getgroups): Document
24342         getgroups pitfall.
24343         * modules/chown-tests: New file.
24344         * tests/test-chown.h (test_chown): Likewise.
24345         * tests/test-chown.c (main): Likewise.
24346
24347 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
24348
24349         gnulib-tool: correctly detect absence of m4 directories
24350         * gnulib-tool: Avoid extra newline on data passed to wc -l.
24351
24352 2009-11-14  Jim Meyering  <meyering@redhat.com>
24353
24354         maint.mk: Prohibit inclusion of "xalloc.h" without use.
24355         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24356
24357 2009-11-14  John W. Eaton  <jwe@gnu.org>
24358
24359         strftime.h: wrap funtion declaration in extern "C" block
24360         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
24361
24362 2009-11-13  Eric Blake  <ebb9@byu.net>
24363
24364         getgroups: avoid compiler warning
24365         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
24366
24367         getgroups: work around FreeBSD bug
24368         * lib/getgroups.c (rpl_getgroups): Work around the bug.
24369         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
24370         * doc/posix-functions/getgroups.texi (getgroups): Document it.
24371         * tests/test-getgroups.c (main): Fix buffer overrun.
24372
24373         getgroups: avoid compilation failure
24374         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
24375         * modules/getgroups (Depends-on): Add stdint.
24376
24377 2009-11-13  Jim Meyering  <meyering@redhat.com>
24378
24379         test-getgroups: avoid compilation failure
24380         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24381
24382 2009-11-13  Eric Blake  <ebb9@byu.net>
24383
24384         mgetgroups: new module, taken from coreutils
24385         * modules/mgetgroups: New file.
24386         * lib/mgetgroups.h: Likewise.
24387         * lib/mgetgroups.c (mgetgroups): Likewise.
24388         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24389         * MODULES.html.sh (Users and groups): Mention it.
24390
24391         getgroups: don't expose GETGROUPS_T to user
24392         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24393         an element at a time if GETGROUPS_T is wrong size.
24394         * lib/getugroups.h (getugroups): Change signature.
24395         * lib/unistd.in.h (getgroups): Likewise.
24396         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24397         signature needs fixing.
24398         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24399         AC_TYPE_GETGROUPS.
24400         * modules/group-member (Depends-on): Add getgroups.
24401         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24402         (group_member): Rely on getgroups replacement.
24403         * lib/getugroups.c (getugroups): Use gid_t.
24404         * tests/test-getgroups.c (main): Likewise.
24405         * NEWS: Mention the signature change.
24406         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24407         problem with signature.
24408         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24409         GETGROUPS_T is still useful for setgroups.
24410
24411         getgroups, getugroups: provide stubs for mingw
24412         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24413         * lib/getugroups.c (getugroups): Likewise.
24414         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24415         function.  Modernize replacement scheme.
24416         (gl_PREREQ_GETGROUPS): Delete.
24417         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24418         * modules/getgroups (configure.ac): Declare witness.
24419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24420         * modules/unistd (Depends-on): Substitute witness.
24421         * lib/unistd.in.h (getgroups): Declare replacement.
24422
24423         getgroups: avoid calling exit
24424         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24425         drop xalloc.
24426         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24427         dependencies.
24428         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24429         exiting, in the rare case of malloc failure.
24430
24431         getgroups: fix logic error
24432         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24433         has more than 20 groups.
24434         * modules/getgroups-tests: New test.
24435         * tests/test-getgroups.c: New file.
24436
24437 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24438
24439         * tests/test-base64.c: Improve.
24440
24441 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24442
24443         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24444         Blake <ebb9@byu.net>.
24445
24446 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24447
24448         * tests/test-xvasprintf.c: Add %s%s related checks.
24449
24450 2009-11-12  Eric Blake  <ebb9@byu.net>
24451
24452         version-etc: match standards.texi style
24453         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24454         and use <> only for URLs.
24455
24456 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24457
24458         fts: do not fail on a submount during traversal
24459         * lib/fts.c (fts_build): Read the stat info again after opening
24460         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24461         Original report at http://bugzilla.redhat.com/501848.
24462
24463 2009-11-12  Jim Meyering  <meyering@redhat.com>
24464
24465         bootstrap: sync from coreutils
24466         * build-aux/bootstrap (bootstrap_epilogue): New function.
24467         Use git_modules_config in one more place.  This make bootstrap's
24468         --gnulib-srcdir option more useful for testing.
24469
24470         bootstrap: generalize autoheader check
24471         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24472         AC_CONFIG_HEADERS.
24473
24474 2009-11-11  Eric Blake  <ebb9@byu.net>
24475
24476         mkfifoat: use new modules for Solaris and BSD bugs
24477         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24478         * lib/mkfifoat.c (mknodat): Split...
24479         * lib/mknodat.c (mknodat): ...into new file.
24480         * modules/mkfifoat (Files): Ship new file.
24481         (Depends-on): Add mkfifo, mknod.
24482         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24483         (Depends-on): Add symlink.
24484         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24485         redundant with test_mkfifo.h.
24486         (do_mkfifoat, do_mknodat): New helpers.
24487
24488         mknod: new module
24489         * modules/mknod: New file.
24490         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24491         * lib/mknod.c (mknod): Likewise.
24492         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24493         defaults.
24494         * modules/sys_stat (Makefile.am): Substitute them.
24495         * lib/sys_stat.in.h (mknod): Declare replacement.
24496         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24497         Document it.
24498         * doc/posix-functions/mknod.texi (mknod): Likewise.
24499         * modules/mknod-tests: New test.
24500         * tests/test-mknod.c: Likewise.
24501
24502         mkfifo: new module
24503         * modules/mkfifo: New file.
24504         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24505         * lib/mkfifo.c (mkfifo): Likewise.
24506         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24507         defaults.
24508         * modules/sys_stat (Makefile.am): Substitute them.
24509         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24510         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24511         Document it.
24512         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24513         * modules/mkfifo-tests: New test.
24514         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24515         from test-mkfifoat.c.
24516         * tests/test-mkfifo.c: New file.
24517
24518         readlink: detect FreeBSD bug
24519         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24520         slash on symlink.
24521         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24522         * tests/test-readlink.h (test_readlink): Enhance test.
24523
24524         symlink: detect FreeBSD bug
24525         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24526         slash on symlink.
24527         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24528         * tests/test-symlink.h (test_symlink): Enhance test.
24529
24530 2009-11-10  Eric Blake  <ebb9@byu.net>
24531
24532         link: detect FreeBSD bug
24533         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24534         symlink.
24535         * doc/posix-functions/link.texi (link): Document the bug.
24536         * tests/test-link.h (test_link): Enhance test.
24537         * tests/test-linkat.c (main): Update caller.
24538
24539         unlink, remove: detect FreeBSD bug
24540         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24541         slash on symlink.
24542         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24543         * doc/posix-functions/remove.texi (remove): Likewise.
24544         * tests/test-unlink.h (test_unlink): Enhance test.
24545         * tests/test-remove.c (main): Likewise.
24546
24547 2009-11-09  Eric Blake  <ebb9@byu.net>
24548
24549         rename: detect FreeBSD bug
24550         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24551         slash on symlink.
24552         * modules/renameat-tests (Depends-on): Add filenamecat.
24553         * tests/test-rename.h (test_rename): Allow one more errno.
24554         * tests/test-renameat.c (main): Likewise.
24555         * doc/posix-functions/rename.texi (rename): Document the bug.
24556
24557         open: detect FreeBSD bug
24558         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24559         symlink.
24560         * doc/posix-functions/open.texi (open): Document the bug.
24561         * doc/posix-functions/utimes.texi (utimes): Likewise.
24562         * tests/test-open.h (test_open): Add parameters, and test symlink
24563         handling.
24564         * tests/test-open.c (main): Adjust caller.
24565         * tests/test-fcntl-safer.c (main): Likewise.
24566         * modules/open-tests (Depends-on): Add stdbool, symlink.
24567         * modules/fcntl-safer-tests (Depends-on): Likewise.
24568         * tests/test-openat.c (main): Add test-open tests.
24569
24570         stat: detect FreeBSD bug
24571         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24572         symlink.
24573         * doc/posix-functions/stat.texi (stat): Document the bug.
24574         * tests/test-stat.h (test_stat_func): Add argument.
24575         * tests/test-stat.c (main): Adjust caller.
24576         * tests/test-fstatat.c (main): Likewise.
24577         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24578         Reported by Jim Meyering.
24579
24580 2009-11-09  James Youngman  <jay@gnu.org>
24581
24582         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24583         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24584
24585 2009-11-08  Jim Meyering  <meyering@redhat.com>
24586
24587         utimens: remove invalid futimesat call
24588         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24589         It used the file descriptor of the target file as the DIR_FD
24590         parameter and NULL as the file name.  That caused failure with
24591         errno == EFAULT on FreeBSD-8.0-rc2
24592
24593 2009-11-07  Eric Blake  <ebb9@byu.net>
24594
24595         fflush, freadseek: use fseeko, not fseek
24596         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24597         (clear_ungetc_buffer): Avoid potential problems on large files.
24598         * lib/freadseek.c (freadseek): Likewise.
24599         * modules/freadseek (Depends-on): Add fseeko.
24600         * modules/fseek (configure.ac): Set a witness.
24601         * tests/test-fflush.c (main): Use fseeko.
24602         * tests/test-fpurge.c (fseek): Disable link warning.
24603         * tests/test-freadable.c (fseek): Likewise.
24604         * tests/test-freading.c (fseek): Likewise.
24605         * tests/test-fseeko.c (fseek): Likewise.
24606         * tests/test-ftell.c (fseek): Likewise.
24607         * tests/test-ftello.c (fseek): Likewise.
24608         * tests/test-fwritable.c (fseek): Likewise.
24609         * tests/test-fwriting.c (fseek): Likewise.
24610
24611 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24612
24613         * modules/memchr (Depends-on): Drop getpagesize dependency.
24614
24615 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24616
24617         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24618         Reported by Ludovic Courtès.
24619         * build-aux/pmccabe2html: Improve example usage.
24620         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24621
24622 2009-11-06  Jim Meyering  <meyering@redhat.com>
24623
24624         do-release-commit-and-tag: New module.
24625         Automate the release-commit and tag process.
24626         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24627         * modules/do-release-commit-and-tag: New file.
24628         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24629
24630 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24631
24632         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24633         because test-select.c uses inet_pton.
24634
24635 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24636
24637         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24638         GETADDRINFO_LIB.  Bump serial number.
24639         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24640         Suggested by Eric Blake <ebb9@byu.net>.
24641
24642 2009-11-05  Eric Blake  <ebb9@byu.net>
24643
24644         strtod: detect darwin bug
24645         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24646         Reported by Leo Davis.
24647
24648         freopen-safer: new module
24649         * modules/freopen-safer: New module.
24650         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24651         * lib/freopen-safer.c (freopen_safer): New file.
24652         * lib/stdio-safer.h (freopen_safer): New declaration.
24653         * lib/stdio--.h (freopen): New override.
24654         * MODULES.html.sh (File stream based Input/Output): Mention it.
24655         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24656         freopen-safer module.
24657         * doc/posix-functions/stderr.texi (stderr): Likewise.
24658         * doc/posix-functions/stdin.texi (stdin): Likewise.
24659         * doc/posix-functions/stdout.texi (stdout): Likewise.
24660         * modules/freopen-safer-tests: New test.
24661         * tests/test-reopen-safer.c: New file.
24662
24663 2009-11-05  Jim Meyering  <meyering@redhat.com>
24664
24665         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24666         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24667
24668 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24669
24670         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24671
24672 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24673
24674         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24675
24676 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24677
24678         Fix link error.
24679         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24680         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24681
24682 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24683
24684         * tests/test-func.c: Also test value of __func__.
24685
24686 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24687
24688         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24689         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24690
24691 2009-11-05  Bruno Haible  <bruno@clisp.org>
24692
24693         Fix link error.
24694         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24695         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24696         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24697
24698 2009-11-05  Bruno Haible  <bruno@clisp.org>
24699
24700         Tests for module 'inet_pton'.
24701         * modules/inet_pton-tests: New file.
24702         * tests/test-inet_pton.c: New file.
24703
24704 2009-11-05  Bruno Haible  <bruno@clisp.org>
24705
24706         Tests for module 'inet_ntop'.
24707         * modules/inet_ntop-tests: New file.
24708         * tests/test-inet_ntop.c: New file.
24709
24710 2009-11-04  Eric Blake  <ebb9@byu.net>
24711
24712         stdlib-safer: wrap all mkstemp variants
24713         * modules/mkostemp (configure.ac): Set witness.
24714         * modules/mkostemps (configure.ac): Likewise.
24715         * modules/mkstemps (configure.ac): Likewise.
24716         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24717         (mkstemps_safer): Wrap more functions.
24718         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24719         wrapping.
24720         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24721         (mkstemps_safer): Implement the wrappers.
24722
24723         mkstemps, mkostemps: new modules
24724         * modules/mkostemps: New module.
24725         * modules/mkstemps: Likewise.
24726         * lib/mkostemps.c (mkostemps): New file.
24727         * lib/mkstemps.c (mkstemps): Likewise.
24728         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24729         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24731         * modules/stdlib (Makefile.am): Substitute them.
24732         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24733         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24734         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24735         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24736         * MODULES.html.sh (File system functions): Mention them.
24737
24738         tempname: resync from glibc
24739         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24740         same values for __GT_FILE as glibc.  Abort even when assertions
24741         are disabled.
24742         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24743         match its value otherwise.  Allow idempotent inclusion.
24744         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24745         * lib/mkostemp.c (mkostemp): Likewise.
24746         * lib/mkstemp.c (mkstemp): Likewise.
24747         * lib/tmpfile.c (tmpfile): Likewise.
24748         * NEWS: Document this.
24749
24750         utimens: fix use of futimens on older Linux
24751         * lib/utimens.c (fdutimens): Use updated, rather than original,
24752         timespec to avoid bug in older Linux kernel.
24753         Reported by Simon Josefsson.
24754
24755 2009-11-04  Bruno Haible  <bruno@clisp.org>
24756
24757         Make num_processors more flexible and consistent.
24758         * lib/nproc.h (enum nproc_query): New type.
24759         (num_processors): Add a 'query' argument.
24760         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24761         (num_processors): Add a 'query' argument. Test the value of the
24762         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24763         mingw, count the number of CPUs available for the current process.
24764         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24765         Check for sched_getaffinity and sched_getaffinity_np.
24766         * modules/nproc (Depends-on): Add c-ctype, extensions.
24767         * NEWS: Mention the change.
24768
24769 2009-11-03  Bruno Haible  <bruno@clisp.org>
24770
24771         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24772
24773 2009-11-03  Jim Meyering  <meyering@redhat.com>
24774
24775         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24776         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24777         if it is defined.
24778
24779 2009-11-02  Eric Blake  <ebb9@byu.net>
24780
24781         mktime, timegm: share common declaration
24782         * lib/mktime-internal.h: New file.
24783         * lib/mktime.c: Use it rather than open-coding a declaration.
24784         * lib/timegm.c: Likewise.
24785         * modules/mktime (Files): Ship it.
24786         * modules/timegm (Files): Likewise.
24787         Suggested by Bruno Haible.
24788
24789         test-update-copyright: update test to match script changes
24790         * tests/test-update-copyright.sh: Avoid hard-coding perl
24791         location.  Don't update *.bak created by earlier runs.
24792
24793 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24794             Simon Josefsson  <simon@josefsson.org>
24795             Bruno Haible  <bruno@clisp.org>
24796
24797         Fix link error on Solaris 8.
24798         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24799         also in libnsl. Define also INET_PTON_LIB.
24800         * modules/inet_pton (Link): New section.
24801
24802 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24803             Bruno Haible  <bruno@clisp.org>
24804
24805         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24806         * modules/inet_ntop (Link): New section.
24807         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24808
24809 2009-11-02  Eric Blake  <ebb9@byu.net>
24810
24811         maint: avoid compiler warnings in m4 macros
24812         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24813         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24814
24815 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24816
24817         * m4/pmccabe2html.m4: Remove file.
24818         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24819         function.  Change maintainer.
24820         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24821         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24822         Courtès).
24823
24824 2009-10-31  Eric Blake  <ebb9@byu.net>
24825
24826         fseeko: fix m4 regression
24827         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24828         regression from 2009-10-27.
24829         Reported by Ralf Wildenhues.
24830
24831 2009-10-31  Jim Meyering  <meyering@redhat.com>
24832
24833         inttostr: aesthetics and improved (compile-time) safety
24834         Define inttype_is_signed rather than inttype_is_unsigned,
24835         since the sole use is via "#if inttype_is_signed".
24836         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24837         inttype_is_unsigned.
24838         * lib/offtostr.c (inttype_is_signed): Likewise.
24839         * lib/uinttostr.c (inttype_is_signed): Likewise.
24840         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24841         * lib/inttostr.c (inttostr): Use verify to cross-check the
24842         inttype_is_signed value and the signedness of the actual type.
24843         * modules/inttostr (Depends-on): Add verify.
24844
24845 2009-10-30  Eric Blake  <ebb9@byu.net>
24846
24847         build: avoid compiler warnings
24848         * lib/fchmodat.c (lchmod): Mark unused variables.
24849         * lib/getopt.c (_getopt_initialize): Likewise.
24850         * lib/mktime.c (__mktime_internal): Provide prototype.
24851         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24852         older gcc that do not understand #pragma GCC diagnostic.
24853         * lib/uinttostr.c (inttype_is_unsigned): Define.
24854         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24855
24856 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24857
24858         stat: fix compilation on AIX
24859         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24860         only see struct stat64.
24861
24862 2009-10-30  Eric Blake  <ebb9@byu.net>
24863
24864         exclude: make more robust
24865         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24866         rather than masking a coding bug.
24867         Suggested by Bruno Haible.
24868
24869 2009-10-30  Jim Meyering  <meyering@redhat.com>
24870
24871         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24872         Rather than putting #!/usr/bin/perl on the first line,
24873         start with a variant of what's recommended by "man perlrun" that
24874         invokes the first "perl" program from your shell's search path.
24875         * build-aux/gitlog-to-changelog: Replace #!... as above.
24876         Add a "Local Variables" perl mode setting.
24877         Prompted by a patch from Ludovic Courtès.
24878         Improved by Eric Blake.
24879         * build-aux/useless-if-before-free: Likewise.
24880         * build-aux/announce-gen: Likewise.
24881         * build-aux/update-copyright: Likewise.
24882
24883 2009-10-29  Eric Blake  <ebb9@byu.net>
24884
24885         filenamecat-lgpl: adjust clients
24886         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24887         filenamecat.
24888         * modules/renameat (Depends-on): Likewise.
24889
24890         filenamecat: split into filenamecat-lgpl
24891         * modules/filenamecat-lgpl: New module.
24892         * modules/filenamecat (Files): Move library-safe files into
24893         filenamecat-lgpl.
24894         (Depends-on): Add filenamecat-lgpl.
24895         (configure.ac): Declare witness.
24896         * lib/filenamecat.h (file_name_concat): Only declare when using
24897         GPL module.
24898         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24899         Move...
24900         * lib/filenamecat-lgpl.c: ...into new file.
24901         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24902         (gl_FILE_NAME_CONCAT): Use it.
24903         * MODULES.html.sh (File system functions): Mention new module.
24904
24905         argp: avoid memory leak
24906         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24907         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24908         base_name, since the latter malloc()s and can call exit().
24909         Leak introduced 2006-07-03.
24910
24911         dirname-lgpl: adjust clients that don't need full dirname
24912         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24913         * modules/filenamecat (Depends-on): Likewise.
24914         * modules/linkat (Depends-on): Likewise.
24915         * modules/mkancesdirs (Depends-on): Likewise.
24916         * modules/mkdir (Depends-on): Likewise.
24917         * modules/openat (Depends-on): Likewise.
24918         * modules/savewd (Depends-on): Likewise.
24919         * modules/rename (Depends-on): Likewise.
24920         (License): Relax license.
24921         * modules/mkdir-tests (Depends-on): Drop progname.
24922         (Makefile.am): Delete unneeded LDADD.
24923         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24924
24925         dirname: split into dirname-lgpl
24926         * modules/dirname-lgpl: New module.
24927         * modules/dirname (Files): Move library-safe files into
24928         dirname-lgpl.
24929         (Depends-on): Add dirname-lgpl.
24930         (configure.ac): Declare witness.
24931         * modules/double-slash-root (License): Relax license.
24932         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24933         module.
24934         * lib/dirname.c (dir_len, mdir_name): Move...
24935         * lib/dirname-lgpl.c: ...into new file.
24936         * lib/basename.c (last_component, base_len): Move...
24937         * lib/basename-lgpl.c: ...into new file.
24938         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24939         (gl_DIRNAME): Use it.
24940         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24941         Mention new module.
24942         * modules/dirname-tests (Depends-on): Add progname.
24943         * tests/test-dirname.c (program_name): Delete.
24944
24945         mkdir: make safe for libraries
24946         * modules/mkdir (Depends-on): Drop xalloc.
24947         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24948         exit.
24949
24950         tests: avoid some compiler warnings
24951         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24952         literals.
24953         * tests/test-memchr.c (main): Avoid type mismatch.
24954         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24955         * tests/test-base64.c (main): Likewise.
24956         * tests/test-getdelim.c (main): Likewise.
24957         * tests/test-gethostname.c (main): Likewise.
24958         * tests/test-getline.c (main): Likewise.
24959         * tests/test-netinet_in.c (main): Likewise.
24960         * tests/test-select.c (open_server_socket, main): Likewise.
24961         * tests/test-select-stdin.c (main): Likewise.
24962         * tests/test-sockets.c (main): Likewise.
24963         * tests/test-strsignal.c (main): Likewise.
24964         * tests/test-sys_select.c (main): Likewise.
24965         * tests/test-sys_socket.c (main): Likewise.
24966         * tests/test-u64.c (main): Likewise.
24967         * tests/test-xfprintf-posix.c (main): Likewise.
24968         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24969
24970         sockets: avoid compiler warning
24971         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24972
24973         maint: detect usage(1) and other suspicious exits
24974         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24975
24976 2009-10-29  Jim Meyering  <meyering@redhat.com>
24977
24978         timespec: long-to-int truncation could make timespec_cmp malfunction
24979         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24980         a multiple of 2^32 nanoseconds as no difference.
24981
24982 2009-10-28  Jim Meyering  <meyering@redhat.com>
24983
24984         fprintftime: wrap macro code argument in "do {...} while(0)"
24985         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24986         cpy macro must be a statement that can be followed by a semicolon.
24987         Now that the else clause contains a comment and is hence longer
24988         than one line, I require curly braces.  That in turn requires
24989         that we wrap this code block in the standard do...while(0).
24990
24991         fprintftime: remove stray semicolon from previous change
24992         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24993
24994         fprintftime: avoid a warning about ignored fwrite return value
24995         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24996         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24997         that is unsafe.
24998         * modules/fprintftime (Depends-on): Add ignore-value.
24999
25000         exclude: avoid an unwarranted warning
25001         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25002
25003 2009-10-27  Eric Blake  <ebb9@byu.net>
25004
25005         fseek: avoid compilation failure when fflush is replaced
25006         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25007         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25008         module is in use.
25009         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25010         module is not in use; since REPLACE_FSEEK worked otherwise.
25011         (GNULIB_FTELLO): Likewise for ftell.
25012         Reported by Ian Beckwith and others.
25013
25014 2009-10-27  Bruno Haible  <bruno@clisp.org>
25015
25016         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25017         Reported by Jim Meyering.
25018
25019 2009-10-27  Jim Meyering  <jim@meyering.net>
25020             Bruno Haible  <bruno@clisp.org>
25021
25022         Avoid warning despite dropping the return value of fwrite.
25023         * lib/unicodeio.c: Include ignore-value.h.
25024         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25025         * modules/unicodeio (Depends-on): Add ignore-value.
25026
25027 2009-10-26  Eric Blake  <ebb9@byu.net>
25028
25029         areadlinkat: fix fallback path
25030         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25031         pointer and zero.
25032
25033 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25034
25035         Use a better IO block size for modern systems
25036         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25037         * lib/md2.c: Likewise.
25038         * lib/md4.c: Likewise.
25039         * lib/md5.c: Likewise.
25040         * lib/sha1.c: Likewise.
25041         * lib/sha256.c: Likewise.
25042         * lib/sha512.c: Likewise.
25043
25044 2009-10-22  Eric Blake  <ebb9@byu.net>
25045
25046         tests: avoid several compiler warnings
25047         * tests/test-getcwd.c (main): Avoid buffer underflow.
25048         * tests/test-getdate.c (main): String literals are not safe with
25049         putenv, so use setenv.  Declare unused argument.
25050         * modules/getdate-tests (Depends-on): Add setenv.
25051         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25052         problems with string literals in char *.
25053         * tests/test-hash.c (main): Avoid shadowing declaration.
25054         (insert_new): Treat string literals as char const *.
25055         * tests/test-getopt.h (test_getopt): Likewise.
25056         (getopt_loop): Alter types to minimize casting elsewhere.
25057         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25058         (test_getopt_long_posix): Likewise.
25059         (do_getopt_long): Add wrapper to minimize casting.
25060         * tests/test-atexit.c (clear_temp_file): Use void.
25061         * tests/test-areadlink-with-size.c (main): Declare unused
25062         arguments.
25063         * tests/test-areadlink.c (main): Likewise.
25064         * tests/test-areadlinkat-with-size.c (main): Likewise.
25065         * tests/test-areadlinkat.c (main): Likewise.
25066         * tests/test-canonicalize-lgpl.c (main): Likewise.
25067         * tests/test-canonicalize.c (main): Likewise.
25068         * tests/test-dirent-safer.c (main): Likewise.
25069         * tests/test-dirname.c (main): Likewise.
25070         * tests/test-dup2.c (main): Likewise.
25071         * tests/test-fchdir.c (main): Likewise.
25072         * tests/test-fcntl-h.c (main): Likewise.
25073         * tests/test-fcntl-safer.c (main): Likewise.
25074         * tests/test-fdopendir.c (main): Likewise.
25075         * tests/test-fdutimensat.c (main): Likewise.
25076         * tests/test-fflush.c (main): Likewise.
25077         * tests/test-filenamecat.c (main): Likewise.
25078         * tests/test-filevercmp.c (main): Likewise.
25079         * tests/test-fopen-safer.c (main): Likewise.
25080         * tests/test-fopen.c (main): Likewise.
25081         * tests/test-fpending.c (main): Likewise.
25082         * tests/test-fpurge.c (main): Likewise.
25083         * tests/test-freading.c (main): Likewise.
25084         * tests/test-fstatat.c (main): Likewise.
25085         * tests/test-fsync.c (main): Likewise.
25086         * tests/test-futimens.c (main): Likewise.
25087         * tests/test-getndelim2.c (main): Likewise.
25088         * tests/test-gettimeofday.c (main): Likewise.
25089         * tests/test-getopt.c (main): Likewise.
25090         * tests/test-i-ring.c (main): Likewise.
25091         * tests/test-inttypes.c (main): Likewise.
25092         * tests/test-link.c (main): Likewise.
25093         * tests/test-lstat.c (main): Likewise.
25094         * tests/test-math.c (main): Likewise.
25095         * tests/test-md5.c (main): Likewise.
25096         * tests/test-memchr2.c (main): Likewise.
25097         * tests/test-memrchr.c (main): Likewise.
25098         * tests/test-mkdir.c (main): Likewise.
25099         * tests/test-mkdirat.c (main): Likewise.
25100         * tests/test-mkfifoat.c (main): Likewise.
25101         * tests/test-open.c (main): Likewise.
25102         * tests/test-openat-safer.c (main): Likewise.
25103         * tests/test-openat.c (main): Likewise.
25104         * tests/test-quotearg.c (main): Likewise.
25105         * tests/test-rawmemchr.c (main): Likewise.
25106         * tests/test-readlink.c (main): Likewise.
25107         * tests/test-remove.c (main): Likewise.
25108         * tests/test-rename.c (main): Likewise.
25109         * tests/test-renameat.c (main): Likewise.
25110         * tests/test-rmdir.c (main): Likewise.
25111         * tests/test-sha1.c (main): Likewise.
25112         * tests/test-signal.c (main): Likewise.
25113         * tests/test-sigaction.c (main): Likewise.
25114         * tests/test-stat.c (main): Likewise.
25115         * tests/test-stat-time.c (main): Likewise.
25116         * tests/test-stddef.c (main): Likewise.
25117         * tests/test-stdint.c (main): Likewise.
25118         * tests/test-stdio.c (main): Likewise.
25119         * tests/test-stdlib.c (main): Likewise.
25120         * tests/test-strchrnul.c (main): Likewise.
25121         * tests/test-strerror.c (main): Likewise.
25122         * tests/test-string.c (main): Likewise.
25123         * tests/test-strtod.c (main): Likewise.
25124         * tests/test-strverscmp.c (main): Likewise.
25125         * tests/test-symlink.c (main): Likewise.
25126         * tests/test-symlinkat.c (main): Likewise.
25127         * tests/test-sys_stat.c (main): Likewise.
25128         * tests/test-sys_time.c (main): Likewise.
25129         * tests/test-time.c (main): Likewise.
25130         * tests/test-unistd.c (main): Likewise.
25131         * tests/test-unlink.c (main): Likewise.
25132         * tests/test-unlinkat.c (main): Likewise.
25133         * tests/test-utimens.c (main): Likewise.
25134         * tests/test-utimensat.c (main): Likewise.
25135         * tests/test-version-etc.c (main): Likewise.
25136         * tests/test-wchar.c (main): Likewise.
25137         * tests/test-wctype.c (main): Likewise.
25138         * tests/test-xprintf-posix.c (main): Likewise.
25139         * tests/test-posixtm.c (main): Likewise.
25140         (STREQ): Delete unused macro.
25141         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25142         shadowed variables.
25143         * tests/test-memchr.c (main): Likewise.
25144
25145 2009-10-21  Eric Blake  <ebb9@byu.net>
25146
25147         areadlinkat: avoid failure on older glibc
25148         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25149         rather than mis-comparing 0 against FUNC_RESULT of char*.
25150
25151 2009-10-21  Bruno Haible  <bruno@clisp.org>
25152
25153         * modules/stpncpy (License): Relicense under LGPLv2+.
25154         Reported by David Lutterkort <lutter@redhat.com>.
25155
25156 2009-10-20  Eric Blake  <ebb9@byu.net>
25157
25158         utimensat: work around Solaris 9 bug
25159         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25160         has trailing slash bugs.
25161         * tests/test-lutimens.h (test_lutimens): Enhance test.
25162         * tests/test-utimens.h (test_utimens): Likewise.
25163         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25164         * doc/posix-functions/utimes.texi (utimes): Likewise.
25165         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25166         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25167         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25168         * doc/posix-functions/futimens.texi (futimens): Likewise.
25169
25170         fdutimensat: new module
25171         * modules/fdutimensat: New file.
25172         * lib/fdutimensat.c (fdutimensat): Likewise.
25173         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25174         * MODULES.html.sh (File system functions): Mention module.
25175         * modules/fdutimensat-tests: New test.
25176         * tests/test-fdutimensat.c: Likewise.
25177
25178         doc: regenerate INSTALL
25179         * doc/INSTALL: Reflect recent autoconf update.
25180         * doc/INSTALL.ISO: Likewise.
25181         * doc/INSTALL.UTF-8: Likewise.
25182
25183 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25184
25185         acl: warn if ACL support is not detected
25186         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25187
25188 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25189
25190         * lib/nproc.h: Add extern "C" block for C++.
25191
25192 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25193             Bruno Haible  <bruno@clisp.org>
25194
25195         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25196         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25197         * doc/posix-functions/isalpha.texi: Likewise.
25198         * doc/posix-functions/isblank.texi: Likewise.
25199         * doc/posix-functions/iscntrl.texi: Likewise.
25200         * doc/posix-functions/isdigit.texi: Likewise.
25201         * doc/posix-functions/isgraph.texi: Likewise.
25202         * doc/posix-functions/islower.texi: Likewise.
25203         * doc/posix-functions/isprint.texi: Likewise.
25204         * doc/posix-functions/ispunct.texi: Likewise.
25205         * doc/posix-functions/isspace.texi: Likewise.
25206         * doc/posix-functions/isupper.texi: Likewise.
25207         * doc/posix-functions/isxdigit.texi: Likewise.
25208
25209 2009-10-18  Bruno Haible  <bruno@clisp.org>
25210
25211         Tests for module 'isblank'.
25212         * modules/isblank-tests: New file.
25213         * tests/test-isblank.c: New file.
25214
25215         New module 'isblank'.
25216         * lib/isblank.c: New file.
25217         * m4/isblank.m4: New file.
25218         * modules/isblank: New file.
25219         * doc/posix-functions/isblank.texi: Mention the new module.
25220
25221 2009-10-18  Bruno Haible  <bruno@clisp.org>
25222
25223         New module 'ctype'.
25224         * lib/ctype.in.h: New file.
25225         * m4/ctype.m4: New file.
25226         * modules/ctype: New file.
25227         * doc/posix-headers/ctype.texi: Mention the new module.
25228
25229 2009-10-18  Jim Meyering  <meyering@redhat.com>
25230
25231         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
25232         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
25233         right after its initialization, rather than farther down.
25234         Keeping these in close proximity makes it easier to ensure
25235         that each such variable is initialized.  E.g.,
25236
25237             LIB_CLOCK_GETTIME=
25238             AC_SUBST([LIB_CLOCK_GETTIME])
25239
25240         This change also increments these serial numbers.
25241         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
25242         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25244
25245 2009-10-18  Bruno Haible  <bruno@clisp.org>
25246
25247         Don't let environment variables perturb build.
25248         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
25249         (gl_PREREQ_GETHRXTIME): ... not here.
25250
25251 2009-10-18  Bruno Haible  <bruno@clisp.org>
25252
25253         Avoid symlink attack in localcharset module.
25254         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
25255         (O_NOFOLLOW): Define fallback.
25256         (get_charset_aliases): Don't open the file if it is a symbolic link.
25257         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
25258         gl_FCNTL_H.
25259         (gl_FCNTL_H): Require it.
25260         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
25261         * modules/localcharset (Files): Add m4/fcntl_h.m4.
25262         Reported by Fergal Glynn <fglynn@veracode.com>.
25263
25264 2009-10-18  Bruno Haible  <bruno@clisp.org>
25265
25266         Implement nproc for mingw.
25267         * lib/nproc.c: Include <windows.h>
25268         (num_processors): On native Windows platforms, try GetSystemInfo.
25269
25270 2009-10-18  Bruno Haible  <bruno@clisp.org>
25271
25272         Implement nproc for IRIX.
25273         * lib/nproc.c: Include <sys/sysmp.h>.
25274         (num_processors): On IRIX systems, try sysmp.
25275         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25276
25277 2009-10-18  Bruno Haible  <bruno@clisp.org>
25278
25279         Implement nproc for HP-UX.
25280         * lib/nproc.c: Include <sys/pstat.h>
25281         (num_processors): On HP-UX systems, try pstat_getdynamic.
25282         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25283         pstat_getdynamic.
25284
25285 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25286             Bruno Haible  <bruno@clisp.org>
25287
25288         Implement nproc for NetBSD, OpenBSD.
25289         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25290         (ARRAY_SIZE): New macro.
25291         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25292         * m4/nproc.m4: New file.
25293         * modules/nproc (Files): Add m4/nproc.m4.
25294         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25295         (Makefile.am): Instead, augment lib_SOURCES.
25296
25297 2009-10-18  Bruno Haible  <bruno@clisp.org>
25298
25299         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25300         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25301         sys/param.h.
25302
25303 2009-10-16  Eric Blake  <ebb9@byu.net>
25304
25305         utimensat: new module
25306         * modules/utimensat: New file.
25307         * lib/utimensat.c (utimensat): Likewise.
25308         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25309         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
25310         so we can work around Linux bugs.
25311         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25312         * modules/sys_stat (Makefile.am): Substitute them.
25313         * lib/sys_stat.in.h (utimensat): Declare it.
25314         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25315         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25316         * modules/utimensat-tests: New test.
25317         * tests/test-utimensat.c: Likewise.
25318
25319         utimens: let lutimens work on non-symlinks
25320         * lib/utimens.c (lutimens): Fall back to utimens rather than
25321         failing with ENOSYS, when file is not a symlink.
25322         (utimens): Reduce redirection.
25323         * tests/test-lutimens.h (test_lutimens): Update test to cover
25324         non-symlinks.
25325         * tests/test-utimens.h (test_utimens): Update test to cover
25326         symlinks.
25327         * tests/test-utimens.c (main): Update caller.
25328
25329         utimens: cache whether utimensat syscall works
25330         * lib/utimens.c (utimensat_works_really): New cache variable.
25331         (fdutimens, lutimens): Use it to avoid failing syscall.
25332
25333         test-stat-time, test-utimens: improve portability
25334         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
25335         ext4 on alpha, and for cygwin.
25336         * tests/test-utimens-common.h: New file.
25337         (nap): Factor delays into single function.
25338         * tests/test-lutimens.h (test_lutimens): Use new header.
25339         * tests/test-futimens.h (test_futimens): Likewise.
25340         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
25341         timestamps to occur from same machine, as was done previously for
25342         test_utimens.
25343         * modules/utimens-tests (Files): Ship new file.
25344         * modules/futimens-tests (Files): Likewise.
25345         Reported in part by Jim Meyering.
25346
25347         sys_stat: sort replacement declarations
25348         * lib/sys_stat.in.h: Sort declarations.
25349         * lib/futimens.c (futimens): Fix typo.
25350
25351 2009-10-15  Jim Meyering  <meyering@redhat.com>
25352
25353         don't let environment settings perturb build
25354         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25355         could cause a configure-time and/or build-time malfunction.
25356         Typically, a configure-time function-in-library test is performed
25357         via code like this:
25358
25359           LIB_VAR=
25360           AC_SUBST([LIB_VAR])
25361           prefix_saved_LIBS=$LIBS
25362             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
25363                        [test "$ac_cv_search_FUNC" = "none required" ||
25364                         LIB_VAR=$ac_cv_search_FUNC])
25365           LIBS=$prefix_saved_LIBS
25366
25367         However, in each of the files affected by this change, the LIB_VAR=
25368         initialization was omitted.  Thus, when set in the environment, its
25369         value would propagate into generated Makefiles when FUNC is not found
25370         in LIB_NAME.
25371         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
25372         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25374
25375 2009-10-14  Eric Blake  <ebb9@byu.net>
25376
25377         fchdir: avoid infinite recursion in mingw
25378         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25379         recursing.
25380
25381         test-stat-time: port to mingw
25382         * tests/test-stat-time.c (force_unlink): Return a value.
25383         (test_ctime) [W32]: Fix compilation error.
25384         (nap): Don't call usleep with too large an argument.  Use
25385         force_unlink.
25386         * doc/pastposix-functions/usleep.texi (usleep): Document the
25387         portability issue.
25388
25389 2009-10-13  Jim Meyering  <meyering@redhat.com>
25390
25391         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25392         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25393         * modules/pipe-filter-ii: Likewise.
25394         * modules/sys_socket-tests: Likewise.
25395         * modules/tsearch-tests: Likewise.
25396         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25397         (check): Depend on it.
25398
25399 2009-10-12  Eric Blake  <ebb9@byu.net>
25400
25401         utimens-tests: port to NFS file systems
25402         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25403         comparisons to avoid spurious failures from timestamp drift
25404         between NFS machines.
25405
25406 2009-10-12  Eric Blake  <ebb9@byu.net>
25407
25408         stat-time-tests: minor cleanups
25409         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25410         * tests/test-stat-time.c (nap): Separate assignment from call.
25411         Suggested by Paolo Bonzini and Bruno Haible.
25412
25413         sys_stat: guarantee struct timespec
25414         * lib/sys_stat.in.h (includes): Always include <time.h>
25415         * modules/sys_stat (Depends-on): Add time.
25416         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25417         mode_t permission values.
25418         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25419         get at subsecond timestamps.
25420
25421 2009-10-10  Eric Blake  <ebb9@byu.net>
25422
25423         futimens: new module
25424         * modules/futimens: New file.
25425         * lib/futimens.c (futimens): Likewise.
25426         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25427         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25428         we can work around Linux bugs.
25429         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25430         * modules/sys_stat (Makefile.am): Substitute them.
25431         * lib/sys_stat.in.h (futimens): Declare it.
25432         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25433         * doc/posix-functions/futimens.texi (futimens): Likewise.
25434         * modules/futimens-tests: New test.
25435         * tests/test-futimens.c: Likewise.
25436
25437         utimens: introduce fdutimens
25438         * lib/utimens.h (fdutimens): New prototype.
25439         * lib/utimens.c (gl_futimens): Move guts...
25440         (fdutimens): ...to new interface.
25441         * tests/test-utimens.c (do_fdutimens): Use it.
25442
25443         utimens: add UTIME_NOW and UTIME_OMIT support
25444         * lib/utimens.c (validate_timespec, update_timespec): New helper
25445         functions.
25446         (gl_futimens, lutimens): Use them.
25447         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25448         stdbool, sys_stat.
25449         (Link): Mention resulting library dependency.
25450         * modules/utimecmp (Link): Likewise.
25451         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25452         (Makefile.am): Pick up library dependency.
25453         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25454         definition.
25455         * tests/test-sys_stat.c: Test the definitions.
25456         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25457         * NEWS: Document library dependency.
25458
25459         utimecmp: support symlink timestamps
25460         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25461         hashing when possible.  Use pathconf when available.
25462         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25463         * modules/utimecmp (Depends-on): Add lstat.
25464
25465         utimens: add lutimens interface
25466         * lib/utimens.c (lutimens): New function.
25467         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25468         * lib/utimens.h (lutimens): Declare new interface.
25469         * tests/test-utimens.c (main): Enhance test.
25470         * tests/test-lutimens.h (test_lutimens): New file.
25471         * modules/utimens-tests (Files): Distribute it.
25472         (Depends-on): Add symlink.
25473         (configure.ac): Check for usleep.
25474
25475         utimens: validate futimens usage
25476         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25477         fewer syscalls on failure later on.  Avoid compiler warning on
25478         mingw.
25479         * modules/utimens (Depends-on): Add dup2.
25480
25481         utimens: add test
25482         * modules/utimens-tests: New test.
25483         * tests/test-utimens.h: New file.
25484         * tests/test-futimens.h: Likewise.
25485         * tests/test-utimens.c: Likewise.
25486
25487         doc: mention timestamp portability issues
25488         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25489         instead.
25490         * doc/posix-functions/utime.texi (utime): Likewise.
25491         * doc/posix-functions/utimes.texi (utimes): Likewise.
25492         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25493         instead.
25494         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25495         module.
25496         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25497         Mention weakness with symlink timestamps.
25498         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25499         to utimensat/futimens instead.
25500         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25501
25502         test-dup2: enhance test
25503         * tests/test-dup2.c (main): Also check AT_FDCWD.
25504
25505         test-stat-time: avoid more spurious failures
25506         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25507         xfs; and avoid race if the two timestamps cross quantization edge.
25508
25509         relocatable: prefer 'file system' over 'filesystem'
25510         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25511         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25512         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25513         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25514         * lib/relocatable.c (compute_curr_prefix): Likewise.
25515
25516 2009-10-10  Jim Meyering  <meyering@redhat.com>
25517
25518         stat-time-tests: check for the usleep function
25519         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25520
25521 2009-10-10  Bruno Haible  <bruno@clisp.org>
25522
25523         * modules/xnanosleep: Put the Link section after the Include section.
25524
25525 2009-10-09  Eric Blake  <ebb9@byu.net>
25526
25527         dup2: work around FreeBSD 6.1 bug
25528         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25529         * doc/posix-functions/dup2.texi (dup2): Document it.
25530         Reported by Nelson H. F. Beebe and Jim Meyering.
25531
25532         test-stat-time: port to buggy NFS clients
25533         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25534         (test_ctime): Also skip test if mtime and ctime are skewed.
25535
25536         maint: prefer 'file system' over 'filesystem'
25537         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25538         * doc/posix-functions/lstat.texi (lstat): Likewise.
25539         * lib/file-has-acl.c (file_has_acl): Likewise.
25540         * lib/fwriteerror.c [TEST]: Likewise.
25541         * tests/test-areadlink.h (test_areadlink): Likewise.
25542         * tests/test-areadlinkat-with-size.c (main): Likewise.
25543         * tests/test-areadlinkat.c (main): Likewise.
25544         * tests/test-canonicalize-lgpl.c (main): Likewise.
25545         * tests/test-canonicalize.c (main): Likewise.
25546         * tests/test-fstatat.c (main): Likewise.
25547         * tests/test-linkat.c (main): Likewise.
25548         * tests/test-lstat.h (test_lstat_func): Likewise.
25549         * tests/test-mkdir.h (test_mkdir): Likewise.
25550         * tests/test-readlink.h (test_readlink): Likewise.
25551         * tests/test-remove.c (main): Likewise.
25552         * tests/test-rename.h (test_rename): Likewise.
25553         * tests/test-renameat.c (main): Likewise.
25554         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25555         * tests/test-symlink.h (test_symlink): Likewise.
25556         * tests/test-symlinkat.c (main): Likewise.
25557         * tests/test-unlink.h (test_unlink_func): Likewise.
25558         * tests/test-unlinkat.c (main): Likewise.
25559
25560         maint: make realtime library usage explicit
25561         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25562         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25563         * modules/settime (Link): Likewise.
25564         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25565
25566         test-stat-time: speed up execution
25567         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25568         warning on mingw.
25569         (nap): New helper function.
25570         (prepare_test): Use it to reduce sleep time.
25571         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25572         execution.
25573         * modules/stat-time-tests (configure.ac): Check for usleep.
25574
25575 2009-10-09  Jim Meyering  <meyering@redhat.com>
25576
25577         selinux-h: always use getfilecon wrappers
25578         * lib/getfilecon.c: New file.
25579         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25580         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25581         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25582         (fgetfilecon): Provide a stub.
25583         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25584         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25585         file unconditionally.
25586         When <selinux/selinux.h> is found, arrange to use wrappers.
25587         * modules/selinux-h (Files): Add getfilecon.c.
25588         (Makefile.am): Substitute include-next-related bits
25589         into the now-always-generated selinux/selinux.h file.
25590         * doc/glibc-functions/lgetfilecon.texi: New file.
25591         * doc/glibc-functions/fgetfilecon.texi: New file.
25592         * doc/glibc-functions/getfilecon.texi: New file.
25593         * doc/glibc-functions/getfilecon-desc.texi: New file.
25594         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25595         which to pull in the new files.
25596         * MODULES.html.sh (Misc): Add selinux-h.
25597
25598 2009-10-08  Jim Meyering  <meyering@redhat.com>
25599
25600         unistd: fix comment typo
25601         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25602
25603 2009-10-08  Eric Blake  <ebb9@byu.net>
25604
25605         areadlink: use SIZE_MAX consistently
25606         * modules/areadlink (Depends-on): Add stdint.
25607         * modules/areadlink-with-size (Depends-on): Likewise.
25608         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25609         gives NULL; drop sys/types, since unistd gives size_t; and add
25610         stdint for SIZE_MAX.
25611         (SIZE_MAX): Rely on headers.
25612         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25613         and add stdint.
25614         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25615         (SIZE_MAX): Likewise.
25616         (INITIAL_BUF_SIZE): Turn into enum.
25617         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25618
25619 2009-10-08  Jim Meyering  <meyering@redhat.com>
25620
25621         areadlinkat: avoid compilation failure
25622         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25623         Fix typo in comment.
25624
25625 2009-10-07  Eric Blake  <ebb9@byu.net>
25626
25627         areadlinkat-with-size: new module
25628         * modules/areadlinkat-with-size: New module.
25629         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25630         * lib/areadlink.h (areadlinkat): Declare it.
25631         * MODULES.html.sh (File system functions): Mention it.
25632         * modules/areadlinkat-with-size-tests: New test.
25633         * tests/test-areadlinkat-with-size.c: New file.
25634
25635         xreadlinkat: new module
25636         * modules/xreadlinkat: New module.
25637         * lib/xreadlinkat.c (xreadlinkat): New file.
25638         * lib/xreadlink.h (xreadlinkat): Declare it.
25639         * MODULES.html.sh (File system functions): Mention it.
25640
25641         areadlinkat: new module
25642         * lib/at-func.c (FUNC_FAIL): New define.
25643         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25644         * modules/areadlinkat: New module.
25645         * lib/linkat.c (areadlinkat): Move...
25646         * lib/areadlinkat.c (areadlinkat): ...to new file.
25647         * lib/areadlink.h (areadlinkat): Declare it.
25648         * modules/linkat (Depends-on): Add areadlinkat.
25649         * MODULES.html.sh (File system functions): Mention it.
25650         * modules/areadlinkat-tests: New test.
25651         * tests/test-areadlinkat.c: New file.
25652
25653         areadlink, areadlink-with-size: add tests
25654         * modules/areadlink-tests: New test.
25655         * modules/areadlink-with-size-tests: Likewise.
25656         * tests/test-areadlink.h: New file.
25657         * tests/test-areadlink.c: Likewise.
25658         * tests/test-areadlink-with-size.c: Likewise.
25659
25660         maint: minor cleanups
25661         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25662         _UNUSED_PARAMETER_ instead.
25663         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25664         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25665         * modules/linkat-tests (Files): Distribute test-link.h.
25666
25667         openat, utimens: whitespace cleanup
25668         * lib/openat.c: Prefer space throughout, rather than mix of 8
25669         spaces vs. tabs.
25670         * lib/at-func.c: Likewise.
25671         * lib/utimens.c: Likewise.
25672
25673         openat: avoid using wrong fd
25674         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25675         working directory chooses same fd.
25676         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25677
25678         mkdir, mkdirat: fix cygwin 1.5.x bug
25679         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25680         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25681         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25682         bug.
25683         (gl_PREREQ_MKDIR): Delete unused macro.
25684         * modules/mkdir (Files): Track file rename.
25685         (configure.ac): Update macro name.
25686         * modules/openat (Depends-on): Add mkdir.
25687         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25688
25689         mkdir, mkdirat: add tests
25690         * modules/mkdir-tests: New test.
25691         * tests/test-mkdir.h: New file.
25692         * tests/test-mkdir.c: Likewise.
25693         * tests/test-mkdirat.c: Likewise.
25694         * modules/openat-tests (Files): Add new files.
25695         (Makefile.am): Run new test.
25696
25697 2009-10-06  Eric Blake  <ebb9@byu.net>
25698
25699         doc: tweak *at function documentation
25700         * doc/posix-functions/faccessat.texi (faccessat): Mention
25701         known issue with replacement.
25702         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25703         * doc/posix-functions/linkat.texi (linkat): Likewise.
25704         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25705         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25706         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25707         * doc/posix-functions/renameat.texi (renameat): Likewise.
25708         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25709
25710         openat: fix GNU/Hurd bug in unlinkat
25711         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25712         broken.
25713         * doc/posix-functions/unlink.texi (unlink): Document this.
25714         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25715
25716         fdopendir: fix GNU/Hurd bug
25717         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25718         allowing non-directory fds.
25719         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25720         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25721         * modules/dirent (Makefile.am): Substitute it.
25722         * lib/dirent.in.h (fdopendir): Declare replacement.
25723         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25724         * tests/test-fdopendir.c (main): Test something other than
25725         /dev/null, since on Hurd that behaves like a directory.
25726
25727         test-symlink: port to GNU/Hurd
25728         * tests/test-symlink.h (test_symlink): Relax expected errno.
25729
25730         doc: tweak more cygwin information
25731         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25732         now compatible with glibc.
25733         * doc/posix-functions/getopt.texi (getopt): Likewise.
25734
25735         getopt-gnu: add another test
25736         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25737         guarantee behavior relied on by m4.
25738         * tests/test-getopt.c (main): Use it.
25739         * modules/getopt-posix-tests (Depends-on): Add setenv.
25740         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25741
25742         getopt: fix compilation on darwin
25743         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25744         include.
25745         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25746         Reported by Ludovic Courtès.
25747
25748 2009-10-06  Bruno Haible  <bruno@clisp.org>
25749
25750         * modules/size_max (Description): Discourage its use.
25751         Reported by Simon Josefsson.
25752
25753 2009-10-06  Jim Meyering  <meyering@redhat.com>
25754
25755         linkat: avoid compilation failure
25756         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25757
25758 2009-10-05  Eric Blake  <ebb9@byu.net>
25759
25760         linkat: support Linux 2.6.17
25761         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25762         linkat on Linux, but allow cache variable override.
25763         * lib/linkat.c (rpl_linkat): Define override.
25764         * modules/linkat (Depends-on): Add symlinkat.
25765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25766         * modules/unistd (Makefile.am): Substitute it.
25767         * lib/unistd.in.h (linkat): Declare replacement.
25768         Reported by Pádraig Brady.
25769
25770         quotearg: port test to systems with C.UTF-8 locale
25771         * tests/test-quotearg.c (struct result_strings): Add another
25772         member, differentiating between C.ASCII and C.UTF-8 handling.
25773         (compare_strings): Add parameter.
25774         (main): Adjust all callers.
25775
25776         getopt: avoid clash with FreeBSD _getopt_internal
25777         * lib/getopt.in.h (_getopt_internal): Override the name.
25778         * lib/getopt_int.h (includes): Pick up any overrides.
25779         Reported by Reuben Thomas.
25780
25781         hash: allow C89 compilation
25782         * lib/hash.c (check_tuning): Move declaration before statement.
25783         Reported by Reuben Thomas.
25784
25785 2009-10-05  Karl Berry  <karl@gnu.org>
25786
25787         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25788
25789 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25790             Bruno Haible  <bruno@clisp.org>
25791
25792         * lib/uname.c (uname): Use a table-driven algorithm to compute
25793         Windows NT versions.
25794
25795 2009-10-04  Bruno Haible  <bruno@clisp.org>
25796
25797         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25798         program_invocation_short_name.
25799         * modules/progname (configure.ac): Test for presence of
25800         program_invocation_short_name.
25801         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25802
25803 2009-10-04  Bruno Haible  <bruno@clisp.org>
25804
25805         * lib/progname.c (set_program_name): Fix comment.
25806         Reported by Jim Meyering.
25807
25808 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25809             Bruno Haible  <bruno@clisp.org>
25810
25811         * lib/uname.c: Include <string.h>.
25812         (uname): Do only one call to GetVersionEx in the common case.
25813
25814 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25815             Bruno Haible  <bruno@clisp.org>
25816
25817         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25818         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25819         (uname): Add support for Windows CE and various non-x86 CPU types.
25820
25821 2009-10-03  Bruno Haible  <bruno@clisp.org>
25822
25823         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25824         invocation to tests/configure.ac.
25825         Reported by Ian Beckwith <ianb@erislabs.net>.
25826
25827 2009-10-02  Eric Blake  <ebb9@byu.net>
25828
25829         fchdir: avoid compiler warning
25830         * lib/fchdir.c (canonicalize_file_name)
25831         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25832
25833         test-open: support mingw errno values
25834         * tests/test-open.h (test_open): Relax test.
25835         * tests/test-fopen.h (test_fopen): Likewise.
25836         * tests/test-openat-safer.c (main): Likewise.
25837
25838         open: fix opening directory on mingw
25839         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25840
25841         test-open: on GNU/Hurd, /dev/null is a directory
25842         * tests/test-fopen.h (main): Rename...
25843         (test_fopen): ...to this.  Use a guaranteed non-directory when
25844         confirming open behavior on trailing slash.
25845         * tests/test-openat-safer.c (main): Likewise.
25846         * tests/test-open.h (main): Likewise....
25847         (test_open): ...to this.
25848         * tests/test-fopen.c (main): Adjust caller.
25849         * tests/test-fopen-safer.c (main): Likewise.
25850         * tests/test-open.c (main): Likewise.
25851         * tests/test-fcntl-safer.c (main): Likewise.
25852         Reported by Samuel Thibault.
25853
25854         rename, fchdir: don't ignore chdir failure
25855         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25856         * lib/rename.c (rpl_rename) [W32]: Likewise.
25857         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25858         an empty destination directory if source cannot be renamed,
25859         although there is still possibility for failure.
25860         * doc/posix-functions/rename.texi (rename): Document the race.
25861         Reported by Jim Meyering.
25862
25863         maint: cleanup whitespace in recent commits
25864         * lib/rename.c (rpl_rename): Remove tabs.
25865         * tests/test-link.h (test_link): Likewise.
25866         * lib/fchdir.c (get_name): Likewise.
25867         Reported by Jim Meyering.
25868
25869 2009-10-02  Ben Pfaff  <blp@gnu.org>
25870
25871         relocatable-prog-wrapper: Add missing dependency on
25872         double-slash-root.
25873         * modules/relocatable-prog-wrapper: Add dependency.
25874         Reported by Ian Beckwith <ianb@erislabs.net>.
25875
25876 2009-10-02  Eric Blake  <ebb9@byu.net>
25877
25878         renameat: fix Solaris bugs
25879         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25880         needed fixing.
25881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25882         * modules/stdio (Makefile.am): Substitute it.
25883         * lib/stdio.in.h (renameat): Declare replacement.
25884         * lib/renameat.c (rpl_renameat): Implement fix.
25885
25886         renameat: new module
25887         * modules/renameat: New file.
25888         * lib/renameat.c (renameat): Likewise.
25889         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25891         * modules/stdio (Makefile.am): Substitute them.
25892         * lib/stdio.in.h (renameat): Declare it.
25893         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25894         * doc/posix-functions/renameat.texi (renameat): Likewise.
25895         * modules/renameat-tests: New test.
25896         * tests/test-renameat.c: Likewise.
25897
25898         rename: fix mingw bugs
25899         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25900         directory overwrite bugs.
25901
25902         rename: fix another cygwin 1.5 bug
25903         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25904         checks.
25905         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25906         unnecessary cygwin workarounds.  Also work around bug with moving
25907         full directory onto an empty one.
25908         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25909
25910         rename-dest-slash: merge into rename module
25911         * modules/rename-dest-slash (Status): Mark obsolete.
25912         (Depends-on): Add rename.
25913         (Files): Let rename do it all.
25914         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25915         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25916         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25917         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25918         * lib/rename.c (rpl_rename): Update comments.
25919
25920         rename: fix cygwin 1.5.x bugs
25921         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25922         * lib/rename.c (rpl_rename): Work around them.
25923         * modules/rename (Depends-on): Add same-inode.
25924
25925         rename: fix Solaris 10 bug
25926         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25927         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25928         was the only bug.
25929
25930         rename: fix Solaris 9 bug
25931         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25932         on non-directory.  Avoid calling exit.
25933         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25934         strdup.
25935         * modules/rename-tests (Depends-on): Drop lstat.
25936         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25937         (gl_PREREQ_RENAME): Delete unused macro.
25938
25939         rename-dest-slash: fix NetBSD bug
25940         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25941         links.
25942         * modules/rename-dest-slash (Depends-on): Add same-inode.
25943
25944         rename-tests: new test, exposes several platform bugs
25945         * modules/rename-tests: New file.
25946         * tests/test-rename.h: Likewise.
25947         * tests/test-rename.c: Likewise.
25948         * doc/posix-functions/rename.texi (rename): Improve documentation,
25949         including bugs that will eventually be fixed in gnulib.
25950
25951 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25952
25953         * lib/uname.c: Include <stdlib.h>
25954         (uname): Assume version info is available.
25955
25956 2009-10-02  Jim Meyering  <meyering@redhat.com>
25957
25958         gnu-web-doc-update: correct --help output
25959         * build-aux/gnu-web-doc-update: Make --help output relevant.
25960
25961         gnu-web-doc-update: add standard options
25962         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25963
25964         gnu-web-doc-update: New module.
25965         Use this script to automatically update the on-line web documentation
25966         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25967         * modules/gnu-web-doc-update: New file, from coreutils.
25968         * build-aux/gnu-web-doc-update: New script.
25969
25970 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25971
25972         link: LoadLibrary is not needed.
25973         * lib/link.c: Use GetModuleHandle.
25974
25975 2009-10-01  Eric Blake  <ebb9@byu.net>
25976
25977         getopt: bump serial number
25978         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25979         change.
25980
25981         tests: tighten link, rmdir, and remove tests
25982         * tests/test-link.h (includes): No need to use <config.h> here.
25983         Clean up if directory hard link was created, otherwise test for
25984         trailing '.'.
25985         * tests/test-linkat.c (main): Simplify.
25986         * tests/test-remove.c (main): Enhance test for trailing '.'.
25987         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25988
25989 2009-10-01  Jim Meyering  <meyering@redhat.com>
25990
25991         maint.mk: requiring "make major" was annoying, for a "minor" release.
25992         What is intended is "stable", to contrast with alpha and beta,
25993         so require "make stable", not "make major".
25994         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25995         (get_tool_versions): Likewise.
25996         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25997
25998 2009-09-30  Ben Pfaff  <blp@gnu.org>
25999
26000         Fix broken build of replacement for Windows tmpfile().
26001         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26002         flags argument added along with the 'mkostemp' module.
26003
26004 2009-09-28  Bruno Haible  <bruno@clisp.org>
26005
26006         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26007         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26008         to 'remove_elt'.
26009         (gl_list_remove): Update.
26010         * lib/gl_list.c (gl_list_remove): Update.
26011         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26012         to 'remove_elt'.
26013         (gl_oset_remove): Update.
26014         * lib/gl_list.c (gl_oset_remove): Update.
26015         Reported by Eric Blake.
26016
26017 2009-09-28  Eric Blake  <ebb9@byu.net>
26018
26019         doc: mention yet more cygwin 1.7 status
26020         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26021         cygwin.
26022         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26023         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26024
26025         argp: fix test failure
26026         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26027         that are not upper-case.  Pass correct range to tolower.
26028
26029 2009-09-27  Jim Meyering  <meyering@redhat.com>
26030
26031         test-yesno: work around sparc-dash here-document infelicity
26032         Without this change, the literal \177 byte in a here document
26033         would make dash 0.5.5.1-3 access uninitialized memory.
26034         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26035         Instead, use a marker, "@", and filter through tr to create the desired
26036         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26037
26038 2009-09-27  Bruno Haible  <bruno@clisp.org>
26039
26040         Disable untested support for new flavours of ACLs on AIX.
26041         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26042         progress.
26043         * lib/set-mode-acl.c (qset_acl): Likewise.
26044
26045 2008-12-07  Bruno Haible  <bruno@clisp.org>
26046
26047         Add support for new flavours of ACLs on AIX. (Untested.)
26048         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26049         (file_has_acl): Add support for newer AIX.
26050         * lib/set-mode-acl.c (qset_acl): Likewise.
26051         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26052         Rainer Tammer <tammer@tammer.net>.
26053
26054 2009-09-26  Eric Blake  <ebb9@byu.net>
26055
26056         argp: fix compilation of getopt
26057         * lib/getopt.in.h (includes): Use different guard than glibc.
26058         Reported by Sergey Poznyakoff.
26059
26060         doc: mention more cygwin 1.7 status
26061         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26062         bug.
26063         * doc/posix-functions/execl.texi (execl): Likewise.
26064         * doc/posix-functions/execle.texi (execle): Likewise.
26065         * doc/posix-functions/execlp.texi (execlp): Likewise.
26066         * doc/posix-functions/execv.texi (execv): Likewise.
26067         * doc/posix-functions/execve.texi (execve): Likewise.
26068         * doc/posix-functions/execvp.texi (execvp): Likewise.
26069         * doc/glibc-functions/canonicalize_file_name.texi
26070         (canonicalize_file_name): Cygwin 1.7 now provides this.
26071         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26072         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26073         on AT_SYMLINK_NOFOLLOW.
26074
26075 2009-09-24  Eric Blake  <ebb9@byu.net>
26076
26077         test-linkat: make test more robust
26078         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26079
26080         getopt: fix inclusion guards for cygwin
26081         * modules/getopt-posix (Depends-on): Add include-next.
26082         (Makefile.am): Substitute more items in replacement header.
26083         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26084         <getopt.h>.
26085         * lib/getopt.in.h (includes): Use split inclusion guard, and
26086         prefer <getopt.h> over include <unistd.h> when one is present.
26087         (option): Also override name of 'struct option'.
26088
26089         same-inode: revert prior change; it is not yet ready
26090         * NEWS: Undo mention of this change.
26091         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26092         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26093         * lib/cycle-check.c (cycle_check): Likewise.
26094         * lib/same.c (same_name): Likewise.
26095         * lib/at-func2.c (at_func2): Likewise.
26096
26097 2009-09-23  Eric Blake  <ebb9@byu.net>
26098
26099         linkat: new module
26100         * modules/linkat: New file.
26101         * lib/at-func2.c (at_func2): Likewise.
26102         * lib/linkat.c (linkat): Likewise.
26103         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26104         * lib/openat-priv.h (at_func2): Add declaration.
26105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26106         * modules/unistd (Makefile.am): Substitute them.
26107         * lib/unistd.in.h (linkat): Declare it.
26108         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26109         * doc/posix-functions/linkat.texi (linkat): Likewise.
26110         * doc/posix-functions/link.texi (link): Tweak wording.
26111         * tests/test-link.c (main): Move guts...
26112         * tests/test-link.h (test_link): ...into new file.
26113         * modules/linkat-tests: New test.
26114         * tests/test-linkat.c: Likewise.
26115         * modules/link-tests (Files): Ship new file.
26116         (Depends-on): Add stdbool.
26117
26118         dirname: add library-safe mdir_name
26119         * lib/dirname.h (mdir_name): New prototype.
26120         * lib/dirname.c (dir_name): Move guts...
26121         (mdir_name): ...to new function that avoids xalloc_die.
26122
26123         fchdir: another mingw fix
26124         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26125         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26126         on mingw (where it has not yet been ported), and make it optional
26127         elsewhere.
26128         (_gl_register_fd): Use it.
26129
26130         same-inode: make SAME_INODE tri-state, to port to mingw
26131         * NEWS: Mention this change.
26132         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26133         st_ino always being 0.
26134         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26135         * lib/cycle-check.c (cycle_check): Likewise.
26136         * lib/same.c (same_name): Likewise.
26137
26138         lstat: avoid mingw compilation error
26139         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26140         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26141         lstat ourselves.
26142         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26143         was adequate.
26144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26145         the checks for lstat.
26146         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26147
26148         link: fix test failure on Solaris 9
26149         * lib/link.c (rpl_link): Don't assume link will catch bogus
26150         trailing slash on source.
26151
26152         test-symlinkat: enhance test
26153         * tests/test-readlink.c (main): Move guts...
26154         * tests/test-readlink.h (test_readlink): ...into new file.
26155         * tests/test-symlink.c (main): Move guts...
26156         * tests/test-symlink.h (test_symlink): ...into new file.
26157         * tests/test-symlinkat.c (main): Use new files for further
26158         coverage.
26159         (do_symlink, do_readlink): New helper functions.
26160         * modules/symlink-tests (Files): Ship new file.
26161         (Depends-on): Add stdbool.
26162         * modules/readlink-tests (Files): Ship new file.
26163         (Depends-on): Add stdbool.
26164         * modules/symlinkat-tests (Files): Use new files.
26165
26166 2009-09-23  Eric Blake  <ebb9@byu.net>
26167
26168         readlink: document portability issue with symlink length
26169         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26170         systems have bogus st_size on symlinks, and mention the
26171         areadlink-with-size module.
26172         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26173         * doc/posix-functions/readlink.texi (readlink): Mention the
26174         areadlink module, and ERANGE failure.
26175         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26176         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26177
26178         readlink: fix Solaris 9 bug with trailing slash
26179         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26180         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26181         * doc/posix-functions/readlink.texi (readlink): Document this.
26182         * modules/readlink-tests: New test.
26183         * tests/test-readlink.c: Likewise.
26184
26185         readlink: fix cygwin 1.5.x bug with return type
26186         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26187         * lib/unistd.in.h (readlink): Use ssize_t.
26188         * lib/readlink.c (readlink): Likewise.
26189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26190         * modules/unistd (Makefile.am): Substitute it.
26191         * lib/unistd.in.h (readlink): Declare replacement.
26192         * doc/posix-functions/readlink.texi (readlink): Document this.
26193
26194         symlink: use throughout gnulib
26195         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26196         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26197         symlink is not used.
26198         * modules/symlinkat (Depends-on): Add symlink.
26199         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26200         * modules/canonicalize-tests (Depends-on): Likewise.
26201         * modules/lstat-tests (Depends-on): Likewise.
26202         * modules/openat-tests (Depends-on): Likewise.
26203         * modules/remove-tests (Depends-on): Likewise.
26204         * modules/rmdir-tests (Depends-on): Likewise.
26205         * modules/unlink-tests (Depends-on): Likewise.
26206         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
26207         * tests/test-canonicalize.c (symlink): Likewise.
26208         * tests/test-fstatat.c (symlink): Likewise.
26209         * tests/test-lstat.c (symlink): Likewise.
26210         * tests/test-remove.c (symlink): Likewise.
26211         * tests/test-rmdir.c (symlink): Likewise.
26212         * tests/test-unlink.c (symlink): Likewise.
26213         * tests/test-unlinkat.c (symlink): Likewise.
26214
26215         symlink: new module, for Solaris 9 bug
26216         * modules/symlink: New file.
26217         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26218         * lib/symlink.c: Likewise.
26219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26220         * modules/unistd (Makefile.am): Substitute them.
26221         * lib/unistd.in.h (symlink): Declare replacement.
26222         * MODULES.html.sh (File system functions): Mention it.
26223         * doc/posix-functions/symlink.texi (symlink): Likewise.
26224         * modules/symlink-tests: New test.
26225         * tests/test-symlink.c: Likewise.
26226
26227 2009-09-23  Bruno Haible  <bruno@clisp.org>
26228
26229         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
26230         when needed.
26231         Test case: gnulib-tool --import --with-tests atexit inttypes.
26232         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
26233
26234 2009-09-23  Bruno Haible  <bruno@clisp.org>
26235
26236         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
26237         subcommand, not in a subshell.
26238
26239 2009-09-22  Eric Blake  <ebb9@byu.net>
26240
26241         unistd: sort replacement declarations
26242         * lib/unistd.in.h: Sort declarations.
26243
26244         open, openat: minor optimization
26245         * lib/open.c (open): If open succeeded, len is non-zero.
26246         * lib/openat.c (rpl_openat): Likewise.
26247
26248         link-follow: ensure correct result
26249         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
26250         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
26251         distinguish between possible failures.
26252
26253 2009-09-21  Eric Blake  <ebb9@byu.net>
26254
26255         fts: avoid compiler warning
26256         * lib/fts.c (dirent_inode_sort_may_be_useful)
26257         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
26258
26259 2009-09-19  Bruno Haible  <bruno@clisp.org>
26260
26261         * lib/progreloc.c (canonicalize_file_name): New declaration.
26262
26263 2009-09-19  Eric Blake  <ebb9@byu.net>
26264
26265         link: fix quoting
26266         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
26267
26268         openat: fix openat bugs on Solaris 9
26269         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
26270         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
26271         * modules/openat (Depends-on): Add open.
26272         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26273         * modules/fcntl-h (Makefile.am): Substitute it.
26274         * lib/fcntl.in.h (openat): Declare replacement.
26275         * doc/posix-functions/openat.texi (openat): Document this.
26276
26277         openat: move fstatat and unlinkat into correct files
26278         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26279         compiled.
26280         * lib/openat.c (fstatat, unlinkat): Move...
26281         * lib/fstatat.c (fstatat): ...into correct files.
26282         * lib/unlinkat.c (unlinkat): Likewise.
26283
26284         openat: fix unlinkat bugs on Solaris 9
26285         * lib/unlinkat.c (unlinkat): New file.
26286         * modules/openat (Depends-on): Add unlink.
26287         (Files): Distribute it.
26288         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26289         trailing slash behavior is broken.
26290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26291         * modules/unistd (Makefile.am): Substitute it.
26292         * lib/unistd.in.h (unlinkat): Declare replacement.
26293         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26294
26295         openat: fix fstatat bugs on Solaris 9
26296         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26297         stat.
26298         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26299
26300         test-unlinkat: enhance test, to expose Solaris 9 bug
26301         * tests/test-unlink.c (main): Factor guts...
26302         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26303         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26304         * tests/test-rmdir.c (main): Adjust caller.
26305         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26306         (unlinker): New helper function.
26307         (rmdirat): Enhance check.
26308         * modules/rmdir-tests (Depends-on): Add stdbool.
26309         * modules/unlink-tests (Depends-on): Likewise.
26310         (Files): Add test-unlink.h.
26311         * modules/openat-tests (Files): Likewise.
26312         (Depends-on): Add unlinkdir.
26313
26314         test-fstatat: new test, to expose Solaris 9 bugs
26315         * tests/test-stat.c (main): Factor guts...
26316         * tests/test-stat.h (test_stat_func): ...into new file.
26317         * tests/test-lstat.c (main): Factor guts...
26318         * tests/test-lstat.h (test_lstat_func): ...into new file.
26319         * tests/test-fstatat.c: New file.
26320         * modules/stat-tests (Files): Add test-stat.h.
26321         * modules/lstat-tests (Files): Add test-lstat.h.
26322         (Depends-on): Add stdbool.
26323         * modules/openat-tests (Depends-on): Add pathmax.
26324         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
26325         (Makefile.am): Run new test.
26326
26327         remove: new module, for mingw and Solaris 9 bugs
26328         * modules/remove: New file.
26329         * lib/remove.c: Likewise.
26330         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
26331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26332         * modules/stdio (Makefile.am): Use them.
26333         * lib/stdio.in.h (remove): Declare replacement.
26334         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26335         * doc/posix-functions/remove.texi (remove): Likewise.
26336         * modules/remove-tests: New test.
26337         * tests/test-remove.c: Likewise.
26338
26339         unlink: new module, for Solaris 9 bug
26340         * modules/unlink: New file.
26341         * lib/unlink.c: Likewise.
26342         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26344         * modules/unistd (Makefile.am): Use them.
26345         * lib/unistd.in.h (stat): Declare replacement.
26346         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26347         * doc/posix-functions/unlink.texi (unlink): Likewise.
26348         * modules/unlink-tests: New test.
26349         * tests/test-unlink.c: Likewise.
26350
26351         lstat: fix Solaris 9 bug
26352         * lib/lstat.c (lstat): Also check for trailing slash on
26353         non-symlink, non-directories.  Use stat module to simplify logic.
26354         * doc/posix-functions/lstat.texi (lstat): Document it.
26355         * modules/lstat-tests (Depends-on): Add errno, same-inode.
26356         (configure.ac): Check for symlink.
26357         * tests/test-lstat.c (main): Add more tests.
26358
26359         stat: add as dependency to other modules
26360         * modules/chown (Depends-on): Add stat.
26361         * modules/euidaccess (Depends-on): Likewise.
26362         * modules/fchdir (Depends-on): Likewise.
26363         * modules/isdir (Depends-on): Likewise.
26364         * modules/link (Depends-on): Likewise.
26365         * modules/lstat (Depends-on): Likewise.
26366         * modules/mkdir-p (Depends-on): Likewise.
26367         * modules/modechange (Depends-on): Likewise.
26368         * modules/open (Depends-on): Likewise.
26369         * modules/readlink (Depends-on): Likewise.
26370         * modules/same (Depends-on): Likewise.
26371
26372         stat: fix Solaris 9 bug
26373         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
26374         slash.
26375         * lib/stat.c (rpl_stat): Work around it.
26376         * doc/posix-functions/stat.texi (stat): Update documentation.
26377
26378         stat: new module, for mingw bug
26379         * modules/stat: New file.
26380         * lib/stat.c: Likewise.
26381         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26382         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26383         * modules/sys_stat (Makefile.am): Use them.
26384         * lib/sys_stat.in.h (stat): Declare replacement.
26385         * lib/openat.c (fstatat): Deal with lstat and stat being function
26386         macros.
26387         * modules/openat (Depends-on): Add inline.
26388         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26389         * doc/posix-functions/stat.texi (stat): Likewise.
26390         * modules/stat-tests: New test.
26391         * tests/test-stat.c: Likewise.
26392
26393 2009-09-19  Jim Meyering  <meyering@redhat.com>
26394
26395         syntax-check: detect unnecessary inclusion of canonicalize.h
26396         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26397
26398 2009-09-19  Eric Blake  <ebb9@byu.net>
26399
26400         canonicalize-lgpl: adjust clients to use correct header
26401         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26402         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26403         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26404         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26405         * lib/progreloc.c (includes): Likewise.
26406
26407 2009-09-19  Jim Meyering  <meyering@redhat.com>
26408
26409         test-posixtm.c: correct a comment
26410         * tests/test-posixtm.c: Correct first-line comment.
26411         Spotted by Eric Blake.
26412
26413 2009-09-16  Jim Meyering  <meyering@redhat.com>
26414
26415         posixtm-tests: make T const-correct; add a test case
26416         * tests/test-posixtm.c (T): Declare const.
26417         Add a test for -(2^31+1).
26418         Remove useless can-succeed-only-in-2002 test.
26419
26420         posixtm-tests: adjust the sole failing test
26421         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26422         expected output matches what mktime now produces.  Cross-checked via
26423         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26424
26425         posixtm: move #ifdef'd tests into a new module
26426         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26427         * tests/test-posixtm.c: ... this new file.
26428         * modules/posixtm-tests: New module.
26429
26430 2009-09-19  Eric Blake  <ebb9@byu.net>
26431
26432         openat: simplify use of at-func.c
26433         * lib/at-func.c (includes): Include prerequisites here, to
26434         simplify requirements on client files.
26435         * lib/openat-priv.h: Add double-inclusion guard.
26436         * lib/faccessat.c (includes): Simplify.
26437         * lib/fchmodat.c (includes): Likewise.
26438         * lib/fchownat.c (includes): Likewise.
26439         * lib/mkdirat.c (includes): Likewise.
26440         * lib/mkfifoat.c (includes): Likewise.
26441         * lib/symlinkat.c (includes): Likewise.
26442
26443         openat: allow return of fd 0
26444         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26445         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26446         unistd-safer.
26447         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26448         <fcntl.h>; this module does not leak fds.
26449         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26450         must be allowed to return 0, leaving openat_safer to add the
26451         safety.
26452         (openat_permissive): Avoid writing to just-opened fd 2 if
26453         restoring the current directory fails.
26454         * lib/openat-die.c (openat_restore_fail): Add comment.
26455         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26456         (save_cwd): Guarantee safe fd, but without use of open_safer.
26457         * tests/test-openat.c: New test.
26458         * modules/openat-tests (Files, Makefile.am): Distribute and build
26459         new file.
26460
26461         relocatable-prog-wrapper: fix build
26462         * modules/relocatable-prog-wrapper (Files): Update name of
26463         canonicalize m4 file, broken on 2009-09-17.
26464         Reported by emad hajjar <aleppos@hotmail.com>.
26465
26466 2009-09-19  Bruno Haible  <bruno@clisp.org>
26467
26468         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26469         * lib/safe-alloc.c: Likewise.
26470         Reported by Ian Beckwith <ianb@erislabs.net>.
26471
26472 2009-09-18  Bruno Haible  <bruno@clisp.org>
26473
26474         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26475         Reported by <erobles@sensacd.com.mx>.
26476
26477 2009-09-17  Eric Blake  <ebb9@byu.net>
26478
26479         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26480         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26481         slashes when checking if last component is missing.
26482         * tests/test-canonicalize.c (main): Test this.
26483
26484         canonicalize, canonicalize-lgpl: honor // if distinct from /
26485         * modules/canonicalize (Files): Add double-slash-root.m4.
26486         * modules/canonicalize-lgpl (Files): Likewise.
26487         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26488         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26489         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26490         fallback definition.
26491         (canonicalize_filename_mode): Use it to protect //.
26492         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26493         (__realpath): Likewise.
26494         * tests/test-canonicalize.c (main): Test this.
26495         * tests/test-canonicalize-lgpl.c (main): Likewise.
26496         * modules/canonicalize-tests (Depends-on): Add same-inode.
26497         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26498
26499         canonicalize-lgpl: fix glibc bug with trailing slash
26500         * m4/canonicalize-lgpl.m4: Move contents...
26501         * m4/canonicalize.m4: ...here.
26502         (gl_CANONICALIZE_LGPL): Factor realpath check...
26503         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26504         glibc 2.3.5 bug, fixed 2005-04-27.
26505         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26506         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26507         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26508         * modules/canonicalize-lgpl (Files): Manage file rename.
26509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26510         * modules/stdlib (Makefile.am): Substitute witness.
26511         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26512         is needed.
26513         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26514         replacement is required.
26515         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26516         * doc/glibc-functions/canonicalize_file_name.texi
26517         (canonicalize_file_name): Document this.
26518         * doc/posix-functions/realpath.texi (realpath): Likewise.
26519
26520         canonicalize-lgpl: reject non-directory with trailing slash
26521         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26522         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26523         catches failures in glibc 2.3.5.
26524         * tests/test-canonicalize.c (main): Likewise.
26525
26526         canonicalize-lgpl: use native realpath if it works
26527         * lib/canonicalize-lgpl.c (realpath): Guard with
26528         FUNC_REALPATH_WORKS.
26529         * lib/stdlib.in.h (realpath): Make declaration optional based on
26530         HAVE_REALPATH.
26531         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26532         native realpath works.
26533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26534         * modules/stdlib (Makefile.am): Substitute witness.
26535
26536         canonicalize, canonicalize-lgpl: use <stdlib.h>
26537         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26538         (Include): Mention <stdlib.h>.
26539         (configure.ac): Mention functions we provide.
26540         * modules/canonicalize (configure.ac): Likewise.
26541         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26542         realpath if canonicalize_file_name is missing.
26543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26544         * modules/stdlib (Makefile.am): Substitute witnesses.
26545         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26546         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26547         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26548         * NEWS: Document this.
26549         * doc/glibc-functions/canonicalize_file_name.texi
26550         (canonicalize_file_name): Likewise.
26551         * doc/posix-functions/realpath.texi (realpath): Likewise.
26552         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26553
26554         test-canonicalize: consolidate into single C program
26555         * tests/test-canonicalize.sh: Delete; move setup into...
26556         * tests/test-canonicalize.c (main): ...the program, making it
26557         easier to run in debugger.  Add some tests.
26558         * modules/canonicalize-tests (Files): Remove unused file.
26559         (Depends-on): Add progname.
26560         (configure.ac, Makefile.am): Simplify.
26561
26562         test-canonicalize-lgpl: consolidate into single C program
26563         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26564         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26565         easier to run in debugger.  Add some tests.
26566         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26567         (configure.ac, Makefile.am): Simplify.
26568
26569         canonicalize: avoid resolvepath
26570         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26571         unnecessary checks.
26572         * lib/canonicalize.c (includes): Simplify.
26573         (canonicalize_file_name): Drop resolvepath implementation.
26574         * modules/canonicalize (Depends-on): Drop filenamecat.
26575
26576         canonicalize: don't lose errno
26577         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26578         over calls to free.
26579
26580         canonicalize: simplify errno handling
26581         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26582         assignment.
26583
26584         canonicalize, canonicalize-lgpl: update module dependencies
26585         * modules/canonicalize (Depends-on): Add extensions, lstat,
26586         pathmax, stdlib.
26587         (Files): Drop pathmax.h.
26588         (configure.ac): Adjust macro name.
26589         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26590         lstat, stdlib, sys_stat.
26591         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26592         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26593         extensions.
26594         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26595         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26596         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26597         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26598         declaration, if available.
26599         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26600         we can rely on the readlink module.
26601         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26602         (includes): Use <unistd.h> unconditionally.
26603
26604 2009-09-17  Eric Blake  <ebb9@byu.net>
26605
26606         maint: make Include sections of modules consistent
26607         * modules/alloca: Use only header name; no need to list #include.
26608         * modules/alloca-opt: Likewise.
26609         * modules/arpa_inet: Likewise.
26610         * modules/canon-host: Likewise.
26611         * modules/configmake: Likewise.
26612         * modules/dirent: Likewise.
26613         * modules/eealloc: Likewise.
26614         * modules/environ: Likewise.
26615         * modules/fchdir: Likewise.
26616         * modules/fcntl: Likewise.
26617         * modules/fcntl-h: Likewise.
26618         * modules/gethrxtime: Likewise.
26619         * modules/gettime: Likewise.
26620         * modules/ignore-value: Likewise.
26621         * modules/inet_ntop: Likewise.
26622         * modules/inet_pton: Likewise.
26623         * modules/inttypes: Likewise.
26624         * modules/isnand-nolibm: Likewise.
26625         * modules/isnanf-nolibm: Likewise.
26626         * modules/mbchar: Likewise.
26627         * modules/mbfile: Likewise.
26628         * modules/mbiter: Likewise.
26629         * modules/mbuiter: Likewise.
26630         * modules/netdb: Likewise.
26631         * modules/netinet_in: Likewise.
26632         * modules/nproc: Likewise.
26633         * modules/pagealign_alloc: Likewise.
26634         * modules/poll: Likewise.
26635         * modules/printf-frexp: Likewise.
26636         * modules/pthread: Likewise.
26637         * modules/putenv: Likewise.
26638         * modules/random_r: Likewise.
26639         * modules/relocatable-prog: Likewise.
26640         * modules/search: Likewise.
26641         * modules/select: Likewise.
26642         * modules/selinux-h: Likewise.
26643         * modules/settime: Likewise.
26644         * modules/signal: Likewise.
26645         * modules/size_max: Likewise.
26646         * modules/socklen: Likewise.
26647         * modules/ssize_t: Likewise.
26648         * modules/stdarg: Likewise.
26649         * modules/stdbool: Likewise.
26650         * modules/stddef: Likewise.
26651         * modules/stdint: Likewise.
26652         * modules/stdio: Likewise.
26653         * modules/stdlib: Likewise.
26654         * modules/string: Likewise.
26655         * modules/strings: Likewise.
26656         * modules/sys_file: Likewise.
26657         * modules/sys_ioctl: Likewise.
26658         * modules/sys_select: Likewise.
26659         * modules/sys_socket: Likewise.
26660         * modules/sys_stat: Likewise.
26661         * modules/sys_time: Likewise.
26662         * modules/sys_times: Likewise.
26663         * modules/sys_utsname: Likewise.
26664         * modules/sys_wait: Likewise.
26665         * modules/sysexits: Likewise.
26666         * modules/time: Likewise.
26667         * modules/times: Likewise.
26668         * modules/tmpfile: Likewise.
26669         * modules/trim: Likewise.
26670         * modules/unistd: Likewise.
26671         * modules/wchar: Likewise.
26672         * modules/wctype: Likewise.
26673
26674 2009-09-17  Bruno Haible  <bruno@clisp.org>
26675
26676         Make getdate.y compile on QNX and NetBSD 5 / i386.
26677         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26678         TIME_T_FITS_IN_LONG_INT.
26679         * lib/getdate.y (long_time_t): New type.
26680         (relative_time): Change type of 'seconds' field to long_time_t.
26681         (get_date): Update types of local variables. Check against overflow
26682         during conversion from long_time_t to time_t.
26683         Reported by Matt Kraai <kraai@ftbfs.org>
26684         and Hasso Tepper <hasso@netbsd.org>.
26685
26686 2009-09-17  Bruno Haible  <bruno@clisp.org>
26687
26688         * modules/COPYING: Update copyright years.
26689         * modules/README: Likeiwse.
26690         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26691         Reported by Ian Beckwith <ianb@erislabs.net>.
26692
26693 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26694
26695         * users.txt: Update references for gnuit package.
26696
26697 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26698
26699         * m4/getdelim.m4: Fix typo in copyright line.
26700
26701 2009-09-17  Bruno Haible  <bruno@clisp.org>
26702
26703         * lib/atoll.c: Use the standard header with GPL copyright.
26704         * lib/argz.in.h: Likewise.
26705         * lib/glob.c: Likewise.
26706         * lib/glob-libc.h: Likewise.
26707         * lib/random_r.c: Likewise.
26708         * lib/siglist.h: Likewise.
26709         * lib/strsignal.c: Likewise.
26710         Reported by Ian Beckwith <ianb@erislabs.net>.
26711
26712 2009-09-17  Eric Blake  <ebb9@byu.net>
26713
26714         rmdir: ensure correct dependency order
26715         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26716
26717 2009-09-17  Bruno Haible  <bruno@clisp.org>
26718
26719         Disable assertion that fails on NetBSD 5 / i386.
26720         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26721         Reported by Sam Steingold <sds@gnu.org>
26722         and Hasso Tepper <hasso@netbsd.org>.
26723
26724 2009-09-16  Eric Blake  <ebb9@byu.net>
26725
26726         unlinkdir: port to mingw
26727         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26728         on which no one can unlink a directory.
26729
26730         stdlib: sort witness names
26731         * modules/stdlib (Makefile.am): Sort replacements.
26732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26733         * lib/stdlib.in.h: Likewise.
26734
26735         parse-duration-tests: avoid link failure
26736         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26737         LIBINTL.
26738         Reported by Tom G. Christensen.
26739
26740         openat-tests: ensure unlinkat behaves like rmdir
26741         * tests/test-rmdir.c (main): Factor guts...
26742         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26743         * modules/rmdir-tests (Files): Ship new file.
26744         * modules/openat-tests: New test.
26745         * tests/test-unlinkat.c: Likewise.
26746
26747         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26748         * modules/rmdir-errno (Status, Notice): Now obsolete.
26749
26750         rmdir: work around cygwin 1.5.x and mingw bugs
26751         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26752         * lib/rmdir.c (rmdir): Work around it.
26753         * modules/rmdir (Status, Notice): No longer obsolete.
26754         (Files): Add dos.m4.
26755         (Depends-on): Add unistd.
26756         (configure.ac): Set witnesses.
26757         (License): Relax to LGPLv2+.
26758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26759         * modules/unistd (Makefile.am): Substitute witnesses.
26760         * lib/unistd.in.h (rmdir): Declare replacement.
26761         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26762         * modules/rmdir-tests: New tests.
26763         * tests/test-rmdir.c: Likewise.
26764
26765 2009-09-15  Eric Blake  <ebb9@byu.net>
26766
26767         fchdir: improve use of replacement functions
26768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26769         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26770         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26771         REPLACE_CLOSEDIR.
26772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26773         * modules/sys_stat (Makefile.am): Substitute correct witness.
26774         * modules/dirent (Makefile.am): Likewise.
26775         * modules/unistd (Makefile.am): Likewise.
26776         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26777         * lib/unistd.in.h (dup): Likewise.
26778         * lib/sys_stat.in.h (fstat): Likewise.
26779
26780         maint: ignore gnulib-tool temp files
26781         * .gitignore: Ignore files created during gnulib-tool --test.
26782
26783 2009-09-13  Jim Meyering  <meyering@redhat.com>
26784
26785         posixtm: don't reject a time that specify "60" as the number of seconds
26786         * lib/posixtm.c (posixtime): The code to reject invalid dates
26787         would also reject a time specified with the .60 suffix.
26788         But POSIX allows that, in order to accommodate leap seconds.
26789         So don't reject it.
26790         (main): Adjust tests accordingly.
26791         * modules/posixtm (Depends-on): Add stpcpy.
26792
26793 2009-09-11  Jim Meyering  <meyering@redhat.com>
26794
26795         announce-gen: include [$release_type] in emitted Subject:
26796         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26797         e.g., [stable] in the emitted Subject: line.
26798
26799 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26800
26801         Remove obsolete macros from several modules.
26802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26803         obsolete Autoconf macros with their modern counterparts.
26804         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26805         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26806         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26807         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26808         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26809         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26811         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26812         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26813         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26814         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26815         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26816         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26817         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26818         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26819         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26820         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26821         * m4/time_r.m4 (gl_TIME_R): Likewise.
26822         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26823         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26824         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26825
26826         Fix copyright header in build-aux scripts.
26827         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26828         recommendation.
26829         * build-aux/ncftpput-ftp: Likewise.
26830         * build-aux/update-copyright: Likewise.
26831
26832 2009-09-09  Eric Blake  <ebb9@byu.net>
26833
26834         test-link: allow Linux choice of errno
26835         * tests/test-link.c (main): Relax test for alternate error.
26836
26837         strndup: fix improper m4 caching
26838         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26839         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26840         (gl_PREREQ_STRNDUP): Delete.
26841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26842         * modules/string (Makefile.am): Substitute it.
26843         * lib/string.in.h (strndup): Modernize prototype.
26844
26845         getcwd: port to mingw
26846         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26847         different from the POSIX assumptions made throughout the getcwd
26848         module; fortunately, the mingw getcwd does not need replacement.
26849         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26850         * modules/getcwd-tests: New test.
26851         * tests/test-getcwd.c: Likewise.
26852
26853         link: fix platform bugs
26854         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26855         * lib/link.c (link): Work around them.  Fix related mingw bug.
26856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26857         * modules/unistd (Makefile.am): Substitute it.
26858         * lib/unistd.in.h (link): Declare replacement.
26859         * doc/posix-functions/link.texi (link): Document this.
26860         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26861
26862         test-link: consolidate into single C program, test more cases
26863         * tests/test-link.sh: Delete.
26864         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26865         at least Cygwin and Solaris.
26866         * modules/link-tests (Files): Remove unused file.
26867         (Depends-on): Add errno, sys_stat.
26868         (Makefile.am): Simplify.
26869
26870 2009-09-08  Bruno Haible  <bruno@clisp.org>
26871
26872         Work around towlower, towupper bug on mingw.
26873         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26874         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26875         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26876         * doc/posix-functions/towupper.texi: Likewise.
26877         Reported by Eric Blake.
26878
26879 2009-09-08  Jim Meyering  <meyering@redhat.com>
26880
26881         build: don't try to run autoheader if we don't use it
26882         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26883         is not used in configure.ac.
26884
26885 2009-09-08  Eric Blake  <ebb9@byu.net>
26886
26887         euidaccess: fix compilation error
26888         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26889
26890         rawmemchr: relax license
26891         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26892         okay.
26893         Reported by Jim Meyering.
26894
26895         mkfifoat: new module
26896         * modules/mkfifoat: New file.
26897         * lib/mkfifoat.c: Likewise.
26898         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26899         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26900         * modules/sys_stat (Makefile.am): Use them.
26901         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26902         * MODULES.html.sh (File system functions): Mention module.
26903         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26904         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26905         * modules/mkfifoat-tests: New test.
26906         * tests/test-mkfifoat.c: Likewise.
26907
26908         strchrnul: relax license
26909         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26910         okay.
26911         Reported by Jim Meyering.
26912
26913 2009-09-08  Eric Blake  <ebb9@byu.net>
26914
26915         fstatat: fix compilation on Solaris
26916         * lib/fstatat.c (includes): Add fcntl.h.
26917         Reported by Pádraig Brady.
26918
26919 2009-09-07  Eric Blake  <ebb9@byu.net>
26920
26921         rename: modernize replacement
26922         * modules/rename (Depends-on): Add stdio.
26923         (configure.ac): Declare witness.
26924         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26925         stdio take care of replacement.
26926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26927         * modules/stdio (Makefile.am): Substitute them.
26928         * lib/stdio.in.h (rename): Declare replacement.
26929         * lib/rename.c (includes): Allow cross-compilation to non-windows
26930         machines.
26931         * doc/posix-functions/rename.texi (rename): Improve
26932         documentation.
26933
26934         stdio: sort witness names
26935         * modules/stdio (Makefile.am): Sort replacements.
26936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26937         * lib/stdio.in.h: Likewise.
26938
26939         getcwd: minor cleanups
26940         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26941         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26942
26943         openat: provide more convenience names
26944         * modules/faccessat (configure.ac): Add C witness.
26945         * lib/unistd.in.h (readlinkat): Fix typo.
26946         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26947         convenience wrappers.
26948         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26949         wrappers in syntax checks.
26950
26951 2009-09-06  Eric Blake  <ebb9@byu.net>
26952
26953         doc: fix comments in recent patches
26954         * lib/faccessat.c: Mention correct function.
26955         * lib/fchmodat.c: Likewise.
26956         * lib/fchownat.c: Likewise.
26957         * lib/symlinkat.c: Likewise.
26958         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26959         constants.
26960
26961         faccessat, symlinkat: continue cleanup of previous patch
26962         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26963         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26964         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26966         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26967         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26968         set.
26969
26970 2009-09-06  Bruno Haible  <bruno@clisp.org>
26971
26972         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26973         (fstatat): Declare if GNULIB_FSTATAT is set.
26974         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26975         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26976         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26977         * modules/fcntl-h (Files): Remove m4/openat.m4.
26978         * modules/sys_stat (Files): Remove m4/openat.m4.
26979         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26980         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26981         * modules/unistd (Files): Remove m4/openat.m4.
26982         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26983         GNULIB_OPENAT.
26984         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26985         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26986         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26987         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26988         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26989         gl_OPENAT_DEFAULTS.
26990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26991         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26992         Don't require gl_OPENAT_DEFAULTS.
26993         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26994         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26995         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26996         (gl_OPENAT_DEFAULTS): Remove macro.
26997
26998 2009-09-06  Bruno Haible  <bruno@clisp.org>
26999
27000         * modules/openat (configure.ac): Remove unneeded witness.
27001
27002 2009-09-06  Bruno Haible  <bruno@clisp.org>
27003
27004         Set errno to ENOSYS when a function is entirely unsupported.
27005         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27006         EOPNOTSUPP.
27007         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27008         * modules/chown (Depends-on): Remove errno.
27009
27010 2009-09-06  Bruno Haible  <bruno@clisp.org>
27011
27012         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27013
27014 2009-09-06  Bruno Haible  <bruno@clisp.org>
27015
27016         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27017
27018 2009-09-06  Ben Pfaff  <blp@gnu.org>
27019             Bruno Haible  <bruno@clisp.org>
27020
27021         Work around a glibc bug in strtok_r.
27022         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27023         Undefine if UNDEFINE_STRTOK_R is set.
27024         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27026         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27027         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27028         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27029         UNDEFINE_STRTOK_R.
27030         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27031
27032 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27033
27034         exclude: minor fix
27035         * lib/exclude.c: Include wctype.h
27036
27037 2009-09-06  Akim Demaille  <demaille@gostai.com>
27038
27039         bootstrap: improve error message
27040         * build-aux/bootstrap (find_tool): Upon failure, report the list
27041         of candidates.
27042         Honor the initial value of the envvar.
27043
27044 2009-09-05  Eric Blake  <ebb9@byu.net>
27045
27046         symlinkat: new module
27047         * modules/symlinkat: New file.
27048         * lib/symlinkat.c: Likewise.
27049         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27051         * modules/unistd (Makefile.am): Use them.
27052         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27053         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27054         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27055         * MODULES.html.sh (File system functions): Mention module.
27056         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27057         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27058         * modules/symlinkat-tests: New test.
27059         * tests/test-symlinkat.c: Likewise.
27060
27061         test-openat-safer: add more checks
27062         * tests/test-openat-safer.c (main): Check more code paths.
27063
27064 2009-09-05  Jim Meyering  <meyering@redhat.com>
27065
27066         syntax-check: detect unnecessary inclusion of openat.h
27067         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27068
27069 2009-09-05  Bruno Haible  <bruno@clisp.org>
27070
27071         Support towlower, towupper.
27072         * doc/posix-functions/towlower.texi: Mention module wctype.
27073         * doc/posix-functions/towupper.texi: Likewise.
27074         * lib/wctype.in.h (towlower, towupper): New functions.
27075         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27076         (ASSERT): New macro.
27077         (e): New variable.
27078         (main): Test also towlower, towupper. Test WEOF argument.
27079         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27080
27081 2009-09-05  Bruno Haible  <bruno@clisp.org>
27082
27083         Fix conversion behaviour when the input is invalid.
27084         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27085         mark occurring in first pass of indirect conversion.
27086         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27087         input.
27088         Found by clang's static analyzer.
27089
27090 2009-09-05  Bruno Haible  <bruno@clisp.org>
27091
27092         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27093         where direct conversion is possible.
27094
27095 2009-09-04  Eric Blake  <ebb9@byu.net>
27096
27097         openat: fail with ENOENT on empty name
27098         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27099         buffer.
27100
27101         link-follow: fix logic bug in prior patch
27102         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27103         reversed sense of yes and no in prior patch.  Avoid confusing
27104         compilation failure with desired semantics.
27105
27106         link-follow: accomodate mingw and cross-compilation
27107         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27108         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27109         cross-compilation results to -1, to make linkat easier to
27110         implement when cross-compiling.  Trivially support mingw.
27111         * modules/link-follow (configure.ac): Call new name.
27112         * NEWS: Mention this.
27113
27114 2009-09-03  Eric Blake  <ebb9@byu.net>
27115
27116         faccessat: compile replacement
27117         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27118         needed.
27119
27120         fts: fix compilation error
27121         * lib/fts.c (includes): Re-add "openat.h", for
27122         openat_needs_fchdir.
27123
27124         faccessat: new module
27125         * modules/faccessat: New file.
27126         * lib/faccessat.c: Likewise.
27127         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27129         * modules/unistd (Makefile.am): Use it.
27130         * lib/unistd.in.h (faccessat): Declare it.
27131         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27132         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27133         * MODULES.html.sh (File system functions): Mention it.
27134         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27135         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27136
27137         euidaccess: prefer POSIX over non-standard implementation
27138         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27139         * lib/euidaccess.c (euidaccess): Use it if available.
27140
27141         openat: make template easier to use
27142         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27143         AT_FUNC_F2 to be undefined.
27144         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27145         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27146         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27147         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27148         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27149         Likewise.
27150         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27151         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27152         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27153         Likewise.
27154
27155         openat: declare in POSIX headers
27156         * NEWS: Mention this.
27157         * modules/openat (configure.ac): Declare witnesses.
27158         (Depends-on): Add fcntl-h, sys_stat, unistd.
27159         (Include): Mention correct headers.
27160         * modules/fcntl-h (Depends-on): Add link-warning.
27161         (Files): Add openat.m4.
27162         (Makefile.am): Substitute witnesses.
27163         * modules/sys_stat (Files, Makefile.am): Likewise.
27164         * modules/unistd (Files, Makefile.am): Likewise.
27165         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27166         (gl_OPENAT_DEFAULTS): New macro.
27167         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27169         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27170         (SYS_STAT_H): Remove unused variable.
27171         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27172         * lib/fcntl--.h (includes): Remove unneeded header.
27173         * lib/openat-safer.c (includes): Likewise.
27174         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27175         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27176         appropriate headers.
27177         (__OPENAT_PREFIX): Delete.
27178         * lib/fcntl.in.h (openat): Provide declaration.
27179         (AT_FDCWD): Fix Solaris bug.
27180         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27181         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27182         * lib/fchmodat.c (includes):  Adjust to find declaration.
27183         * lib/fchownat.c (includes): Likewise.
27184         * lib/mkdirat.c (includes): Likewise.
27185         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27186         still visible.
27187
27188 2009-09-02  Eric Blake  <ebb9@byu.net>
27189
27190         errno: use consistently
27191         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27192         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27193         * lib/canonicalize.c (ELOOP): Likewise.
27194         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27195         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27196         * lib/lchown.c (EOPNOTSUPP): Likewise.
27197         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27198         * lib/savewd.c (ESTALE): Likewise.
27199         * lib/settime.c (ENOSYS): Likewise.
27200         * lib/utimens.c (ENOSYS): Likewise.
27201         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
27202         * lib/chdir-safer.c (ELOOP): Likewise.
27203         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
27204         * modules/c-stack (Depends-on): Add errno.
27205         * modules/canonicalize (Depends-on): Likewise.
27206         * modules/chdir-safer (Depends-on): Likewise.
27207         * modules/fdopendir (Depends-on): Likewise.
27208         * modules/inet_ntop (Depends-on): Likewise.
27209         * modules/inet_pton (Depends-on): Likewise.
27210         * modules/lchown (Depends-on): Likewise.
27211         * modules/openat (Depends-on): Likewise.
27212         * modules/savewd (Depends-on): Likewise.
27213         * modules/settime (Depends-on): Likewise.
27214         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
27215
27216         fts: avoid leaking fds
27217         * modules/fts (Depends-on): Add cloexec.
27218         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
27219         flag.
27220
27221         fts: make directory fds more robust
27222         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
27223         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
27224
27225         backupfile, chdir-long, fts, savedir: make safer
27226         * lib/backupfile.c (includes): Use "dirent--.h", since
27227         numbered_backup can write to stderr during readdir.
27228         * lib/savedir.c (includes): Likewise.
27229         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
27230         emulation can write to stderr on failure.
27231         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
27232         * lib/getcwd.c: Document why opendir_safer is unused.
27233         * lib/glob.c: Likewise.
27234         * lib/scandir.c: Likewise.
27235         * lib/openat-proc.c: Likewise, for open_safer.
27236         * modules/backupfile (Depends-on): Add dirent-safer.
27237         * modules/savedir (Depends-on): Likewise.
27238         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
27239         * modules/chdir-long (Depends-on): Add openat-safer.
27240
27241         openat-safer: new module
27242         * modules/openat-safer: New file.
27243         * lib/openat-safer.c: Likewise.
27244         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
27245         * lib/fcntl-safer.h (openat_safer): Declare.
27246         * lib/fcntl--.h (openat): Override.
27247         * MODULES.html.sh (File descriptor based I/O): Mention it.
27248         * lib/openat.h: Add double-inclusion guards.
27249         * lib/openat.c (includes): Only include "fcntl-safer.h", not
27250         "fcntl--.h", so we can implement openat.
27251         * modules/openat-safer-tests: New test.
27252         * tests/test-openat-safer.c: New file.
27253
27254         dirent-safer: new module
27255         * modules/dirent-safer: New file.
27256         * lib/dirent--.h: Likewise.
27257         * lib/dirent-safer.h: Likewise.
27258         * lib/opendir-safer.c: Likewise.
27259         * m4/dirent-safer.m4: Likewise.
27260         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
27261         * modules/dirent-safer-tests: New test.
27262         * tests/test-dirent-safer.c: New file.
27263         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
27264
27265         fdopendir: optimize on mingw
27266         * lib/unistd.in.h (_gl_directory_name): New prototype.
27267         * lib/fchdir.c (_gl_directory_name): Implement it.
27268         (fchdir): Use it to simplify implementation.
27269         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
27270         fchdir, when available, to avoid calling [f]chdir().
27271
27272         fdopendir: split into its own module
27273         * lib/openat.c (fdopendir): Move...
27274         * lib/fdopendir.c: ...into new file.
27275         * modules/fdopendir: New module.
27276         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27277         * modules/openat (Depends-on): Add fdopendir.
27278         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27279         fdopendir here.
27280         * modules/savedir (Depends-on): Only need fdopendir, not full
27281         openat.
27282         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27283         * lib/openat.h (fdopendir): Drop prototype.
27284         * lib/dirent.in.h (fdopendir): Provide prototype.
27285         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27286         * modules/dirent (Makefile.am): Substitute them.
27287         * MODULES.html.sh (File system functions): Mention it.
27288         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27289         * modules/fdopendir-tests: New file.
27290         * tests/test-fdopendir.c: Likewise.
27291
27292         fchdir: use more consistent macro convention
27293         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27294         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27295         REPLACE_FCHDIR, rather than relying on config.h macros.
27296         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27297         inside a single make-time REPLACE_FCHDIR block, rather than using
27298         the config.h FCHDIR_REPLACEMENT.
27299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27300         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27301         Manage fstat replacement.
27302         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27303         REPLACE_FCHDIR.
27304         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27305         (Makefile.am): Substitute REPLACE_FCHDIR.
27306         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27307         FCHDIR_REPLACEMENT.
27308         * lib/dup-safer.c (dup_safer): Likewise.
27309         * lib/dup2.c (rpl_dup2): Likewise.
27310         * lib/dup3.c (rpl_dup3): Likewise.
27311         * lib/open.c (rpl_open): Likewise.
27312
27313         fchdir: simplify error handling, and support dup3
27314         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27315         stdbool, malloc-posix, realloc-posix.
27316         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27317         (ensure_dirs_slot): Return false on allocation failure.
27318         (rpl_dup2): Delete.
27319         (_gl_register_dup): New function.
27320         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
27321         (_gl_register_fd): Close fd on allocation failure.
27322         * lib/fcntl.in.h (_gl_register_fd): Update signature.
27323         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
27324         prototype.
27325         (rpl_dup2_fchdir): Delete prototype.
27326         * lib/open.c (open): Update caller.
27327         * lib/dup2.c (dup2): Track fchdir metadata.
27328         * lib/dup3.c (dup3): Likewise.
27329         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
27330         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
27331
27332 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27333
27334         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
27335         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
27336         don't pass arguments to AC_OUTPUT.
27337
27338 2009-09-02  Bruno Haible  <bruno@clisp.org>
27339
27340         * modules/mkdtemp (License): Relicense under LGPLv2+.
27341         Reported by Paolo Bonzini.
27342
27343 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27344
27345         Replace uses of obsolete autoconf macros in Jim's modules.
27346         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
27347         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
27348         can evoke a warning from autoconf when run with -Wobsolete
27349         enabled.  They were declared obsolete for good reasons (see
27350         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
27351         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
27352         should not continue using the deprecated macros.
27353         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
27354         obsolete Autoconf macros with modern counterparts.
27355         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27356         * m4/dos.m4 (gl_AC_DOS): Likewise.
27357         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27358         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27359         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
27360         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
27361         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
27362         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
27363         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
27364         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
27365         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27366         Likewise.
27367         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27368         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27369         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
27370         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
27371         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27372         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27373
27374 2009-09-01  Eric Blake  <ebb9@byu.net>
27375
27376         fchdir: fix off-by-one bug in previous patch
27377         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27378         (_gl_unregister_fd): Delete useless if.
27379
27380 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27381
27382         maint.mk: sort the list of syntax-check rules
27383         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27384         easier to get a sense of progress when the rules are run sequentially
27385         and take a long time.
27386
27387 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27388
27389         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27390         * modules/netinet_in: Likewise.
27391         * modules/sys_file: Likewise.
27392         * modules/sys_ioctl: Likewise.
27393         * modules/sys_select: Likewise.
27394         * modules/sys_socket: Likewise.
27395         * modules/sys_stat: Likewise.
27396         * modules/sys_time: Likewise.
27397         * modules/sys_times: Likewise.
27398         * modules/sys_utsname: Likewise.
27399         * modules/sys_wait: Likewise.
27400
27401 2009-09-01  Jim Meyering  <meyering@redhat.com>
27402
27403         fts: help ensure that return values are not ignored
27404         * lib/fts_.h (__GNUC_PREREQ): Define.
27405         (__attribute_warn_unused_result__): Define.
27406         (fts_children, fts_close, fts_open, fts_read): Declare with
27407         __attribute_warn_unused_result__.
27408
27409         fts: fts_close now fails also when closing a dir file descriptor fails
27410         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27411         and propagate to caller, along with errno.
27412
27413         announce-gen: correct formatting in --help output
27414         * build-aux/announce-gen (usage): Move the one-line description in
27415         --help output "up", to where it belongs, just after Usage:.
27416
27417 2009-08-31  Eric Blake  <ebb9@byu.net>
27418
27419         fchdir: port to mingw
27420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27421         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27422         opened, then use a substitute.
27423         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27424         replacement.
27425         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27426         (_gl_register_fd): No need to check stat if open already filters
27427         all directories.
27428         (fchdir): Fix error condition to match POSIX.
27429         * modules/fchdir (Depends-on): Add sys_stat.
27430         * doc/posix-functions/open.texi (open): Document the limitation.
27431         * modules/fchdir-tests: New file.
27432         * tests/test-fchdir.c: Likewise.
27433
27434         canonicalize: allow cross-testing from cygwin to mingw
27435         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27436         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27437         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27438         Likewise.
27439         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27440         target does not support symlinks.
27441         * tests/test-canonicalize-lgpl.sh: Likewise.
27442
27443         chown: avoid compilation warning on mingw
27444         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27445         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27446         mingw.
27447         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27448         * modules/chown (Depends-on): Add errno.
27449
27450 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27451
27452         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27453         command.
27454
27455 2009-08-31  Jim Meyering  <meyering@redhat.com>
27456
27457         canonicalize: remove useless initialization
27458         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27459         initialization of local, "end".
27460
27461 2009-08-30  Bruno Haible  <bruno@clisp.org>
27462
27463         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27464         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27465         ENOSYS.
27466
27467 2009-08-30  Bruno Haible  <bruno@clisp.org>
27468
27469         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27470         /usr/xpg4/bin/tr when it exists.
27471         * tests/test-pipe-filter-gi1.sh: Likewise.
27472
27473 2009-08-30  Bruno Haible  <bruno@clisp.org>
27474
27475         Work around deficient /usr/bin/id program on Solaris.
27476         * tests/test-file-has-acl.sh (ID): New variable.
27477         * tests/test-set-mode-acl.sh (ID): Likewise.
27478         * tests/test-copy-acl.sh (ID): Likewise.
27479         * tests/test-copy-file.sh (ID): Likewise.
27480
27481 2009-08-30  Bruno Haible  <bruno@clisp.org>
27482
27483         New module 'xstriconveh'.
27484         * lib/xstriconveh.h: New file.
27485         * lib/xstriconveh.c: New file.
27486         * modules/xstriconveh: New file.
27487
27488 2009-08-30  Bruno Haible  <bruno@clisp.org>
27489
27490         Make it easier to use mem_cd_iconveh.
27491         * lib/striconveh.h (iconveh_t): New type.
27492         (iconveh_open, iconveh_close): New declarations.
27493         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27494         with a single 'const iconveh_t *' argument.
27495         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27496         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27497         with a single 'const iconveh_t *' argument.
27498         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27499         * tests/test-striconveh.c (main): Update.
27500         * NEWS: Mention the change.
27501
27502 2009-08-30  Bruno Haible  <bruno@clisp.org>
27503
27504         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27505         problem.
27506
27507 2009-08-30  Bruno Haible  <bruno@clisp.org>
27508
27509         Work around iconv_open problem on Solaris.
27510         * lib/iconv_open-solaris.gperf: New file.
27511         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27512         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27513         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27514         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27515         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27516         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27517
27518 2009-08-29  Jim Meyering  <meyering@redhat.com>
27519
27520         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27521         * top/maint.mk (cvs-check): Remove target; it was just an alias
27522         to the better-named vc-diff-check.
27523         (maintainer-distcheck): Remove rule.  It was used only from
27524         the (alpha/beta/major) target, and all of its commands but one
27525         were coreutils-specific.
27526         (vc-dist): Remove rule.
27527         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27528         Run vc-diff-check, not vc-dist.
27529         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27530
27531 2009-08-27  Bruno Haible  <bruno@clisp.org>
27532
27533         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27534         of 0.
27535
27536 2009-08-27  Bruno Haible  <bruno@clisp.org>
27537
27538         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27539         compilers.
27540         * doc/func.texi: Document the SunPRO C bug.
27541
27542 2009-08-27  Bruno Haible  <bruno@clisp.org>
27543
27544         Fix link error on Solaris.
27545         * tests/test-parse-duration.c (xstrdup): Remove function.
27546
27547 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27548
27549         ignore-value: handle pointer types, too
27550         * lib/ignore-value.h (__attribute__): Remove definition.
27551         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27552         of a more concise and more-often effective "(void) i" statement.
27553         (ignore_ptr): New function to suppress warnings from functions that
27554         return pointers, and to make it explicit that one function doesn't
27555         handle all cases.
27556
27557 2009-08-25  Bruno Haible  <bruno@clisp.org>
27558
27559         dup2: work around a Linux bug.
27560         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27561         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27562         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27563         Reported by Simon Josefsson.
27564
27565 2009-08-25  Jim Meyering  <meyering@redhat.com>
27566
27567         libguestfs uses gnulib
27568         * users.txt: Add libguestfs.
27569
27570 2009-08-24  Eric Blake  <ebb9@byu.net>
27571
27572         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27573         * lib/pipe2.c (includes): Add binary-io.h.
27574         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27575
27576 2009-08-24  Bruno Haible  <bruno@clisp.org>
27577
27578         Tolerate declared but missing accept4 syscall.
27579         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27580         available.
27581         * lib/sys_socket.in.h (accept4): If the function is already present,
27582         override it.
27583         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27584         * modules/accept4 (Makefile.am): Compile accept4.c always.
27585         Reported by Paolo Bonzini and Eric Blake.
27586
27587 2009-08-23  Bruno Haible  <bruno@clisp.org>
27588
27589         New module 'accept4'.
27590         * lib/sys_socket.in.h (accept4): New declaration.
27591         * lib/accept4.c: New file.
27592         * m4/accept4.m4: New file.
27593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27594         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27595         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27596         HAVE_ACCEPT4.
27597         * modules/accept4: New file.
27598         * doc/glibc-functions/accept4.texi: Mention the new module.
27599
27600 2009-08-24  Jim Meyering  <meyering@redhat.com>
27601
27602         progname: also set global program_invocation_name, when possible
27603         Before this change, a libtool-enabled program that calls glibc's
27604         error function would report the program name as
27605         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27606         * modules/progname (configure.ac): Check for a declaration of
27607         program_invocation_name.
27608         * lib/progname.c:  Include <errno.h>.
27609         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27610         Set program_invocation_name.
27611
27612 2009-08-23  Bruno Haible  <bruno@clisp.org>
27613
27614         * lib/dup3.c: Include <string.h>.
27615
27616 2009-08-23  Bruno Haible  <bruno@clisp.org>
27617
27618         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27619         * lib/pipe2.c (pipe2): Likewise.
27620         Suggested by Eric Blake.
27621
27622 2009-08-23  Bruno Haible  <bruno@clisp.org>
27623
27624         Tolerate declared but missing dup3 syscall.
27625         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27626         * lib/unistd.in.h (dup3): If the function is already present,
27627         override it.
27628         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27629         * modules/dup3 (Makefile.am): Compile dup3.c always.
27630         Reported by Paolo Bonzini.
27631
27632 2009-08-23  Bruno Haible  <bruno@clisp.org>
27633
27634         Tolerate declared but missing pipe2 syscall.
27635         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27636         available.
27637         * lib/unistd.in.h (pipe2): If the function is already present,
27638         override it.
27639         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27640         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27641         Reported by Paolo Bonzini.
27642
27643 2009-08-23  Bruno Haible  <bruno@clisp.org>
27644
27645         * lib/pipe2.c (pipe2): Move #ifs inside function.
27646
27647 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27648
27649         quotearg: document limitations of quote_these_too
27650         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27651         those limitations are created.
27652         * lib/quotearg.h (set_char_quoting): Document that digits and
27653         letters that are special after backslash are not permitted.
27654         (quotearg_char): Cross-reference set_char_quoting documentation.
27655
27656 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27657
27658         quotearg: implement custom_quoting_style
27659         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27660         right_quote fields.
27661         (set_custom_quoting): New public function.
27662         (quotearg_buffer_restyled): Add left_quote and right_quote
27663         arguments, handle them very much like locale quoting, and update
27664         all uses.
27665         (quotearg_n_custom): New public function.
27666         (quotearg_n_custom_mem): New public function.
27667         (quotearg_custom): New public function.
27668         (quotearg_custom_mem): New public function.
27669         * lib/quotearg.h: Prototype and document new public functions.
27670         (enum quoting_style): For escape_quoting_style and
27671         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27672         ignored even though they're otherwise like c_quoting_style.
27673         Add custom_quoting_style member and document with comparison to
27674         clocale_quoting_style.
27675         * tests/test-quotearg.c (custom_quotes): New array.
27676         (custom_results): New array.
27677         (main): Extend to test custom quoting.
27678
27679 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27680
27681         quotearg: fix right quote escaping when it's in quote_these_too
27682         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27683         quote, be sure to prepend only one backslash.
27684         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27685         (main): Test it.
27686
27687 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27688
27689         quotearg-tests: test escaping of embedded locale quotes
27690         * tests/test-quotearg.c (struct result_strings): Add member for
27691         new input.
27692         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27693         (inputs): Add new input.
27694         (results_g): Add expected results.
27695         (flag_results): Likewise.
27696         (locale_results): Likewise.
27697         (compare_strings): Check those.
27698
27699 2009-08-23  Bruno Haible  <bruno@clisp.org>
27700
27701         Tests for module 'dup3'.
27702         * modules/dup3-tests: New file.
27703         * tests/test-dup3.c: New file.
27704
27705         New module 'dup3'.
27706         * lib/unistd.in.h (dup3): New declaration.
27707         * lib/dup3.c: New file.
27708         * m4/dup3.m4: New file.
27709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27710         HAVE_DUP3.
27711         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27712         * modules/dup3: New file.
27713         * doc/glibc-functions/dup3.texi: Mention the new module.
27714
27715 2009-08-23  Bruno Haible  <bruno@clisp.org>
27716
27717         Tweak the dup2 test.
27718         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27719         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27720         the test file is still empty. Fix argument order of lseek.
27721
27722 2009-08-23  Bruno Haible  <bruno@clisp.org>
27723
27724         Avoid test link errors when the modules getopt-gnu, gettext are used.
27725         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27727
27728 2009-08-23  Bruno Haible  <bruno@clisp.org>
27729
27730         Fix getdtablesize() on mingw.
27731         * lib/getdtablesize.c (getdtablesize): Implement differently.
27732         * lib/unistd.in.h (getdtablesize): Improve comment.
27733
27734 2009-08-23  Bruno Haible  <bruno@clisp.org>
27735
27736         New module 'mkostemp'.
27737         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27738         * lib/stdlib.in.h (mksotemp): New declaration.
27739         * lib/mkostemp.c: New file, from glibc with modifications.
27740         * lib/tempname.h (GT_FILE): Remove outdated comment.
27741         (gen_tempname): Add flags argument.
27742         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27743         (__GT_FILE): Map to 1.
27744         (small_open, large_open): Remove macros.
27745         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27746         * lib/mkstemp.c (mkstemp): Update.
27747         * lib/mkdtemp.c (mkdtemp): Likewise.
27748         * m4/mkostemp.m4: New file.
27749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27750         HAVE_MKOSTEMP.
27751         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27752         HAVE_MKOSTEMP.
27753         * modules/mkostemp: New file, based on modules/mkstemp.
27754         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27755         * NEWS: Mention the change.
27756
27757 2009-08-23  Bruno Haible  <bruno@clisp.org>
27758
27759         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27760         Reported by Eric Blake.
27761
27762 2009-08-23  Bruno Haible  <bruno@clisp.org>
27763
27764         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27765         Reported by Eric Blake.
27766
27767 2009-08-23  Bruno Haible  <bruno@clisp.org>
27768
27769         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27770         * modules/pipe2 (Depends-on): Likewise.
27771
27772 2009-08-23  Eric Blake  <ebb9@byu.net>
27773
27774         fcntl-h: add O_TTY_INIT support
27775         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27776         * tests/test-fcntl-h.c (o): Test it.
27777         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27778
27779         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27780         * modules/fcntl: Move <fcntl.h> header replacement...
27781         * modules/fcntl-h: ...to new name, so as not to collide with
27782         like-named function.
27783         * tests/test-fcntl.c: Rename...
27784         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27785         * modules/fcntl-tests: Rename...
27786         * modules/fcntl-h-tests: ...to this.  Update test file name.
27787         * modules/chdir-long (Depends-on): Update clients.
27788         * modules/chdir-safer (Depends-on): Likewise.
27789         * modules/fcntl-safer (Depends-on): Likewise.
27790         * modules/fts (Depends-on): Likewise.
27791         * modules/mkancesdirs (Depends-on): Likewise.
27792         * modules/mkdir-p (Depends-on): Likewise.
27793         * modules/open (Depends-on): Likewise.
27794         * modules/savewd (Depends-on): Likewise.
27795         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27796         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27797
27798 2009-08-22  Bruno Haible  <bruno@clisp.org>
27799
27800         * modules/binary-io (License): Relicense under LGPL.
27801         * modules/pipe2 (License): Likewise.
27802
27803 2009-08-22  Bruno Haible  <bruno@clisp.org>
27804
27805         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27806         return value.
27807         * lib/pipe-filter-gi.c (filter_init): Likewise.
27808         Reported by Eric Blake.
27809
27810 2009-08-22  Bruno Haible  <bruno@clisp.org>
27811
27812         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27813         * modules/pipe (Depends-on): Add pipe2.
27814
27815 2009-08-22  Bruno Haible  <bruno@clisp.org>
27816
27817         Tests for module 'pipe2'.
27818         * modules/pipe2-tests: New file.
27819         * tests/test-pipe2.c: New file.
27820
27821         New module 'pipe2'.
27822         * lib/unistd.in.h (pipe2): New declaration.
27823         * lib/pipe2.c: New file.
27824         * m4/pipe2.m4: New file.
27825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27826         HAVE_PIPE2.
27827         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27828         * modules/pipe2: New file.
27829         * doc/glibc-functions/pipe2.texi: Mention the new module.
27830
27831 2009-08-22  Bruno Haible  <bruno@clisp.org>
27832
27833         Reference some new glibc functions.
27834         * doc/glibc-functions/accept4.texi: New file.
27835         * doc/glibc-functions/dup3.texi: New file.
27836         * doc/glibc-functions/mkostemp.texi: New file.
27837         * doc/glibc-functions/pipe2.texi: New file.
27838         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27839         (Glibc sys/socket.h): Refer to accept4.
27840         (Glibc unistd.h): Refer to dup3, pipe2.
27841         Reported by Eric Blake.
27842
27843 2009-08-22  Jim Meyering  <meyering@redhat.com>
27844             Bruno Haible  <bruno@clisp.org>
27845
27846         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27847         This makes it so packages using automake-1.11's silent-rules option
27848         can print e.g., a single "GEN    configmake.h" line, rather than
27849         the 30+ statements that perform the job.  If you want to see the
27850         actual commands, you can still run "make V=1".
27851         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27852         so that make output is abbreviated when those variables are defined
27853         appropriately.
27854         * modules/argz: Likewise.
27855         * modules/arpa_inet: Likewise.
27856         * modules/byteswap: Likewise.
27857         * modules/configmake: Likewise.
27858         * modules/dirent: Likewise.
27859         * modules/errno: Likewise.
27860         * modules/fcntl: Likewise.
27861         * modules/float: Likewise.
27862         * modules/fnmatch: Likewise.
27863         * modules/getopt-posix: Likewise.
27864         * modules/glob: Likewise.
27865         * modules/iconv_open: Likewise.
27866         * modules/inttypes: Likewise.
27867         * modules/localcharset: Likewise.
27868         * modules/locale: Likewise.
27869         * modules/math: Likewise.
27870         * modules/netdb: Likewise.
27871         * modules/netinet_in: Likewise.
27872         * modules/poll: Likewise.
27873         * modules/posix_spawnp-tests: Likewise.
27874         * modules/sched: Likewise.
27875         * modules/search: Likewise.
27876         * modules/selinux-h: Likewise.
27877         * modules/signal: Likewise.
27878         * modules/spawn: Likewise.
27879         * modules/stdarg: Likewise.
27880         * modules/stdbool: Likewise.
27881         * modules/stddef: Likewise.
27882         * modules/stdint: Likewise.
27883         * modules/stdio: Likewise.
27884         * modules/stdlib: Likewise.
27885         * modules/string: Likewise.
27886         * modules/strings: Likewise.
27887         * modules/sys_file: Likewise.
27888         * modules/sys_ioctl: Likewise.
27889         * modules/sys_select: Likewise.
27890         * modules/sys_socket: Likewise.
27891         * modules/sys_stat: Likewise.
27892         * modules/sys_time: Likewise.
27893         * modules/sys_times: Likewise.
27894         * modules/sys_utsname: Likewise.
27895         * modules/sys_wait: Likewise.
27896         * modules/sysexits: Likewise.
27897         * modules/time: Likewise.
27898         * modules/unistd: Likewise.
27899         * modules/wchar: Likewise.
27900         * modules/wctype: Likewise.
27901
27902 2009-08-22  Jim Meyering  <meyering@redhat.com>
27903
27904         announce-gen: detect write failure
27905         * build-aux/announce-gen: Add Coda at end.
27906         Remove equivalent-but-more-verbose block at top.
27907
27908 2009-08-19  Akim Demaille  <demaille@gostai.com>
27909
27910         bootstrap: --help to stdout.
27911         * bootstrap (usage): Don't send --help to stderr.
27912         Use a here doc instead of a long string.
27913
27914 2009-08-21  Eric Blake  <ebb9@byu.net>
27915
27916         test-popen-safer: split from test-popen
27917         * tests/test-popen.c (main): Move...
27918         * tests/test-popen.h: ...into new file.
27919         * tests/test-popen-safer2.c: New file.
27920         * modules/popen-tests (Files): Add test-popen.h.
27921         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27922         Suggested by Bruno Haible.
27923
27924         test-fcntl-safer: split from test-open
27925         * tests/test-open.c (main): Move...
27926         * tests/test-open.h: ...into new file.
27927         * tests/test-fcntl-safer.c: New file.
27928         * modules/open-tests (Files): Add test-open.h.
27929         * modules/fcntl-safer-tests: New file.
27930         Suggested by Bruno Haible.
27931
27932         test-fopen-safer: split from test-fopen
27933         * tests/test-fopen.c (main): Move...
27934         * tests/test-fopen.h: ...into new file.
27935         * tests/test-fopen-safer.c: New file.
27936         * modules/fopen-tests (Files): Add test-fopen.h.
27937         * modules/fopen-safer-tests: New file.
27938         Suggested by Bruno Haible.
27939
27940 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27941
27942         popen-safer: test O_CLOEXEC at run-time.
27943         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27944
27945 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27946
27947         fcntl: move more flags to the header
27948         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27949         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27950         * lib/fcntl.in.h: Do both things here.
27951
27952 2009-08-21  Jim Meyering  <meyering@redhat.com>
27953
27954         consistently remove $@-t before redirecting to it
27955         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27956         * modules/alloca-opt: Likewise.
27957         * modules/byteswap: Likewise.
27958         * modules/fnmatch: Likewise.
27959         * modules/getopt-posix: Likewise.
27960         * modules/glob: Likewise.
27961         * modules/poll: Likewise.
27962         * modules/posix_spawnp-tests: Likewise.
27963         * modules/sys_socket: Likewise.
27964         * modules/sysexits: Likewise.
27965
27966 2009-08-21  Eric Blake  <ebb9@byu.net>
27967
27968         popen: simplify access to original popen
27969         * lib/popen.c (rpl_popen): No need to worry about popen being a
27970         macro.
27971         Reported by Bruno Haible.
27972
27973 2009-08-20  Eric Blake  <ebb9@byu.net>
27974
27975         build: avoid some compiler warnings
27976         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27977         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27978         type.
27979         (new_exclude_segment, excluded_file_pattern_p)
27980         (excluded_file_name_p): Reduce scope.
27981         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27982         old-style declaration.
27983
27984 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27985
27986         * tests/test-exclude1.sh: Handle Windows EOL.
27987         * tests/test-exclude2.sh: Likewise.
27988         * tests/test-exclude3.sh: Likewise.
27989         * tests/test-exclude4.sh: Likewise.
27990         * tests/test-exclude5.sh: Likewise.
27991         * tests/test-exclude6.sh: Likewise.
27992         * tests/test-exclude7.sh: Likewise.
27993
27994 2009-08-19  Akim Demaille  <demaille@gostai.com>
27995
27996         bootstrap: find sha1sum when named gsha1sum.
27997         * bootstrap (find_tool): New.
27998         ($SHA1SUM): New.
27999         Use it.
28000
28001 2009-08-20  Jim Meyering  <meyering@redhat.com>
28002
28003         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28004         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28005         expression that converts "." in a file name to "\." in the resulting
28006         regexp.  Start with a dummy statement, so that prior shell variable
28007         definitions are expanded portably.  Reported by Simon Josefsson.
28008
28009 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28010
28011         Fix polling for writeability of a screen buffer.
28012         * lib/poll.c: Distinguish input and screen buffers for the
28013         Win32 implementation.
28014         * lib/select.c: Likewise.
28015
28016 2009-08-19  Eric Blake  <ebb9@byu.net>
28017
28018         popen-safer: prevent popen from clobbering std descriptors
28019         * modules/popen-safer: New file.
28020         * lib/popen-safer.c: Likewise.
28021         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28022         * lib/stdio--.h (popen): Provide override.
28023         * lib/stdio-safer.h (popen_safer): Provide declaration.
28024         * tests/test-popen.c (includes): Partially test this.
28025         * modules/popen-safer-tests: New file, for more tests.
28026         * tests/test-popen-safer.c: Likewise.
28027         * MODULES.html.sh (file stream based Input/Output): Mention it.
28028
28029         tests: test some of the *-safer modules
28030         * modules/fopen-safer (Depends-on): Add fopen.
28031         * modules/fcntl-safer (Depends-on): Add fcntl.
28032         * modules/stdlib-safer (Depends-on): Add stdlib.
28033         (configure.ac): Set indicator.
28034         * modules/unistd-safer (configure.ac): Likewise.
28035         * modules/tmpfile-safer (configure.ac): Likewise.
28036         (Depends-on): Add tmpfile.
28037         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28038         active.
28039         * tests/test-fopen.c (includes): Test safer versions when they are
28040         in use.
28041         * tests/test-open.c (includes): Likewise.
28042
28043         popen: fix cygwin 1.5 bug when stdin closed
28044         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28045         * modules/popen: New file.
28046         * modules/popen-tests: Likewise.
28047         * tests/test-popen.c: Likewise.
28048         * m4/popen.m4: Likewise.
28049         * lib/popen.c: Likewise.
28050         * lib/stdio.in.h (popen): New declaration.
28051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28052         * modules/stdio (Makefile.am): Likewise.
28053         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28054
28055 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28056
28057         maint.mk: give full control over update-copyright exclusions
28058         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28059         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28060         (update-copyright): Don't force inclusion of top-level
28061         ChangeLog.  Don't force exclusion of all COPYING files, but make
28062         them the default exclusion instead.
28063
28064 2009-08-16  Bruno Haible  <bruno@clisp.org>
28065
28066         Fix test failures on Solaris 10.
28067         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28068         tests when Solaris iconv() is used.
28069         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28070         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28071         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28072         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28073         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28074
28075 2009-08-16  Bruno Haible  <bruno@clisp.org>
28076
28077         Fix test failures on Solaris 10.
28078         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28079         'tr' program and pass it as first argument.
28080         * tests/test-pipe-filter-gi1.sh: Likewise.
28081         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28082         program as first argument.
28083         * tests/test-pipe-filter-gi1.c (main): Likewise.
28084
28085 2009-08-16  Eric Blake  <ebb9@byu.net>
28086
28087         fpurge: fix previous commits
28088         * modules/fpurge (Makefile.am): Make replacement conditional,
28089         partially reverting 2007-04-29 change; missed in previous
28090         attempt.
28091         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28092         is missing.
28093
28094 2009-08-16  Bruno Haible  <bruno@clisp.org>
28095
28096         Clarify fpurge's effect on the file position.
28097         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28098         * tests/test-fpurge.c (main): Make a second pass for checking the file
28099         position.
28100
28101 2009-08-16  Bruno Haible  <bruno@clisp.org>
28102
28103         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28104         declaration of fpurge is missing.
28105         * tests/test-fpurge.c (main): Check that the file has not more contents
28106         than expected. Close the file before removing it.
28107
28108 2009-08-15  Eric Blake  <ebb9@byu.net>
28109
28110         fpurge: don't wrap working cygwin implementation
28111         * lib/fpurge.c (fpurge): Fix comment typo.
28112         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28113         1.7 to avoid replacement.
28114         * tests/test-fpurge.c (main): Enhance test.
28115
28116 2009-08-15  Eric Blake  <ebb9@byu.net>
28117         and Jim Meyering  <meyering@redhat.com>
28118
28119         test-update-copyright: skip if perl is insufficient
28120         * tests/test-update-copyright.sh: Failure to run maintainer tool
28121         should not cause testsuite failure on cygwin 1.5.
28122
28123 2009-08-14  Eric Blake  <ebb9@byu.net>
28124
28125         doc: mention more functions added in cygwin 1.7.0
28126         * doc/posix-headers/limits.texi (limits.h): Update for recent
28127         cygwin additions.
28128         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28129         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28130         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28131         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28132         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28133
28134 2009-08-14  Eric Blake  <ebb9@byu.net>
28135
28136         maint.mk: simplify update-copyright rule
28137         * top/maint.mk (update-copyright-local): Delete, and document how
28138         to do it in cfg.mk instead.
28139         (update-copyright-exclude-regexp): Delete, and document how to do
28140         it in .x-update-copyright instead.
28141         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28142         exclude ChangeLog.
28143
28144 2009-08-14  Bruno Haible  <bruno@clisp.org>
28145
28146         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28147
28148 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28149
28150         maint.mk: support update-copyright-env
28151         * top/maint.mk (update-copyright-env): Define place-holder.
28152         (update-copyright): Expand $(update-copyright-env) before
28153         invoking update-copyright.
28154
28155 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28156
28157         update-copyright: implement forced reformatting
28158         * build-aux/update-copyright: Implement and document
28159         UPDATE_COPYRIGHT_FORCE.
28160         * tests/test-update-copyright.sh: Test it.
28161
28162 2009-08-14  Eric Blake  <ebb9@byu.net>
28163         and Bruno Haible  <bruno@clisp.org>
28164
28165         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28166         * tests/test-locale.c: Revert previous patch related to NULL.
28167         * tests/test-stdio.c: Likewise.
28168         * tests/test-stdlib.c: Likewise.
28169         * tests/test-string.c: Likewise.
28170         * tests/test-unistd.c: Likewise.
28171         * modules/time-tests (Depends-on): Add verify.
28172         * modules/wchar-tests (Depends-on): Likewise.
28173         * tests/test-time.c: Test for NULL compliance.
28174         * tests/test-wchar.c: Likewise.
28175         * modules/locale (Depends-on): Add stddef.
28176         * modules/stdio (Depends-on): Likewise.
28177         * modules/stdlib (Depends-on): Likewise.
28178         * modules/string (Depends-on): Likewise.
28179         * modules/time (Depends-on): Likewise.
28180         * modules/unistd (Depends-on): Likewise.
28181         * modules/wchar (Depends-on): Likewise.
28182         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28183         * lib/stdlib.in.h (includes): Likewise.
28184         * lib/string.in.h (includes): Likewise.
28185         * lib/time.in.h (includes): Likewise.
28186         * lib/unistd.in.h (includes): Likewise.
28187         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28188         replaced.
28189         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28190         * m4/stddef_h.m4: New file.
28191         * modules/stddef: Likewise.
28192         * lib/stddef.in.h: Likewise.
28193         * modules/stddef-tests: Likewise.
28194         * tests/test-stddef.c: Likewise.
28195         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28196         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28197         * doc/posix-headers/locale.texi (locale.h): Likewise.
28198         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
28199         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28200         * doc/posix-headers/string.texi (string.h): Likewise.
28201         * doc/posix-headers/time.texi (time.h): Likewise.
28202         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
28203         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
28204
28205 2009-08-14  Eric Blake  <ebb9@byu.net>
28206
28207         doc: improve git diff of texinfo files
28208         * .gitattributes: Add rule for *.texi files, with hint on how to
28209         use it.
28210         Copied from m4, and based on a report by Bruno Haible.
28211
28212 2009-08-14  Bruno Haible  <bruno@clisp.org>
28213
28214         Disable multithread support by default on Cygwin 1.5.x for real.
28215         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
28216
28217 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28218
28219         update-copyright: much ado about intervals
28220         * build-aux/update-copyright: Implement and document
28221         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
28222         of copyright year intervals.
28223         Also, document UPDATE_COPYRIGHT_YEAR.
28224         * tests/test-update-copyright.sh: Test it.
28225
28226         update-copyright: convert 2-digit to 4-digit years
28227         * build-aux/update-copyright: Implement and document.
28228         * tests/test-update-copyright.sh: Update.
28229
28230 2009-08-14  Jim Meyering  <meyering@redhat.com>
28231
28232         test-exclude: avoid coreutils "make check" failure
28233         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
28234         just as in test-argmatch.c.
28235
28236 2009-08-13  Eric Blake  <ebb9@byu.net>
28237
28238         test-dup2: fix bad assumption
28239         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
28240         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
28241
28242         test-version-etc: fix CRLF portability issue
28243         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
28244         recognize \r.
28245         * tests/test-argp-version-etc-1.sh: Likewise.
28246
28247         getopt: update client modules
28248         * modules/argp (Depends-on): Use getopt-gnu.
28249         * modules/git-merge-changelog (Depends-on): Likewise.
28250         * modules/long-options (Depends-on): Likewise.
28251         * modules/xstrtol (Depends-on): Likewise.
28252
28253 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28254
28255         * tests/test-version-etc.sh: Don't fail on different
28256         project/version.  Don't fail on CRLF differences.  Rewrite to use
28257         multiple -e instead of multiple sed forks, suggested by Eric Blake
28258         <ebb9@byu.net>.
28259         * tests/test-argp-version-etc-1.sh: Likewise.
28260
28261 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28262
28263         * tests/test-version-etc.sh: Don't fail on different
28264         project/version.
28265
28266 2009-08-12  Bruno Haible  <bruno@clisp.org>
28267
28268         Tests for modules 'getopt-posix', 'getopt-gnu'.
28269         * modules/getopt-posix-tests: New file.
28270         * tests/test-getopt.c: New file.
28271         * tests/test-getopt.h: New file.
28272         * tests/test-getopt_long.h: New file.
28273
28274         New modules 'getopt-posix', 'getopt-gnu'.
28275         * modules/getopt-gnu: New file, renamed from modules/getopt.
28276         * modules/getopt-posix: New file.
28277         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28278         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28279         (gl_GETOPT): Remove macro.
28280         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28281         Disable the test against BSD systems that declare optreset. Test
28282         against mingw bug. Test against lack of support of optional arguments
28283         on many platforms.
28284         * doc/glibc-headers/getopt.texi: Update module name and list of
28285         relevant platforms.
28286         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28287         'getopt-gnu' and more portability problems.
28288         * NEWS: Mention the changes.
28289
28290 2009-08-12  Bruno Haible  <bruno@clisp.org>
28291
28292         Ensure that optarg etc. get declared by <unistd.h>.
28293         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28294         AC_USE_SYSTEM_EXTENSIONS.
28295         * modules/getopt (Depends-on): Add 'extensions'.
28296
28297 2009-08-12  Bruno Haible  <bruno@clisp.org>
28298
28299         Avoid test link errors.
28300         * modules/pipe-filter-ii-tests (Makefile.am): Define
28301         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28302         * modules/pipe-filter-gi-tests (Makefile.am): Define
28303         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28305
28306 2009-08-12  Bruno Haible  <bruno@clisp.org>
28307
28308         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28309         gl_GETOPT_SUBSTITUTE before.
28310         (gl_GETOPT): Use it.
28311         * m4/argp.m4 (gl_ARGP): Update.
28312         Reported by Sergey Poznyakoff.
28313
28314         * m4/getopt.m4: Reorder macros.
28315         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28316         (gl_GETOPT_SUBSTITUTE): Remove macro.
28317
28318 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28319
28320         Minor improvement in gitlog-to-changelog
28321
28322         * build-aux/gitlog-to-changelog: New option `--format' makes
28323         output format string configurable.
28324
28325 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28326
28327         Optimize exclude: use hash tables for non-wildcard patterns.
28328
28329         * lib/exclude.c: Include hash.h and mbuiter.h
28330         (struct exclude_pattern, exclude_segment): New data types.
28331         (struct exclude): Rewrite.
28332         (fnmatch_pattern_has_wildcards): New function.
28333         (new_exclude_segment, free_exclude_segment): New functions.
28334         (excluded_file_pattern_p, excluded_file_name_p): New functions.
28335         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
28336         * lib/exclude.h (is_fnmatch_pattern): New prototype.
28337         * modules/exclude: Depend on hash and mbuiter.
28338
28339         * modules/exclude-tests: New file.
28340         * tests/test-exclude.c: New file.
28341         * tests/test-exclude1.sh: New file.
28342         * tests/test-exclude2.sh: New file.
28343         * tests/test-exclude3.sh: New file.
28344         * tests/test-exclude4.sh: New file.
28345         * tests/test-exclude5.sh: New file.
28346         * tests/test-exclude6.sh: New file.
28347         * tests/test-exclude7.sh: New file.
28348
28349 2009-08-12  Bruno Haible  <bruno@clisp.org>
28350
28351         Ensure that getopt() gets declared by <unistd.h>.
28352         * lib/unistd.in.h: Conditionally include getopt.h.
28353         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
28354         Set GNULIB_UNISTD_H_GETOPT.
28355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28356         GNULIB_UNISTD_H_GETOPT.
28357         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
28358
28359 2009-08-12  Bruno Haible  <bruno@clisp.org>
28360
28361         Clarify logic.
28362         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
28363         gl_replace_getopt instead of GETOPT_H.
28364
28365 2009-08-12  Bruno Haible  <bruno@clisp.org>
28366
28367         * m4/getopt.m4: Add comments.
28368
28369 2009-08-12  Bruno Haible  <bruno@clisp.org>
28370
28371         Disable multithread support by default on Cygwin 1.5.x.
28372         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
28373         set gl_use_threads=no if not specified otherwise.
28374
28375 2009-08-11  Bruno Haible  <bruno@clisp.org>
28376
28377         Avoid compilation error on NetBSD 5.0.
28378         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28379         * tests/test-stdio.c: Likewise.
28380         * tests/test-stdlib.c: Likewise.
28381         * tests/test-string.c: Likewise.
28382         * tests/test-unistd.c: Likewise.
28383         Reported by Greg Troxel <gdt@ir.bbn.com>
28384         at <https://savannah.gnu.org/support/?106973>.
28385
28386 2009-08-11  Bruno Haible  <bruno@clisp.org>
28387
28388         * modules/dup2-tests (Depends-on): Remove close.
28389
28390         Undo 2009-07-19 commit.
28391         * modules/acl-tests (Depends-on): Remove close.
28392         * modules/binary-io-tests (Depends-on): Likewise.
28393         * modules/closein-tests (Depends-on): Likewise.
28394         * modules/flock-tests (Depends-on): Likewise.
28395         * modules/fsync-tests (Depends-on): Likewise.
28396         * modules/lseek-tests (Depends-on): Likewise.
28397         * modules/pipe-tests (Depends-on): Likewise.
28398         * modules/posix_spawn-tests (Depends-on): Likewise.
28399         * modules/posix_spawnp-tests (Depends-on): Likewise.
28400         * modules/stat-time-tests (Depends-on): Likewise.
28401         * modules/yesno-tests (Depends-on): Likewise.
28402
28403 2009-08-10  Bruno Haible  <bruno@clisp.org>
28404
28405         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28406
28407 2009-08-10  Bruno Haible  <bruno@clisp.org>
28408
28409         Fix a gcc warning.
28410         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28411
28412 2009-08-10  Bruno Haible  <bruno@clisp.org>
28413
28414         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28415         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28416         not only the first time.
28417         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28418         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28419         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28420         is 1, not only the the first time.
28421
28422 2009-08-10  Bruno Haible  <bruno@clisp.org>
28423
28424         Make it possible to use module 'gethostname' without module 'close'.
28425         * lib/unistd.in.h (close): Evoke a link error only if
28426         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28428         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28429         * modules/unistd (Makefile.am): Substitute
28430         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28431         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28432         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28433         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28434         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28435         * modules/sys_ioctl (Makefile.am): Substitute
28436         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28437         * modules/socket (configure.ac): On native Windows, set
28438         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28439         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28440         Reported by Sam Steingold <sds@gnu.org>.
28441
28442 2009-08-10  Bruno Haible  <bruno@clisp.org>
28443
28444         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28445         * modules/ioctl (configure.ac): Likewise.
28446
28447 2009-08-10  Bruno Haible  <bruno@clisp.org>
28448
28449         Avoid collision between gnulib wrapper and libintl wrapper.
28450         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28451         already defined in intl/printf.c.
28452         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28453         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28454
28455 2009-08-09  Bruno Haible  <bruno@clisp.org>
28456
28457         Make <sys/select.h> really self-contained, also on Solaris 10.
28458         * lib/sys_select.in.h: Include <string.h>.
28459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28460         Solaris 10 problem.
28461         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28462         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28463         Reported by Jim Meyering.
28464
28465 2009-08-09  Bruno Haible  <bruno@clisp.org>
28466
28467         Avoid warnings from 'aclocal' that are due to a use of macro name
28468         AM_XGETTEXT_OPTION that is not defined in automake.
28469         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28470         automake.
28471         * modules/error (configure.ac): Likewise.
28472         * modules/propername (configure.ac): Likewise.
28473         * modules/vasprintf (configure.ac): Likewise.
28474         * modules/verror (configure.ac): Likewise.
28475         * modules/xprintf (configure.ac): Likewise.
28476         * modules/xvasprintf (configure.ac): Likewise.
28477
28478 2009-08-08  Bruno Haible  <bruno@clisp.org>
28479
28480         Avoid compilation error in C++ mode.
28481         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28482         Reported by Sam Steingold <sds@gnu.org>.
28483
28484 2009-08-08  Bruno Haible  <bruno@clisp.org>
28485
28486         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28487         for the various Unix platforms.
28488         * doc/posix-headers/limits.texi: Update platforms list regarding
28489         HOST_NAME_MAX.
28490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28491
28492 2009-08-07  Jim Meyering  <meyering@redhat.com>
28493
28494         selinux-at: fix typo in a comment
28495         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28496         Spotted by Paolo Bonzini.
28497
28498         selinux-at: remove redundant m4 code, add documentation
28499         * modules/selinux-at (configure.ac): Remove redundant code.
28500         LIB_SELINUX is already set via the dependent module, selinux-h.
28501         (Include): Add quotes around selinux-at.h.
28502         * lib/selinux-at.h: Add documentation.
28503         Reported by Bruno Haible in
28504         http://marc.info/?l=gnulib-bug&m=124958988300749
28505
28506 2009-08-07  Bruno Haible  <bruno@clisp.org>
28507
28508         Avoid link error on MacOS X 10.3 and 10.4.
28509         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28510         on non-ELF systems.
28511         * lib/argp-pv.c (argp_program_version): Likewise.
28512         Reported by Simon Josefsson.
28513
28514 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28515
28516         * tests/test-version-etc.sh: Use $EXEEXT.
28517
28518 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28519
28520         update-copyright: update documentation to point to maint.mk
28521         * build-aux/update-copyright: Here.
28522
28523 2009-08-06  Jim Meyering  <meyering@redhat.com>
28524
28525         maint.mk: support update-copyright-local
28526         * top/maint.mk (update-copyright-local): Define place-holder.
28527         (update-copyright): Depend on $(update-copyright-local).
28528
28529 2009-08-06  Jim Meyering  <meyering@redhat.com>
28530
28531         selinux-at: new module
28532         Initially written for coreutils, this module will soon be
28533         used by findutils, too.
28534         * MODULES.html.sh [Misc]: Add selinux-at.
28535         * lib/selinux-at.h: New file, from coreutils.
28536         * lib/selinux-at.c: Likewise.
28537         * modules/selinux-at: Likewise.
28538         (License): Change from LGPL to GPL, since it depends
28539         on the GPL'd openat module.
28540
28541         doc: update README
28542         * README: Remove references to cogito.
28543         Remove cvs-repo-updating instructions from 2007.
28544         Don't imply that CVS is better if you have limited disk space.
28545
28546 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28547
28548         update-copyright: support C-style comments
28549         * build-aux/update-copyright: Implement and document.
28550         * tests/test-update-copyright.sh: Test.
28551
28552 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28553
28554         update-copyright: support omitted "(C)"
28555         * build-aux/update-copyright: Implement and document.  Also,
28556         allow variable whitespace before "(C)".
28557         * tests/test-update-copyright.sh: Test.
28558
28559 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28560
28561         update-copyright: don't trip on non-FSF copyright statements
28562         * build-aux/update-copyright: Fix so that the first correctly
28563         formatted FSF copyright statement is recognized no matter what
28564         appears before it.  Update documentation.
28565         * tests/test-update-copyright.sh: Test that.
28566
28567 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28568
28569         update-copyright: clean up code a little
28570         * build-aux/update-copyright: Append "_re" to the name of any
28571         variable holding a regular expression.
28572         Replace "old" and "new" with "stmt" in variable names.
28573         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28574         handled correctly.
28575         Format code more consistently.
28576
28577 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28578
28579         update-copyright-tests: improve portability
28580         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28581         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28582
28583 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28584
28585         update-copyright: support @copyright{} and &copy;
28586         * build-aux/update-copyright: Implement and document.
28587         * tests/test-update-copyright.sh: Test.
28588
28589 2009-08-04  Jim Meyering  <meyering@redhat.com>
28590
28591         update-copyright-tests: correctly test EOL=\r\n handling
28592         * tests/test-update-copyright.sh: Put \r at the end of some lines
28593         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28594
28595         maint.mk: make update-copyright exclusion list more configurable
28596         * top/maint.mk (update-copyright): Default to excluding COPYING,
28597         but allow an override, in case someone does want to update that file.
28598
28599         maint.mk: don't update copyright date in COPYING
28600         * top/maint.mk (update-copyright): Exclude COPYING.
28601
28602         maint.mk: add a copyright-updating rule
28603         * top/maint.mk (update-copyright): New rule.
28604         Derived from coreutils/Makefile.am.
28605
28606         update-copyright: rename some variables
28607         * build-aux/update-copyright: Rename a few variables for clarity.
28608         Tweak syntax.  List Joel E. Denny as coauthor.
28609
28610 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28611
28612         update-copyright: fix bug for 2-digit last year and add tests
28613         * build-aux/update-copyright: Fix bug.
28614         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28615         specified.
28616         * modules/update-copyright-tests: New
28617         * tests/test-update-copyright.sh: New.
28618
28619 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28620
28621         update-copyright: handle leading tabs in line prefix
28622         * build-aux/update-copyright: Count leading tabs as 8 spaces
28623         when computing margin.  This helps with the formatting of
28624         ChangeLogs, for example.
28625         Fix documentation a little.
28626
28627 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28628
28629         update-copyright: support EOL=\r\n
28630         * build-aux/update-copyright: Implement that.
28631
28632 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28633
28634         update-copyright: automatically format copyright statements
28635         * build-aux/update-copyright: Implement that.
28636         Also, be a little more predictable and safer by always failing
28637         when the full copyright format is not perfectly recognized as an
28638         unbroken whole.  Discussed at
28639         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28640         Rewrite documentation.
28641
28642 2009-08-03  Bruno Haible  <bruno@clisp.org>
28643
28644         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28645
28646 2009-08-02  Bruno Haible  <bruno@clisp.org>
28647
28648         Tests for module 'uname'.
28649         * modules/uname-tests: New file.
28650         * tests/test-uname.c: New file.
28651
28652         New module 'uname'.
28653         * lib/uname.c: New file.
28654         * m4/uname.m4: New file.
28655         * modules/uname: New file.
28656         * doc/posix-functions/uname.texi: Mention the new module.
28657
28658 2009-08-02  Bruno Haible  <bruno@clisp.org>
28659
28660         Tests for module 'sys_utsname'.
28661         * modules/sys_utsname-tests: New file.
28662         * tests/test-sys_utsname.c: New file.
28663
28664         New module 'sys_utsname'.
28665         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28666         * m4/sys_utsname_h.m4: New file.
28667         * modules/sys_utsname: New file.
28668         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28669
28670 2009-08-02  Bruno Haible  <bruno@clisp.org>
28671
28672         Implicitly initialize the sockets library.
28673         * lib/gethostname.c: Include sockets.h.
28674         (rpl_gethostname): Invoke gl_sockets_startup.
28675         * lib/socket.c: Include sockets.h.
28676         (rpl_socket): Invoke gl_sockets_startup.
28677         * modules/gethostname (Depends-on): Add sockets.
28678         * modules/socket (Depends-on): Likewise.
28679         * tests/test-poll.c: Don't include sockets.h.
28680         (main): Don't invoke gl_sockets_startup.
28681         * tests/test-select.c: Don't include sockets.h.
28682         (main): Don't invoke gl_sockets_startup.
28683
28684 2009-08-02  Bruno Haible  <bruno@clisp.org>
28685
28686         Allow multiple calls to gl_sockets_startup.
28687         * lib/sockets.c (initialized_sockets_version): New variable.
28688         (gl_sockets_startup): Do nothing if already called for this or a higher
28689         version.
28690         (gl_sockets_cleanup): Reset initialized_sockets_version.
28691
28692 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28693
28694         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28695         different project/version.
28696
28697 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28698             Bruno Haible  <bruno@clisp.org>
28699
28700         Tests for module 'pipe-filter-gi'.
28701         * modules/pipe-filter-gi-tests: New file.
28702         * tests/test-pipe-filter-gi1.sh: New file.
28703         * tests/test-pipe-filter-gi1.c: New file.
28704         * tests/test-pipe-filter-gi2.sh: New file.
28705         * tests/test-pipe-filter-gi2-main.c: New file.
28706         * tests/test-pipe-filter-gi2-child.c: New file.
28707
28708         New module 'pipe-filter-gi'.
28709         * lib/pipe-filter-gi.c: New file.
28710         * modules/pipe-filter-gi: New file.
28711
28712 2009-08-02  Bruno Haible  <bruno@clisp.org>
28713             Paolo Bonzini  <bonzini@gnu.org>
28714
28715         Tests for module 'pipe-filter-ii'.
28716         * modules/pipe-filter-ii-tests: New file.
28717         * tests/test-pipe-filter-ii1.sh: New file.
28718         * tests/test-pipe-filter-ii1.c: New file.
28719         * tests/test-pipe-filter-ii2.sh: New file.
28720         * tests/test-pipe-filter-ii2-main.c: New file.
28721         * tests/test-pipe-filter-ii2-child.c: New file.
28722
28723         New module 'pipe-filter-ii'.
28724         * lib/pipe-filter.h: New file.
28725         * lib/pipe-filter-ii.c: New file.
28726         * lib/pipe-filter-aux.h: New file.
28727         * modules/pipe-filter-ii: New file.
28728
28729 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28730
28731         * lib/gc-libgcrypt.c: Change copyright to FSF.
28732         * lib/gc-gnulib.c: Likewise.
28733
28734 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28735
28736         * lib/gethostname.c: Include limits.h.
28737
28738 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28739             Bruno Haible  <bruno@clisp.org>
28740
28741         Ensure HOST_NAME_MAX as part of the gethostname module.
28742         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28743         define also HOST_NAME_MAX.
28744         * tests/test-gethostname.c: Include <limits.h>.
28745         (main): Check also HOST_NAME_MAX.
28746         * doc/posix-headers/limits.texi: Document the mingw problem.
28747
28748 2009-08-02  Bruno Haible  <bruno@clisp.org>
28749
28750         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28751         Add comments.
28752
28753 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28754
28755         * lib/gethostname.c: Add Windows wrapper.
28756         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28757         * modules/gethostname: Depend on sys_socket & errno, for also
28758         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28759         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28760
28761 2009-07-31  Jim Meyering  <meyering@redhat.com>
28762
28763         getloadavg: fix symbol name in comment
28764         * lib/getloadavg.c: Correct a typo I introduced when adding
28765         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28766         Matt Kraai spotted the problem.
28767
28768 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28769
28770         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28771         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28772         code also if ! defined N_NAME_POINTER.
28773         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28774         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28775         but the n_name member is a 12-byte array.
28776
28777 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28778
28779         update-copyright: generalize comment handling
28780         * build-aux/update-copyright: Handle copyright statements
28781         within more comment styles.
28782         Document usage.
28783         Report any file with an external copyright holder or parse failure.
28784
28785 2009-07-29  Jim Meyering  <meyering@redhat.com>
28786
28787         mktime: correct setting of REPLACE_MKTIME
28788         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28789
28790         update-copyright: new module
28791         * modules/update-copyright: New file.
28792         * build-aux/update-copyright: New file.
28793         * MODULES.html.sh (maint+release support): Add update-copyright.
28794
28795 2009-07-27  Bruno Haible  <bruno@clisp.org>
28796
28797         Fix compilation error when <ctime> is used and mktime is replaced.
28798         * lib/time.in.h (mktime): New declaration.
28799         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28800         REPLACE_MKTIME instead of defining mktime in config.h.
28801         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28802         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28803         Reported by Ross McFarland <rwmcfa1@neces.com>.
28804
28805 2009-07-27  Bruno Haible  <bruno@clisp.org>
28806
28807         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28808         Reported by Matt Kraai <mkraai@beckman.com>.
28809
28810 2009-07-25  Jim Meyering  <meyering@redhat.com>
28811
28812         maint.mk: avoid warnings about missing files
28813         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28814         diagnostic when .prev-version does not exist.
28815         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28816         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28817         nonexistent cfg.mk.
28818         Suggestions from Simon Josefsson.
28819
28820 2009-07-25  Bruno Haible  <bruno@clisp.org>
28821
28822         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28823         defined as macros. Needed on QNX 6.4.1.
28824         Reported by Matt Kraai <mkraai@beckman.com>.
28825
28826 2009-07-23  Jim Meyering  <meyering@redhat.com>
28827
28828         maint.mk: invoke "make dist" with a working value of XZ_OPT
28829         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28830
28831 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28832
28833         Make fseeko.c compile on QNX.
28834         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28835
28836 2009-07-22  Peter Simons  <simons@cryp.to>
28837
28838         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28839         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28840         * lib/md4.h: Likewise.
28841         * lib/md5.h: Likewise.
28842         * lib/sha1.h: Likewise.
28843         * lib/sha256.h: Likewise.
28844         * lib/sha512.h: Likewise.
28845
28846         tests-sha1: don't assign literal string to 'char *' variable
28847         * tests/test-sha1.c (main): Declare locals with "const" to match
28848         attributes of the right hand side.
28849
28850 2009-07-21  Eric Blake  <ebb9@byu.net>
28851
28852         dup2: fix more mingw problems
28853         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28854         fd to itself.
28855         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28856         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28857         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28858         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28859         care of mingw bugs.
28860
28861 2009-07-21  Jim Meyering  <meyering@redhat.com>
28862
28863         vc-list-files: avoid failure when /bin/sh is dash
28864         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28865         On some Debian based systems, /bin/sh is a symlink to dash, and running
28866         this command would omit the "/" following each 'tests' prefix:
28867           dash -x build-aux/vc-list-files -C . tests
28868         That is because bash and dash work differently:
28869           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28870           bash ok
28871           dash odd
28872
28873 2009-07-21  Eric Blake  <ebb9@byu.net>
28874
28875         dup2-tests: test previous patch
28876         * modules/dup2-tests: New file.
28877         * tests/test-dup2.c: Likewise.
28878         * tests/test-open.c (main): Avoid unspecified behavior.
28879         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28880         test.
28881
28882         dup2: work around mingw and cygwin 1.5 bug
28883         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28885         * modules/unistd (Makefile.am): Substitute it.
28886         * lib/unistd.in.h (dup2): Declare the replacement.
28887         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28888         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28889         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28890         * modules/execute (Depends-on): Add dup2.
28891         * modules/fseterr (Depends-on): Likewise.
28892         * modules/pipe (Depends-on): Likewise.
28893         * modules/posix_spawn-internal (Depends-on): Likewise.
28894
28895 2009-07-21  Bruno Haible  <bruno@clisp.org>
28896
28897         * modules/.gitattributes: New file.
28898
28899 2009-07-20  Bruno Haible  <bruno@clisp.org>
28900
28901         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28902         (main): Use it.
28903
28904 2009-07-20  Eric Blake  <ebb9@byu.net>
28905
28906         test-pipe: make a bit more robust.
28907         * tests/test-pipe.c (myerr): Allow error messages regardless of
28908         what we do to stderr.
28909         (test_pipe): Rearrange to avoid deadlock.
28910         (child_main): Try a larger read, to ensure we avoided deadlock.
28911         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28912         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28913         if misused.
28914
28915 2009-07-19  Jim Meyering  <meyering@redhat.com>
28916
28917         fts: avoid false-positive cycle-detection
28918         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28919         for each new command line argument.
28920
28921 2009-07-19  Bruno Haible  <bruno@clisp.org>
28922
28923         Fix build error on mingw with the modules sys_select and unistd.
28924         * modules/acl-tests (Depends-on): Add close.
28925         * modules/binary-io-tests (Depends-on): Likewise.
28926         * modules/closein-tests (Depends-on): Likewise.
28927         * modules/flock-tests (Depends-on): Likewise.
28928         * modules/fsync-tests (Depends-on): Likewise.
28929         * modules/lseek-tests (Depends-on): Likewise.
28930         * modules/pipe-tests (Depends-on): Likewise.
28931         * modules/posix_spawn-tests (Depends-on): Likewise.
28932         * modules/posix_spawnp-tests (Depends-on): Likewise.
28933         * modules/stat-time-tests (Depends-on): Likewise.
28934         * modules/yesno-tests (Depends-on): Likewise.
28935
28936 2009-07-19  Bruno Haible  <bruno@clisp.org>
28937
28938         Unify conditionals.
28939         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28940         macros, not at the compiler macros.
28941         * lib/pipe.c: Likewise.
28942         * lib/execute.c: Likewise.
28943         * lib/spawni.c: Likewise.
28944
28945 2009-07-19  Bruno Haible  <bruno@clisp.org>
28946
28947         Fix handling of closed stdin/stdout/stderr on mingw.
28948         * lib/w32spawn.h: Include unistd.h.
28949         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28950         file descriptor with O_NOINHERIT flag.
28951         (fd_safer_noinherit): New function, based on fd-safer.c.
28952         (dup_safer_noinherit): New function, based on dup-safer.c.
28953         (undup_safer_noinherit): New function.
28954         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28955         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28956         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28957         instead of fd_safer.
28958         * tests/test-pipe.c: Include <windows.h>.
28959         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28960         result.
28961
28962         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28963         from main.
28964         (test_pipe): Pass an extra argument for disambiguation.
28965         (main): Invoke parent_main or child_main.
28966
28967         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28968         consistently.
28969
28970 2009-07-18  Eric Blake  <ebb9@byu.net>
28971
28972         test-pipe: fix mingw build
28973         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28974
28975 2009-07-18  Bruno Haible  <bruno@clisp.org>
28976
28977         * modules/pipe-tests (Makefile.am): Fix typo.
28978
28979 2009-07-18  Eric Blake  <ebb9@byu.net>
28980
28981         error: fix mingw build
28982         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28983         Reported by Bruno Haible.
28984
28985         error: avoid undefined use of stdout
28986         * lib/error.c (error, error_at_line): Check that fd 1 is open
28987         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28988         is handling faults and the close_stdout module wants to report the
28989         detection of closed stdout as an error.
28990
28991 2009-07-17  Eric Blake  <ebb9@byu.net>
28992
28993         pipe: be robust in face of closed fds
28994         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28995         should cause child to misbehave.
28996         * modules/pipe-tests: New module.
28997         * tests/test-pipe.c: New file.
28998         * tests/test-pipe.sh: New file.
28999         Reported by Akim Demaille.
29000
29001 2009-07-14  Bruno Haible  <bruno@clisp.org>
29002
29003         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29004         Reported by anonymous kc.
29005
29006 2009-07-07  Jim Meyering  <meyering@redhat.com>
29007
29008         maint.mk: don't look for translatable strings in *.m4 or *.mk
29009         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29010         when searching for translatable strings.
29011
29012 2009-07-05  Jim Meyering  <meyering@redhat.com>
29013
29014         remove superfluous parentheses in STREQ definition
29015         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29016         * lib/getugroups.c (STREQ): Likewise.
29017         * lib/fnmatch.c (STREQ): Likewise.
29018         Spotted by Bruno Haible.
29019
29020 2009-07-04  Jim Meyering  <meyering@redhat.com>
29021
29022         argv-iter: new module
29023         * MODULES.html.sh: Add argv-iter.
29024         * lib/argv-iter.c, lib/argv-iter.h: New files.
29025         * modules/argv-iter: New file.
29026         * modules/argv-iter-tests: New file.
29027         * tests/test-argv-iter.c: Test it.
29028
29029 2009-07-04  Bruno Haible  <bruno@clisp.org>
29030
29031         Fix assertion.
29032         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29033         contains more exact copies of a given entry than file2, leave the extra
29034         copies unpaired rather than aborting.
29035         Reported by Eric Blake.
29036
29037 2009-07-02  Bruno Haible  <bruno@clisp.org>
29038
29039         Speedup git-merge-changelog for git cherry-pick.
29040         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29041         (entries_mapping_get): New function, extracted from compute_mapping.
29042         (entries_mapping_reverse_get): New function.
29043         (compute_mapping): Add a 'full' argument. Return the result in a
29044         'struct entries_mapping'.
29045         (main): Update. Access the mappings through entries_mapping_get.
29046         Reported by Eric Blake.
29047
29048 2009-07-02  Bruno Haible  <bruno@clisp.org>
29049
29050         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29051         best_i.
29052
29053 2009-07-02  Bruno Haible  <bruno@clisp.org>
29054
29055         Speed up approximate search for matching ChangeLog entries.
29056         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29057         argument. Call fstrcmp_bounded instead of fstrcmp.
29058         (compute_mapping, try_split_merged_entry, main): Update callers.
29059
29060 2009-07-02  Bruno Haible  <bruno@clisp.org>
29061
29062         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29063
29064 2009-06-30  Bruno Haible  <bruno@clisp.org>
29065
29066         Reduce the number of uc_is_cased calls.
29067         * lib/unicase.h (casing_suffix_context_t): Add
29068         'first_char_except_ignorable' field.
29069         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29070         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29071         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29072         Update initializer.
29073         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29074         case-ignorable characters.
29075         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29076         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29077         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29078         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29079         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29080
29081 2009-06-30  Bruno Haible  <bruno@clisp.org>
29082
29083         Tests for module 'unicase/ignorable'.
29084         * modules/unicase/ignorable-tests: New file.
29085         * tests/unicase/test-ignorable.c: New file, generated by
29086         gen-uni-tables.
29087
29088         Tests for module 'unicase/cased'.
29089         * modules/unicase/cased-tests: New file.
29090         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29091         * tests/unicase/test-predicate-part1.h: New file, derived from
29092         tests/unictype/test-predicate-part1.h.
29093         * tests/unicase/test-predicate-part2.h: New file, same as
29094         tests/unictype/test-predicate-part2.h.
29095
29096         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29097         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29098         (output_casing_properties): New function.
29099         (main): Call it.
29100         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29101         * lib/unicase/cased.c: Include unictype/bitmap.h.
29102         (uc_is_cased): Define through a bitmap lookup.
29103         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29104         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29105         (uc_is_case_ignorable): Define through a bitmap lookup.
29106         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29107         lib/unictype/bitmap.h.
29108         (Depends-on): Add inline. Clean up.
29109         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29110         lib/unictype/bitmap.h.
29111         (Depends-on): Add inline. Clean up.
29112         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29113         recognition.
29114         * tests/unicase/test-u16-tolower.c (main): Likewise.
29115         * tests/unicase/test-u32-tolower.c (main): Likewise.
29116
29117 2009-06-30  Bruno Haible  <bruno@clisp.org>
29118
29119         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29120         * lib/unicase/u16-casemap.c: Likewise.
29121         * lib/unicase/u32-casemap.c: Likewise.
29122
29123 2009-06-29  Bruno Haible  <bruno@clisp.org>
29124
29125         Define u32_casefold as a wrapper around u32_ct_casefold.
29126         * lib/unicase/u32-casefold.c: Update.
29127         * modules/unicase/u32-casefold (Depends-on): Add
29128         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29129         unicase/empty-suffix-context. Clean up.
29130
29131         Define u16_casefold as a wrapper around u16_ct_casefold.
29132         * lib/unicase/u16-casefold.c: Update.
29133         * modules/unicase/u16-casefold (Depends-on): Add
29134         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29135         unicase/empty-suffix-context. Clean up.
29136
29137         Define u8_casefold as a wrapper around u8_ct_casefold.
29138         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29139         * lib/unicase/u8-casefold.c: Update.
29140         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29141         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29142
29143         Define u32_totitle as a wrapper around u32_ct_totitle.
29144         * lib/unicase/u32-totitle.c: Update.
29145         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29146         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29147
29148         Define u16_totitle as a wrapper around u16_ct_totitle.
29149         * lib/unicase/u16-totitle.c: Update.
29150         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29151         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29152
29153         Define u8_totitle as a wrapper around u8_ct_totitle.
29154         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29155         functions.
29156         (FUNC): Delegate to U_CT_TOTITLE.
29157         * lib/unicase/u8-totitle.c: Update.
29158         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29159         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29160
29161         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29162         invocation.
29163         * modules/unicase/u32-tolower (Depends-on): Add
29164         unicase/empty-prefix-context, unicase/empty-suffix-context.
29165
29166         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29167         invocation.
29168         * modules/unicase/u16-tolower (Depends-on): Add
29169         unicase/empty-prefix-context, unicase/empty-suffix-context.
29170
29171         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29172         * modules/unicase/u8-tolower (Depends-on): Add
29173         unicase/empty-prefix-context, unicase/empty-suffix-context.
29174
29175         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29176         invocation.
29177         * modules/unicase/u32-toupper (Depends-on): Add
29178         unicase/empty-prefix-context, unicase/empty-suffix-context.
29179
29180         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29181         invocation.
29182         * modules/unicase/u16-toupper (Depends-on): Add
29183         unicase/empty-prefix-context, unicase/empty-suffix-context.
29184
29185         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29186         * modules/unicase/u8-toupper (Depends-on): Add
29187         unicase/empty-prefix-context, unicase/empty-suffix-context.
29188
29189         New module 'unicase/u32-ct-casefold'.
29190         * lib/unicase/u32-ct-casefold.c: New file.
29191         * modules/unicase/u32-ct-casefold: New file.
29192
29193         New module 'unicase/u16-ct-casefold'.
29194         * lib/unicase/u16-ct-casefold.c: New file.
29195         * modules/unicase/u16-ct-casefold: New file.
29196
29197         New module 'unicase/u8-ct-casefold'.
29198         * lib/unicase/u8-ct-casefold.c: New file.
29199         * lib/unicase/u-ct-casefold.h: New file, derived from
29200         lib/unicase/u-casefold.h.
29201         * modules/unicase/u8-ct-casefold: New file.
29202
29203         New module 'unicase/u32-ct-totitle'.
29204         * lib/unicase/u32-ct-totitle.c: New file.
29205         * modules/unicase/u32-ct-totitle: New file.
29206
29207         New module 'unicase/u16-ct-totitle'.
29208         * lib/unicase/u16-ct-totitle.c: New file.
29209         * modules/unicase/u16-ct-totitle: New file.
29210
29211         New module 'unicase/u8-ct-totitle'.
29212         * lib/unicase/u8-ct-totitle.c: New file.
29213         * lib/unicase/u-ct-totitle.h: New file, derived from
29214         lib/unicase/u-totitle.h.
29215         * modules/unicase/u8-ct-totitle: New file.
29216
29217         New module 'unicase/u32-ct-tolower'.
29218         * lib/unicase/u32-ct-tolower.c: New file.
29219         * modules/unicase/u32-ct-tolower: New file.
29220
29221         New module 'unicase/u16-ct-tolower'.
29222         * lib/unicase/u16-ct-tolower.c: New file.
29223         * modules/unicase/u16-ct-tolower: New file.
29224
29225         New module 'unicase/u8-ct-tolower'.
29226         * lib/unicase/u8-ct-tolower.c: New file.
29227         * modules/unicase/u8-ct-tolower: New file.
29228
29229         New module 'unicase/u32-ct-toupper'.
29230         * lib/unicase/u32-ct-toupper.c: New file.
29231         * modules/unicase/u32-ct-toupper: New file.
29232
29233         New module 'unicase/u16-ct-toupper'.
29234         * lib/unicase/u16-ct-toupper.c: New file.
29235         * modules/unicase/u16-ct-toupper: New file.
29236
29237         New module 'unicase/u8-ct-toupper'.
29238         * lib/unicase/u8-ct-toupper.c: New file.
29239         * modules/unicase/u8-ct-toupper: New file.
29240
29241         Add context arguments to u*_casemap functions.
29242         * lib/unicase/unicasemap.h: Include unicase.h.
29243         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
29244         suffix_context arguments.
29245         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
29246         functions.
29247         (FUNC): Add prefix_context and suffix_context arguments. Use
29248         uc_is_cased and uc_is_case_ignorable.
29249         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
29250         * lib/unicase/u16-casemap.c: Likewise.
29251         * lib/unicase/u32-casemap.c: Likewise.
29252         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
29253         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29254         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
29255         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29256         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
29257         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29258
29259         New module 'unicase/u32-suffix-context'.
29260         * lib/unicase/u32-suffix-context.c: New file.
29261         * modules/unicase/u32-suffix-context: New file.
29262
29263         New module 'unicase/u16-suffix-context'.
29264         * lib/unicase/u16-suffix-context.c: New file.
29265         * modules/unicase/u16-suffix-context: New file.
29266
29267         New module 'unicase/u8-suffix-context'.
29268         * lib/unicase/u8-suffix-context.c: New file.
29269         * lib/unicase/u-suffix-context.h: New file.
29270         * modules/unicase/u8-suffix-context: New file.
29271
29272         New module 'unicase/empty-suffix-context'.
29273         * lib/unicase/empty-suffix-context.c: New file.
29274         * modules/unicase/empty-suffix-context: New file.
29275
29276         New module 'unicase/u32-prefix-context'.
29277         * lib/unicase/u32-prefix-context.c: New file.
29278         * modules/unicase/u32-prefix-context: New file.
29279
29280         New module 'unicase/u16-prefix-context'.
29281         * lib/unicase/u16-prefix-context.c: New file.
29282         * modules/unicase/u16-prefix-context: New file.
29283
29284         New module 'unicase/u8-prefix-context'.
29285         * lib/unicase/u8-prefix-context.c: New file.
29286         * lib/unicase/u-prefix-context.h: New file.
29287         * lib/unicase/context.h: New file.
29288         * modules/unicase/u8-prefix-context: New file.
29289
29290         New module 'unicase/empty-prefix-context'.
29291         * lib/unicase/empty-prefix-context.c: New file.
29292         * modules/unicase/empty-prefix-context: New file.
29293
29294         New module 'unicase/ignorable'.
29295         * lib/unicase/ignorable.c: New file.
29296         * modules/unicase/ignorable: New file.
29297
29298         New module 'unicase/cased'.
29299         * lib/unicase/caseprop.h: New file.
29300         * lib/unicase/cased.c: New file.
29301         * modules/unicase/cased: New file.
29302
29303         New functions for case mapping of substrings.
29304         * lib/unicase.h (casing_prefix_context_t): New type.
29305         (unicase_empty_prefix_context): New variable.
29306         (u8_casing_prefix_context, u16_casing_prefix_context,
29307         u32_casing_prefix_context, u8_casing_prefixes_context,
29308         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29309         declarations.
29310         (casing_suffix_context_t): New type.
29311         (unicase_empty_suffix_context): New variable.
29312         (u8_casing_suffix_context, u16_casing_suffix_context,
29313         u32_casing_suffix_context, u8_casing_suffixes_context,
29314         u16_casing_suffixes_context, u32_casing_suffixes_context,
29315         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29316         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29317         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
29318         declarations.
29319
29320 2009-06-28  Jim Meyering  <meyering@redhat.com>
29321
29322         boostrap: indent only with spaces
29323         * build-aux/bootstrap: Indent only with spaces, never TABs.
29324
29325         bootstrap: split long lines
29326         * build-aux/bootstrap: Keep line length < 80.
29327
29328         bootstrap: sync from coreutils
29329         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
29330         just as autoreconf does.  Verify a list of prerequisite
29331         package-name,version-number pairs if defined in bootstrap.conf.
29332         Refer to README-prereq, if prerequisites are not satisfied.
29333
29334 2009-06-27  Eric Blake  <ebb9@byu.net>
29335
29336         tests: add test for bogus NULL definition
29337         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
29338         * tests/test-stdlib.c: Likewise.
29339         * tests/test-string.c: Likewise.
29340         * tests/test-locale.c: Likewise.
29341         * tests/test-unistd.c: Likewise.
29342         * modules/stdio-tests (Depends-on): Add verify.
29343         * modules/stdlib-tests (Depends-on): Likewise.
29344         * modules/string-tests (Depends-on): Likewise.
29345         * modules/locale-tests (Depends-on): Likewise.
29346         * modules/unistd-tests (Depends-on): Likewise.
29347
29348 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
29349
29350         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
29351         self-explaining comment.
29352         * m4/selinux-selinux-h: Update serial.
29353         (gl_LIBSELINUX): New macro, adding a warning for missing development
29354         packages to code extracted from...
29355         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
29356         Add warning for missing development packages here, too.
29357
29358 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
29359
29360         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
29361
29362 2009-06-25  Eric Blake  <ebb9@byu.net>
29363
29364         version-etc: fix regression
29365         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
29366         gcc.
29367         (version_etc): Use it, to catch bugs with trailing NULL.
29368         * lib/version-etc.c (version_etc_arn): Delete unused argument.
29369         (version_etc_va): Fix logic bug.
29370         * modules/version-etc-tests: Add test.
29371         * tests/test-version-etc.c: New file.
29372         * tests/test-version-etc.sh: Likewise.
29373
29374 2009-06-25  Sam Steingold  <sds@gnu.org>
29375
29376         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29377         mbtowc declaration.
29378
29379 2009-06-25  Eric Blake  <ebb9@byu.net>
29380
29381         fpurge: migrate into <stdio.h>
29382         * lib/fpurge.h: Delete...
29383         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29384         * lib/fpurge.c (fpurge): Change declaring header.
29385         * modules/fpurge (Files): Drop deleted file.
29386         (Depends-on): Add stdio.
29387         (configure.ac): Set witness.
29388         * modules/stdio (Makefile.am): Support fpurge macros.
29389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29390         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29391         * lib/fflush.c: Update client.
29392         * tests/test-fpurge.c: Likewise.
29393         * NEWS: Mention the change.
29394
29395 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29396
29397         * lib/argp-version-etc.c (program_authors): Add const
29398         qualifier.
29399         * lib/version-etc.c: Fix typos in the comments.
29400         * modules/argp-version-etc: Depends on version-etc.
29401
29402 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29403
29404         argp-version-etc: new module.
29405
29406         * lib/argp-version-etc.c: New file.
29407         * lib/argp-version-etc.h: New file.
29408         * modules/argp-version-etc: New file.
29409         * modules/argp-version-etc-tests: New file.
29410         * tests/test-argp-version-etc.c: New test.
29411         * tests/test-argp-version-etc-1.sh: New test.
29412
29413 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29414
29415         Provide additional interfaces and documentation for version-etc
29416         module.
29417
29418         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29419         interfaces.
29420         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29421         prototypes.
29422
29423 2009-06-24  Bruno Haible  <bruno@clisp.org>
29424
29425         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29426         HAVE_LIB${NAME} macro.
29427         Reported by Sam Steingold <sds@gnu.org>.
29428
29429 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29430
29431         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29432         needed.
29433
29434 2009-06-21  Bruno Haible  <bruno@clisp.org>
29435
29436         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29437         work.
29438         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29439         together with LIB${NAME}, LTLIB${NAME}.
29440         Reported by Sam Steingold <sds@gnu.org>.
29441
29442 2009-06-20  Jim Meyering  <meyering@redhat.com>
29443
29444         tests: make sc_require_test_exit_idiom more generic
29445         * top/maint.mk (Exit_witness_file): New overridable variable.
29446         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29447         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29448
29449 2009-06-19  Jim Meyering  <meyering@redhat.com>
29450
29451         hash: reverse order of src/dst parameters in an internal interface
29452         * lib/hash.c (transfer_entries): Reverse order of parameters to
29453         put DST before SRC.  Adjust callers.
29454
29455         tests: test-hash: avoid wholesale duplication
29456         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29457         Instead, use a loop and add a single conditional.
29458
29459         tests: test-hash: allow seed selection via a command line argument
29460         * tests/test-hash.c (get_seed): New function.
29461         (main): Use it.
29462
29463 2009-06-19  Eric Blake  <ebb9@byu.net>
29464
29465         hash: avoid memory leak on allocation failure
29466         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29467         failure.  Factor repeated algorithm...
29468         (transfer_entries): ...into new helper routine.
29469         (hash_delete): React to hash_rehash return value.
29470
29471         hash: reduce memory pressure in hash_rehash no-op case
29472         * lib/hash.c (next_prime): Avoid overflow.
29473         (hash_initialize): Factor bucket size computation...
29474         (compute_bucket_size): ...into new helper function.
29475         (hash_rehash): Use new function and open coding to reduce memory
29476         pressure, and avoid a memory leak in USE_OBSTACK code.
29477         Reported by Jim Meyering.
29478
29479 2009-06-18  Eric Blake  <ebb9@byu.net>
29480
29481         hash: make rotation more obvious
29482         * modules/hash (Depends-on): Add bitrotate and stdint.
29483         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29484         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29485         (SIZE_MAX): Rely on headers for definition.
29486         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29487         (raw_hasher): Use rotr_sz.
29488         Suggested by Jim Meyering.
29489
29490         hash: fix memory leak in last patch
29491         * lib/hash.c (hash_rehash): Avoid memory leak.
29492
29493         hash: avoid no-op rehashing
29494         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29495
29496         hash: provide default callback functions
29497         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29498         (hash_initialize): Use them as defaults.
29499         * tests/test-hash.c (main): Test this.
29500
29501         hash: minor optimization
29502         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29503         when possible.
29504         (hash_initialize): Document this promise.
29505         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29506         * tests/test-hash.c (hash_compare_strings): Test this.
29507
29508 2009-06-18  Bruno Haible  <bruno@clisp.org>
29509
29510         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29511         going to be replaced anyway.
29512
29513 2009-06-18  Bruno Haible  <bruno@clisp.org>
29514
29515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29516         in one place.
29517         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29518         be replaced anyway.
29519
29520 2009-06-18  Eric Blake  <ebb9@byu.net>
29521
29522         hash: check for resize before insertion
29523         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29524         threshold before insertion, so that a pathological hash_rehash
29525         that fills every bucket can still trigger another rehash.
29526
29527 2009-06-18  Jim Meyering  <meyering@redhat.com>
29528
29529         hash-tests: add a loop around the small tests
29530         * tests/test-hash.c (main): Repeat small tests with selected
29531         small initial table sizes.
29532
29533 2009-06-17  Eric Blake  <ebb9@byu.net>
29534
29535         hash: minor cleanups
29536         * lib/hash.h (hash_entry): Make opaque, by moving...
29537         * lib/hash.c (hash_entry): ...here.
29538         (hash_insert): Clarify restrictions on what can be inserted.
29539         (hash_get_next): Clarify when it is safe to remove an element
29540         during traversal.
29541         (check_tuning): Skip verification when tuning is known safe.
29542         (hash_initialize): Clarify restrictions on tuning.
29543
29544 2009-06-17  Jim Meyering  <jim@meyering.net>
29545         and Eric Blake  <ebb9@byu.net>
29546
29547         hash-tests: new module
29548         * modules/hash-tests: New file.
29549         * tests/test-hash.c: New file.
29550
29551 2009-06-17  Eric Blake  <ebb9@byu.net>
29552
29553         strstr-simple: document new module
29554         * MODULES.html.sh: Document new module.
29555
29556         strstr, strcasestr: replace on platforms with broken memchr
29557         * modules/strstr: Split into...
29558         * modules/strstr-simple: ...new module that does not care about
29559         performance, but does care about glibc bug.
29560         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29561         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29562         if platform memchr is broken, per Debian bug 521737.
29563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29564         memchr.
29565         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29566         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29567         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29568         * modules/mountlist (Depends-on): Add strstr-simple.
29569         * modules/gen-uni-tables (Depends-on): Likewise.
29570         * modules/argz (Depends-on): Add strstr.
29571
29572 2009-06-17  Bruno Haible  <bruno@clisp.org>
29573
29574         * modules/posix_spawn-internal (Depends-on): Add errno.
29575
29576 2009-06-17  Bruno Haible  <bruno@clisp.org>
29577
29578         Define missing ESTALE on Interix 3.5.
29579         * lib/errno.in.h (ESTALE): Assign a value if missing.
29580         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29581         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29582         missing.
29583         * doc/posix-headers/errno.texi: Mention the Interix bug.
29584         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29585
29586 2009-06-15  Eric Blake  <ebb9@byu.net>
29587
29588         memchr, memchr2: add valgrind exception
29589         * lib/memchr.valgrind: New file.
29590         * lib/memchr2.valgrind: New file.
29591         * modules/memchr (Files): Distribute valgrind file.
29592         * modules/memchr2 (Files): Likewise.
29593
29594         docs: memchr is no longer obsolete
29595         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29596         * lib/string.in.h (memchr): Simplify logic.
29597
29598 2009-06-14  Jim Meyering  <meyering@redhat.com>
29599
29600         link-follow: fix the "checking..." message to not mention trailing slash
29601         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29602         never considered trailing slashes.
29603
29604 2009-06-14  Bruno Haible  <bruno@clisp.org>
29605
29606         * m4/memchr.m4: Mention also the bug on IA-64.
29607         * doc/posix-functions/memchr.texi: Likewise.
29608
29609 2009-06-12  Eric Blake  <ebb9@byu.net>
29610
29611         memchr: detect broken x86_64 and alpha implementations
29612         * modules/memchr-tests (Depends-on): Move mmap detection...
29613         * modules/memchr (Depends-on): ...here.
29614         (configure.ac): Set indicator.
29615         * lib/string.in.h (memchr): Declare replacement.
29616         * modules/string (Makefile.am): Trigger replacement.
29617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29618         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29619         bugs.
29620         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29621         * modules/getpagesize (License): Relax license.
29622
29623 2009-06-11  Bruno Haible  <bruno@clisp.org>
29624
29625         * lib/idpriv.h: Add more references.
29626
29627 2009-06-08  Bruno Haible  <bruno@clisp.org>
29628
29629         Tests for module 'idpriv-droptemp'.
29630         * modules/idpriv-droptemp-tests: New file.
29631         * tests/test-idpriv-droptemp.sh: New file.
29632         * tests/test-idpriv-droptemp.su.sh: New file.
29633         * tests/test-idpriv-droptemp.c: New file.
29634
29635         New module 'idpriv-droptemp'.
29636         * lib/idpriv-droptemp.c: New file.
29637         * modules/idpriv-droptemp: New file.
29638
29639 2009-06-08  Bruno Haible  <bruno@clisp.org>
29640
29641         Tests for module 'idpriv-drop'.
29642         * modules/idpriv-drop-tests: New file.
29643         * tests/test-idpriv-drop.sh: New file.
29644         * tests/test-idpriv-drop.su.sh: New file.
29645         * tests/test-idpriv-drop.c: New file.
29646
29647         New module 'idpriv-drop'.
29648         * lib/idpriv.h: New file.
29649         * lib-idpriv-drop.c: New file.
29650         * m4/idpriv.m4: New file.
29651         * modules/idpriv-drop: New file.
29652
29653 2009-06-08  Bruno Haible  <bruno@clisp.org>
29654
29655         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29656         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29657         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29658         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29659         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29660         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29661         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29662
29663 2009-06-08  Eric Blake  <ebb9@byu.net>
29664
29665         test-strstr: use memory fence, when possible
29666         * tests/test-strstr.c (main): Use memory fence, in order to be
29667         more likely to trigger Debian bug 521737.
29668         * modules/strstr-tests (Files): Pull in additional files.
29669
29670         memchr: no longer obsolete, for wider field testing
29671         * modules/memchr (Status, Notice): Delete, this module is no
29672         longer obsolete.
29673         * modules/vasnprintf (Depends-on): Add memchr.
29674
29675 2009-06-07  Jim Meyering  <meyering@redhat.com>
29676
29677         hash: declare some functions with the warn_unused_result attribute
29678         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29679
29680 2009-06-07  Bruno Haible  <bruno@clisp.org>
29681
29682         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29683         Reported by Eric Blake.
29684
29685 2009-06-06  Eric Blake  <ebb9@byu.net>
29686
29687         test-alignof: fix typo with long double
29688         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29689         compiler error.
29690
29691 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29692
29693         Escape non-texinfo { and }s.
29694         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29695         markup error.
29696
29697 2009-06-04  Jim Meyering  <meyering@redhat.com>
29698
29699         gitlog-to-changelog: don't infloop on an empty commit log
29700         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29701         Reported by Boris Petersen <transacid@centerim.org>.
29702
29703 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29704
29705         version-etc: extend for packagers
29706         Add three new configure options, intended for packagers:
29707           --with-packager="packager name"
29708           --with-packager-version="packager-specific version"
29709           --with-packager-bug-reports="packager bug reporting"
29710         An example with coreutils:
29711           $ ./configure \
29712             --with-packager=Gentoo \
29713             --with-packager-bug-report=http://bugs.gentoo.org/ \
29714             --with-packager-version="patchset 1.6"
29715           $ ./src/ls --version | head -n2
29716           ls (GNU coreutils) 7.1-dirty
29717           Packaged by Gentoo (patchset 1.6)
29718         Note that the bug reporting info via --help doesn't show up because
29719         coreutils uses its own custom emit_bug_reporting_address() implementation
29720         in src/system.h.  If it didn't, it'd look like:
29721           $ ./src/ls --help | tail -n4
29722           Report bugs to <bug-coreutils@gnu.org>.
29723           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29724           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29725           General help using GNU software: <http://www.gnu.org/gethelp/>.
29726         * lib/version-etc.c: Print new information, if provided.
29727         * m4/version-etc.m4: New file.
29728         * modules/version-etc (Files): Add m4/version-etc.m4.
29729         (configure.ac): Add gl_VERSION_ETC.
29730
29731 2009-05-31  Bruno Haible  <bruno@clisp.org>
29732
29733         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29734         and 'int64_t'.
29735         * modules/alignof-tests (Dependencies): Add stdint.
29736         Reported by Eric Blake.
29737
29738 2009-05-31  Bruno Haible  <bruno@clisp.org>
29739
29740         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29741         restriction due to compiler bugs.
29742         Reported by Eric Blake.
29743
29744 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29745             Bruno Haible  <bruno@clisp.org>
29746
29747         Fix test-alignof failure.
29748         * lib/alignof.h (alignof_slot): New macro.
29749         (alignof_type): New macro, with the same semantics as the previous
29750         'alignof'.
29751         (alignof): Alias to alignof_slot.
29752         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29753         check that the results are usable as constant expressions.
29754
29755 2009-05-31  Bruno Haible  <bruno@clisp.org>
29756
29757         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29758         * tests/test-memchr.c (main): Check that memchr does not read past the
29759         first occurrence of the byte.
29760         * tests/test-strstr.c (main): Update comment.
29761         Suggested by Eric Blake.
29762
29763 2009-05-30  Bruno Haible  <bruno@clisp.org>
29764
29765         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29766         detail how to use dumpbin.
29767         Reported by David Byron <dbyron@dbyron.com>.
29768
29769 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29770
29771         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29772
29773 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29774
29775         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29776
29777 2009-05-28  Bruno Haible  <bruno@clisp.org>
29778
29779         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29780         build-aux/ files.
29781
29782 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29783
29784         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29785
29786 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29787
29788         * gnulib-tool (sed_transform_main_lib_file)
29789         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29790         regexps.
29791
29792 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29793
29794         * tests/test-strstr.c: Add another self-test.
29795         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29796         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29797
29798 2009-05-23  Bruno Haible  <bruno@clisp.org>
29799
29800         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29801         change.
29802
29803 2009-05-21  Bruno Haible  <bruno@clisp.org>
29804
29805         Simplify use of mode_t varargs.
29806         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29807         uses 'mode_t' or 'int'.
29808         * lib/openat.c (openat): Likewise.
29809         * lib/open-safer.c (open_safer): Likewise.
29810         * m4/mode_t.m4: New file.
29811         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29812         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29813         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29814         * modules/open (Files): Add m4/mode_t.m4.
29815         * modules/openat (Files): Likewise.
29816         * modules/fcntl-safer (Files): Likewise.
29817         Suggested by Eric Blake.
29818
29819 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29820
29821         * doc/glibc-functions/fallocate.texi: New file.
29822         * doc/gnulib.texi: Include it.
29823
29824 2009-05-21  Eric Blake  <ebb9@byu.net>
29825             Bruno Haible  <bruno@clisp.org>
29826
29827         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29828         invocations.
29829         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29830
29831 2009-05-21  Eric Blake  <ebb9@byu.net>
29832             Bruno Haible  <bruno@clisp.org>
29833
29834         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29835         include_next. Fix of 2008-11-20 commit.
29836         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29837         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29838         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29839         NEXT_MATH_H.
29840         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29841         instead of NEXT_MATH_H.
29842
29843 2009-05-21  Bruno Haible  <bruno@clisp.org>
29844
29845         Avoid redefinition warnings for SIZE_MAX.
29846         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29847         Reported by Simon Josefsson.
29848
29849 2009-05-21  Bruno Haible  <bruno@clisp.org>
29850
29851         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29852         AC_CACHE_VAL.
29853
29854 2009-05-20  Bruno Haible  <bruno@clisp.org>
29855
29856         Make zeroptr.h work on mingw.
29857         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29858         mprotect.
29859         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29860         * modules/memchr2-tests (configure.ac): Likewise.
29861         * modules/memcmp-tests (configure.ac): Likewise.
29862         * modules/memmem-tests (configure.ac): Likewise.
29863         * modules/memrchr-tests (configure.ac): Likewise.
29864         Reported by Simon Josefsson.
29865
29866 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29867
29868         * tests/test-glob.c: Include string.h for strcmp prototype.
29869
29870 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29871
29872         * modules/getdelim (Depends-on): Add explicit stdint, although it
29873         was implicitly already pulled in via realloc-posix.
29874         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29875
29876 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29877
29878         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29879         G. Christensen" <tgc@jupiterrise.com>.
29880         * m4/sys_socket_h.m4: Check for sa_family_t.
29881         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29882         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29883         * tests/test-sys_socket.c: Check that sa_family_t works.
29884
29885 2009-05-18  Eric Blake  <ebb9@byu.net>
29886
29887         maint.mk: allow gnulib_dir in VPATH build
29888         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29889
29890 2009-05-15  Jim Meyering  <meyering@redhat.com>
29891
29892         maint.mk: Give gnulib_dir a default definition.
29893         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29894         Thus, most packages no longer need to specify this variable in cfg.mk
29895
29896 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29897
29898         rename.m4: fix typos that would make non-mingw cross-configure fail
29899         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29900
29901 2009-05-13  Eric Blake  <ebb9@byu.net>
29902
29903         mmap-anon: avoid out-of-order autoconf expansion
29904         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29905         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29906         * modules/memchr-tests (Depends-on): Add extensions.
29907         * modules/memchr2-tests (Depends-on): Add extensions.
29908         * modules/memcmp-tests (Depends-on): Add extensions.
29909         * modules/memmem-tests (Depends-on): Add extensions.
29910         * modules/memrchr-tests (Depends-on): Add extensions.
29911
29912 2009-05-13  Bruno Haible  <bruno@clisp.org>
29913
29914         Make some tests ISO C 99 compliant.
29915         * tests/zerosize-ptr.h: New file.
29916         * tests/test-memchr.c: Include zerosize-ptr.h.
29917         (main): Use a zero-size object pointer instead of NULL.
29918         * tests/test-memchr2.c: Include zerosize-ptr.h.
29919         (main): Use a zero-size object pointer instead of NULL.
29920         * tests/test-memcmp.c: Include zerosize-ptr.h.
29921         (main): Use a zero-size object pointer instead of NULL.
29922         * tests/test-memmem.c: Include zerosize-ptr.h.
29923         (main): Use a zero-size object pointer instead of NULL.
29924         * tests/test-memrchr.c: Include zerosize-ptr.h.
29925         (main): Use a zero-size object pointer instead of NULL.
29926         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29927         m4/mmap-anon.m4.
29928         (Depends-on): Add getpagesize.
29929         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29930         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29931         m4/mmap-anon.m4.
29932         (Depends-on): Add getpagesize.
29933         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29934         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29935         m4/mmap-anon.m4.
29936         (Depends-on): Add getpagesize.
29937         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29938         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29939         m4/mmap-anon.m4.
29940         (Depends-on): Add getpagesize.
29941         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29942         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29943         m4/mmap-anon.m4.
29944         (Depends-on): Add getpagesize.
29945         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29946
29947 2009-05-12  Bruno Haible  <bruno@clisp.org>
29948
29949         Tests for module 'alignof'.
29950         * modules/alignof-tests: New file.
29951         * tests/test-alignof.c: New file.
29952
29953 2009-05-12  Bruno Haible  <bruno@clisp.org>
29954
29955         Fix alignof macro.
29956         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29957         vendor compilers that are always correct.
29958
29959 2009-05-12  Bruno Haible  <bruno@clisp.org>
29960
29961         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29962         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29963         not whether its fully works.
29964
29965 2009-05-12  Bruno Haible  <bruno@clisp.org>
29966
29967         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29968
29969 2009-05-12  Jim Meyering  <meyering@redhat.com>
29970
29971         * top/maint.mk: Adjust backslash alignment.
29972
29973 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29974
29975         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29976
29977 2009-05-11  Eric Blake  <ebb9@byu.net>
29978
29979         argp: avoid undefined behavior
29980         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29981         macros.
29982
29983 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29984
29985         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29986         user.name to prevent git commit from complaining.
29987
29988 2009-05-10  Bruno Haible  <bruno@clisp.org>
29989
29990         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29991         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29992         it rewrites every file name only once.
29993         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29994
29995 2009-05-08  Bruno Haible  <bruno@clisp.org>
29996
29997         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29998         instead of 'max'.
29999
30000 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30001
30002         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30003         sockaddr_storage test.
30004
30005 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30006
30007         * modules/sys_socket (Makefile.am): Substitute
30008         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30009         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30010         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30011         * tests/test-sys_socket.c: Check sockaddr_storage.
30012
30013 2009-05-08  Bruno Haible  <bruno@clisp.org>
30014
30015         New module 'alignof'.
30016         * lib/alignof.h: New file.
30017         * modules/alignof: New file.
30018
30019 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30020             Bruno Haible  <bruno@clisp.org>
30021
30022         Fix test-file-has-acl on FreeBSD.
30023         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30024         mask is implicitly added.
30025         * tests/test-file-has-acl.c: Include <signal.h>.
30026         (main): Terminate the test after 5 seconds.
30027         * modules/acl-tests (configure.ac): Check for alarm function.
30028
30029 2009-05-04  Bruno Haible  <bruno@clisp.org>
30030
30031         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30032         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30033         * modules/errno (configure.ac): Drop AC_REQUIRE.
30034         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30035         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30036
30037 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30038
30039         * modules/glob-tests: New module.
30040         * tests/test-glob.c: Add.
30041
30042 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30043
30044         * modules/fnmatch-tests: New module.
30045         * tests/test-fnmatch.c: Add.
30046
30047 2009-05-04  Eric Blake  <ebb9@byu.net>
30048
30049         maint: make the new no-submodule-changes rule VPATH-safe
30050         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30051
30052 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30053             Bruno Haible  <bruno@clisp.org>
30054
30055         acl: Fix infinite loop on FreeBSD.
30056         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30057         of return value from acl_get_entry.
30058         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30059         Likewise.
30060
30061 2009-05-03  Bruno Haible  <bruno@clisp.org>
30062
30063         * lib/acl-internal.h (acl_entries): Clarify return value.
30064         * lib/acl_entries.c (acl_entries): Likewise.
30065
30066 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30067
30068         Bug fix in acl module.
30069         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30070
30071 2009-05-03  Bruno Haible  <bruno@clisp.org>
30072
30073         Create gperf-generated file in the source dir, not in the build dir.
30074         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30075         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30076         * modules/unicase/locale-language (unicase/locale-languages.h):
30077         Likewise.
30078         * modules/unicase/special-casing (unicase/special-casing-table.h):
30079         Likewise.
30080         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30081         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30082         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30083         Reported by Ralf Wildenhues.
30084
30085 2009-05-03  Bruno Haible  <bruno@clisp.org>
30086
30087         * modules/fnmatch (Description, configure.ac): Taken from
30088         fnmatch-posix.
30089         * modules/fnmatch-posix: Turn into a symbolic reference to the
30090         'fnmatch' module, and deprecate.
30091         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30092
30093 2009-05-03  Bruno Haible  <bruno@clisp.org>
30094
30095         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30096         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30097         Reported by Ralf Wildenhues.
30098
30099 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30100
30101         * m4/fnmatch.m4: Fix fnmatch re-define.
30102
30103 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30104
30105         priv-set: new module and tests; adapt write-any-file
30106         * lib/priv-set.c: New file.
30107         * lib/priv-set.h: New file.
30108         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30109         * lib/write-any-file.c: Simplify by using priv-set module.
30110         * m4/priv-set.m4: New file.
30111         * modules/priv-set: New file.
30112         * modules/unlinkdir: Add dependency on priv-set module.
30113         * modules/write-any-file: Likewise.
30114
30115         Tests for module 'priv-set'.
30116         * modules/priv-set-tests: New file.
30117         * tests/test-priv-set.c: New file.
30118
30119 2009-05-03  Jim Meyering  <meyering@redhat.com>
30120             Bruno Haible  <bruno@clisp.org>
30121
30122         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30123         use the converted UTF-8 variant of the name instead.
30124
30125 2009-05-03  Jim Meyering  <meyering@redhat.com>
30126
30127         tests: tighten some getdate tests
30128         * tests/test-getdate.c (main): Tighten tests: require equality,
30129         not just greater than.  Set TZ envvar to UTC0.
30130
30131 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30132
30133         getdate: correctly interpret "next monday" when run on a Monday
30134         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30135         that e.g., "next tues" (when run on a tuesday) results in a date
30136         that is one week in the future, and not today's date.
30137         I.e., add a week when the wday is the same as the current one.
30138         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30139         and earlier by Martin Bernreuther and Jan Minář.
30140         * tests/test-getdate.c (main): Check that "next DAY" is always in
30141         the future and that "last DAY" is always in the past.
30142
30143 2009-05-02  Jim Meyering  <meyering@redhat.com>
30144
30145         build: ensure that a release build fails when a submodule is unclean
30146         * top/maint.mk (no-submodule-changes): New rule.
30147         (alpha beta major): Depend on it.
30148
30149 2009-05-02  Bruno Haible  <bruno@clisp.org>
30150
30151         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30152         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30153         shell variable gl_fnmatch_required to detect which variant is
30154         requested.
30155         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30156         gl_FUNC_FNMATCH_POSIX.
30157         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30158         exclude fnmatch-posix.
30159
30160 2009-05-02  Bruno Haible  <bruno@clisp.org>
30161
30162         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30163         * modules/mbsrtowcs (License): Change to LGPLv2+.
30164         * modules/strnlen1 (License): Likewise.
30165         Reported by Simon Josefsson.
30166
30167 2009-05-02  Bruno Haible  <bruno@clisp.org>
30168
30169         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30170         "cross".
30171         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30172         gnulib-tool was called with option --source-base=lib.
30173
30174 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30175
30176         Use automake *-local hooks without commands, for extensibility.
30177         * modules/localcharset (Makefile.am): Rename install-exec-local
30178         rule to install-exec-localcharset, and make it a prerequisite of
30179         install-exec-local.  Likewise, rename the uninstall-local rule to
30180         uninstall-localcharset, and make it a prerequisite of the former.
30181
30182 2009-05-01  Bruno Haible  <bruno@clisp.org>
30183
30184         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30185         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30186         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30187         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30188         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30189         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30190         m4/locale-zh.m4, m4/codeset.m4.
30191
30192         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30193         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30194         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30195         m4/locale-zh.m4.
30196
30197         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30198         REPLACE_WCRTOMB if mbstate_t must be replaced.
30199         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
30200         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
30201
30202 2009-05-01  Bruno Haible  <bruno@clisp.org>
30203
30204         Avoid compiler warnings when redefining macros defined by <libintl.h>.
30205         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
30206         dngettext, dcngettext, textdomain, bindtextdomain,
30207         bind_textdomain_codeset): Undefine before redefining.
30208
30209 2009-04-30  Bruno Haible  <bruno@clisp.org>
30210
30211         Fix bug introduced on 2009-04-25.
30212         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
30213         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
30214         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
30215         is defined.
30216         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
30217         is defined.
30218         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
30219         is defined.
30220         Reported by Elbert_Pol <elbert.pol@gmail.com>.
30221
30222 2009-04-28  Bruno Haible  <bruno@clisp.org>
30223
30224         Comment tweaks.
30225         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
30226         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
30227         * lib/unicase.h (u*_casexfrm): Likewise.
30228         Reported by Paolo Bonzini.
30229
30230 2009-04-28  Bruno Haible  <bruno@clisp.org>
30231
30232         Fix a compilation error.
30233         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
30234         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30235         Reported by Jim Meyering.
30236
30237 2009-04-27  Bruno Haible  <bruno@clisp.org>
30238
30239         New module 'libunistring'.
30240         * modules/libunistring: New file.
30241         * m4/libunistring.m4: New file.
30242         * MODULES.html.sh (Unicode string functions): Add it.
30243
30244 2009-04-27  Eric Blake  <ebb9@byu.net>
30245
30246         maint.mk: allow package-specific header to provide <config.h>
30247         * top/maint.mk (sc_require_config_h): New variable.
30248         (sc_require_config_h, sc_require_config_h_first): Use it.
30249
30250 2009-04-27  Simon Josefsson  <simon@josefsson.org>
30251
30252         * top/maint.mk (sc_avoid_if_before_free): Except
30253         useless-if-before-free script.
30254
30255 2009-04-27  Eric Blake  <ebb9@byu.net>
30256
30257         maintainer-makefile: depend on all required helper scripts
30258         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
30259         useless-if-before-free.
30260         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
30261         version, rather than assuming gnulib checkout is available.
30262         Reported by Simen Josefsson.
30263
30264 2009-04-26  Bruno Haible  <bruno@clisp.org>
30265
30266         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
30267         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
30268         "../" or "..".
30269
30270 2009-04-26  Bruno Haible  <bruno@clisp.org>
30271
30272         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30273         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30274         AC_LIB_HAVE_LINKFLAGS.
30275
30276 2009-04-26  Bruno Haible  <bruno@clisp.org>
30277
30278         Simplify calling convention of u*_conv_from_encoding.
30279         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30280         u32_conv_from_encoding): Expect a resultbuf argument and return the
30281         result directly as a pointer.
30282         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30283         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30284         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30285         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30286         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30287         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30288         Update.
30289         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30290         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30291         * lib/vasnprintf.c (VASNPRINTF): Update.
30292         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30293         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30294         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30295         * NEWS: Mention the change.
30296
30297 2009-04-26  Bruno Haible  <bruno@clisp.org>
30298
30299         Simplify calling convention of u*_conv_to_encoding.
30300         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30301         u32_conv_to_encoding): Expect a resultbuf argument and return the
30302         result directly as a pointer.
30303         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30304         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30305         freeing scaled_offsets if mem_iconveha failed.
30306         * lib/unicase/u-casexfrm.h (FUNC): Update.
30307         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30308         * lib/vasnprintf.c (VASNPRINTF): Update.
30309         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
30310         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
30311         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
30312         * NEWS: Mention the change.
30313
30314 2009-04-26  Bruno Haible  <bruno@clisp.org>
30315
30316         Avoid test failures on AIX and OSF/1.
30317         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
30318         malloc(0).
30319         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30320         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30321         Likewise.
30322         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
30323         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
30324         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
30325         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
30326         * doc/posix-functions/malloc.texi: Document the portability problem
30327         related to malloc(0).
30328
30329 2009-04-26  Bruno Haible  <bruno@clisp.org>
30330
30331         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
30332         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
30333         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
30334
30335 2009-04-25  Bruno Haible  <bruno@clisp.org>
30336
30337         Avoid link error when creating a namespace clean library.
30338         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
30339         as macro with arguments if already defined as an alias.
30340         * lib/signbitf.c (gl_signbitf): Don't undefine.
30341         * lib/signbitd.c (gl_signbitd): Don't undefine.
30342         * lib/signbitl.c (gl_signbitl): Don't undefine.
30343
30344 2009-04-25  Jim Meyering  <meyering@redhat.com>
30345
30346         vc-list-files: fix another quoting bug
30347         * build-aux/vc-list-files: Avoid sed backslash expansion
30348         of pathological directory names.
30349
30350 2009-04-25  Eric Blake  <ebb9@byu.net>
30351
30352         vc-list-files: fix shell quoting error
30353         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
30354         timestamp.
30355
30356 2009-04-25  Jim Meyering  <meyering@redhat.com>
30357
30358         vc-list-files: restore lost functionality with subdir argument
30359         * build-aux/vc-list-files: When given a non-"." sub-directory
30360         argument, substitute the $dir/ prefix back onto each resulting name.
30361         Otherwise, coreutils' root_tests check would fail.
30362
30363 2009-04-24  Eric Blake  <ebb9@byu.net>
30364
30365         vc-list-files: ignore git symlinks
30366         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
30367         than ls-files, to ignore git symlinks.
30368
30369         maint.mk: import improvements from m4
30370         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
30371         (move_if_change): Delete unused macro.
30372         (news-date-check, vc-diff-check): Support VPATH builds.
30373         (announcement): Likewise.  Split --bootstrap-tools list...
30374         (boostrap-tools): ...into separate list, which can be overridden
30375         in cfg.mk.
30376         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30377         requiring dependency on useless-if-before-free module.
30378         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30379         Support VPATH builds.
30380
30381 2009-04-24  Jim Meyering  <meyering@redhat.com>
30382
30383         maint.mk: remove coreutils-specific rules and variables
30384         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30385         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30386         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30387
30388         maint.mk: remove obsolete rule
30389         * top/maint.mk (rel-check): Remove rule.
30390         (WGET, WGETFLAGS): Remove now-unused variables.
30391
30392 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30393
30394         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30395         consistency.
30396
30397         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30398         '$(PATH_SEPARATOR)' instead of ':'.
30399
30400 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30401
30402         * lib/getopt1.c (main): Use 'const' for static array.
30403
30404 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30405
30406         * top/maint.mk: Sync with coreutils.
30407         * NEWS: Explain incompatibilities.
30408
30409 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30410             Bruno Haible  <bruno@clisp.org>
30411
30412         Fix cross-compilation results.
30413         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30414         statement, as third argument of AC_TRY_RUN.
30415         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30416         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30417         Likewise.
30418         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30419         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30420         Likewise.
30421         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30422         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30423         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30424
30425 2009-04-20  Bruno Haible  <bruno@clisp.org>
30426
30427         Avoid test failure on mingw.
30428         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30429
30430 2009-04-20  Bruno Haible  <bruno@clisp.org>
30431
30432         Avoid compilation error on mingw.
30433         * modules/localename-tests (Depends-on): Add locale.
30434
30435 2009-04-19  Bruno Haible  <bruno@clisp.org>
30436
30437         Support for building a shared library on Windows platforms.
30438         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30439         (main): Test the presence of UNINORM_NFC here.
30440         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30441         (main): Test the presence of UNINORM_NFD here.
30442         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30443         (main): Test the presence of UNINORM_NFKC here.
30444         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30445         (main): Test the presence of UNINORM_NFKD here.
30446
30447 2009-04-19  Bruno Haible  <bruno@clisp.org>
30448
30449         Avoid a compiler warning.
30450         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30451         Change type of variable 'sequence'.
30452
30453 2009-04-19  Bruno Haible  <bruno@clisp.org>
30454
30455         * modules/configmake (Makefile.am): When the contents of configmake.h
30456         does not change, arrange to preserve its modification time.
30457
30458 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30459
30460         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30461         gettext domain.
30462
30463 2009-04-16  Jim Meyering  <meyering@redhat.com>
30464
30465         useless-if-before-free: improve conversion code
30466         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30467         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30468
30469 2009-04-14  Bruno Haible  <bruno@clisp.org>
30470
30471         * modules/fcntl (Depends-on): Add extensions.
30472         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30473
30474 2009-04-12  Ben Pfaff  <blp@gnu.org>
30475
30476         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30477         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30478
30479 2009-03-20  Ben Pfaff  <blp@gnu.org>
30480
30481         Make rename replace existing destinations on Windows.
30482         * m4/rename.m4: Add test for Mingw.
30483         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30484         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30485         * doc/posix-functions/rename.texi: Document.
30486
30487 2009-04-10  Bruno Haible  <bruno@clisp.org>
30488
30489         New include file "iconveh.h".
30490         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30491         * lib/striconveh.h: Include it.
30492         (enum iconv_ilseq_handler): Remove definition.
30493         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30494         striconveh.h.
30495         * lib/striconveha.c: Include striconveh.h.
30496         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30497         * modules/striconveh (Files): Add lib/iconveh.h.
30498         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30499         lib/striconveh.h.
30500
30501 2009-04-10  Bruno Haible  <bruno@clisp.org>
30502
30503         * lib/uniconv.h: Update comment.
30504
30505 2009-04-10  Bruno Haible  <bruno@clisp.org>
30506
30507         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30508         always.
30509         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30510         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30511         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30512         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30513         "unistring-notinline.h", so that the function gets defined always.
30514         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30515         * lib/unistr/u8-uctomb.c: Likewise.
30516         * lib/unistr/u16-mbtouc.c: Likewise.
30517         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30518         * lib/unistr/u16-uctomb.c: Likewise.
30519         * lib/unistr/u32-mbtouc.c: Likewise.
30520         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30521         * lib/unistr/u32-uctomb.c: Likewise.
30522
30523 2009-04-10  Bruno Haible  <bruno@clisp.org>
30524
30525         Mark 'utime' obsolete.
30526         * modules/utime (Status, Notice): New sections.
30527         Suggested by Jim Meyering.
30528
30529         Fix cross-compile guess for utime test.
30530         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30531         autoconf.
30532         * doc/posix-functions/utime.texi: Give more precisions.
30533         Reported by Jan <ipif@ymail.com>.
30534
30535 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30536
30537         filevercmp: correct today's change
30538         * lib/filevercmp.c: Also handle coreutils' test inputs.
30539         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30540
30541         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30542         for reporting it.
30543         * lib/filevercmp.c: Special handle for "", "." and "..".
30544         * tests/test-filevercmp.c: Enlarge the set suite.
30545
30546 2009-04-07  Jim Meyering  <meyering@redhat.com>
30547
30548         useless-if-before-free: show how to remove braced useless free, too
30549         * build-aux/useless-if-before-free: still only in a comment, though.
30550
30551 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30552
30553         maint.mk: import changes to syntax-check macros from coreutils
30554         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30555         Use them in the relevant macros.
30556
30557 2009-04-06  Bruno Haible  <bruno@clisp.org>
30558
30559         Fix unportable use of bit-fields.
30560         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30561         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30562         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30563
30564 2009-04-06  Bruno Haible  <bruno@clisp.org>
30565
30566         Avoid test failures on AIX and OSF/1.
30567         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30568         that malloc(0) = NULL.
30569         * tests/unicase/test-u8-tolower.c (check): Likewise.
30570         * tests/unicase/test-u8-totitle.c (check): Likewise.
30571         * tests/unicase/test-u8-toupper.c (check): Likewise.
30572         * tests/unicase/test-u16-casefold.c (check): Likewise.
30573         * tests/unicase/test-u16-tolower.c (check): Likewise.
30574         * tests/unicase/test-u16-totitle.c (check): Likewise.
30575         * tests/unicase/test-u16-toupper.c (check): Likewise.
30576         * tests/unicase/test-u32-casefold.c (check): Likewise.
30577         * tests/unicase/test-u32-tolower.c (check): Likewise.
30578         * tests/unicase/test-u32-totitle.c (check): Likewise.
30579         * tests/unicase/test-u32-toupper.c (check): Likewise.
30580         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30581         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30582         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30583         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30584         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30585         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30586         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30587         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30588         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30589         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30590         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30591         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30592
30593 2009-04-05  Bruno Haible  <bruno@clisp.org>
30594
30595         Work around an autoconf limitation.
30596         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30597         comment line if it would be longer than 3 KB.
30598
30599 2009-04-05  Bruno Haible  <bruno@clisp.org>
30600
30601         Avoid test failure with libiconv-1.13.
30602         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30603         of the expected test results.
30604
30605 2009-04-05  Bruno Haible  <bruno@clisp.org>
30606
30607         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30608         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30609         that it should be installed.
30610
30611 2009-04-05  Bruno Haible  <bruno@clisp.org>
30612
30613         * gnulib-tool: New option --copy-file.
30614         (func_usage): Document it.
30615         (func_dest_tmpfilename): Moved out of func_import.
30616         (func_add_file, func_update_file): New functions, extracted from
30617         func_import.
30618         (func_import): Update.
30619
30620 2009-04-05  Karl Berry  <karl@gnu.org>
30621
30622         * README: prominently mention gnulib-tool.
30623         Rearrange sections so getting the code is near the top.
30624
30625 2009-04-05  Bruno Haible  <bruno@clisp.org>
30626
30627         * lib/unicase.h: Mention u*_cmp2.
30628         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30629         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30630         * lib/unicase/ulc-casecmp.c: Likewise.
30631         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30632         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30633         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30634         unistr/u8-cmp.
30635         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30636         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30637         unistr/u16-cmp.
30638         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30639         unistr/u32-cmp.
30640
30641         * lib/uninorm.h: Mention u*_cmp2.
30642         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30643         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30644         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30645         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30646         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30647         unistr/u8-cmp.
30648         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30649         unistr/u16-cmp.
30650         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30651         unistr/u32-cmp.
30652
30653         New module 'unistr/u32-cmp2'.
30654         * lib/unistr/u32-cmp2.c: New file.
30655         * modules/unistr/u32-cmp2: New file.
30656
30657         New module 'unistr/u16-cmp2'.
30658         * lib/unistr/u16-cmp2.c: New file.
30659         * modules/unistr/u16-cmp2: New file.
30660
30661         New module 'unistr/u8-cmp2'.
30662         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30663         * lib/unistr/u8-cmp2.c: New file.
30664         * lib/unistr/u-cmp2.h: New file.
30665         * modules/unistr/u8-cmp2: New file.
30666
30667 2009-04-05  Bruno Haible  <bruno@clisp.org>
30668
30669         * lib/unictype.h (uc_property_is_valid): New macro.
30670         * tests/unictype/test-pr_byname.c (main): Use it.
30671
30672         * lib/unistr.h: Doc fixes.
30673         * lib/uniconv.h: Doc fixes.
30674         * lib/unictype.h: Doc fixes.
30675
30676 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30677
30678         Port coreutils 7.2 to Solaris 8.
30679
30680         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30681         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30682         for Solaris 8.  This is a bit of a hack, as it means it's the
30683         caller's responsibility to add -lnsl if needed, but most likely it
30684         won't be needed since only getaddrinfo uses this and getaddrinfo
30685         isn't needed on Solaris 8.
30686
30687         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30688         problem to Solaris 8 encountered with coreutils 7.2, which
30689         resulted in a message "fnmatch.c:292: warning: passing argument 4
30690         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30691         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30692
30693 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30694
30695         * m4/ld-version-script.m4: Add FIXME comment.
30696
30697 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30698
30699         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30700         SOVERSION variable.
30701
30702 2009-04-02  Bruno Haible  <bruno@clisp.org>
30703
30704         * Makefile (info, html, dvi, pdf): Combine the rules.
30705         Suggested by Jim Meyering.
30706
30707 2009-04-01  Bruno Haible  <bruno@clisp.org>
30708
30709         * Makefile (info, html, dvi, pdf): New targets.
30710         Reported by Reuben Thomas <rrt@sc3d.org>.
30711
30712 2009-04-01  Bruno Haible  <bruno@clisp.org>
30713
30714         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30715         can be put into PATH.
30716         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30717
30718 2009-04-01  Bruno Haible  <bruno@clisp.org>
30719
30720         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30721
30722 2009-04-01  Bruno Haible  <bruno@clisp.org>
30723
30724         Rename module 'visibility'.
30725         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30726         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30727         * doc/gnulib.texi: Update.
30728         * MODULES.html.sh (Misc): Update.
30729         * NEWS: Mention the change.
30730
30731 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30732
30733         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30734         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30735         Eric Blake <ebb9@byu.net> for review.
30736         * MODULES.html.sh: Add lib-msvc-compat.
30737         * doc/gnulib.texi: Link to new section.
30738         * m4/ld-output-def.m4: New file.
30739         * doc/ld-output-def.texi: New file.
30740
30741 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30742
30743         Rename ld-version-script to lib-symbol-versions.  Suggested by
30744         Bruno Haible <bruno@clisp.org>.
30745         * modules/ld-version-script: Renamed to lib-symbol-versions.
30746         * doc/ld-version-script.texi: Fix module name.
30747         * MODULES.html.sh: Add lib-symbol-versions.
30748
30749 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30750
30751         * modules/u64-tests: New file.
30752         * tests/test-u64.c: New file.
30753
30754 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30755
30756         * MODULES.html.sh: Mention u64.
30757         * modules/u64: New module.
30758         * modules/crypto/sha512: Depend on u64 module instead of providing
30759         u64.h.
30760
30761 2009-03-27  Eric Blake  <ebb9@byu.net>
30762
30763         test-strerror: make debugging EAI_SYSTEM easier
30764         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30765         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30766         failure was EAI_SYSTEM.
30767
30768 2009-03-25  Bruno Haible  <bruno@clisp.org>
30769
30770         Fix a problem with --enable-relocatable on Solaris 7.
30771         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30772         since 2008-02-24.
30773
30774 2009-03-25  Eric Blake  <ebb9@byu.net>
30775
30776         test-sockets: avoid gcc warning
30777         * tests/test-sockets.c (main): Silence compiler warning.
30778
30779 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30780
30781         New modules nproc, pthread, contributed by Glen Lenker.
30782
30783         * MODULES.html.sh: Add pthread, nproc.
30784         * lib/nproc.c: New file.
30785         * lib/nproc.h: New file.
30786         * lib/pthread.in.h: New file.
30787         * m4/pthread.m4: New file.
30788         * modules/nproc: New file.
30789         * modules/pthread: New file.
30790
30791 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30792
30793         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30794         New variable.
30795
30796 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30797
30798         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30799         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30800         * tests/test-filevercmp.c: Add tests for backup suffixes.
30801
30802 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30803
30804         * modules/stdlib (Depends-on): Add stdint, needed when defining
30805         struct random_data on, for example, HP-UX 10.20.  Reported by
30806         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30807
30808 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30809
30810         * lib/readline.c (readline): Call fflush on stdout after printing
30811         prompt.
30812
30813 2009-03-20  Bruno Haible  <bruno@clisp.org>
30814
30815         Remove dependency from 'close' module to -lws2_32 on native Windows.
30816         * lib/close-hook.h: New file.
30817         * lib/close-hook.c: New file.
30818         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30819         w32sock.h.
30820         (_gl_close_fd_maybe_socket): Remove function.
30821         (rpl_close): Invoke execute_all_close_hooks instead of
30822         _gl_close_fd_maybe_socket.
30823         * lib/sockets.c: Include close-hook.h, w32sock.h.
30824         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30825         (close_sockets_hook): New variable.
30826         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30827         (gl_sockets_cleanup): Unregister it.
30828         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30829         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30830         * modules/close-hook: New file.
30831         * modules/close (Files): Remove lib/w32sock.h.
30832         (Depends-on): Add close-hook.
30833         (Link): Remove section.
30834         * modules/sockets (Files): Add lib/w32sock.h.
30835         (Depends-on): Add close-hook.
30836         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30837         invocation.
30838         * NEWS: Mention that LIB_CLOSE is gone.
30839
30840 2009-03-23  Eric Blake  <ebb9@byu.net>
30841
30842         signal-tests: test previous patch
30843         * tests/test-signal.c: New file.
30844         * modules/signal-tests: Likewise.
30845
30846         signal.h: always support 'volatile sig_atomic_t'
30847         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30848         (gl_SIGNAL_H_DEFAULTS): Add a default.
30849         * modules/signal (Makefile.am): Substitute if needed.
30850         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30851         users can blindly add volatile.
30852         * doc/posix-headers/signal.texi (signal.h): Document it.
30853         Reported by Matthew Woehlke.
30854
30855 2009-03-23  Jim Meyering  <meyering@redhat.com>
30856
30857         pathmax: PATH_MAX: use pathconf only when available
30858         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30859         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30860         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30861         This avoids a link failure in a PSP cross-compilation environment
30862         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30863
30864         * lib/vasnprintf.c (divide): Fix typo in comment.
30865
30866 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30867
30868         * gnulib-tool (func_filter_filelist): Fix comment.
30869
30870 2009-03-20  Bruno Haible  <bruno@clisp.org>
30871
30872         Make sockets.h self-contained.
30873         * lib/sockets.c: Include sockets.h first.
30874         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30875
30876 2009-03-19  Eric Blake  <ebb9@byu.net>
30877
30878         doc: mention more functions added in cygwin 1.7.0
30879         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30880         addition.
30881         * doc/posix-functions/log2f.texi: Likewise.
30882
30883 2009-03-19  Jim Meyering  <meyering@redhat.com>
30884
30885         fsusage: avoid syntax error due to statement-before-declaration
30886         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30887         after all declarations.  Reported by Matthew Woehlke in
30888         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30889
30890 2009-03-18  Eric Blake  <ebb9@byu.net>
30891
30892         build-aux/compile: sync from automake
30893         * build-aux/compile: New file, from automake.
30894         * config/srclist.txt: Mention build-aux/compile.
30895
30896 2009-03-17  Bruno Haible  <bruno@clisp.org>
30897
30898         * lib/git-merge-changelog.c: Fix typo in comment.
30899         Reported by Reuben Thomas <rrt@sc3d.org>.
30900
30901 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30902
30903         * m4/regex.m4: update and improve help for
30904         --without-included-regex.
30905
30906 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30907
30908         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30909         failure on missing include files.
30910
30911 2009-03-17  Eric Blake  <ebb9@byu.net>
30912
30913         doc: mention more functions added in cygwin 1.7.0
30914         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30915         addition.
30916         * doc/posix-functions/fwscanf.texi: Likewise.
30917         * doc/posix-functions/swprintf.texi: Likewise.
30918         * doc/posix-functions/swscanf.texi: Likewise.
30919         * doc/posix-functions/vfwprintf.texi: Likewise.
30920         * doc/posix-functions/vfwscanf.texi: Likewise.
30921         * doc/posix-functions/vswprintf.texi: Likewise.
30922         * doc/posix-functions/vswscanf.texi: Likewise.
30923         * doc/posix-functions/vwprintf.texi: Likewise.
30924         * doc/posix-functions/vwscanf.texi: Likewise.
30925         * doc/posix-functions/wcscasecmp.texi: Likewise.
30926         * doc/posix-functions/wcsdup.texi: Likewise.
30927         * doc/posix-functions/wcsftime.texi: Likewise.
30928         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30929         * doc/posix-functions/wprintf.texi: Likewise.
30930         * doc/posix-functions/wscanf.texi: Likewise.
30931         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30932
30933 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30934
30935         maint.mk: really add $(AM_MAKEFLAGS)
30936         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30937         was inadvertently omitted in the last commit.
30938         Spotted by Bruno Haible.
30939
30940         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30941         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30942         $(AM_MAKEFLAGS)' rather than plain `make'.
30943
30944         gnulib-tool: execute $MAKE not make
30945         * gnulib-tool: Default $MAKE to 'make'.
30946         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30947         than make.  Initialize $MAKE in the do-autobuild script.
30948
30949         gnulib-tool: use $MAKE not make in generated files
30950         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30951         make, in generated files.  Initialize $MAKE in the do-autobuild
30952         script.
30953
30954         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30955
30956         GNUmakefile: disable parallelism only for multiple, recursive targets
30957         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30958         additions in the Makefile.
30959         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30960         by Automake.
30961         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30962         are listed on the command line and at least one of them is
30963         listed in $(ALL_RECURSIVE_TARGETS).
30964
30965 2009-03-14  Bruno Haible  <bruno@clisp.org>
30966
30967         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30968         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30969         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30970         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30971         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30972         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30973         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30974         unistr/u8-uctomb.
30975         * modules/unistr/u8-strchr (Depends-on): Likewise.
30976         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30977         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30978         unistr/u16-uctomb.
30979         * modules/unistr/u16-strchr (Depends-on): Likewise.
30980         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30981
30982 2009-03-12  Bruno Haible  <bruno@clisp.org>
30983
30984         Work around select() bug on Interix 3.5.
30985         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30986         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30987         * m4/select.m4: New file.
30988         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30989         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30990         * modules/select (Files): Add m4/select.m4.
30991         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30992         * modules/nanosleep (Depends-on): Add select.
30993         * modules/poll (Depends-on): Likewise.
30994         * doc/posix-functions/select.texi: Mention the Interix bug.
30995         Reported by Markus Duft <mduft@gentoo.org>.
30996
30997         * lib/select.c: Renamed from lib/winsock-select.c.
30998         * modules/select (Files): Add lib/select.c, remove
30999         lib/winsock-select.c.
31000         (configure.ac): Update.
31001
31002 2009-03-12  Jim Meyering  <meyering@redhat.com>
31003
31004         avoid gcc warnings about unused macro definitions
31005         * lib/readtokens.c (STREQ): Remove unused definition.
31006         * lib/xmalloc.c (SIZE_MAX): Likewise.
31007         * lib/openat-die.c (N_): Likewise.
31008         * lib/mountlist.c (SIZE_MAX): Remove definition.
31009         Instead, include <stdint.h>.
31010         * lib/readutmp.c: Likewise.
31011         * modules/readutmp (Depends-on): Add stdint.
31012         * modules/mountlist (Depends-on): Add stdint.
31013         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31014
31015 2009-03-10  Bruno Haible  <bruno@clisp.org>
31016
31017         Tests for module 'mbmemcasecoll'.
31018         * modules/mbmemcasecoll-tests: New file.
31019         * tests/test-mbmemcasecoll1.sh: New file.
31020         * tests/test-mbmemcasecoll2.sh: New file.
31021         * tests/test-mbmemcasecoll3.sh: New file.
31022         * tests/test-mbmemcasecoll.c: New file.
31023
31024         New module 'mbmemcasecoll'.
31025         * lib/mbmemcasecoll.h: New file.
31026         * lib/mbmemcasecoll.c: New file.
31027         * modules/mbmemcasecoll: New file.
31028
31029         * tests/test-mbmemcasecmp.h: New file, extracted from
31030         tests/test-mbmemcasecmp.c.
31031         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31032         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31033         (main): Update.
31034         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31035
31036 2009-03-09  Bruno Haible  <bruno@clisp.org>
31037
31038         Tests for module 'mbmemcasecmp'.
31039         * modules/mbmemcasecmp-tests: New file.
31040         * tests/test-mbmemcasecmp1.sh: New file.
31041         * tests/test-mbmemcasecmp2.sh: New file.
31042         * tests/test-mbmemcasecmp3.sh: New file.
31043         * tests/test-mbmemcasecmp.c: New file.
31044
31045         New module 'mbmemcasecmp'.
31046         * lib/mbmemcasecmp.h: New file.
31047         * lib/mbmemcasecmp.c: New file.
31048         * modules/mbmemcasecmp: New file.
31049
31050 2009-03-09  Bruno Haible  <bruno@clisp.org>
31051
31052         Tests for module 'unicase/ulc-casecoll'.
31053         * modules/unicase/ulc-casecoll-tests: New file.
31054         * tests/unicase/test-ulc-casecoll1.sh: New file.
31055         * tests/unicase/test-ulc-casecoll2.sh: New file.
31056         * tests/unicase/test-ulc-casecoll.c: New file.
31057
31058         New module 'unicase/ulc-casecoll'.
31059         * lib/unicase.h (ulc_casecoll): New declaration.
31060         * lib/unicase/ulc-casecoll.c: New file.
31061         * modules/unicase/ulc-casecoll: New file.
31062
31063         New module 'unicase/ulc-casexfrm'.
31064         * lib/unicase.h (ulc_casexfrm): New declaration.
31065         * lib/unicase/ulc-casexfrm.c: New file.
31066         * modules/unicase/ulc-casexfrm: New file.
31067
31068 2009-03-09  Bruno Haible  <bruno@clisp.org>
31069
31070         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31071         invocations.
31072
31073         * m4/mbscasecmp.m4: Remove file.
31074         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31075         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31076
31077         * m4/mbscasestr.m4: Remove file.
31078         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31079         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31080
31081         * m4/mbschr.m4: Remove file.
31082         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31083         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31084
31085         * m4/mbscspn.m4: Remove file.
31086         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31087         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31088
31089         * m4/mbslen.m4: Remove file.
31090         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31091         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31092
31093         * m4/mbsncasecmp.m4: Remove file.
31094         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31095         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31096
31097         * m4/mbsnlen.m4: Remove file.
31098         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31099         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31100
31101         * m4/mbspbrk.m4: Remove file.
31102         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31103         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31104
31105         * m4/mbspcasecmp.m4: Remove file.
31106         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31107         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31108
31109         * m4/mbsrchr.m4: Remove file.
31110         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31111         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31112
31113         * m4/mbssep.m4: Remove file.
31114         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31115         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31116
31117         * m4/mbsspn.m4: Remove file.
31118         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31119         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31120
31121         * m4/mbsstr.m4: Remove file.
31122         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31123         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31124
31125         * m4/mbstok_r.m4: Remove file.
31126         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31127         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31128
31129         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31130
31131         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31132         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31133
31134         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31135
31136 2009-03-08  Bruno Haible  <bruno@clisp.org>
31137
31138         Tests for module 'unicase/ulc-casecmp'.
31139         * modules/unicase/ulc-casecmp-tests: New file.
31140         * tests/unicase/test-ulc-casecmp1.sh: New file.
31141         * tests/unicase/test-ulc-casecmp2.sh: New file.
31142         * tests/unicase/test-ulc-casecmp.c: New file.
31143
31144         New module 'unicase/ulc-casecmp'.
31145         * lib/unicase.h (ulc_casecmp): New declaration.
31146         * lib/unicase/ulc-casecmp.c: New file.
31147         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31148         'const SRC_UNIT *'.
31149         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31150         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31151         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31152         * modules/unicase/ulc-casecmp: New file.
31153
31154         Tests for module 'unicase/u32-is-cased'.
31155         * modules/unicase/u32-is-cased-tests: New file.
31156         * tests/unicase/test-u32-is-cased.c: New file.
31157
31158         Tests for module 'unicase/u16-is-cased'.
31159         * modules/unicase/u16-is-cased-tests: New file.
31160         * tests/unicase/test-u16-is-cased.c: New file.
31161
31162         Tests for module 'unicase/u8-is-cased'.
31163         * modules/unicase/u8-is-cased-tests: New file.
31164         * tests/unicase/test-u8-is-cased.c: New file.
31165         * tests/unicase/test-is-cased.h: New file.
31166
31167         New module 'unicase/u32-is-cased'.
31168         * lib/unicase/u32-is-cased.c: New file.
31169         * modules/unicase/u32-is-cased: New file.
31170
31171         New module 'unicase/u16-is-cased'.
31172         * lib/unicase/u16-is-cased.c: New file.
31173         * modules/unicase/u16-is-cased: New file.
31174
31175         New module 'unicase/u8-is-cased'.
31176         * lib/unicase/u8-is-cased.c: New file.
31177         * lib/unicase/u-is-cased.h: New file.
31178         * modules/unicase/u8-is-cased: New file.
31179
31180         Tests for module 'unicase/u32-is-casefolded'.
31181         * modules/unicase/u32-is-casefolded-tests: New file.
31182         * tests/unicase/test-u32-is-casefolded.c: New file.
31183
31184         Tests for module 'unicase/u16-is-casefolded'.
31185         * modules/unicase/u16-is-casefolded-tests: New file.
31186         * tests/unicase/test-u16-is-casefolded.c: New file.
31187
31188         Tests for module 'unicase/u8-is-casefolded'.
31189         * modules/unicase/u8-is-casefolded-tests: New file.
31190         * tests/unicase/test-u8-is-casefolded.c: New file.
31191         * tests/unicase/test-is-casefolded.h: New file.
31192
31193         New module 'unicase/u32-is-casefolded'.
31194         * lib/unicase/u32-is-casefolded.c: New file.
31195         * modules/unicase/u32-is-casefolded: New file.
31196
31197         New module 'unicase/u16-is-casefolded'.
31198         * lib/unicase/u16-is-casefolded.c: New file.
31199         * modules/unicase/u16-is-casefolded: New file.
31200
31201         New module 'unicase/u8-is-casefolded'.
31202         * lib/unicase/u8-is-casefolded.c: New file.
31203         * modules/unicase/u8-is-casefolded: New file.
31204
31205         Tests for module 'unicase/u32-is-titlecase'.
31206         * modules/unicase/u32-is-titlecase-tests: New file.
31207         * tests/unicase/test-u32-is-titlecase.c: New file.
31208
31209         Tests for module 'unicase/u16-is-titlecase'.
31210         * modules/unicase/u16-is-titlecase-tests: New file.
31211         * tests/unicase/test-u16-is-titlecase.c: New file.
31212
31213         Tests for module 'unicase/u8-is-titlecase'.
31214         * modules/unicase/u8-is-titlecase-tests: New file.
31215         * tests/unicase/test-u8-is-titlecase.c: New file.
31216         * tests/unicase/test-is-titlecase.h: New file.
31217
31218         New module 'unicase/u32-is-titlecase'.
31219         * lib/unicase/u32-is-titlecase.c: New file.
31220         * modules/unicase/u32-is-titlecase: New file.
31221
31222         New module 'unicase/u16-is-titlecase'.
31223         * lib/unicase/u16-is-titlecase.c: New file.
31224         * modules/unicase/u16-is-titlecase: New file.
31225
31226         New module 'unicase/u8-is-titlecase'.
31227         * lib/unicase/u8-is-titlecase.c: New file.
31228         * modules/unicase/u8-is-titlecase: New file.
31229
31230         Tests for module 'unicase/u32-is-lowercase'.
31231         * modules/unicase/u32-is-lowercase-tests: New file.
31232         * tests/unicase/test-u32-is-lowercase.c: New file.
31233
31234         Tests for module 'unicase/u16-is-lowercase'.
31235         * modules/unicase/u16-is-lowercase-tests: New file.
31236         * tests/unicase/test-u16-is-lowercase.c: New file.
31237
31238         Tests for module 'unicase/u8-is-lowercase'.
31239         * modules/unicase/u8-is-lowercase-tests: New file.
31240         * tests/unicase/test-u8-is-lowercase.c: New file.
31241         * tests/unicase/test-is-lowercase.h: New file.
31242
31243         New module 'unicase/u32-is-lowercase'.
31244         * lib/unicase/u32-is-lowercase.c: New file.
31245         * modules/unicase/u32-is-lowercase: New file.
31246
31247         New module 'unicase/u16-is-lowercase'.
31248         * lib/unicase/u16-is-lowercase.c: New file.
31249         * modules/unicase/u16-is-lowercase: New file.
31250
31251         New module 'unicase/u8-is-lowercase'.
31252         * lib/unicase/u8-is-lowercase.c: New file.
31253         * modules/unicase/u8-is-lowercase: New file.
31254
31255         Tests for module 'unicase/u32-is-uppercase'.
31256         * modules/unicase/u32-is-uppercase-tests: New file.
31257         * tests/unicase/test-u32-is-uppercase.c: New file.
31258
31259         Tests for module 'unicase/u16-is-uppercase'.
31260         * modules/unicase/u16-is-uppercase-tests: New file.
31261         * tests/unicase/test-u16-is-uppercase.c: New file.
31262
31263         Tests for module 'unicase/u8-is-uppercase'.
31264         * modules/unicase/u8-is-uppercase-tests: New file.
31265         * tests/unicase/test-u8-is-uppercase.c: New file.
31266         * tests/unicase/test-is-uppercase.h: New file.
31267
31268         New module 'unicase/u32-is-uppercase'.
31269         * lib/unicase/u32-is-uppercase.c: New file.
31270         * modules/unicase/u32-is-uppercase: New file.
31271
31272         New module 'unicase/u16-is-uppercase'.
31273         * lib/unicase/u16-is-uppercase.c: New file.
31274         * modules/unicase/u16-is-uppercase: New file.
31275
31276         New module 'unicase/u8-is-uppercase'.
31277         * lib/unicase/u8-is-uppercase.c: New file.
31278         * modules/unicase/u8-is-uppercase: New file.
31279
31280         New module 'unicase/u32-is-invariant'.
31281         * lib/unicase/u32-is-invariant.c: New file.
31282         * modules/unicase/u32-is-invariant: New file.
31283
31284         New module 'unicase/u16-is-invariant'.
31285         * lib/unicase/u16-is-invariant.c: New file.
31286         * modules/unicase/u16-is-invariant: New file.
31287
31288         New module 'unicase/u8-is-invariant'.
31289         * lib/unicase/u8-is-invariant.c: New file.
31290         * lib/unicase/invariant.h: New file.
31291         * lib/unicase/u-is-invariant.h: New file.
31292         * modules/unicase/u8-is-invariant: New file.
31293
31294         Tests for module 'unicase/u32-casecoll'.
31295         * modules/unicase/u32-casecoll-tests: New file.
31296         * tests/unicase/test-u32-casecoll.c: New file.
31297
31298         Tests for module 'unicase/u16-casecoll'.
31299         * modules/unicase/u16-casecoll-tests: New file.
31300         * tests/unicase/test-u16-casecoll.c: New file.
31301
31302         Tests for module 'unicase/u8-casecoll'.
31303         * modules/unicase/u8-casecoll-tests: New file.
31304         * tests/unicase/test-u8-casecoll.c: New file.
31305
31306         New module 'unicase/u32-casecoll'.
31307         * lib/unicase/u32-casecoll.c: New file.
31308         * modules/unicase/u32-casecoll: New file.
31309
31310         New module 'unicase/u16-casecoll'.
31311         * lib/unicase/u16-casecoll.c: New file.
31312         * modules/unicase/u16-casecoll: New file.
31313
31314         New module 'unicase/u8-casecoll'.
31315         * lib/unicase/u8-casecoll.c: New file.
31316         * lib/unicase/u-casecoll.h: New file.
31317         * modules/unicase/u8-casecoll: New file.
31318
31319         New module 'unicase/u32-casexfrm'.
31320         * lib/unicase/u32-casexfrm.c: New file.
31321         * modules/unicase/u32-casexfrm: New file.
31322
31323         New module 'unicase/u16-casexfrm'.
31324         * lib/unicase/u16-casexfrm.c: New file.
31325         * modules/unicase/u16-casexfrm: New file.
31326
31327         New module 'unicase/u8-casexfrm'.
31328         * lib/unicase/u8-casexfrm.c: New file.
31329         * lib/unicase/u-casexfrm.h: New file.
31330         * modules/unicase/u8-casexfrm: New file.
31331
31332         Tests for module 'unicase/u32-casecmp'.
31333         * modules/unicase/u32-casecmp-tests: New file.
31334         * tests/unicase/test-u32-casecmp.c: New file.
31335
31336         Tests for module 'unicase/u16-casecmp'.
31337         * modules/unicase/u16-casecmp-tests: New file.
31338         * tests/unicase/test-u16-casecmp.c: New file.
31339
31340         Tests for module 'unicase/u8-casecmp'.
31341         * modules/unicase/u8-casecmp-tests: New file.
31342         * tests/unicase/test-u8-casecmp.c: New file.
31343         * tests/unicase/test-casecmp.h: New file.
31344
31345         New module 'unicase/u32-casecmp'.
31346         * lib/unicase/u32-casecmp.c: New file.
31347         * modules/unicase/u32-casecmp: New file.
31348
31349         New module 'unicase/u16-casecmp'.
31350         * lib/unicase/u16-casecmp.c: New file.
31351         * modules/unicase/u16-casecmp: New file.
31352
31353         New module 'unicase/u8-casecmp'.
31354         * lib/unicase/u8-casecmp.c: New file.
31355         * lib/unicase/u-casecmp.h: New file.
31356         * modules/unicase/u8-casecmp: New file.
31357
31358         Tests for module 'unicase/u32-casefold'.
31359         * modules/unicase/u32-casefold-tests: New file.
31360         * tests/unicase/test-u32-casefold.c: New file.
31361
31362         Tests for module 'unicase/u16-casefold'.
31363         * modules/unicase/u16-casefold-tests: New file.
31364         * tests/unicase/test-u16-casefold.c: New file.
31365
31366         Tests for module 'unicase/u8-casefold'.
31367         * modules/unicase/u8-casefold-tests: New file.
31368         * tests/unicase/test-u8-casefold.c: New file.
31369
31370         New module 'unicase/u32-casefold'.
31371         * lib/unicase/u32-casefold.c: New file.
31372         * modules/unicase/u32-casefold: New file.
31373
31374         New module 'unicase/u16-casefold'.
31375         * lib/unicase/u16-casefold.c: New file.
31376         * modules/unicase/u16-casefold: New file.
31377
31378         New module 'unicase/u8-casefold'.
31379         * lib/unicase/u8-casefold.c: New file.
31380         * lib/unicase/u-casefold.h: New file.
31381         * modules/unicase/u8-casefold: New file.
31382
31383         New module 'unicase/tocasefold'.
31384         * lib/unicase/casefold.h: New file.
31385         * lib/unicase/tocasefold.c: New file.
31386         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31387         * modules/unicase/tocasefold: New file.
31388
31389         Tests for module 'unicase/u32-totitle'.
31390         * modules/unicase/u32-totitle-tests: New file.
31391         * tests/unicase/test-u32-totitle.c: New file.
31392
31393         Tests for module 'unicase/u16-totitle'.
31394         * modules/unicase/u16-totitle-tests: New file.
31395         * tests/unicase/test-u16-totitle.c: New file.
31396
31397         Tests for module 'unicase/u8-totitle'.
31398         * modules/unicase/u8-totitle-tests: New file.
31399         * tests/unicase/test-u8-totitle.c: New file.
31400
31401         New module 'unicase/u32-totitle'.
31402         * lib/unicase/u32-totitle.c: New file.
31403         * modules/unicase/u32-totitle: New file.
31404
31405         New module 'unicase/u16-totitle'.
31406         * lib/unicase/u16-totitle.c: New file.
31407         * modules/unicase/u16-totitle: New file.
31408
31409         New module 'unicase/u8-totitle'.
31410         * lib/unicase/u8-totitle.c: New file.
31411         * lib/unicase/u-totitle.h: New file.
31412         * modules/unicase/u8-totitle: New file.
31413
31414         Tests for module 'unicase/u32-tolower'.
31415         * modules/unicase/u32-tolower-tests: New file.
31416         * tests/unicase/test-u32-tolower.c: New file.
31417
31418         Tests for module 'unicase/u16-tolower'.
31419         * modules/unicase/u16-tolower-tests: New file.
31420         * tests/unicase/test-u16-tolower.c: New file.
31421
31422         Tests for module 'unicase/u8-tolower'.
31423         * modules/unicase/u8-tolower-tests: New file.
31424         * tests/unicase/test-u8-tolower.c: New file.
31425
31426         New module 'unicase/u32-tolower'.
31427         * lib/unicase/u32-tolower.c: New file.
31428         * modules/unicase/u32-tolower: New file.
31429
31430         New module 'unicase/u16-tolower'.
31431         * lib/unicase/u16-tolower.c: New file.
31432         * modules/unicase/u16-tolower: New file.
31433
31434         New module 'unicase/u8-tolower'.
31435         * lib/unicase/u8-tolower.c: New file.
31436         * modules/unicase/u8-tolower: New file.
31437
31438         Tests for module 'unicase/u32-toupper'.
31439         * modules/unicase/u32-toupper-tests: New file.
31440         * tests/unicase/test-u32-toupper.c: New file.
31441
31442         Tests for module 'unicase/u16-toupper'.
31443         * modules/unicase/u16-toupper-tests: New file.
31444         * tests/unicase/test-u16-toupper.c: New file.
31445
31446         Tests for module 'unicase/u8-toupper'.
31447         * modules/unicase/u8-toupper-tests: New file.
31448         * tests/unicase/test-u8-toupper.c: New file.
31449
31450         New module 'unicase/u32-toupper'.
31451         * lib/unicase/u32-toupper.c: New file.
31452         * modules/unicase/u32-toupper: New file.
31453
31454         New module 'unicase/u16-toupper'.
31455         * lib/unicase/u16-toupper.c: New file.
31456         * modules/unicase/u16-toupper: New file.
31457
31458         New module 'unicase/u8-toupper'.
31459         * lib/unicase/u8-toupper.c: New file.
31460         * modules/unicase/u8-toupper: New file.
31461
31462         New module 'unicase/u32-casemap'.
31463         * lib/unicase/u32-casemap.c: New file.
31464         * modules/unicase/u32-casemap: New file.
31465
31466         New module 'unicase/u16-casemap'.
31467         * lib/unicase/u16-casemap.c: New file.
31468         * modules/unicase/u16-casemap: New file.
31469
31470         New module 'unicase/u8-casemap'.
31471         * lib/unicase/unicasemap.h: New file.
31472         * lib/unicase/u8-casemap.c: New file.
31473         * lib/unicase/u-casemap.h: New file.
31474         * modules/unicase/u8-casemap: New file.
31475
31476         New module 'unicase/special-casing'.
31477         * lib/unicase/special-casing.h: New file.
31478         * lib/unicase/special-casing.c: New file.
31479         * lib/unicase/special-casing-table.gperf: New file, generated by
31480         gen-uni-tables.c.
31481         * modules/unicase/special-casing: New file.
31482
31483         Tests for module 'unicase/locale-language'.
31484         * modules/unicase/locale-language-tests: New file.
31485         * tests/unicase/test-locale-language.sh: New file.
31486         * tests/unicase/test-locale-language.c: New file.
31487
31488         New module 'unicase/locale-language'.
31489         * lib/unicase/locale-language.c: New file.
31490         * lib/unicase/locale-languages.gperf: New file.
31491         * modules/unicase/locale-language: New file.
31492
31493         Generate more tables for case conversion and case folding.
31494         * lib/gen-uni-tables.c (SCC_*): New enum items.
31495         (struct special_casing_rule): New type.
31496         (casing_rules, num_casing_rules, allocated_casing_rules): New
31497         variables.
31498         (add_casing_rule, fill_casing_rules): New functions.
31499         (struct casefold_rule): New type.
31500         (casefolding_rules, num_casefolding_rules,
31501         allocated_casefolding_rules): New variables.
31502         (fill_casefolding_rules): New function.
31503         (unicode_casefold): New variable.
31504         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31505         sort_casing_rules, output_casing_rules): New functions.
31506         (main): Accept to more arguments: SpecialCasing.txt and
31507         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31508         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31509         Output mapping for casefolding.
31510
31511         * lib/unicase.h: Include stdbool.h, uninorm.h.
31512         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31513         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31514         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31515         arguments.
31516         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31517         resultp arguments.
31518         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31519         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31520         resultp arguments.
31521         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31522         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31523         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31524         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31525         declarations.
31526         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31527
31528 2009-03-08  Bruno Haible  <bruno@clisp.org>
31529
31530         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31531         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31532         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31533         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31534
31535 2009-03-07  Bruno Haible  <bruno@clisp.org>
31536
31537         Adjust u*_normcmp, u*_normcoll API.
31538         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31539         u16_normcoll, u32_normcoll): Change failure conventions.
31540         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31541         errno and return -1.
31542         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31543
31544 2009-03-07  Bruno Haible  <bruno@clisp.org>
31545
31546         Tests for module 'uninorm/u32-normcoll'.
31547         * modules/uninorm/u32-normcoll-tests: New file.
31548         * tests/uninorm/test-u32-normcoll.c: New file.
31549
31550         Tests for module 'uninorm/u16-normcoll'.
31551         * modules/uninorm/u16-normcoll-tests: New file.
31552         * tests/uninorm/test-u16-normcoll.c: New file.
31553
31554         Tests for module 'uninorm/u8-normcoll'.
31555         * modules/uninorm/u8-normcoll-tests: New file.
31556         * tests/uninorm/test-u8-normcoll.c: New file.
31557
31558 2009-03-07  Bruno Haible  <bruno@clisp.org>
31559
31560         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31561         tests/uninorm/test-u32-normcmp.c.
31562         * tests/uninorm/test-u32-normcmp.c: Include it.
31563         (test_nonascii): New function, extracted from main. Add some more
31564         tests.
31565         (main): Invoke test_ascii and test_nonascii.
31566         * modules/uninorm/u32-normcmp-tests (Files): Add
31567         tests/uninorm/test-u32-normcmp.h.
31568         (Depends-on): Remove uninorm/u32-normcmp.
31569
31570         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31571         tests/uninorm/test-u16-normcmp.c.
31572         * tests/uninorm/test-u16-normcmp.c: Include it.
31573         (test_nonascii): New function, extracted from main. Add some more
31574         tests.
31575         (main): Invoke test_ascii and test_nonascii.
31576         * modules/uninorm/u16-normcmp-tests (Files): Add
31577         tests/uninorm/test-u16-normcmp.h.
31578         (Depends-on): Remove uninorm/u16-normcmp.
31579
31580         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31581         tests/uninorm/test-u8-normcmp.c.
31582         * tests/uninorm/test-u8-normcmp.c: Include it.
31583         (test_nonascii): New function, extracted from main. Add some more
31584         tests.
31585         (main): Invoke test_ascii and test_nonascii.
31586         * modules/uninorm/u8-normcmp-tests (Files): Add
31587         tests/uninorm/test-u8-normcmp.h.
31588         (Depends-on): Remove uninorm/u8-normcmp.
31589
31590 2009-03-07  Bruno Haible  <bruno@clisp.org>
31591
31592         New module 'uninorm/u32-normcoll'.
31593         * lib/uninorm/u32-normcoll.c: New file.
31594         * modules/uninorm/u32-normcoll: New file.
31595
31596         New module 'uninorm/u16-normcoll'.
31597         * lib/uninorm/u16-normcoll.c: New file.
31598         * modules/uninorm/u16-normcoll: New file.
31599
31600         New module 'uninorm/u8-normcoll'.
31601         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31602         declarations.
31603         * lib/uninorm/u8-normcoll.c: New file.
31604         * lib/uninorm/u-normcoll.h: New file.
31605         * modules/uninorm/u8-normcoll: New file.
31606
31607         New module 'uninorm/u32-normxfrm'.
31608         * lib/uninorm/u32-normxfrm.c: New file.
31609         * modules/uninorm/u32-normxfrm: New file.
31610
31611         New module 'uninorm/u16-normxfrm'.
31612         * lib/uninorm/u16-normxfrm.c: New file.
31613         * modules/uninorm/u16-normxfrm: New file.
31614
31615         New module 'uninorm/u8-normxfrm'.
31616         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31617         declarations.
31618         * lib/uninorm/u8-normxfrm.c: New file.
31619         * lib/uninorm/u-normxfrm.h: New file.
31620         * modules/uninorm/u8-normxfrm: New file.
31621
31622 2009-03-07  Bruno Haible  <bruno@clisp.org>
31623
31624         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31625         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31626         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31627
31628 2009-03-07  Bruno Haible  <bruno@clisp.org>
31629
31630         New module 'memxfrm'.
31631         * lib/memxfrm.h: New file.
31632         * lib/memxfrm.c: New file.
31633         * modules/memxfrm: New file.
31634
31635 2009-03-07  Bruno Haible  <bruno@clisp.org>
31636
31637         New module 'memcmp2'.
31638         * lib/memcmp2.h: New file.
31639         * lib/memcmp2.c: New file.
31640         * modules/memcmp2: New file.
31641
31642 2009-03-07  Bruno Haible  <bruno@clisp.org>
31643
31644         Tests for module 'uninorm/decomposing-form'.
31645         * modules/uninorm/decomposing-form-tests: New file.
31646         * tests/uninorm/test-decomposing-form.c: New file.
31647
31648         New module 'uninorm/decomposing-form'.
31649         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31650         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31651         Add 'decomposing_variant' field.
31652         * lib/uninorm/decomposing-form.c: New file.
31653         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31654         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31655         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31656         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31657         * modules/uninorm/decomposing-form: New file.
31658         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31659         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31660
31661 2009-03-07  Bruno Haible  <bruno@clisp.org>
31662
31663         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31664         strings.
31665
31666 2009-03-06  Bruno Haible  <bruno@clisp.org>
31667
31668         Tests for module 'uninorm/u32-normcmp'.
31669         * tests/uninorm/test-u32-normcmp.c: New file.
31670         * modules/uninorm/u32-normcmp-tests: New file.
31671
31672         Tests for module 'uninorm/u16-normcmp'.
31673         * tests/uninorm/test-u16-normcmp.c: New file.
31674         * modules/uninorm/u16-normcmp-tests: New file.
31675
31676         Tests for module 'uninorm/u8-normcmp'.
31677         * tests/uninorm/test-u8-normcmp.c: New file.
31678         * modules/uninorm/u8-normcmp-tests: New file.
31679
31680         New module 'uninorm/u32-normcmp'.
31681         * lib/uninorm/u32-normcmp.c: New file.
31682         * modules/uninorm/u32-normcmp: New file.
31683
31684         New module 'uninorm/u16-normcmp'.
31685         * lib/uninorm/u16-normcmp.c: New file.
31686         * modules/uninorm/u16-normcmp: New file.
31687
31688         New module 'uninorm/u8-normcmp'.
31689         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31690         declarations.
31691         * lib/uninorm/u8-normcmp.c: New file.
31692         * lib/uninorm/u-normcmp.h: New file.
31693         * modules/uninorm/u8-normcmp: New file.
31694
31695 2009-03-06  Bruno Haible  <bruno@clisp.org>
31696
31697         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31698         Reported by Eric Blake.
31699
31700 2009-03-06  Eric Blake  <ebb9@byu.net>
31701             Bruno Haible  <bruno@clisp.org>
31702
31703         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31704         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31705         condition.
31706         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31707         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31708         condition.
31709         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31710
31711 2009-03-06  Eric Blake  <ebb9@byu.net>
31712
31713         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31714         to avoid compiler warnings.
31715         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31716
31717 2009-03-05  Bruno Haible  <bruno@clisp.org>
31718
31719         * tests/test-ftell.c (main): Disable test beyond end of file on
31720         FreeMiNT.
31721         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31722
31723 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31724
31725         * lib/filevercmp.c: Move hidden files up in ordering.
31726         * tests/test-filevercmp.c: Add tests for hidden files.
31727
31728 2009-03-04  Bruno Haible  <bruno@clisp.org>
31729
31730         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31731         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31732         AM_CFLAGS.
31733         Reported by Simon Josefsson.
31734
31735 2009-03-03  Bruno Haible  <bruno@clisp.org>
31736
31737         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31738         Reported by Simon Josefsson.
31739
31740         * doc/ld-version-script.texi: Update node reference.
31741
31742 2009-03-03  Bruno Haible  <bruno@clisp.org>
31743
31744         * modules/visibility (License): Change to 'unlimited'.
31745         Suggested by Simon Josefsson.
31746
31747 2009-03-03  Jim Meyering  <meyering@redhat.com>
31748
31749         unlinkdir: cannot_unlink_dir may modify process state
31750         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31751         it's neither thread-safe nor appropriate for use in a library.
31752
31753 2009-03-03  Eric Blake  <ebb9@byu.net>
31754
31755         test-closein: silence test under Darwin
31756         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31757         care if it dies from EPIPE or EBADF.
31758
31759 2009-03-03  Bruno Haible  <bruno@clisp.org>
31760
31761         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31762         earlier.
31763         * doc/visibility.texi: Fix @node and @section.
31764
31765 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31766
31767         * doc/gnulib.texi: Link to sections for ld version script and
31768         visibility.
31769         * doc/visibility.texi: Add @node and @section.
31770         * modules/ld-version-script: New module.
31771         * m4/ld-version-script.m4: New file.
31772         * doc/ld-version-script.texi: New file.
31773
31774 2009-03-02  David Lutterkort  <lutter@redhat.com>
31775
31776         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31778
31779 2009-03-02  Bruno Haible  <bruno@clisp.org>
31780
31781         * doc/visibility.texi: Mention libtool's -export-symbols option.
31782
31783 2009-03-02  Jim Meyering  <meyering@redhat.com>
31784
31785         announce-gen: new option: --no-print-checksums
31786         * build-aux/announce-gen (usage): Describe it.
31787         (print_checksums): Print a newline here, not in the [*] footnote.
31788         (main): Honor it.
31789
31790 2009-03-01  Bruno Haible  <bruno@clisp.org>
31791
31792         Use socklen_t in the native Windows replacements prototypes.
31793         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31794         instead of 'int'.
31795         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31796         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31797         * modules/getsockopt (Depends-on): Add socklen.
31798         * modules/setsockopt (Depends-on): Add socklen.
31799
31800 2009-03-01  Bruno Haible  <bruno@clisp.org>
31801
31802         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31803         least 4.2.
31804
31805 2009-03-01  Eric Blake  <ebb9@byu.net>
31806             Bruno Haible  <bruno@clisp.org>
31807
31808         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31809         error messages.
31810         * lib/wait-process.c (wait_subprocess): Omit error message about
31811         deadly signal sent to the child of termsigp != NULL.
31812
31813 2009-03-01  Eric Blake  <ebb9@byu.net>
31814
31815         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31816
31817 2009-03-01  Bruno Haible  <bruno@clisp.org>
31818
31819         Avoid a gcc warning.
31820         * tests/test-sched.c (b): Make global.
31821         Reported by Eric Blake.
31822
31823 2009-01-19  Martin Lambers  <marlam@marlam.de>
31824
31825         Provide POSIX semantics for socket timeout options on W32.
31826         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31827         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31828         * modules/setsockopt: Depend on sys_time module for struct timeval.
31829         * modules/getsockopt: Depend on sys_time module for struct timeval.
31830
31831 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31832
31833         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31834         __USE_GNU, for consistency with netdb.in.h.
31835         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31836
31837 2009-03-01  Bruno Haible  <bruno@clisp.org>
31838
31839         More support for FreeMiNT.
31840         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31841         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31842
31843 2009-03-01  Bruno Haible  <bruno@clisp.org>
31844
31845         More support for FreeMiNT.
31846         * lib/fpurge.c (fpurge): Correct last commit.
31847         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31848
31849 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31850
31851         Fix unportable awk script in vc-list-files.
31852         * build-aux/vc-list-files: In the replacement awk script, use
31853         substr with a second argument of 1, not zero.
31854         Report by Simon Josefsson.
31855
31856 2009-02-28  Bruno Haible  <bruno@clisp.org>
31857
31858         More support for FreeMiNT.
31859         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31860         to FreeMiNT today.
31861         * lib/fwriting.c (fwriting): Likewise.
31862         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31863
31864 2009-02-28  Bruno Haible  <bruno@clisp.org>
31865
31866         * tests/test-freadseek.c (main): Disable test beyond end of file on
31867         FreeMiNT.
31868         * tests/test-ftello.c (main): Likewise.
31869         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31870
31871 2009-02-28  Bruno Haible  <bruno@clisp.org>
31872
31873         Add tentative support for FreeMiNT.
31874         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31875         * lib/fpurge.c (fpurge): Likewise.
31876         * lib/freadable.c (freadable): Likewise.
31877         * lib/freading.c (freading): Likewise.
31878         * lib/freadptr.c (freadptr): Likewise.
31879         * lib/freadseek.c (freadptrinc): Likewise.
31880         * lib/fseeko.c (rpl_fseeko): Likewise.
31881         * lib/fseterr.c (fseterr): Likewise.
31882         * lib/fwritable.c (fwritable): Likewise.
31883         * lib/fwriting.c (fwriting): Likewise.
31884         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31885         Hourihane.
31886         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31887
31888 2009-02-28  Bruno Haible  <bruno@clisp.org>
31889
31890         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31891         SIGCHLD.
31892         Reported by Jim Meyering.
31893
31894 2009-02-28  Bruno Haible  <bruno@clisp.org>
31895
31896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31897         Mention the results of these tests on various platforms.
31898         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31899         order.
31900         * doc/posix-functions/printf.texi: Likewise.
31901         * doc/posix-functions/snprintf.texi: Likewise.
31902         * doc/posix-functions/sprintf.texi: Likewise.
31903         * doc/posix-functions/vfprintf.texi: Likewise.
31904         * doc/posix-functions/vprintf.texi: Likewise.
31905         * doc/posix-functions/vsnprintf.texi: Likewise.
31906         * doc/posix-functions/vsprintf.texi: Likewise.
31907         * doc/glibc-functions/obstack_printf.texi: Likewise.
31908         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31909
31910 2009-02-28  Bruno Haible  <bruno@clisp.org>
31911
31912         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31913         Reported by Loïc Minier <lool@dooz.org>.
31914
31915 2009-02-27  Bruno Haible  <bruno@clisp.org>
31916
31917         * gnulib-tool (func_import): Make the sed expression used to create the
31918         sed script for updating the .gitignore file POSIX compliant.
31919         Reported by Eric Blake.
31920
31921 2009-02-27  Bruno Haible  <bruno@clisp.org>
31922
31923         * gnulib-tool (sed): Don't alias as "sed --posix".
31924         Reported by Eric Blake.
31925
31926 2009-02-27  Bruno Haible  <bruno@clisp.org>
31927
31928         Avoid test link errors.
31929         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31930         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31931         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31932         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31934
31935 2009-02-27  Bruno Haible  <bruno@clisp.org>
31936
31937         Avoid spurious "(cached)" in configure output.
31938         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31939         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31940         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31941         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31942         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31943         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31944         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31945         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31946         Reported by Eric Blake.
31947
31948 2009-02-27  Eric Blake  <ebb9@byu.net>
31949
31950         printf: fix regression in previous patch
31951         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31952
31953 2009-02-27  Bruno Haible  <bruno@clisp.org>
31954
31955         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31956         value.
31957         * lib/stdint.in.h: Likewise.
31958         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31959
31960 2009-02-27  Eric Blake  <ebb9@byu.net>
31961
31962         doc: mention more functions added in cygwin 1.7.0
31963         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31964         addition.
31965         * doc/posix-functions/open_wmemstream.texi: Likewise.
31966         * doc/posix-functions/wcsnlen.texi: Likewise.
31967         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31968         * doc/posix-functions/wcstod.texi: Likewise.
31969         * doc/posix-functions/wcstof.texi: Likewise.
31970         * doc/posix-functions/wcstoimax.texi: Likewise.
31971         * doc/posix-functions/wcstok.texi: Likewise.
31972         * doc/posix-functions/wcstoumax.texi: Likewise.
31973
31974         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31975         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31976         * doc/posix-functions/fprintf.texi: Update.
31977         * doc/posix-functions/printf.texi: Update.
31978         * doc/posix-functions/snprintf.texi: Update.
31979         * doc/posix-functions/sprintf.texi: Update.
31980         * doc/posix-functions/vfprintf.texi: Update.
31981         * doc/posix-functions/vprintf.texi: Update.
31982         * doc/posix-functions/vsnprintf.texi: Update.
31983         * doc/posix-functions/vsprintf.texi: Update.
31984         * doc/glibc-functions/obstack_printf.texi: Update.
31985         * doc/glibc-functions/obstack_vprintf.texi: Update.
31986
31987 2009-02-26  Eric Blake  <ebb9@byu.net>
31988
31989         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31990         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31991         compilation bug by using runtime conversion.
31992         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31993         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31994         * modules/ceill-tests (Files): Use nan.h.
31995         * modules/floorl-tests (Files): Likewise.
31996         * modules/frexpl-tests (Files): Likewise.
31997         * modules/isnanl-tests (Files): Likewise.
31998         * modules/ldexpl-tests (Files): Likewise.
31999         * modules/roundl-tests (Files): Likewise.
32000         * modules/truncl-tests (Files): Likewise.
32001         * tests/test-ceill.c (main): Use a working NaN.
32002         * tests/test-floorl.c (main): Likewise.
32003         * tests/test-frexpl.c (main): Likewise.
32004         * tests/test-isnan.c (test_long_double): Likewise.
32005         * tests/test-isnanl.h (main): Likewise.
32006         * tests/test-ldexpl.h (main): Likewise.
32007         * tests/test-roundl.h (main): Likewise.
32008         * tests/test-truncl.h (main): Likewise.
32009         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32010
32011 2009-02-26  Eric Blake  <ebb9@byu.net>
32012             Bruno Haible  <bruno@clisp.org>
32013
32014         Work around a *printf bug with %ls on Solaris.
32015         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32016         precision is specified, sprintf stops converting the wide string
32017         argument when the number of bytes that have been produced by this
32018         conversion equals or exceeds the precision.
32019         * doc/posix-functions/fprintf.texi: Update.
32020         * doc/posix-functions/printf.texi: Update.
32021         * doc/posix-functions/snprintf.texi: Update.
32022         * doc/posix-functions/sprintf.texi: Update.
32023         * doc/posix-functions/vfprintf.texi: Update.
32024         * doc/posix-functions/vprintf.texi: Update.
32025         * doc/posix-functions/vsnprintf.texi: Update.
32026         * doc/posix-functions/vsprintf.texi: Update.
32027         * doc/glibc-functions/obstack_printf.texi: Update.
32028         * doc/glibc-functions/obstack_vprintf.texi: Update.
32029
32030 2009-02-26  Eric Blake  <ebb9@byu.net>
32031
32032         stdlib: favor compiler check of random.h
32033         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32034         to avoid an ObjC random.h installed by Swarm.
32035
32036 2009-02-26  Bruno Haible  <bruno@clisp.org>
32037
32038         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32039         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32040         Reported by Gary V. Vaughan <gary@gnu.org>.
32041
32042 2009-02-26  Bruno Haible  <bruno@clisp.org>
32043
32044         Fix *printf behaviour regarding the %ls directive.
32045         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32046         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32047         NEED_PRINTF_DIRECTIVE_LS.
32048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32049         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32050         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32051         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32052         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32053         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32054         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32055         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32056         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32057         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32058         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32059         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32060         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32061         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32062         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32063         * doc/posix-functions/fprintf.texi: Update.
32064         * doc/posix-functions/printf.texi: Update.
32065         * doc/posix-functions/snprintf.texi: Update.
32066         * doc/posix-functions/sprintf.texi: Update.
32067         * doc/posix-functions/vfprintf.texi: Update.
32068         * doc/posix-functions/vprintf.texi: Update.
32069         * doc/posix-functions/vsnprintf.texi: Update.
32070         * doc/posix-functions/vsprintf.texi: Update.
32071         * doc/glibc-functions/obstack_printf.texi: Update.
32072         * doc/glibc-functions/obstack_vprintf.texi: Update.
32073         Reported by Eric Blake.
32074
32075 2009-02-25  Bruno Haible  <bruno@clisp.org>
32076
32077         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32078         with known value.
32079         Reported by Gary V. Vaughan <gary@gnu.org>.
32080
32081 2009-02-25  Bruno Haible  <bruno@clisp.org>
32082
32083         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32084         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32085         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32086         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32087         Reported by Gary V. Vaughan <gary@gnu.org>.
32088
32089 2009-02-25  Bruno Haible  <bruno@clisp.org>
32090
32091         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32092         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32093         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32094         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32095         Reported by Gary V. Vaughan <gary@gnu.org>.
32096
32097 2009-02-25  Eric Blake  <ebb9@byu.net>
32098
32099         tests: skip fseek/ftell tests if ungetc is broken
32100         * m4/ungetc.m4: New file.
32101         * modules/fseek-tests: Split test, so ungetc dependency is
32102         separate from rest of test.
32103         * modules/fseeko-tests: Likewise.
32104         * modules/ftell-tests: Likewise.
32105         * modules/ftello-tests: Likewise.
32106         * tests/test-fseek.c (main): Isolate ungetc dependency.
32107         * tests/test-fseeko.c (main): Likewise.
32108         * tests/test-ftell.c (main): Likewise.
32109         * tests/test-ftello.c (main): Likewise.
32110         * tests/test-fseek2.sh: New file.
32111         * tests/test-fseeko2.sh: Likewise.
32112         * tests/test-ftell2.sh: Likewise.
32113         * tests/test-ftello2.sh: Likewise.
32114
32115 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32116
32117         test-getaddrinfo: fix usage of skip return code 77
32118         * tests/test-gettaddrinfo.c: Return skip code 77 only
32119         for first occurance of skip (4x77 is not 77)
32120
32121 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32122
32123         strtod: avoid C99 decl-after-statement
32124         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32125
32126 2009-02-24  Eric Blake  <ebb9@byu.net>
32127
32128         strtod: detect HP-UX 11.31 bug
32129         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32130         Reported by Gary V. Vaughan.
32131
32132 2009-02-23  Bruno Haible  <bruno@clisp.org>
32133
32134         Fix invalid read past end of memory block.
32135         * lib/vasnprintf.c (DCHAR_SET): Define.
32136         (local_wcslen): Define only when needed.
32137         (local_strnlen, local_wcsnlen): New functions.
32138         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32139         directives that involve a conversion ourselves.
32140         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32141         wcsnlen, mbrtowc, wcrtomb.
32142         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32143         * tests/test-vasprintf-posix.c (test_function): Likewise.
32144         * tests/test-snprintf-posix.h (test_function): Likewise.
32145         * tests/test-sprintf-posix.h (test_function): Likewise.
32146         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32147
32148 2009-02-22  Bruno Haible  <bruno@clisp.org>
32149
32150         Implement new clarified decomposition of Hangul syllables.
32151         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32152         of type LTV, return only a pairwise decomposition.
32153         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32154         Likewise.
32155         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32156         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32157         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32158
32159 2009-02-22  Bruno Haible  <bruno@clisp.org>
32160
32161         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32162         zero-length results and shrink excess allocated memory.
32163         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32164         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32165         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32166         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32167         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32168         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32169         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32170         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32171         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32172         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32173         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32174         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32175
32176 2009-02-21  Bruno Haible  <bruno@clisp.org>
32177
32178         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32179         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32180         spaces after a period. Put a space between a macro name and its
32181         argument list. Trivial rewordings.
32182         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32183         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32184         (main): Return 0 explicitly.
32185
32186 2009-02-21  Bruno Haible  <bruno@clisp.org>
32187
32188         Tests for module 'uninorm/filter'.
32189         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32190         * modules/uninorm/filter-tests: New file.
32191
32192         New module 'uninorm/filter'.
32193         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32194         uninorm_filter_flush, uninorm_filter_free): New declarations.
32195         * lib/uninorm/uninorm-filter.c: New file.
32196         * modules/uninorm/filter: New file.
32197
32198 2009-02-21  Bruno Haible  <bruno@clisp.org>
32199
32200         Tests for module 'uninorm/nfkc'.
32201         * tests/uninorm/test-nfkc.c: New file.
32202         * tests/uninorm/test-u8-nfkc.c: New file.
32203         * tests/uninorm/test-u16-nfkc.c: New file.
32204         * tests/uninorm/test-u32-nfkc.c: New file.
32205         * tests/uninorm/test-u32-nfkc-big.sh: New file.
32206         * tests/uninorm/test-u32-nfkc-big.c: New file.
32207         * modules/uninorm/nfkc-tests: New file.
32208
32209         New module 'uninorm/nfkc'.
32210         * lib/uninorm/nfkc.c: New file.
32211         * modules/uninorm/nfkc: New file.
32212
32213         Tests for module 'uninorm/nfkd'.
32214         * tests/uninorm/test-nfkd.c: New file.
32215         * tests/uninorm/test-u8-nfkd.c: New file.
32216         * tests/uninorm/test-u16-nfkd.c: New file.
32217         * tests/uninorm/test-u32-nfkd.c: New file.
32218         * tests/uninorm/test-u32-nfkd-big.sh: New file.
32219         * tests/uninorm/test-u32-nfkd-big.c: New file.
32220         * modules/uninorm/nfkd-tests: New file.
32221
32222         New module 'uninorm/nfkd'.
32223         * lib/uninorm/nfkd.c: New file.
32224         * modules/uninorm/nfkd: New file.
32225
32226         Tests for module 'uninorm/nfc'.
32227         * tests/uninorm/test-nfc.c: New file.
32228         * tests/uninorm/test-u8-nfc.c: New file.
32229         * tests/uninorm/test-u16-nfc.c: New file.
32230         * tests/uninorm/test-u32-nfc.c: New file.
32231         * tests/uninorm/test-u32-nfc-big.sh: New file.
32232         * tests/uninorm/test-u32-nfc-big.c: New file.
32233         * modules/uninorm/nfc-tests: New file.
32234
32235         New module 'uninorm/nfc'.
32236         * lib/uninorm/nfc.c: New file.
32237         * modules/uninorm/nfc: New file.
32238
32239         Tests for module 'uninorm/nfd'.
32240         * tests/uninorm/test-nfd.c: New file.
32241         * tests/uninorm/test-u8-nfd.c: New file.
32242         * tests/uninorm/test-u16-nfd.c: New file.
32243         * tests/uninorm/test-u32-nfd.c: New file.
32244         * tests/uninorm/test-u32-nfd-big.sh: New file.
32245         * tests/uninorm/test-u32-nfd-big.c: New file.
32246         * tests/uninorm/test-u32-normalize-big.h: New file.
32247         * tests/uninorm/test-u32-normalize-big.c: New file.
32248         * tests/uninorm/NormalizationTest.txt: New file, created from
32249         Unicode 5.1.0 NormalizationTest.txt.
32250         * modules/uninorm/nfd-tests: New file.
32251
32252         New module 'uninorm/nfd'.
32253         * lib/uninorm/nfd.c: New file.
32254         * modules/uninorm/nfd: New file.
32255
32256         New module 'uninorm/u32-normalize'.
32257         * lib/uninorm/u32-normalize.c: New file.
32258         * modules/uninorm/u32-normalize: New file.
32259
32260         New module 'uninorm/u16-normalize'.
32261         * lib/uninorm/u16-normalize.c: New file.
32262         * modules/uninorm/u16-normalize: New file.
32263
32264         New module 'uninorm/u8-normalize'.
32265         * lib/uninorm/u8-normalize.c: New file.
32266         * lib/uninorm/normalize-internal.h: New file.
32267         * lib/uninorm/u-normalize-internal.h: New file.
32268         * modules/uninorm/u8-normalize: New file.
32269
32270         New module 'uninorm/decompose-internal'.
32271         * lib/uninorm/decompose-internal.c: New file.
32272         * modules/uninorm/decompose-internal: New file.
32273
32274         Tests for module 'uninorm/composition'.
32275         * tests/uninorm/test-composition.c: New file.
32276         * modules/uninorm/composition-tests: New file.
32277
32278         New module 'uninorm/composition'.
32279         * lib/uninorm/composition.c: New file.
32280         * lib/uninorm/composition-table.gperf: New file, generated by
32281         gen-uni-tables.
32282         * modules/uninorm/composition: New file.
32283
32284         Tests for module 'uninorm/compat-decomposition'.
32285         * tests/uninorm/test-compat-decomposition.c: New file.
32286         * modules/uninorm/compat-decomposition-tests: New file.
32287
32288         New module 'uninorm/compat-decomposition'.
32289         * lib/uninorm/decompose-internal.h: New file.
32290         * lib/uninorm/compat-decomposition.c: New file.
32291         * modules/uninorm/compat-decomposition: New file.
32292
32293         Tests for module 'uninorm/canonical-decomposition'.
32294         * tests/uninorm/test-canonical-decomposition.c: New file.
32295         * modules/uninorm/canonical-decomposition-tests: New file.
32296
32297         New module 'uninorm/canonical-decomposition'.
32298         * lib/uninorm/canonical-decomposition.c: New file.
32299         * modules/uninorm/canonical-decomposition: New file.
32300
32301         Tests for module 'uninorm/decomposition'.
32302         * tests/uninorm/test-decomposition.c: New file.
32303         * modules/uninorm/decomposition-tests: New file.
32304
32305         New module 'uninorm/decomposition'.
32306         * lib/uninorm/decomposition.c: New file.
32307         * modules/uninorm/decomposition: New file.
32308
32309         New module 'uninorm/decomposition-table'.
32310         * lib/uninorm/decomposition-table.h: New file.
32311         * lib/uninorm/decomposition-table.c: New file.
32312         * lib/uninorm/decomposition-table1.h: New file, generated by
32313         gen-uni-tables.
32314         * lib/uninorm/decomposition-table2.h: New file, generated by
32315         gen-uni-tables.
32316         * modules/uninorm/decomposition-table: New file.
32317
32318         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
32319         (UC_DECOMP_*): New enumeration items.
32320         (get_decomposition): New function.
32321         (struct decomp_table): New type.
32322         (output_decomposition, output_decomposition_tables): New functions.
32323         (unicode_composition_exclusions): New variable.
32324         (fill_composition_exclusions, debug_output_composition_tables): New
32325         functions.
32326         (main): Accept one more argument. Invoke fill_composition_exclusions.
32327         Output decomposition and composition tables.
32328
32329         New module 'uninorm/base'.
32330         * lib/uninorm.h: New file.
32331         * lib/unictype.h: Update comment.
32332         * modules/uninorm/base: New file.
32333
32334 2009-02-21  David Lutterkort  <lutter@redhat.com>
32335
32336         Tests for module 'safe-alloc'.
32337         * tests/test-safe-alloc.c: New file.
32338         * modules/safe-alloc-tests: New file.
32339
32340         New module 'safe-alloc'.
32341         * lib/safe-alloc.h: New file.
32342         * lib/safe-alloc.c: New file.
32343         * m4/safe-alloc.m4: New file.
32344         * modules/safe-alloc: New file.
32345         * doc/safe-alloc.texi: New file.
32346         * doc/gnulib.texi: Include it.
32347         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
32348         safe-alloc.
32349
32350 2009-02-18  Bruno Haible  <bruno@clisp.org>
32351
32352         Fix link error on non-glibc systems.
32353         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
32354         variable.
32355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32356
32357 2009-02-18  Jim Meyering  <meyering@redhat.com>
32358
32359         fts: avoid used-uninitialized error due to recent change
32360         * lib/fts.c (fts_read): Guard uses of the new member,
32361         parent->fts_n_dirs_remaining, since it's not relevant for
32362         the parent of a directory specified on the command-line.
32363
32364 2009-02-17  James Youngman  <jay@gnu.org>
32365             Bruno Haible  <bruno@clisp.org>
32366
32367         * m4/include_next.m4: Reformulate comment.
32368
32369 2009-02-16  Jim Meyering  <meyering@redhat.com>
32370
32371         fts: add #if guards so that the fts_lgpl module still builds
32372         * lib/fts.c: Guard just-added hash-table-using parts with
32373         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
32374         Reported by Simon Josefsson.
32375
32376 2009-02-15  Bruno Haible  <bruno@clisp.org>
32377
32378         * modules/array-mergesort-tests: New file.
32379         * tests/test-array-mergesort.c: New file.
32380
32381         New module 'array-mergesort'.
32382         * modules/array-mergesort: New file.
32383         * lib/array-mergesort.h: New file.
32384
32385 2009-02-15  Bruno Haible  <bruno@clisp.org>
32386
32387         Fix 2009-02-07 commit.
32388         * lib/gen-uni-tables.c (output_predicate, output_category,
32389         output_combclass, output_bidi_category, output_decimal_digit,
32390         output_digit, output_numeric, output_mirror, output_scripts,
32391         output_ident_category, output_simple_mapping): Fix format directives.
32392         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32393
32394 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32395
32396         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32397         fixes are available from IBM.
32398
32399 2009-02-13  Jim Meyering  <meyering@redhat.com>
32400
32401         fts: arrange not to stat non-directories in more cases
32402         This makes GNU find (when it doesn't need to stat each file)
32403         *much* more efficient at traversing reiserfs file systems.
32404         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32405         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32406         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32407         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32408         (leaf_optimization_applies): New function.
32409         (LCO_hash, LCO_compare): New helper functions.
32410         (link_count_optimize_ok): New function.
32411         (fts_stat): Initialize new member (if dir).
32412         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32413         we've just stat'ed a directory.  Skip the stat call when possible.
32414         ---
32415         Note this AFS-related exchange:
32416         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32417         and note find's pioctl call in find/fstype.c.
32418         But that is necessary only if you want to enable the
32419         optimization for AFS, and for now, I don't.
32420
32421         fts: move a function definition "up" (no semantic change)
32422         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32423         "up" to precede upcoming use of a related function.
32424
32425 2009-02-11  Jim Meyering  <meyering@redhat.com>
32426
32427         fts: correct internal computation of nlinks (optimization-related)
32428         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32429         whether the current entry is a directory, so don't test it.
32430
32431 2009-02-10  Bruno Haible  <bruno@clisp.org>
32432
32433         Tests for module 'uniwbrk/ulc-wordbreaks'.
32434         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32435         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32436         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32437
32438         Tests for module 'uniwbrk/u32-wordbreaks'.
32439         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32440         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32441
32442         Tests for module 'uniwbrk/u16-wordbreaks'.
32443         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32444         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32445
32446         Tests for module 'uniwbrk/u8-wordbreaks'.
32447         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32448         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32449
32450 2009-02-10  Bruno Haible  <bruno@clisp.org>
32451
32452         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32453         property.
32454         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32455         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32456         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32457
32458 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32459
32460         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32461         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32462
32463 2009-02-10  Bruno Haible  <bruno@clisp.org>
32464
32465         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32466         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32467         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32468         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32469         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32470         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32471
32472 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32473
32474         * lib/sockets.h (gl_fd_to_handle): New function.
32475
32476         * tests/test-sockets.c: Call gl_fd_to_handle.
32477
32478 2009-02-09  Bruno Haible  <bruno@clisp.org>
32479
32480         * doc/havelib.texi: Document the conventions on bi-arch systems.
32481
32482 2009-02-08  Bruno Haible  <bruno@clisp.org>
32483
32484         Document the AC_LIB_LINKFLAGS macro.
32485         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32486         * doc/gnulib.texi: Include it.
32487
32488 2009-02-08  Bruno Haible  <bruno@clisp.org>
32489
32490         Fix wrong order of sections, compared to TOC.
32491         * doc/gnulib.texi: Include relocatable-maint.texi after the
32492         "Regular expressions" node, not before.
32493
32494 2009-02-08  Bruno Haible  <bruno@clisp.org>
32495
32496         Tests for module 'unicase/totitle'.
32497         * modules/unicase/totitle-tests: New file.
32498
32499         Tests for module 'unicase/tolower'.
32500         * modules/unicase/tolower-tests: New file.
32501
32502         Tests for module 'unicase/toupper'.
32503         * modules/unicase/toupper-tests: New file.
32504         * tests/unicase/test-mapping-part1.h: New file.
32505         * tests/unicase/test-mapping-part2.h: New file.
32506
32507         New module 'unicase/totitle'.
32508         * modules/unicase/totitle: New file.
32509         * lib/unicase/totitle.c: New file.
32510
32511         New module 'unicase/tolower'.
32512         * modules/unicase/tolower: New file.
32513         * lib/unicase/tolower.c: New file.
32514
32515         New module 'unicase/toupper'.
32516         * modules/unicase/toupper: New file.
32517         * lib/unicase/toupper.c: New file.
32518         * lib/unicase/simple-mapping.h: New file.
32519
32520         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32521         (mapping_table): New structure.
32522         (output_simple_mapping): New function.
32523         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32524         * modules/gen-uni-tables (Description): Update.
32525         * lib/unicase/toupper.h: New file, automatically generated by
32526         gen-uni-tables.
32527         * lib/unicase/tolower.h: New file, automatically generated by
32528         gen-uni-tables.
32529         * lib/unicase/totitle.h: New file, automatically generated by
32530         gen-uni-tables.
32531         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32532         gen-uni-tables.
32533         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32534         gen-uni-tables.
32535         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32536         gen-uni-tables.
32537
32538         New module 'unicase/base'.
32539         * modules/unicase/base: New file.
32540         * lib/unicase.h: New file.
32541
32542 2009-02-08  Bruno Haible  <bruno@clisp.org>
32543
32544         New module 'uniwbrk/ulc-wordbreaks'.
32545         * modules/uniwbrk/ulc-wordbreaks: New file.
32546         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32547
32548         New module 'uniwbrk/u32-wordbreaks'.
32549         * modules/uniwbrk/u32-wordbreaks: New file.
32550         * lib/uniwbrk/u32-wordbreaks.c: New file.
32551
32552         New module 'uniwbrk/u16-wordbreaks'.
32553         * modules/uniwbrk/u16-wordbreaks: New file.
32554         * lib/uniwbrk/u16-wordbreaks.c: New file.
32555
32556         New module 'uniwbrk/u8-wordbreaks'.
32557         * modules/uniwbrk/u8-wordbreaks: New file.
32558         * lib/uniwbrk/u8-wordbreaks.c: New file.
32559         * lib/uniwbrk/u-wordbreaks.h: New file.
32560
32561         New module 'uniwbrk/table'.
32562         * modules/uniwbrk/table: New file.
32563         * lib/uniwbrk/wbrktable.h: New file.
32564         * lib/uniwbrk/wbrktable.c: New file.
32565
32566         New module 'uniwbrk/wordbreak-property'.
32567         * modules/uniwbrk/wordbreak-property: New file.
32568         * lib/uniwbrk/wordbreak-property.c: New file.
32569
32570         * lib/gen-uni-tables.c (WBP_*): New enum items.
32571         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32572         (unicode_org_wbp): New variable.
32573         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32574         New functions.
32575         (wbp_table): New structure.
32576         (output_wbp, output_wbrk_tables): New functions.
32577         (main): Accept additional argument. Invoke fill_org_wbp,
32578         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32579         output_wbrk_tables.
32580         * modules/gen-uni-tables (Description): Update.
32581         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32582         gen-uni-tables.
32583
32584         New module 'uniwbrk/base'.
32585         * modules/uniwbrk/base: New file.
32586         * lib/uniwbrk.h: New file.
32587
32588 2009-02-08  Bruno Haible  <bruno@clisp.org>
32589
32590         Update to Unicode 5.1.0.
32591         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32592         U+2185..U+2188.
32593         (is_property_default_ignorable_code_point): Don't include characters
32594         of category Cc or Cs and not-a-characters.
32595         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32596         U+0D79, U+109E, U+109F, U+A60C.
32597         * lib/unictype/bidi_of.h: Regenerated.
32598         * lib/unictype/blocks.h: Regenerated.
32599         * lib/unictype/categ_C.h: Regenerated.
32600         * lib/unictype/categ_Cf.h: Regenerated.
32601         * lib/unictype/categ_Cn.h: Regenerated.
32602         * lib/unictype/categ_L.h: Regenerated.
32603         * lib/unictype/categ_Ll.h: Regenerated.
32604         * lib/unictype/categ_Lm.h: Regenerated.
32605         * lib/unictype/categ_Lo.h: Regenerated.
32606         * lib/unictype/categ_Lu.h: Regenerated.
32607         * lib/unictype/categ_M.h: Regenerated.
32608         * lib/unictype/categ_Mc.h: Regenerated.
32609         * lib/unictype/categ_Me.h: Regenerated.
32610         * lib/unictype/categ_Mn.h: Regenerated.
32611         * lib/unictype/categ_N.h: Regenerated.
32612         * lib/unictype/categ_Nd.h: Regenerated.
32613         * lib/unictype/categ_Nl.h: Regenerated.
32614         * lib/unictype/categ_No.h: Regenerated.
32615         * lib/unictype/categ_P.h: Regenerated.
32616         * lib/unictype/categ_Pd.h: Regenerated.
32617         * lib/unictype/categ_Pe.h: Regenerated.
32618         * lib/unictype/categ_Pf.h: Regenerated.
32619         * lib/unictype/categ_Pi.h: Regenerated.
32620         * lib/unictype/categ_Po.h: Regenerated.
32621         * lib/unictype/categ_Ps.h: Regenerated.
32622         * lib/unictype/categ_S.h: Regenerated.
32623         * lib/unictype/categ_Sk.h: Regenerated.
32624         * lib/unictype/categ_Sm.h: Regenerated.
32625         * lib/unictype/categ_So.h: Regenerated.
32626         * lib/unictype/categ_of.h: Regenerated.
32627         * lib/unictype/combining.h: Regenerated.
32628         * lib/unictype/ctype_alnum.h: Regenerated.
32629         * lib/unictype/ctype_alpha.h: Regenerated.
32630         * lib/unictype/ctype_graph.h: Regenerated.
32631         * lib/unictype/ctype_lower.h: Regenerated.
32632         * lib/unictype/ctype_print.h: Regenerated.
32633         * lib/unictype/ctype_punct.h: Regenerated.
32634         * lib/unictype/ctype_upper.h: Regenerated.
32635         * lib/unictype/decdigit.h: Regenerated.
32636         * lib/unictype/digit.h: Regenerated.
32637         * lib/unictype/mirror.h: Regenerated.
32638         * lib/unictype/numeric.h: Regenerated.
32639         * lib/unictype/pr_alphabetic.h: Regenerated.
32640         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32641         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32642         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32643         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32644         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32645         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32646         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32647         * lib/unictype/pr_combining.h: Regenerated.
32648         * lib/unictype/pr_dash.h: Regenerated.
32649         * lib/unictype/pr_decimal_digit.h: Regenerated.
32650         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32651         * lib/unictype/pr_deprecated.h: Regenerated.
32652         * lib/unictype/pr_diacritic.h: Regenerated.
32653         * lib/unictype/pr_extender.h: Regenerated.
32654         * lib/unictype/pr_format_control.h: Regenerated.
32655         * lib/unictype/pr_grapheme_base.h: Regenerated.
32656         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32657         * lib/unictype/pr_grapheme_link.h: Regenerated.
32658         * lib/unictype/pr_id_continue.h: Regenerated.
32659         * lib/unictype/pr_id_start.h: Regenerated.
32660         * lib/unictype/pr_ideographic.h: Regenerated.
32661         * lib/unictype/pr_ignorable_control.h: Regenerated.
32662         * lib/unictype/pr_lowercase.h: Regenerated.
32663         * lib/unictype/pr_math.h: Regenerated.
32664         * lib/unictype/pr_numeric.h: Regenerated.
32665         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32666         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32667         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32668         * lib/unictype/pr_other_id_continue.h: Regenerated.
32669         * lib/unictype/pr_other_lowercase.h: Regenerated.
32670         * lib/unictype/pr_other_math.h: Regenerated.
32671         * lib/unictype/pr_punctuation.h: Regenerated.
32672         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32673         * lib/unictype/pr_soft_dotted.h: Regenerated.
32674         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32675         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32676         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32677         * lib/unictype/pr_uppercase.h: Regenerated.
32678         * lib/unictype/pr_xid_continue.h: Regenerated.
32679         * lib/unictype/pr_xid_start.h: Regenerated.
32680         * lib/unictype/pr_zero_width.h: Regenerated.
32681         * lib/unictype/scripts.h: Regenerated.
32682         * lib/unictype/scripts_byname.gperf: Regenerated.
32683         * lib/unictype/sy_java_ident.h: Regenerated.
32684         * lib/unilbrk/lbrkprop1.h: Regenerated.
32685         * lib/unilbrk/lbrkprop2.h: Regenerated.
32686         * tests/unictype/test-categ_C.c: Regenerated.
32687         * tests/unictype/test-categ_Cf.c: Regenerated.
32688         * tests/unictype/test-categ_Cn.c: Regenerated.
32689         * tests/unictype/test-categ_L.c: Regenerated.
32690         * tests/unictype/test-categ_Ll.c: Regenerated.
32691         * tests/unictype/test-categ_Lm.c: Regenerated.
32692         * tests/unictype/test-categ_Lo.c: Regenerated.
32693         * tests/unictype/test-categ_Lu.c: Regenerated.
32694         * tests/unictype/test-categ_M.c: Regenerated.
32695         * tests/unictype/test-categ_Mc.c: Regenerated.
32696         * tests/unictype/test-categ_Me.c: Regenerated.
32697         * tests/unictype/test-categ_Mn.c: Regenerated.
32698         * tests/unictype/test-categ_N.c: Regenerated.
32699         * tests/unictype/test-categ_Nd.c: Regenerated.
32700         * tests/unictype/test-categ_Nl.c: Regenerated.
32701         * tests/unictype/test-categ_No.c: Regenerated.
32702         * tests/unictype/test-categ_P.c: Regenerated.
32703         * tests/unictype/test-categ_Pd.c: Regenerated.
32704         * tests/unictype/test-categ_Pe.c: Regenerated.
32705         * tests/unictype/test-categ_Pf.c: Regenerated.
32706         * tests/unictype/test-categ_Pi.c: Regenerated.
32707         * tests/unictype/test-categ_Po.c: Regenerated.
32708         * tests/unictype/test-categ_Ps.c: Regenerated.
32709         * tests/unictype/test-categ_S.c: Regenerated.
32710         * tests/unictype/test-categ_Sk.c: Regenerated.
32711         * tests/unictype/test-categ_Sm.c: Regenerated.
32712         * tests/unictype/test-categ_So.c: Regenerated.
32713         * tests/unictype/test-ctype_alnum.c: Regenerated.
32714         * tests/unictype/test-ctype_alpha.c: Regenerated.
32715         * tests/unictype/test-ctype_graph.c: Regenerated.
32716         * tests/unictype/test-ctype_lower.c: Regenerated.
32717         * tests/unictype/test-ctype_print.c: Regenerated.
32718         * tests/unictype/test-ctype_punct.c: Regenerated.
32719         * tests/unictype/test-ctype_upper.c: Regenerated.
32720         * tests/unictype/test-decdigit.h: Regenerated.
32721         * tests/unictype/test-digit.h: Regenerated.
32722         * tests/unictype/test-numeric.h: Regenerated.
32723         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32724         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32725         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32726         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32727         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32728         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32729         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32730         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32731         * tests/unictype/test-pr_combining.c: Regenerated.
32732         * tests/unictype/test-pr_dash.c: Regenerated.
32733         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32734         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32735         * tests/unictype/test-pr_deprecated.c: Regenerated.
32736         * tests/unictype/test-pr_diacritic.c: Regenerated.
32737         * tests/unictype/test-pr_extender.c: Regenerated.
32738         * tests/unictype/test-pr_format_control.c: Regenerated.
32739         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32740         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32741         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32742         * tests/unictype/test-pr_id_continue.c: Regenerated.
32743         * tests/unictype/test-pr_id_start.c: Regenerated.
32744         * tests/unictype/test-pr_ideographic.c: Regenerated.
32745         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32746         * tests/unictype/test-pr_lowercase.c: Regenerated.
32747         * tests/unictype/test-pr_math.c: Regenerated.
32748         * tests/unictype/test-pr_numeric.c: Regenerated.
32749         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32750         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32751         Regenerated.
32752         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32753         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32754         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32755         * tests/unictype/test-pr_other_math.c: Regenerated.
32756         * tests/unictype/test-pr_punctuation.c: Regenerated.
32757         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32758         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32759         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32760         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32761         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32762         * tests/unictype/test-pr_uppercase.c: Regenerated.
32763         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32764         * tests/unictype/test-pr_xid_start.c: Regenerated.
32765         * tests/unictype/test-pr_zero_width.c: Regenerated.
32766
32767         Update to Unicode 5.1.0.
32768         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32769         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32770         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32771         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32772         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32773         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32774         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32775         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32776         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32777         (nonspacing_table_ind): Update.
32778         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32779
32780         Update to Unicode 5.1.0.
32781         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32782         code transform.
32783         * lib/uniname/uniname.c (unicode_character_name,
32784         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32785         * lib/uniname/uninames.h: Regenerated.
32786         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32787
32788 2009-02-07  Bruno Haible  <bruno@clisp.org>
32789
32790         Merge gen-ctype and gen-lbrk into a single program.
32791         * lib/gen-uni-tables.c: New file, incorporating
32792         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32793         Add directory prefixes to the names of the generated files.
32794         * lib/unictype/gen-ctype.c: Remove file.
32795         * lib/unilbrk/gen-lbrk.c: Remove file.
32796         * modules/gen-uni-tables: New file.
32797         * modules/unictype/gen-ctype: Remove file.
32798         * modules/unilbrk/gen-lbrk: Remove file.
32799
32800 2009-02-07  Bruno Haible  <bruno@clisp.org>
32801
32802         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32803
32804         New module 'unistr/u32-strcoll'.
32805         * modules/unistr/u32-strcoll: New file.
32806         * lib/unistr/u32-strcoll.c: New file.
32807
32808         New module 'unistr/u16-strcoll'.
32809         * modules/unistr/u16-strcoll: New file.
32810         * lib/unistr/u16-strcoll.c: New file.
32811
32812         New module 'unistr/u8-strcoll'.
32813         * modules/unistr/u8-strcoll: New file.
32814         * lib/unistr/u8-strcoll.c: New file.
32815         * lib/unistr/u-strcoll.h: New file.
32816
32817 2009-02-07  Bruno Haible  <bruno@clisp.org>
32818
32819         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32820         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32821         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32822         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32823         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32824         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32825
32826 2009-02-07  Bruno Haible  <bruno@clisp.org>
32827
32828         Make 64-bit clean.
32829         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32830         output_combclass, output_bidi_category, output_decimal_digit,
32831         output_digit, output_numeric, output_mirror, output_scripts,
32832         output_ident_category): Use proper width specifier in format strings.
32833
32834 2009-02-07  Bruno Haible  <bruno@clisp.org>
32835
32836         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32837         failure behaviour.
32838
32839 2009-02-07  Jim Meyering  <meyering@redhat.com>
32840
32841         regex: avoid compilation failure with upcoming gcc-4.4
32842         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32843         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32844         "... error: integer overflow in preprocessor expression".
32845
32846 2009-02-05  Ben Pfaff  <blp@gnu.org>
32847
32848         Fix link errors on Windows when close module is used.
32849         * modules/close: Add $(LIB_CLOSE) to Link section.
32850         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32851         $(LIB_CLOSE) on Windows.
32852
32853 2009-02-05  Jim Meyering  <meyering@redhat.com>
32854
32855         still avoid unused-parameter warnings, but do it cleanly
32856         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32857         (get_fs_usage): Cast to void instead.
32858         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32859         (dev_from_mount_options, read_file_system_list): Cast to void.
32860         Prompted by Bruno Haible.
32861
32862 2009-02-04  Jim Meyering  <meyering@redhat.com>
32863
32864         fsusage.c: correct copyright year
32865         * lib/fsusage.c: Reflect year in which the change is pushed into
32866
32867         avoid misc. warnings
32868         * lib/fsusage.c (UNUSED_PARAM): Define.
32869         (get_fs_usage): Mark parameter "disk" as unused.
32870         * lib/getugroups.c (getgrent): Use "void" in prototype.
32871         * lib/mountlist.c: Mark unused parameters.
32872         (read_file_system_list): Declare a local with "const".
32873         * lib/nanosleep.c (getnow): Declare static.
32874         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32875
32876         dirfd: set errno upon failure
32877         * lib/dirfd.c: Include <errno.h>.
32878         Set errno to ENOTSUP when returning -1.
32879         * modules/dirfd (Depends-on): Add errno.
32880         Suggested by John Kodis <kodis@comcast.net>.
32881
32882 2009-02-01  Bruno Haible  <bruno@clisp.org>
32883
32884         Don't assume sizeof (long) >= sizeof (void *).
32885         * lib/memcmp.c: Include stdint.h.
32886         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32887         srcp2 to 'const byte *'.
32888         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32889         types to uintptr_t.
32890         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32891         * modules/memcmp (Depends-on): Add stdint.
32892         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32893
32894 2009-01-30  Eric Blake  <ebb9@byu.net>
32895
32896         fix more require-before-expand issues
32897         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32898         expand, AC_PROG_AWK.
32899         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32900
32901 2009-01-28  Eric Blake  <ebb9@byu.net>
32902
32903         version-etc: use consistent URL formatting
32904         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32905         Improve formatting.  Use fputs for string without %.
32906
32907 2009-01-28  Jim Meyering  <meyering@redhat.com>
32908
32909         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32910         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32911         "underquoted definition of NAME" from autoconf-2.59.
32912
32913 2009-01-28  Bruno Haible  <bruno@clisp.org>
32914
32915         * doc/gnulib.texi: Add "Obsolete modules" to index.
32916
32917 2009-01-28  Jim Meyering  <meyering@redhat.com>
32918
32919         useless-if-before-free: recognize more variants
32920         * build-aux/useless-if-before-free: Also recognize e.g.,
32921         if (NULL != p) free (p);
32922
32923 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32924
32925         test-getaddrinfo: skip (don't fail) this test when there's no network
32926         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32927         on the presumption that it means you lack network access.
32928
32929 2009-01-26  Jim Meyering  <meyering@redhat.com>
32930
32931         fflush: avoid warnings on modern systems
32932         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32933         pos and result, into scopes where they're used.
32934
32935 2009-01-26  Eric Blake  <ebb9@byu.net>
32936
32937         Silence warning reintroduced by recent extensions patch.
32938         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32939         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32940         autoconf.
32941
32942         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32943         * m4/00gnulib.m4: New file.
32944         * gnulib-tool (func_get_filelist): Always use it.
32945         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32946         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32947
32948 2009-01-25  Bruno Haible  <bruno@clisp.org>
32949
32950         Make test-quotearg work on MacOS X and AIX.
32951         * tests/test-quotearg.sh: New file.
32952         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32953         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32954         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32955         include <libintl.h>.
32956         (fake_locale): Remove variable.
32957         (gettext, dgettext, dcgettext): Remove functions.
32958         (main): Instead of setting a fake locale, set a real locale. Call
32959         textdomain and bindtextdomain.
32960         * modules/quotearg-tests (Files): Add the new files.
32961         (Depends-on): Add gettext, setenv, unsetenv.
32962         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32963         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32964         Augment TESTS_ENVIRONMENT.
32965
32966 2009-01-25  Bruno Haible  <bruno@clisp.org>
32967
32968         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32969         fr_FR.ISO8859-1 locale on MacOS X.
32970         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32971         ja_JP.eucJP locale on MacOS X.
32972         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32973         zh_CN.GB18030 locale on MacOS X.
32974
32975 2009-01-25  Bruno Haible  <bruno@clisp.org>
32976
32977         Avoid link errors on MacOS X 10.3.
32978         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32979         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32980
32981 2009-01-25  Bruno Haible  <bruno@clisp.org>
32982
32983         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32984         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32985         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32986         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32987         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32988         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32989         posix_spawnattr_init, posix_spawnattr_setsigmask,
32990         posix_spawnattr_setflags, posix_spawnattr_destroy.
32991
32992         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32993         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32994         * modules/execute (Files): Remove m4/posix_spawn.m4.
32995         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32996         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32997         posix_spawnattr_init, posix_spawnattr_setsigmask,
32998         posix_spawnattr_setflags, posix_spawnattr_destroy.
32999
33000 2009-01-25  Bruno Haible  <bruno@clisp.org>
33001
33002         * lib/glthread/threadlib.c: Include <stdlib.h>.
33003
33004 2009-01-25  Bruno Haible  <bruno@clisp.org>
33005
33006         * lib/glthread/threadlib.c (dummy): New declaration.
33007
33008 2009-01-25  Bruno Haible  <bruno@clisp.org>
33009
33010         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33011         multibyte characters also for the GB18030 encoding. Don't crash when
33012         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33013
33014 2009-01-25  Bruno Haible  <bruno@clisp.org>
33015
33016         Avoid redefining 'struct random_data' on OSF/1 5.1.
33017         * lib/stdlib.in.h: Include <random.h> if it exists.
33018         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33019         HAVE_RANDOM_H. Include <random.h> when testing whether
33020         'struct random_data' exists.
33021         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33022
33023 2009-01-25  Bruno Haible  <bruno@clisp.org>
33024
33025         Don't install charset.alias on MacOS X >= 10.3.
33026         * lib/localcharset.c (DARWIN7): New macro.
33027         (get_charset_aliases): Hardcode the result for Darwin7.
33028         * modules/localcharset (install-exec-local): Don't install
33029         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33030
33031 2009-01-25  Bruno Haible  <bruno@clisp.org>
33032
33033         Don't install charset.alias on mingw and Cygwin.
33034         * modules/localcharset (install-exec-local): Don't install
33035         charset.alias on mingw and Cygwin, if the file does not yet exist.
33036         The result for these platforms is hardcoded in localcharset.c.
33037
33038 2009-01-25  Bruno Haible  <bruno@clisp.org>
33039
33040         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33041         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33042         before requiring AC_USE_SYSTEM_EXTENSIONS.
33043
33044 2009-01-25  Jim Meyering  <meyering@redhat.com>
33045
33046         c-strtod: avoid warnings
33047         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33048         "assignment discards qualifiers from pointer target type" warnings.
33049
33050 2009-01-24  Bruno Haible  <bruno@clisp.org>
33051
33052         Add support for non-UTF-8 locales on MacOS X.
33053         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33054         canonical encodings. For Darwin 7 and newer, don't map traditional
33055         encodings to UTF-8.
33056         Reported by Vincent Lefevre <vincent@vinc17.org>
33057         at <http://savannah.gnu.org/bugs/?25235>.
33058
33059 2009-01-24  Bruno Haible  <bruno@clisp.org>
33060
33061         * doc/gnulib.texi (Obsolete modules): New section.
33062         Reported by Mike Frysinger <vapier@gentoo.org>.
33063
33064 2009-01-24  Bruno Haible  <bruno@clisp.org>
33065
33066         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33067         (%.dvi): New rule.
33068
33069 2009-01-24  Bruno Haible  <bruno@clisp.org>
33070
33071         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33072         Reported by Eric Blake.
33073
33074 2009-01-24  Bruno Haible  <bruno@clisp.org>
33075
33076         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33077         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33078         Reported by Gary V. Vaughan <gary@gnu.org>.
33079
33080 2009-01-24  Bruno Haible  <bruno@clisp.org>
33081
33082         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33083
33084 2009-01-23  Bruno Haible  <bruno@clisp.org>
33085
33086         Make c-strtod, c-strtold usable in libraries.
33087         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33088         (C_STRTOD): Call strdup instead of xstrdup.
33089         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33090         * modules/c-strtold (Depends-on): Likewise.
33091         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33092         * NEWS: Mention the change.
33093         Reported by Michael Gold <mgold@ncf.ca>.
33094
33095 2009-01-23  Jim Meyering  <meyering@redhat.com>
33096
33097         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33098         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33099         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33100
33101 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33102
33103         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33104         GNU CoreUtils.
33105         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33106         * modules/version-etc (Description): Update.
33107
33108 2009-01-22  Bruno Haible  <bruno@clisp.org>
33109
33110         Cache the C locale object.
33111         * lib/c-strtod.c (c_locale_cache): New variable.
33112         (c_locale): New function.
33113         (C_STRTOD): Use it, and don't call freelocale.
33114         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33115         Suggested by Paolo Bonzini.
33116
33117 2009-01-21  Bruno Haible  <bruno@clisp.org>
33118
33119         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33120         conditions other than overflow.
33121
33122 2009-01-21  Bruno Haible  <bruno@clisp.org>
33123
33124         * lib/c-strtod.c: Include errno.h.
33125         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33126         value from STRTOD_L and STRTOD.
33127
33128 2009-01-21  Bruno Haible  <bruno@clisp.org>
33129         and Jim Meyering  <meyering@redhat.com>
33130
33131         nanosleep: skip configure test (fail it) for apple universal builds
33132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33133         universal builds, assume that nanosleep does not work.
33134         * modules/nanosleep (Depends-on): Add multiarch.
33135
33136         mktime: skip configure test (fail it) for apple universal builds
33137         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33138         universal builds, assume that mktime does not work.
33139         * modules/mktime (Depends-on): Add multiarch.
33140
33141 2009-01-21  Eric Blake  <ebb9@byu.net>
33142
33143         multiarch: avoid expand-before-require warning
33144         * modules/multiarch (configure.ac): Require, rather than expand,
33145         gl_MULTIARCH.
33146         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33147         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33148         enforce that all clients require it.  Partial reversion of
33149         2008-12-29 patch.
33150
33151         error: avoid expand-before-require warning
33152         * modules/errno (configure.ac): Require, rather than expand,
33153         gl_HEADER_ERRNO_H.
33154         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33155         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33156         enforce that all clients require it.
33157
33158         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33159         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33160         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33161         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33162
33163 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33164
33165         Revert:
33166         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33167
33168         regex: do not depend on obsolete modules.
33169         * modules/regex: Remove memcmp and memmove.
33170
33171 2009-01-20  Bruno Haible  <bruno@clisp.org>
33172
33173         Make the 'link' module link on Windows NT 4.
33174         * lib/link.c (_WIN32_WINNT): Don't define.
33175         (CreateHardLinkFuncType): New type.
33176         (CreateHardLinkFunc, initialized): New variables.
33177         (initialize): New function.
33178         (link): Invoke CreateHardLink indirectly through the function pointer.
33179
33180 2009-01-20  Bruno Haible  <bruno@clisp.org>
33181
33182         Fix compilation failure on mingw.
33183         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33184
33185 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33186
33187         * doc/c-strtod.texi: Mention a couple of restrictions.
33188
33189 2009-01-20  Jim Meyering  <meyering@redhat.com>
33190
33191         gettimeofday: move more declarations out of functions
33192         * lib/gettimeofday.c: Move extern declarations of tzset and
33193         gmtime out of containing functions.  Prompted by Bruno Haible.
33194
33195 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33196
33197         regex: do not depend on obsolete modules.
33198         * modules/regex: Remove memcmp and memmove.
33199
33200 2009-01-19  Bruno Haible  <bruno@clisp.org>
33201
33202         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33203         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
33204         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33205         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
33206         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
33207
33208 2009-01-19  Bruno Haible  <bruno@clisp.org>
33209
33210         * tests/test-link.c: Include <errno.h>.
33211         (main): Exit with code 77 when a hard link cannot be created due to
33212         the file system.
33213         * tests/test-link.sh: Skip test when a hard link cannot be created due
33214         to the file system.
33215         Suggested by Eric Blake.
33216
33217 2009-01-19  Martin Lambers  <marlam@marlam.de>
33218
33219         * modules/link-tests: New file.
33220         * tests/test-link.sh: New file.
33221         * tests/test-link.c: New file.
33222
33223 2009-01-19  Eric Blake  <ebb9@byu.net>
33224
33225         doc: mention another function added in cygwin 1.7.0
33226         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
33227         Another new function in cygwin 1.7.
33228
33229 2009-01-19  Bruno Haible  <bruno@clisp.org>
33230
33231         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33232         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
33233         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
33234         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33235         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33236         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
33237         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
33238         * m4/md4.m4 (gl_MD4): Likewise.
33239         * m4/md5.m4 (gl_MD5): Likewise.
33240         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
33241         * m4/sha1.m4 (gl_SHA1): Likewise.
33242         * m4/sha256.m4 (gl_SHA256): Likewise.
33243         * m4/sha512.m4 (gl_SHA512): Likewise.
33244
33245 2009-01-19  Bruno Haible  <bruno@clisp.org>
33246
33247         * modules/uniname/uniname-tests (Depends-on): Add progname.
33248         * tests/uniname/test-uninames.c: Include progname.h.
33249         (main): Call set_program_name.
33250
33251         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
33252         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
33253         (main): Call set_program_name.
33254
33255         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
33256         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
33257         (main): Call set_program_name.
33258
33259         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
33260         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
33261         (main): Call set_program_name.
33262
33263         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
33264         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
33265         (main): Call set_program_name.
33266
33267         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
33268         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
33269         (main): Call set_program_name.
33270
33271         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
33272         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33273         (main): Call set_program_name.
33274
33275         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33276         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33277         (main): Call set_program_name.
33278
33279         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33280         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33281         (main): Call set_program_name.
33282
33283 2009-01-19  Eric Blake  <ebb9@byu.net>
33284
33285         test-unistd: test previous patch
33286         * tests/test-unistd.c: Test *_FILENO macros.
33287
33288         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33289         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33290         Guarantee a definition.
33291         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33292         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33293         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33294         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33295         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33296         Likewise.
33297         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33298         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33299         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33300         Likewise.
33301         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33302         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33303         (STDERR_FILENO): Likewise.
33304         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33305         (STDERR_FILENO): Likewise.
33306         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33307         (STDERR_FILENO): Likewise.
33308         Reported by Elbert Pol.
33309
33310 2009-01-19  Eric Blake  <ebb9@byu.net>
33311
33312         doc: mention more functions added in cygwin 1.7.0
33313         * doc/posix-functions/abort.texi (abort): Update wording related
33314         to cygwin.
33315         * doc/posix-functions/daylight.texi (daylight): Likewise.
33316         * doc/posix-functions/optarg.texi (optarg): Likewise.
33317         * doc/posix-functions/optarg.texi (opterr): Likewise.
33318         * doc/posix-functions/optarg.texi (optind): Likewise.
33319         * doc/posix-functions/optarg.texi (optopt): Likewise.
33320         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
33321         worked in 1.5.x, and was withdrawn in 1.7.
33322         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33323         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
33324         cygwin versions.
33325         * doc/posix-functions/perror.texi (perror): Likewise.
33326         * doc/posix-functions/printf.texi (printf): Likewise.
33327         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
33328         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
33329         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33330         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33331         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33332         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
33333         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33334         Likewise.
33335         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33336         Likewise.
33337         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
33338         this function.
33339         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
33340         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
33341         Likewise.
33342         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
33343         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
33344         * doc/posix-functions/confstr.texi (confstr): Likewise.
33345         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
33346         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
33347         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
33348         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
33349         * doc/posix-functions/fputws.texi (fputws): Likewise.
33350         * doc/posix-functions/fwide.texi (fwide): Likewise.
33351         * doc/posix-functions/getwc.texi (getwc): Likewise.
33352         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
33353         * doc/posix-functions/putwc.texi (putwc): Likewise.
33354         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33355         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
33356         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
33357         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33358         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
33359         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
33360         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
33361         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
33362         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
33363         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
33364         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
33365
33366 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33367
33368         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
33369         * lib/ioctl.c: Include <sys/ioctl.h>.
33370
33371 2009-01-19  Simon Josefsson  <simon@josefsson.org>
33372
33373         * modules/getdate-tests (Depends-on): Add progname.
33374         * tests/test-getdate.c: Use progname module, to avoid link errors
33375         on non-glibc systems.
33376
33377 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33378
33379         * modules/filenamecat-tests (Depends-on): Add progname.
33380         * modules/fstrcmp-tests (Depends-on): Likewise.
33381
33382         * tests/test-filenamecat.c: Use progname module, to avoid link
33383         errors on non-glibc systems.
33384         * tests/test-fstrcmp.c: Likewise.
33385
33386 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33387
33388         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33389         * lib/gettimeofday.c: Move extern declaration out of function.
33390
33391 2009-01-18  Bruno Haible  <bruno@clisp.org>
33392
33393         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33394         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33395         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33396
33397 2009-01-18  Bruno Haible  <bruno@clisp.org>
33398
33399         * lib/strftime.c (MEMPCPY): Remove unused macro.
33400         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33401
33402 2009-01-18  Martin Lambers  <marlam@marlam.de>
33403
33404         New module 'link'.
33405         * lib/unistd.in.h (link): New declaration.
33406         * lib/link.c: New file.
33407         * m4/link.m4: New file.
33408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33409         HAVE_LINK.
33410         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33411         * modules/link: New file.
33412         * doc/posix-functions/link.texi: Mention the new module.
33413
33414 2009-01-18  Bruno Haible  <bruno@clisp.org>
33415
33416         * tests/test-avltree_list.c (main): Call set_program_name.
33417         * tests/test-avltree_oset.c (main): Likewise.
33418         * tests/test-obstack-printf.c: Include progname.h.
33419         (main): Call set_program_name.
33420         * tests/test-quotearg.c: Include progname.h.
33421         (main): Call set_program_name.
33422         * tests/test-xmemdup0.c: Include progname.h.
33423         (main): Call set_program_name.
33424
33425 2009-01-18  Bruno Haible  <bruno@clisp.org>
33426
33427         New module 'alphasort'.
33428         * lib/dirent.in.h (alphasort): New declaration.
33429         * lib/alphasort.c: New file, from glibc with modifications.
33430         * m4/alphasort.m4: New file.
33431         * modules/alphasort: New file.
33432         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33433         HAVE_ALPHASORT.
33434         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33435         HAVE_ALPHASORT.
33436         * doc/posix-functions/alphasort.texi: Mention the new module and the
33437         portability problems.
33438
33439 2009-01-18  Bruno Haible  <bruno@clisp.org>
33440
33441         New module 'scandir'.
33442         * lib/dirent.in.h (scandir): New declaration.
33443         * lib/scandir.c: New file, from glibc with modifications.
33444         * m4/scandir.m4: New file.
33445         * modules/scandir: New file.
33446         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33447         HAVE_SCANDIR.
33448         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33449         HAVE_SCANDIR.
33450         * doc/posix-functions/scandir.texi: Mention the new module and the
33451         portability problems.
33452
33453 2009-01-17  Bruno Haible  <bruno@clisp.org>
33454
33455         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33456         Update documentation.
33457         (func_remove_suffix): Escape all dots in the suffix. Update
33458         documentation.
33459         (func_filter_filelist): Update documentation.
33460         Reported by Ralf Wildenhues.
33461
33462 2009-01-17  Bruno Haible  <bruno@clisp.org>
33463
33464         * modules/dprintf-posix-tests: New file.
33465         * tests/test-dprintf-posix.sh: New file.
33466         * tests/test-dprintf-posix.c: New file.
33467
33468         New modules 'dprintf', 'dprintf-posix'.
33469         * lib/stdio.in.h (dprintf): New declaration.
33470         * lib/dprintf.c: New file.
33471         * m4/dprintf.m4: New file.
33472         * m4/dprintf-posix.m4: New file.
33473         * modules/dprintf: New file.
33474         * modules/dprintf-posix: New file.
33475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33476         HAVE_DPRINTF, REPLACE_DPRINTF.
33477         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33478         HAVE_DPRINTF, REPLACE_DPRINTF.
33479         * doc/posix-functions/dprintf.texi: Mention the new modules.
33480
33481 2009-01-17  Bruno Haible  <bruno@clisp.org>
33482
33483         * modules/vdprintf-posix-tests: New file.
33484         * tests/test-vdprintf-posix.sh: New file.
33485         * tests/test-vdprintf-posix.c: New file.
33486
33487         New modules 'vdprintf', 'vdprintf-posix'.
33488         * lib/stdio.in.h (vdprintf): New declaration.
33489         * lib/vdprintf.c: New file.
33490         * m4/vdprintf.m4: New file.
33491         * m4/vdprintf-posix.m4: New file.
33492         * modules/vdprintf: New file.
33493         * modules/vdprintf-posix: New file.
33494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33495         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33496         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33497         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33498         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33499
33500 2009-01-17  Bruno Haible  <bruno@clisp.org>
33501
33502         Fix replacement of fopen on mingw.
33503         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33504         mingw.
33505
33506 2009-01-17  Bruno Haible  <bruno@clisp.org>
33507
33508         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33509         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33510
33511 2009-01-17  Bruno Haible  <bruno@clisp.org>
33512
33513         Avoid test-fflush2.sh failure on mingw.
33514         * tests/test-fflush2.c: Include binary-io.h.
33515         (main): Put standard input into binary mode.
33516         * modules/fflush-tests (Depends-on): Add binary-io.
33517
33518 2009-01-17  Bruno Haible  <bruno@clisp.org>
33519
33520         * lib/wchar.in.h: In another particular situation, include only the
33521         system's <wchar.h> file.
33522         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33523         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33524         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33525
33526 2009-01-17  Bruno Haible  <bruno@clisp.org>
33527
33528         Support for stripping executables in --enable-relocatable.
33529         * build-aux/install-reloc: Expect one more argument, or an environment
33530         variable RELOC_STRIP_PROG. If set, strip the destination program and
33531         its wrapper.
33532         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33533         RELOC_STRIP_PROG.
33534         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33535         to set RELOCATABLE_STRIP.
33536         * NEWS: Mention the new Makefile requirement.
33537
33538 2009-01-17  Bruno Haible  <bruno@clisp.org>
33539
33540         * build-aux/install-reloc: Remove debugging information left over by
33541         C compiler on MacOS X.
33542
33543 2009-01-17  Bruno Haible  <bruno@clisp.org>
33544
33545         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33546         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33547         _NSGetExecutablePath.
33548
33549 2009-01-16  Jim Meyering  <meyering@redhat.com>
33550
33551         strerror: avoid warnings about discarding "const"
33552         * lib/strerror.c (rpl_strerror): Instead of returning a const
33553         string from each and every "case", use a variable, and add a single
33554         cast after the switch.
33555
33556 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33557
33558         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33559
33560 2009-01-16  Bruno Haible  <bruno@clisp.org>
33561
33562         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33563         array initializer syntax that also works in C++ mode.
33564         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33565
33566 2009-01-16  Jim Meyering  <meyering@redhat.com>
33567
33568         poll: suppress a warning
33569         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33570         to ignore "...unsigned expression < 0 is always false" warnings.
33571
33572 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33573
33574         poll: remove declarations of unused variables
33575         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33576         sockbuf and optlen.
33577
33578 2009-01-15  Bruno Haible  <bruno@clisp.org>
33579
33580         Make fflush-after-ungetc POSIX compliant on BSD systems.
33581         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33582         (clear_ungetc_buffer): Implement also for other systems.
33583         (rpl_fflush): On glibc systems, invoke
33584         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33585         clear_ungetc_buffer after fetching the stream's position, not before.
33586
33587 2009-01-15  Bruno Haible  <bruno@clisp.org>
33588
33589         Make fflush-after-ungetc POSIX compliant on glibc systems.
33590         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33591         after ungetc.
33592         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33593         (rpl_fflush): On glibc systems, simply call the system's fflush
33594         function after clearing the ungetc buffer.
33595         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33596         Instead, lseek only to the end of file, then use the system's fseeko
33597         for the rest. On glibc systems, reset the EOF indicator bit.
33598
33599 2009-01-15  Jim Meyering  <meyering@redhat.com>
33600
33601         openmp.m4: revert quote-adding change, for portability to older autoconf
33602         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33603         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33604         Simon Josefsson noticed the problem when using autoconf-2.61.
33605
33606 2009-01-15  Bruno Haible  <bruno@clisp.org>
33607
33608         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33609         * tests/test-fflush2.c (ASSERT): Always fail.
33610         (main): Add two tests for fflush() after ungetc(), taking into account
33611         the Austin Group's clarification.
33612         Suggested by Eric Blake.
33613
33614 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33615
33616         mktime.m4: remove K&R-style function prototypes
33617         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33618         for the Sun C++ compiler.
33619
33620 2009-01-14  Bruno Haible  <bruno@clisp.org>
33621
33622         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33623         while including <wchar.h>.
33624         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33625         the system's <wchar.h> file.
33626         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33627
33628 2009-01-14  Bruno Haible  <bruno@clisp.org>
33629
33630         * m4/csharp.m4: Don't mention gettext on the serial number line.
33631         * m4/csharpexec.m4: Likewise.
33632         * m4/eaccess.m4: Likewise.
33633         * m4/javaexec.m4: Likewise.
33634         * m4/sig_atomic_t.m4: Likewise.
33635         * m4/tmpdir.m4: Likewise.
33636         * m4/intldir.m4: Bump gettext version.
33637         * m4/lib-ld.m4: Likewise.
33638
33639 2009-01-14  Bruno Haible  <bruno@clisp.org>
33640
33641         * lib/progname.c (set_program_name): Add more comments.
33642         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33643
33644 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33645
33646         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33647         were sys/stat.h does not define it.
33648
33649 2009-01-14  Jim Meyering  <meyering@redhat.com>
33650
33651         many *.m4 files: improve m4 quoting
33652         99% of this change was performed by running the following commands:
33653         git ls-files | grep '\.m4$' | xargs perl -pi \
33654           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33655           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33656           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33657           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33658         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33659         The remainder were to add Copyright dates, increment serial numbers,
33660         undo some changes in comments, exclude m4/intl.m4, and add quotes
33661         around the "1" in ",1" where the unusual spacing prohibited the
33662         above regexps from doing the job.  For more details, see
33663         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33664         * m4/acl.m4: Modified.
33665         * m4/afs.m4: Likewise.
33666         * m4/alloca.m4: Likewise.
33667         * m4/argp.m4: Likewise.
33668         * m4/argz.m4: Likewise.
33669         * m4/atexit.m4: Likewise.
33670         * m4/bison-i18n.m4: Likewise.
33671         * m4/bison.m4: Likewise.
33672         * m4/byteswap.m4: Likewise.
33673         * m4/c-stack.m4: Likewise.
33674         * m4/c-strtod.m4: Likewise.
33675         * m4/calloc.m4: Likewise.
33676         * m4/canonicalize-lgpl.m4: Likewise.
33677         * m4/chown.m4: Likewise.
33678         * m4/clock_time.m4: Likewise.
33679         * m4/codeset.m4: Likewise.
33680         * m4/copy-file.m4: Likewise.
33681         * m4/csharp.m4: Likewise.
33682         * m4/csharpcomp.m4: Likewise.
33683         * m4/csharpexec.m4: Likewise.
33684         * m4/d-ino.m4: Likewise.
33685         * m4/d-type.m4: Likewise.
33686         * m4/dirfd.m4: Likewise.
33687         * m4/double-slash-root.m4: Likewise.
33688         * m4/eaccess.m4: Likewise.
33689         * m4/eealloc.m4: Likewise.
33690         * m4/environ.m4: Likewise.
33691         * m4/errno_h.m4: Likewise.
33692         * m4/euidaccess.m4: Likewise.
33693         * m4/execute.m4: Likewise.
33694         * m4/fatal-signal.m4: Likewise.
33695         * m4/fchdir.m4: Likewise.
33696         * m4/fcntl_h.m4: Likewise.
33697         * m4/fileblocks.m4: Likewise.
33698         * m4/filenamecat.m4: Likewise.
33699         * m4/findprog.m4: Likewise.
33700         * m4/flexmember.m4: Likewise.
33701         * m4/fnmatch.m4: Likewise.
33702         * m4/fopen.m4: Likewise.
33703         * m4/fpending.m4: Likewise.
33704         * m4/fprintf-posix.m4: Likewise.
33705         * m4/free.m4: Likewise.
33706         * m4/frexp.m4: Likewise.
33707         * m4/frexpl.m4: Likewise.
33708         * m4/fsusage.m4: Likewise.
33709         * m4/ftruncate.m4: Likewise.
33710         * m4/gc-camellia.m4: Likewise.
33711         * m4/gc-random.m4: Likewise.
33712         * m4/gc.m4: Likewise.
33713         * m4/getaddrinfo.m4: Likewise.
33714         * m4/getcwd-abort-bug.m4: Likewise.
33715         * m4/getcwd-path-max.m4: Likewise.
33716         * m4/getdate.m4: Likewise.
33717         * m4/getdomainname.m4: Likewise.
33718         * m4/getgroups.m4: Likewise.
33719         * m4/gethostname.m4: Likewise.
33720         * m4/gethrxtime.m4: Likewise.
33721         * m4/getline.m4: Likewise.
33722         * m4/getloadavg.m4: Likewise.
33723         * m4/getndelim2.m4: Likewise.
33724         * m4/getpass.m4: Likewise.
33725         * m4/gettext.m4: Likewise.
33726         * m4/gettime.m4: Likewise.
33727         * m4/gettimeofday.m4: Likewise.
33728         * m4/gnulib-common.m4: Likewise.
33729         * m4/group-member.m4: Likewise.
33730         * m4/host-os.m4: Likewise.
33731         * m4/iconv.m4: Likewise.
33732         * m4/iconv_open.m4: Likewise.
33733         * m4/inet_ntop.m4: Likewise.
33734         * m4/inet_pton.m4: Likewise.
33735         * m4/inline.m4: Likewise.
33736         * m4/intldir.m4: Likewise.
33737         * m4/intlmacosx.m4: Likewise.
33738         * m4/intmax.m4: Likewise.
33739         * m4/intmax_t.m4: Likewise.
33740         * m4/inttypes.m4: Likewise.
33741         * m4/inttypes_h.m4: Likewise.
33742         * m4/inttypes-pri.m4: Likewise.
33743         * m4/isapipe.m4: Likewise.
33744         * m4/isnand.m4: Likewise.
33745         * m4/isnanf.m4: Likewise.
33746         * m4/isnanl.m4: Likewise.
33747         * m4/javacomp.m4: Likewise.
33748         * m4/javaexec.m4: Likewise.
33749         * m4/jm-winsz1.m4: Likewise.
33750         * m4/jm-winsz2.m4: Likewise.
33751         * m4/lchown.m4: Likewise.
33752         * m4/lcmessage.m4: Likewise.
33753         * m4/ldexpl.m4: Likewise.
33754         * m4/lib-ld.m4: Likewise.
33755         * m4/lib-link.m4: Likewise.
33756         * m4/libsigsegv.m4: Likewise.
33757         * m4/link-follow.m4: Likewise.
33758         * m4/localcharset.m4: Likewise.
33759         * m4/locale-fr.m4: Likewise.
33760         * m4/locale-ja.m4: Likewise.
33761         * m4/locale-tr.m4: Likewise.
33762         * m4/locale-zh.m4: Likewise.
33763         * m4/lock.m4: Likewise.
33764         * m4/longlong.m4: Likewise.
33765         * m4/ls-mntd-fs.m4: Likewise.
33766         * m4/lstat.m4: Likewise.
33767         * m4/malloc.m4: Likewise.
33768         * m4/mathl.m4: Likewise.
33769         * m4/mbrtowc.m4: Likewise.
33770         * m4/mbstate_t.m4: Likewise.
33771         * m4/mbswidth.m4: Likewise.
33772         * m4/memchr.m4: Likewise.
33773         * m4/memcmp.m4: Likewise.
33774         * m4/memcpy.m4: Likewise.
33775         * m4/memmem.m4: Likewise.
33776         * m4/memmove.m4: Likewise.
33777         * m4/mempcpy.m4: Likewise.
33778         * m4/memrchr.m4: Likewise.
33779         * m4/memset.m4: Likewise.
33780         * m4/minmax.m4: Likewise.
33781         * m4/mkdir-slash.m4: Likewise.
33782         * m4/mkdtemp.m4: Likewise.
33783         * m4/mktime.m4: Likewise.
33784         * m4/mmap-anon.m4: Likewise.
33785         * m4/mountlist.m4: Likewise.
33786         * m4/nanosleep.m4: Likewise.
33787         * m4/nls.m4: Likewise.
33788         * m4/nocrash.m4: Likewise.
33789         * m4/open.m4: Likewise.
33790         * m4/openat.m4: Likewise.
33791         * m4/openmp.m4: Likewise.
33792         * m4/pathmax.m4: Likewise.
33793         * m4/perl.m4: Likewise.
33794         * m4/physmem.m4: Likewise.
33795         * m4/pipe.m4: Likewise.
33796         * m4/po.m4: Likewise.
33797         * m4/poll.m4: Likewise.
33798         * m4/posixtm.m4: Likewise.
33799         * m4/posixver.m4: Likewise.
33800         * m4/printf-frexp.m4: Likewise.
33801         * m4/printf-frexpl.m4: Likewise.
33802         * m4/printf-posix.m4: Likewise.
33803         * m4/printf-posix-rpl.m4: Likewise.
33804         * m4/printf.m4: Likewise.
33805         * m4/progtest.m4: Likewise.
33806         * m4/putenv.m4: Likewise.
33807         * m4/readline.m4: Likewise.
33808         * m4/readlink.m4: Likewise.
33809         * m4/readutmp.m4: Likewise.
33810         * m4/realloc.m4: Likewise.
33811         * m4/regex.m4: Likewise.
33812         * m4/relocatable.m4: Likewise.
33813         * m4/relocatable-lib.m4: Likewise.
33814         * m4/rename-dest-slash.m4: Likewise.
33815         * m4/rename.m4: Likewise.
33816         * m4/rmdir-errno.m4: Likewise.
33817         * m4/rmdir.m4: Likewise.
33818         * m4/roundf.m4: Likewise.
33819         * m4/roundl.m4: Likewise.
33820         * m4/rpmatch.m4: Likewise.
33821         * m4/save-cwd.m4: Likewise.
33822         * m4/selinux-selinux-h.m4: Likewise.
33823         * m4/setenv.m4: Likewise.
33824         * m4/settime.m4: Likewise.
33825         * m4/sig2str.m4: Likewise.
33826         * m4/sig_atomic_t.m4: Likewise.
33827         * m4/signalblocking.m4: Likewise.
33828         * m4/signbit.m4: Likewise.
33829         * m4/sigpipe.m4: Likewise.
33830         * m4/sockets.m4: Likewise.
33831         * m4/sockpfaf.m4: Likewise.
33832         * m4/st_dm_mode.m4: Likewise.
33833         * m4/stat-time.m4: Likewise.
33834         * m4/stdbool.m4: Likewise.
33835         * m4/stdint.m4: Likewise.
33836         * m4/stdint_h.m4: Likewise.
33837         * m4/stpcpy.m4: Likewise.
33838         * m4/stpncpy.m4: Likewise.
33839         * m4/strcase.m4: Likewise.
33840         * m4/strchrnul.m4: Likewise.
33841         * m4/strcspn.m4: Likewise.
33842         * m4/strdup.m4: Likewise.
33843         * m4/strftime.m4: Likewise.
33844         * m4/strndup.m4: Likewise.
33845         * m4/strnlen.m4: Likewise.
33846         * m4/strpbrk.m4: Likewise.
33847         * m4/strptime.m4: Likewise.
33848         * m4/strsep.m4: Likewise.
33849         * m4/strtod.m4: Likewise.
33850         * m4/strtoimax.m4: Likewise.
33851         * m4/strtok_r.m4: Likewise.
33852         * m4/strtol.m4: Likewise.
33853         * m4/strtoll.m4: Likewise.
33854         * m4/strtoul.m4: Likewise.
33855         * m4/strtoull.m4: Likewise.
33856         * m4/strtoumax.m4: Likewise.
33857         * m4/strverscmp.m4: Likewise.
33858         * m4/threadlib.m4: Likewise.
33859         * m4/timegm.m4: Likewise.
33860         * m4/tm_gmtoff.m4: Likewise.
33861         * m4/tmpdir.m4: Likewise.
33862         * m4/tmpfile.m4: Likewise.
33863         * m4/tzset.m4: Likewise.
33864         * m4/uintmax_t.m4: Likewise.
33865         * m4/unlinkdir.m4: Likewise.
33866         * m4/unlocked-io.m4: Likewise.
33867         * m4/uptime.m4: Likewise.
33868         * m4/userspec.m4: Likewise.
33869         * m4/utimbuf.m4: Likewise.
33870         * m4/utime.m4: Likewise.
33871         * m4/utimes-null.m4: Likewise.
33872         * m4/utimes.m4: Likewise.
33873         * m4/vararrays.m4: Likewise.
33874         * m4/vasnprintf.m4: Likewise.
33875         * m4/vfprintf-posix.m4: Likewise.
33876         * m4/vprintf-posix.m4: Likewise.
33877         * m4/wait-process.m4: Likewise.
33878         * m4/wchar_t.m4: Likewise.
33879         * m4/wint_t.m4: Likewise.
33880         * m4/write-any-file.m4: Likewise.
33881         * m4/yield.m4: Likewise.
33882
33883 2009-01-13  Bruno Haible  <bruno@clisp.org>
33884
33885         Avoid test-copy-file.sh failures when ACL support insufficient.
33886         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33887         TESTS_ENVIRONMENT.
33888         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33889         Reported by Jim Meyering.
33890
33891 2009-01-13  Bruno Haible  <bruno@clisp.org>
33892
33893         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33894         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33895         * modules/unistdio/u8-printf-parse (Files): Likewise.
33896         * modules/unistdio/u32-printf-parse (Files): Likewise.
33897         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33898
33899 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33900
33901         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33902         and m4/inttypes_h.m4 too.
33903
33904 2009-01-12  Eric Blake  <ebb9@byu.net>
33905
33906         tests: IRIX 6.2 cc can't compile -0.0 into .data
33907         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33908         rather than at compile-time.
33909         * tests/test-floorl.c (minus_zero): Likewise.
33910         * tests/test-frexpl.c (minus_zero): Likewise.
33911         * tests/test-isnan.c (minus_zerol): Likewise.
33912         * tests/test-isnanl.h (minus_zero): Likewise.
33913         * tests/test-ldexpl.c (minus_zero): Likewise.
33914         * tests/test-roundl.c (minus_zero): Likewise.
33915         * tests/test-signbit.c (minus_zerol): Likewise.
33916         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33917         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33918         * tests/test-truncl.c (minus_zero): Likewise.
33919         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33920         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33921         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33922
33923 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33924
33925         regex: fix glibc bug 9697
33926         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33927         handling.
33928
33929 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33930
33931         regex: fix glibc bug 697
33932         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33933         being NULL also if there are no backreferences.
33934
33935 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33936
33937         regex: merge glibc changes
33938         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33939         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33940         re_string_skip_chars, re_string_reconstruct): Likewise.
33941         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33942
33943 2009-01-07  Jim Meyering  <meyering@redhat.com>
33944
33945         poll: filter through cppi
33946         * lib/poll.c: Indent cpp directives to reflect nesting.
33947
33948 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33949
33950         poll: don't return uninitialized
33951         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33952
33953 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33954
33955         avoid compile failure on AIX 6.1
33956         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33957         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33958
33959 2009-01-04  Jim Meyering  <meyering@redhat.com>
33960
33961         remove duplicate inclusion of <stdio.h>
33962         * tests/test-fprintf-posix.c: Likewise.
33963         * tests/test-printf-posix.c: Likewise.
33964         * tests/test-snprintf-posix.c: Likewise.
33965         * tests/test-sprintf-posix.c: Likewise.
33966         * tests/test-vasprintf-posix.c: Likewise.
33967         * tests/test-vfprintf-posix.c: Likewise.
33968         * tests/test-vprintf-posix.c: Likewise.
33969         * tests/test-vsnprintf-posix.c: Likewise.
33970         * tests/test-vsprintf-posix.c: Likewise.
33971
33972 2009-01-03  Jim Meyering  <meyering@redhat.com>
33973
33974         gnulib-tool: fix sed-based filtering
33975         * gnulib-tool (func_filter_filelist): Remove extra backslash
33976         in sed_fff_filter definition.
33977
33978 2009-01-02  Jim Meyering  <meyering@redhat.com>
33979
33980         strftime: avoid compilation failure on Solaris 2.6
33981         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33982         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33983         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33984         be available.  Reported by Tom G. Christensen.  Details in
33985         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33986
33987 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33988             Bruno Haible  <bruno@clisp.org>
33989
33990         Speed up gnulib-tool by doing more string processing through shell
33991         built-ins.
33992         * gnulib-tool (fast_func_append): New variable.
33993         (func_remove_prefix, func_remove_suffix): New functions.
33994         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33995         (func_filter_filelist): New function.
33996         (func_get_dependencies): Use func_remove_suffix instead of sed.
33997         (func_get_automake_snippet): Use func_filter_filelist instead of a
33998         subshell and sed invocation.
33999
34000 2009-01-01  Bruno Haible  <bruno@clisp.org>
34001
34002         Fix a security bug.
34003         * gnulib-tool (func_import, import, update): Don't allow the characters
34004         '"', '$', '`', '\' in macro arguments that become part of commands that
34005         are evaluated.
34006
34007 2009-01-01  Bruno Haible  <bruno@clisp.org>
34008
34009         * gnulib-tool (func_reset_sigpipe): Add more comments.
34010
34011 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34012
34013         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34014         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34015         already know the answer.
34016
34017 2009-01-01  Jim Meyering  <meyering@redhat.com>
34018
34019         * lib/version-etc.c (version_etc_va): Update copyright year.
34020
34021 2008-12-30  Bruno Haible  <bruno@clisp.org>
34022
34023         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34024         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34025         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34026
34027 2008-12-29  Eric Blake  <ebb9@byu.net>
34028
34029         multiarch: avoid autoconf AC_REQUIRE bug
34030         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34031         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34032         2.63 and older.
34033         Reported by Bruno Haible, and analyzed in
34034         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34035
34036 2008-12-29  Bruno Haible  <bruno@clisp.org>
34037
34038         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34039         files in subdirectories correctly.
34040         Reported by Ralf Wildenhues.
34041
34042 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34043
34044         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34045         rather than 'join FILE -', for Solaris join.
34046
34047 2008-12-29  Bruno Haible  <bruno@clisp.org>
34048
34049         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34050         quoting.
34051         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34052         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34053         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34054         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34055         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34056         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34057         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34058         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34059         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34060         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34061         * m4/nls.m4 (AM_NLS): Likewise.
34062         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34063         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34064         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34065         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34066         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34067         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34068         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34069         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34070         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34071         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34072         * m4/xsize.m4 (gl_XSIZE): Likewise.
34073         Suggested by Jim Meyering.
34074
34075 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34076
34077         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34078         * lib/parse-duration.c: use a switch instead of cascading if's.
34079
34080 2008-12-29  Eric Blake  <ebb9@byu.net>
34081
34082         wchar.h: supply WEOF on Irix 5.3
34083         * lib/wchar.in.h (wint_t): Also supply WEOF.
34084         * lib/wctype.in.h (wint_t): Likewise.
34085         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34086         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34087         Reported by Tom G. Christensen.
34088
34089 2008-12-26  Bruno Haible  <bruno@clisp.org>
34090
34091         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34092         i486, i586, i686.
34093
34094 2008-12-26  Bruno Haible  <bruno@clisp.org>
34095
34096         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34097
34098 2008-12-26  Bruno Haible  <bruno@clisp.org>
34099
34100         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34101         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34102         not __STDC_CONSTANT_MACROS.
34103         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34104
34105 2008-12-25  Bruno Haible  <bruno@clisp.org>
34106
34107         Add support for universal builds to vasnprintf.
34108         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34109         universal builds, guess no.
34110         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34111         * modules/vasprintf-posix (Depends-on): Likewise.
34112         * modules/fprintf-posix (Depends-on): Likewise.
34113         * modules/vfprintf-posix (Depends-on): Likewise.
34114         * modules/snprintf-posix (Depends-on): Likewise.
34115         * modules/vsnprintf-posix (Depends-on): Likewise.
34116         * modules/sprintf-posix (Depends-on): Likewise.
34117         * modules/vsprintf-posix (Depends-on): Likewise.
34118         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34119         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34120         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34121         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34122         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34123         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34124         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34125
34126         Add support for universal builds to <inttypes.h>.
34127         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34128         _SCNu64_PREFIX): In Apple
34129         universal builds, define directly, using _LP64.
34130         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34131         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34132         * modules/inttypes (Depends-on): Add multiarch.
34133         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34134
34135         Add support for universal builds to <stdint.h>.
34136         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34137         universal builds, define directly, using _LP64.
34138         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34139         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34140         and size_t.
34141         * modules/stdint (Depends-on): Add multiarch.
34142         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34143
34144         New module 'multiarch'.
34145         * modules/multiarch: New file.
34146         * m4/multiarch.m4: New file.
34147
34148 2008-12-25  Bruno Haible  <bruno@clisp.org>
34149
34150         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34151
34152 2008-12-25  Bruno Haible  <bruno@clisp.org>
34153
34154         * modules/btowc (License): Relicense under LGPLv2+.
34155         * modules/mbsinit (License): Likewise.
34156         * modules/mbrtowc (License): Likewise.
34157         * modules/wcrtomb (License): Likewise.
34158         * modules/streq (License): Likewise.
34159         Reported by David Lutterkort <lutter@redhat.com>.
34160
34161 2008-12-23  Bruno Haible  <bruno@clisp.org>
34162
34163         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34164
34165 2008-12-23  Bruno Haible  <bruno@clisp.org>
34166
34167         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34168         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34169         GETADDRINFO_LIB, not in LIBS.
34170         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34171         * modules/canon-host (Link): Likewise.
34172         * NEWS: Mention the change.
34173         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34174         GETADDRINFO_LIB.
34175
34176 2008-12-22  Bruno Haible  <bruno@clisp.org>
34177
34178         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34179         * doc/posix-functions/iswalpha_l.texi: Likewise.
34180         * doc/posix-functions/iswblank_l.texi: Likewise.
34181         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34182         * doc/posix-functions/iswctype_l.texi: Likewise.
34183         * doc/posix-functions/iswdigit_l.texi: Likewise.
34184         * doc/posix-functions/iswgraph_l.texi: Likewise.
34185         * doc/posix-functions/iswlower_l.texi: Likewise.
34186         * doc/posix-functions/iswprint_l.texi: Likewise.
34187         * doc/posix-functions/iswpunct_l.texi: Likewise.
34188         * doc/posix-functions/iswspace_l.texi: Likewise.
34189         * doc/posix-functions/iswupper_l.texi: Likewise.
34190         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34191         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34192         * doc/posix-functions/open_wmemstream.texi: Likewise.
34193         * doc/posix-functions/swscanf.texi: Likewise.
34194         * doc/posix-functions/towctrans_l.texi: Likewise.
34195         * doc/posix-functions/towlower.texi: Likewise.
34196         * doc/posix-functions/towlower_l.texi: Likewise.
34197         * doc/posix-functions/towupper.texi: Likewise.
34198         * doc/posix-functions/towupper_l.texi: Likewise.
34199         * doc/posix-functions/vfwprintf.texi: Likewise.
34200         * doc/posix-functions/vfwscanf.texi: Likewise.
34201         * doc/posix-functions/vswscanf.texi: Likewise.
34202         * doc/posix-functions/vwprintf.texi: Likewise.
34203         * doc/posix-functions/vwscanf.texi: Likewise.
34204         * doc/posix-functions/wcpcpy.texi: Likewise.
34205         * doc/posix-functions/wcpncpy.texi: Likewise.
34206         * doc/posix-functions/wcscasecmp.texi: Likewise.
34207         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
34208         * doc/posix-functions/wcscoll_l.texi: Likewise.
34209         * doc/posix-functions/wcsdup.texi: Likewise.
34210         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34211         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
34212         * doc/posix-functions/wcsnlen.texi: Likewise.
34213         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34214         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34215         * doc/posix-functions/wctrans_l.texi: Likewise.
34216         * doc/posix-functions/wctype_l.texi: Likewise.
34217         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
34218         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
34219         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
34220         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
34221         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
34222         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
34223         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
34224         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
34225         * doc/glibc-functions/wcschrnul.texi: Likewise.
34226         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34227         * doc/glibc-functions/wcstod_l.texi: Likewise.
34228         * doc/glibc-functions/wcstof_l.texi: Likewise.
34229         * doc/glibc-functions/wcstol_l.texi: Likewise.
34230         * doc/glibc-functions/wcstold_l.texi: Likewise.
34231         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34232         * doc/glibc-functions/wcstoq.texi: Likewise.
34233         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34234         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34235         * doc/glibc-functions/wcstouq.texi: Likewise.
34236         * doc/glibc-functions/wmempcpy.texi: Likewise.
34237
34238 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
34239             Eric Blake  <ebb9@byu.net>
34240             Paolo Bonzini  <bonzini@gnu.org>
34241             Bruno Haible  <bruno@clisp.org>
34242
34243         Make c-stack work on Haiku.
34244         * lib/c-stack.c (SA_ONSTACK): Define fallback.
34245         (c_stack_action): Use SA_ONSTACK flag.
34246
34247 2008-12-22  Bruno Haible  <bruno@clisp.org>
34248
34249         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
34250
34251 2008-12-22  Bruno Haible  <bruno@clisp.org>
34252
34253         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
34254         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
34255         being overridden.
34256         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
34257         New macros.
34258         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
34259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
34260         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
34261         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
34262
34263 2008-12-22  Bruno Haible  <bruno@clisp.org>
34264
34265         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
34266         from test code.
34267
34268 2008-12-22  Eric Blake  <ebb9@byu.net>
34269
34270         Avoid gcc warnings on cygwin.
34271         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
34272         Avoid unused variable.
34273         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34274         Likewise.
34275
34276 2008-12-22  Bruno Haible  <bruno@clisp.org>
34277
34278         Remove HAVE_MBRTOWC conditionals.
34279         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34280         (mbscasecmp): Assume mbrtowc function.
34281         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34282         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34283         * lib/mbschr.c: Include mbuiter.h unconditionally.
34284         (mbschr): Assume mbrtowc function.
34285         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34286         (mbscspn): Assume mbrtowc function.
34287         * lib/mbslen.c: Include mbuiter.h unconditionally.
34288         (mbslen): Assume mbrtowc function.
34289         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34290         (mbsncasecmp): Assume mbrtowc function.
34291         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34292         (mbsnlen): Assume mbrtowc function.
34293         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34294         (mbspbrk): Assume mbrtowc function.
34295         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34296         (mbspcasecmp): Assume mbrtowc function.
34297         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34298         (mbsrchr): Assume mbrtowc function.
34299         * lib/mbssep.c: Include mbuiter.h unconditionally.
34300         (mbssep): Assume mbrtowc function.
34301         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34302         (mbsspn): Assume mbrtowc function.
34303         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34304         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34305         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34306         (mbstok_r): Assume mbrtowc function.
34307         * lib/propername.c: Include mbuiter.h unconditionally.
34308         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34309         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
34310         (trim2): Assume mbrtowc function.
34311         * lib/mbswidth.c (mbsinit): Remove fallback definition.
34312         (mbsnwidth): Assume mbrtowc function.
34313         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34314         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34315         fallback definitions.
34316         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34317
34318 2008-12-22  Bruno Haible  <bruno@clisp.org>
34319
34320         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
34321
34322 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
34323
34324         * modules/regex: Request emulations for the mb*/wc* functions we need.
34325         * m4/regex.m4: Don't look for those functions here.
34326         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
34327
34328 2008-12-22  Bruno Haible  <bruno@clisp.org>
34329
34330         * modules/fnmatch (Depends-on): Remove duplicated dependency.
34331
34332 2008-12-21  Bruno Haible  <bruno@clisp.org>
34333
34334         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
34335         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
34336         (Include): Remove conditionalization.
34337         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
34338         (Include): Remove conditionalization.
34339         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
34340         (Include): Remove conditionalization.
34341         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
34342         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34343         * NEWS: Mention the change.
34344         Reported by Alan Hourihane <alanh@fairlite.co.uk>
34345         via Sergey Poznyakoff <gray@gnu.org.ua>.
34346
34347 2008-12-21  Bruno Haible  <bruno@clisp.org>
34348
34349         * MODULES.html.sh (Extended multibyte and wide character utilities
34350         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
34351         wcrtomb, wcsrtombs.
34352         (Support for systems lacking POSIX:2008): Add accept, bind, close,
34353         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
34354         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
34355         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
34356
34357 2008-12-21  Bruno Haible  <bruno@clisp.org>
34358
34359         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
34360
34361 2008-12-21  Bruno Haible  <bruno@clisp.org>
34362
34363         * modules/wcsnrtombs-tests: New file.
34364         * tests/test-wcsnrtombs1.sh: New file.
34365         * tests/test-wcsnrtombs2.sh: New file.
34366         * tests/test-wcsnrtombs3.sh: New file.
34367         * tests/test-wcsnrtombs4.sh: New file.
34368         * tests/test-wcsnrtombs.c: New file.
34369
34370         New module 'wcsnrtombs'.
34371         * lib/wchar.in.h (wcsnrtombs): New declaration.
34372         * lib/wcsnrtombs.c: New file.
34373         * lib/wcsrtombs-state.c: New file.
34374         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
34375         (internal_state): Remove variable.
34376         * m4/wcsnrtombs.m4: New file.
34377         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34378         compilation units.
34379         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34380         HAVE_WCSNRTOMBS.
34381         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34382         HAVE_WCSNRTOMBS.
34383         * modules/wcsnrtombs: New file.
34384         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34385         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34386
34387 2008-12-21  Bruno Haible  <bruno@clisp.org>
34388
34389         * modules/wcsrtombs-tests: New file.
34390         * tests/test-wcsrtombs1.sh: New file.
34391         * tests/test-wcsrtombs2.sh: New file.
34392         * tests/test-wcsrtombs3.sh: New file.
34393         * tests/test-wcsrtombs4.sh: New file.
34394         * tests/test-wcsrtombs.c: New file.
34395
34396         New module 'wcsrtombs'.
34397         * lib/wchar.in.h (wcsrtombs): New declaration.
34398         * lib/wcsrtombs.c: New file.
34399         * m4/wcsrtombs.m4: New file.
34400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34401         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34402         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34403         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34404         * modules/wcsrtombs: New file.
34405         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34406         bugs.
34407
34408 2008-12-21  Bruno Haible  <bruno@clisp.org>
34409
34410         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34411         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34412         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34413         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34414         if not correct.
34415         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34416         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34417         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34418         m4/locale-zh.m4, m4/codeset.m4.
34419         * doc/posix-functions/wcrtomb.texi: Document the bug.
34420
34421 2008-12-21  Bruno Haible  <bruno@clisp.org>
34422
34423         Work around a btowc() bug on IRIX 6.5.
34424         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34425         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34426         REPLACE_WTOBC if not.
34427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34428         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34429         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34430
34431 2008-12-21  Bruno Haible  <bruno@clisp.org>
34432
34433         * modules/wcrtomb-tests: New file.
34434         * tests/test-wcrtomb.sh: New file.
34435         * tests/test-wcrtomb.c: New file.
34436
34437         New module 'wcrtomb'.
34438         * lib/wchar.in.h (wcrtomb): New declaration.
34439         * lib/wcrtomb.c: New file.
34440         * m4/wcrtomb.m4: New file.
34441         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34442         HAVE_WCRTOMB.
34443         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34444         HAVE_WCRTOMB.
34445         * modules/wcrtomb: New file.
34446         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34447
34448 2008-12-21  Bruno Haible  <bruno@clisp.org>
34449
34450         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34451         * modules/mbsrtowcs (Files): Likewise.
34452         * modules/wctob (Files): Likewise.
34453         * modules/c-strcase-tests (Files): Likewise.
34454         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34455         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34456         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34457         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34458         * modules/vasnprintf-posix-tests (Files): Likewise.
34459
34460 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34461
34462         gitlog-to-changelog: pass all command-line arguments to git-log
34463         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34464         it is sometimes convenient to filter the commits in various ways.
34465         gitlog-to-changelog only allows --since to specify a start date,
34466         but git-log itself supports many other filtering mechanisms.
34467         At the moment, I want to filter by branch name.  Rather than
34468         adding a --branch option to gitlog-to-changelog, it seems more
34469         flexible to simply pass all options directly to git-log and let
34470         git do the work.  Notice that this effectively makes --since a
34471         redundant option for gitlog-to-changelog, but removing it would
34472         require current usage to change since calls would then require
34473         an additional '--'.
34474
34475 2008-12-21  Bruno Haible  <bruno@clisp.org>
34476
34477         * modules/mbsnrtowcs-tests: New file.
34478         * tests/test-mbsnrtowcs1.sh: New file.
34479         * tests/test-mbsnrtowcs2.sh: New file.
34480         * tests/test-mbsnrtowcs3.sh: New file.
34481         * tests/test-mbsnrtowcs4.sh: New file.
34482         * tests/test-mbsnrtowcs.c: New file.
34483
34484         New module 'mbsnrtowcs'.
34485         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34486         * lib/mbsnrtowcs.c: New file.
34487         * lib/mbsrtowcs-state.c: New file.
34488         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34489         (internal_state): Remove variable.
34490         * m4/mbsnrtowcs.m4: New file.
34491         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34492         compilation units.
34493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34494         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34495         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34496         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34497         * modules/mbsnrtowcs: New file.
34498         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34499         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34500         portability problem.
34501
34502 2008-12-21  Bruno Haible  <bruno@clisp.org>
34503
34504         Work around mbsrtowcs bug.
34505         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34506         (gl_FUNC_MBSRTOWCS): Invoke it.
34507         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34508         m4/locale-zh.m4.
34509         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34510
34511 2008-12-21  Bruno Haible  <bruno@clisp.org>
34512
34513         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34514
34515 2008-12-21  Bruno Haible  <bruno@clisp.org>
34516
34517         Update doc for AIX.
34518         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34519         16-bit wchar_t type.
34520         * doc/posix-functions/btowc.texi: Likewise.
34521         * doc/posix-functions/fgetwc.texi: Likewise.
34522         * doc/posix-functions/fgetws.texi: Likewise.
34523         * doc/posix-functions/fputwc.texi: Likewise.
34524         * doc/posix-functions/fputws.texi: Likewise.
34525         * doc/posix-functions/fwide.texi: Likewise.
34526         * doc/posix-functions/fwprintf.texi: Likewise.
34527         * doc/posix-functions/fwscanf.texi: Likewise.
34528         * doc/posix-functions/getwchar.texi: Likewise.
34529         * doc/posix-functions/getwc.texi: Likewise.
34530         * doc/posix-functions/iswalnum.texi: Likewise.
34531         * doc/posix-functions/iswalpha.texi: Likewise.
34532         * doc/posix-functions/iswblank.texi: Likewise.
34533         * doc/posix-functions/iswcntrl.texi: Likewise.
34534         * doc/posix-functions/iswctype.texi: Likewise.
34535         * doc/posix-functions/iswdigit.texi: Likewise.
34536         * doc/posix-functions/iswgraph.texi: Likewise.
34537         * doc/posix-functions/iswlower.texi: Likewise.
34538         * doc/posix-functions/iswprint.texi: Likewise.
34539         * doc/posix-functions/iswpunct.texi: Likewise.
34540         * doc/posix-functions/iswspace.texi: Likewise.
34541         * doc/posix-functions/iswupper.texi: Likewise.
34542         * doc/posix-functions/iswxdigit.texi: Likewise.
34543         * doc/posix-functions/mbrtowc.texi: Likewise.
34544         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34545         * doc/posix-functions/mbstowcs.texi: Likewise.
34546         * doc/posix-functions/mbtowc.texi: Likewise.
34547         * doc/posix-functions/putwchar.texi: Likewise.
34548         * doc/posix-functions/putwc.texi: Likewise.
34549         * doc/posix-functions/swprintf.texi: Likewise.
34550         * doc/posix-functions/tolower.texi: Likewise.
34551         * doc/posix-functions/toupper.texi: Likewise.
34552         * doc/posix-functions/towctrans.texi: Likewise.
34553         * doc/posix-functions/ungetwc.texi: Likewise.
34554         * doc/posix-functions/vswprintf.texi: Likewise.
34555         * doc/posix-functions/wcrtomb.texi: Likewise.
34556         * doc/posix-functions/wcscat.texi: Likewise.
34557         * doc/posix-functions/wcschr.texi: Likewise.
34558         * doc/posix-functions/wcscmp.texi: Likewise.
34559         * doc/posix-functions/wcscoll.texi: Likewise.
34560         * doc/posix-functions/wcscpy.texi: Likewise.
34561         * doc/posix-functions/wcscspn.texi: Likewise.
34562         * doc/posix-functions/wcsftime.texi: Likewise.
34563         * doc/posix-functions/wcslen.texi: Likewise.
34564         * doc/posix-functions/wcsncat.texi: Likewise.
34565         * doc/posix-functions/wcsncmp.texi: Likewise.
34566         * doc/posix-functions/wcsncpy.texi: Likewise.
34567         * doc/posix-functions/wcspbrk.texi: Likewise.
34568         * doc/posix-functions/wcsrchr.texi: Likewise.
34569         * doc/posix-functions/wcsrtombs.texi: Likewise.
34570         * doc/posix-functions/wcsspn.texi: Likewise.
34571         * doc/posix-functions/wcsstr.texi: Likewise.
34572         * doc/posix-functions/wcstod.texi: Likewise.
34573         * doc/posix-functions/wcstof.texi: Likewise.
34574         * doc/posix-functions/wcstoimax.texi: Likewise.
34575         * doc/posix-functions/wcstok.texi: Likewise.
34576         * doc/posix-functions/wcstold.texi: Likewise.
34577         * doc/posix-functions/wcstoll.texi: Likewise.
34578         * doc/posix-functions/wcstol.texi: Likewise.
34579         * doc/posix-functions/wcstombs.texi: Likewise.
34580         * doc/posix-functions/wcstoull.texi: Likewise.
34581         * doc/posix-functions/wcstoul.texi: Likewise.
34582         * doc/posix-functions/wcstoumax.texi: Likewise.
34583         * doc/posix-functions/wcswidth.texi: Likewise.
34584         * doc/posix-functions/wcsxfrm.texi: Likewise.
34585         * doc/posix-functions/wctob.texi: Likewise.
34586         * doc/posix-functions/wctomb.texi: Likewise.
34587         * doc/posix-functions/wctrans.texi: Likewise.
34588         * doc/posix-functions/wctype.texi: Likewise.
34589         * doc/posix-functions/wcwidth.texi: Likewise.
34590         * doc/posix-functions/wmemchr.texi: Likewise.
34591         * doc/posix-functions/wmemcmp.texi: Likewise.
34592         * doc/posix-functions/wmemcpy.texi: Likewise.
34593         * doc/posix-functions/wmemmove.texi: Likewise.
34594         * doc/posix-functions/wmemset.texi: Likewise.
34595         * doc/posix-functions/wprintf.texi: Likewise.
34596         * doc/posix-functions/wscanf.texi: Likewise.
34597
34598 2008-12-21  Bruno Haible  <bruno@clisp.org>
34599
34600         Update doc for HP-UX 11.11.
34601         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34602         in HP-UX version 11.00, not in all versions of HP-UX 11.
34603         * doc/posix-functions/fwide.texi: Likewise.
34604         * doc/posix-functions/fwprintf.texi: Likewise.
34605         * doc/posix-functions/fwscanf.texi: Likewise.
34606         * doc/posix-functions/inet_ntop.texi: Likewise.
34607         * doc/posix-functions/inet_pton.texi: Likewise.
34608         * doc/posix-functions/mbrlen.texi: Likewise.
34609         * doc/posix-functions/mbrtowc.texi: Likewise.
34610         * doc/posix-functions/mbsinit.texi: Likewise.
34611         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34612         * doc/posix-functions/swprintf.texi: Likewise.
34613         * doc/posix-functions/swscanf.texi: Likewise.
34614         * doc/posix-functions/towctrans.texi: Likewise.
34615         * doc/posix-functions/vfwprintf.texi: Likewise.
34616         * doc/posix-functions/vswprintf.texi: Likewise.
34617         * doc/posix-functions/vwprintf.texi: Likewise.
34618         * doc/posix-functions/wcrtomb.texi: Likewise.
34619         * doc/posix-functions/wcsrtombs.texi: Likewise.
34620         * doc/posix-functions/wcsstr.texi: Likewise.
34621         * doc/posix-functions/wctob.texi: Likewise.
34622         * doc/posix-functions/wctrans.texi: Likewise.
34623         * doc/posix-functions/wmemchr.texi: Likewise.
34624         * doc/posix-functions/wmemcmp.texi: Likewise.
34625         * doc/posix-functions/wmemcpy.texi: Likewise.
34626         * doc/posix-functions/wmemmove.texi: Likewise.
34627         * doc/posix-functions/wmemset.texi: Likewise.
34628         * doc/posix-functions/wprintf.texi: Likewise.
34629         * doc/posix-functions/wscanf.texi: Likewise.
34630
34631 2008-12-21  Bruno Haible  <bruno@clisp.org>
34632
34633         Work around a portability problem.
34634         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34635         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34636
34637 2008-12-20  Bruno Haible  <bruno@clisp.org>
34638
34639         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34640         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34641         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34642         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34643         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34644
34645         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34646         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34647         set.
34648         (GNULIB_defined_mbstate_t): New macro.
34649         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34650         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34651         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34652         reuses the system's mbrtowc function but works around the bugs.
34653         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34654         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34655         macros.
34656         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34657         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34658         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34659         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34660         REPLACE_MBSINIT if mbsinit needs to be overridden.
34661         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34662         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34663         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34664         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34665         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34666         m4/locale-zh.m4.
34667         (Depends): Add mbsinit.
34668         * modules/mbsinit (Depends): Add mbrtowc.
34669         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34670
34671 2008-12-20  Bruno Haible  <bruno@clisp.org>
34672
34673         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34674         so that there are no conversion errors on AIX.
34675         * tests/test-mbsrtowcs.c (main): LIkewise.
34676
34677 2008-12-20  Bruno Haible  <bruno@clisp.org>
34678
34679         Work around wctob bug on Solaris <= 9.
34680         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34681         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34682         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34683         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34684         * modules/wctob (Files): Add m4/locale-fr.m4.
34685         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34686
34687 2008-12-20  Bruno Haible  <bruno@clisp.org>
34688
34689         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34690         /dev/null.
34691         * tests/test-select-in.sh: Likewise.
34692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34693
34694 2008-12-20  Bruno Haible  <bruno@clisp.org>
34695
34696         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34697         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34698         Cygwin 1.5.x.
34699
34700 2008-12-20  Bruno Haible  <bruno@clisp.org>
34701
34702         Ensure mbstate_t is defined on HP-UX 11.11.
34703         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34704         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34705         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34706         AC_USE_SYSTEM_EXTENSIONS.
34707         * modules/fnmatch (Depends-on): Add extensions.
34708         * modules/mbrlen (Depends-on): Likewise.
34709         * modules/mbrtowc (Depends-on): Likewise.
34710         * modules/mbsinit (Depends-on): Likewise.
34711         * modules/mbsrtowcs (Depends-on): Likewise.
34712         * modules/mbswidth (Depends-on): Likewise.
34713         * modules/quotearg (Depends-on): Likewise.
34714         * modules/strftime (Depends-on): Likewise.
34715
34716 2008-12-20  Bruno Haible  <bruno@clisp.org>
34717
34718         Ensure wctob is declared on IRIX 6.5.
34719         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34720         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34721         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34723         of HAVE_WCTOB.
34724         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34725         HAVE_WCTOB.
34726         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34727
34728 2008-12-19  Bruno Haible  <bruno@clisp.org>
34729
34730         * modules/mbsrtowcs-tests: New file.
34731         * tests/test-mbsrtowcs1.sh: New file.
34732         * tests/test-mbsrtowcs2.sh: New file.
34733         * tests/test-mbsrtowcs3.sh: New file.
34734         * tests/test-mbsrtowcs4.sh: New file.
34735         * tests/test-mbsrtowcs.c: New file.
34736
34737         New module 'mbsrtowcs'.
34738         * lib/wchar.in.h (mbsrtowcs): New declaration.
34739         * lib/mbsrtowcs.c: New file.
34740         * m4/mbsrtowcs.m4: New file.
34741         * modules/mbsrtowcs: New file.
34742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34743         HAVE_MBSRTOWCS.
34744         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34745         HAVE_MBSRTOWCS.
34746         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34747
34748 2008-12-19  Bruno Haible  <bruno@clisp.org>
34749
34750         New module 'mbrlen'.
34751         * lib/wchar.in.h (mbrlen): New declaration.
34752         * lib/mbrlen.c: New file.
34753         * m4/mbrlen.m4: New file.
34754         * modules/mbrlen: New file.
34755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34756         HAVE_MBRLEN.
34757         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34758         HAVE_MBRLEN.
34759         * doc/posix-functions/mbrlen.texi: Document the new module.
34760
34761 2008-12-19  Bruno Haible  <bruno@clisp.org>
34762
34763         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34764         * modules/mbrtowc (Depends-on): Add verify.
34765         Suggested by Paul Eggert.
34766
34767 2008-12-18  Bruno Haible  <bruno@clisp.org>
34768
34769         * modules/mbsinit-tests: New file.
34770         * tests/test-mbsinit.sh: New file.
34771         * tests/test-mbsinit.c: New file.
34772
34773 2008-12-18  Bruno Haible  <bruno@clisp.org>
34774
34775         * modules/mbrtowc-tests: New file.
34776         * tests/test-mbrtowc1.sh: New file.
34777         * tests/test-mbrtowc2.sh: New file.
34778         * tests/test-mbrtowc3.sh: New file.
34779         * tests/test-mbrtowc4.sh: New file.
34780         * tests/test-mbrtowc.c: New file.
34781
34782         New module 'mbrtowc'.
34783         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34784         mbsinit and mbrtowc.
34785         (mbrtowc): New declaration.
34786         * lib/mbrtowc.c: New file.
34787         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34788         * modules/mbrtowc: New file.
34789         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34790         HAVE_MBRTOWC.
34791         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34792         HAVE_MBRTOWC.
34793         * doc/posix-functions/mbrtowc.texi: Document the new module.
34794
34795 2008-12-18  Bruno Haible  <bruno@clisp.org>
34796
34797         New module 'wctob'.
34798         * lib/wchar.in.h (wctob): New declaration.
34799         * lib/wctob.c: New file.
34800         * m4/wctob.m4: New file.
34801         * modules/wctob: New file.
34802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34803         HAVE_WCTOB.
34804         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34805         * doc/posix-functions/wctob.texi: Document the new module.
34806
34807 2008-12-18  Bruno Haible  <bruno@clisp.org>
34808
34809         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34810         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34811
34812 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34813
34814         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34815         G. Christensen" <tgc@jupiterrise.com>.
34816
34817         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34818         G. Christensen" <tgc@jupiterrise.com>.
34819
34820         * lib/flock.c: Need to include string.h.  Reported by "Tom
34821         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34822         <ebb9@byu.net>.
34823
34824 2008-12-18  Bruno Haible  <bruno@clisp.org>
34825
34826         * m4/locale-ja.m4: New file, from GNU gettext.
34827
34828 2008-12-17  Bruno Haible  <bruno@clisp.org>
34829
34830         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34831         Suggested by Eric Blake.
34832
34833 2008-12-17  Bruno Haible  <bruno@clisp.org>
34834
34835         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34836
34837 2008-12-17  Bruno Haible  <bruno@clisp.org>
34838
34839         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34840         * modules/mbsinit (Depends-on): Add verify.
34841         Suggested by Paul Eggert.
34842
34843 2008-12-17  Bruno Haible  <bruno@clisp.org>
34844
34845         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34846         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34847         gl_FUNC_MBRTOWC.
34848         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34849         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34850         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34851         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34852         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34853         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34854         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34855         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34856         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34857         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34858         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34859         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34860         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34861         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34862         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34863         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34864         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34865         * modules/trim (configure.ac): Likewise.
34866
34867 2008-12-17  Bruno Haible  <bruno@clisp.org>
34868
34869         * modules/btowc-tests: New file.
34870         * tests/test-btowc1.sh: New file.
34871         * tests/test-btowc2.sh: New file.
34872         * tests/test-btowc.c: New file.
34873
34874         New module 'btowc'.
34875         * lib/wchar.in.h (btowc): New declaration.
34876         * lib/btowc.c: New file.
34877         * m4/btowc.m4: New file.
34878         * modules/btowc: New file.
34879         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34880         HAVE_BTOWC.
34881         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34882         * doc/posix-functions/btowc.texi: Document the new module.
34883
34884 2008-12-17  Bruno Haible  <bruno@clisp.org>
34885
34886         New module 'mbsinit'.
34887         * lib/wchar.in.h (mbsinit): New declaration.
34888         * lib/mbsinit.c: New file.
34889         * m4/mbsinit.m4: New file.
34890         * modules/mbsinit: New file.
34891         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34892         HAVE_MBSINIT.
34893         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34894         HAVE_MBSINIT.
34895         * doc/posix-functions/mbsinit.texi: Document the new module.
34896
34897 2008-12-16  Bruno Haible  <bruno@clisp.org>
34898
34899         * lib/unistd.in.h: Add comment.
34900         * tests/test-environ.c: Don't include <stdlib.h>.
34901
34902 2008-12-16  Bruno Haible  <bruno@clisp.org>
34903
34904         * lib/parse-duration.h (parse_duration): Document return value
34905         convention.
34906         * lib/parse-duration.c: Include specification header first. Add
34907         comments.
34908         (_): Remove macro.
34909         (parse_year_month_day, parse_hour_minute_second): Move side effects
34910         outside of strchr call.
34911         (parse_non_iso8601): Move side effects outside of isspace call.
34912         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34913         call.
34914
34915 2008-12-16  Bruno Haible  <bruno@clisp.org>
34916
34917         * tests/test-parse-duration.sh: Produce no output when the test
34918         succeeds.
34919
34920 2008-12-16  Bruno Haible  <bruno@clisp.org>
34921
34922         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34923         expressions.
34924
34925 2008-12-15  Bruno Haible  <bruno@clisp.org>
34926
34927         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34928         * doc/glibc-functions/flistxattr.texi: Likewise.
34929         * doc/glibc-functions/fopencookie.texi: Likewise.
34930         * doc/glibc-functions/fremovexattr.texi: Likewise.
34931         * doc/glibc-functions/fsetxattr.texi: Likewise.
34932         * doc/glibc-functions/getxattr.texi: Likewise.
34933         * doc/glibc-functions/lgetxattr.texi: Likewise.
34934         * doc/glibc-functions/listxattr.texi: Likewise.
34935         * doc/glibc-functions/llistxattr.texi: Likewise.
34936         * doc/glibc-functions/lremovexattr.texi: Likewise.
34937         * doc/glibc-functions/lsetxattr.texi: Likewise.
34938         * doc/glibc-functions/removexattr.texi: Likewise.
34939         * doc/glibc-functions/setxattr.texi: Likewise.
34940         * doc/posix-functions/open_memstream.texi: Likewise.
34941
34942 2008-12-15  Eric Blake  <ebb9@byu.net>
34943
34944         Update doc for cygwin 1.7.
34945         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34946         functions.
34947         * doc/posix-functions/fchmodat.texi: Likewise.
34948         * doc/posix-functions/fchownat.texi: Likewise.
34949         * doc/posix-functions/fdopendir.texi: Likewise.
34950         * doc/posix-functions/fmemopen.texi: Likewise.
34951         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34952         * doc/posix-functions/fstatat.texi: Likewise.
34953         * doc/posix-functions/futimens.texi: Likewise.
34954         * doc/posix-functions/gai_strerror.texi: Likewise.
34955         * doc/posix-functions/getaddrinfo.texi: Likewise.
34956         * doc/posix-functions/getnameinfo.texi: Likewise.
34957         * doc/posix-functions/if_freenameindex.texi: Likewise.
34958         * doc/posix-functions/if_indextoname.texi: Likewise.
34959         * doc/posix-functions/if_nameindex.texi: Likewise.
34960         * doc/posix-functions/if_nametoindex.texi: Likewise.
34961         * doc/posix-functions/insque.texi: Likewise.
34962         * doc/posix-functions/linkat.texi: Likewise.
34963         * doc/posix-functions/llrint.texi: Likewise.
34964         * doc/posix-functions/llrintf.texi: Likewise.
34965         * doc/posix-functions/llrintl.texi: Likewise.
34966         * doc/posix-functions/lockf.texi: Likewise.
34967         * doc/posix-functions/lrintl.texi: Likewise.
34968         * doc/posix-functions/mkdirat.texi: Likewise.
34969         * doc/posix-functions/mkfifoat.texi: Likewise.
34970         * doc/posix-functions/mknodat.texi: Likewise.
34971         * doc/posix-functions/mq_close.texi: Likewise.
34972         * doc/posix-functions/mq_getattr.texi: Likewise.
34973         * doc/posix-functions/mq_notify.texi: Likewise.
34974         * doc/posix-functions/mq_open.texi: Likewise.
34975         * doc/posix-functions/mq_receive.texi: Likewise.
34976         * doc/posix-functions/mq_send.texi: Likewise.
34977         * doc/posix-functions/mq_setattr.texi: Likewise.
34978         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34979         * doc/posix-functions/mq_timedsend.texi: Likewise.
34980         * doc/posix-functions/mq_unlink.texi: Likewise.
34981         * doc/posix-functions/open_memstream.texi: Likewise.
34982         * doc/posix-functions/openat.texi: Likewise.
34983         * doc/posix-functions/posix_fadvise.texi: Likewise.
34984         * doc/posix-functions/posix_fallocate.texi: Likewise.
34985         * doc/posix-functions/posix_madvise.texi: Likewise.
34986         * doc/posix-functions/posix_memalign.texi: Likewise.
34987         * doc/posix-functions/posix_openpt.texi: Likewise.
34988         * doc/posix-functions/readlinkat.texi: Likewise.
34989         * doc/posix-functions/remque.texi: Likewise.
34990         * doc/posix-functions/renameat.texi: Likewise.
34991         * doc/posix-functions/rintl.texi: Likewise.
34992         * doc/posix-functions/sem_unlink.texi: Likewise.
34993         * doc/posix-functions/shm_open.texi: Likewise.
34994         * doc/posix-functions/shm_unlink.texi: Likewise.
34995         * doc/posix-functions/signgam.texi: Likewise.
34996         * doc/posix-functions/sigset.texi: Likewise.
34997         * doc/posix-functions/stpcpy.texi: Likewise.
34998         * doc/posix-functions/stpncpy.texi: Likewise.
34999         * doc/posix-functions/strerror.texi: Likewise.
35000         * doc/posix-functions/strtod.texi: Likewise.
35001         * doc/posix-functions/symlinkat.texi: Likewise.
35002         * doc/posix-functions/unlinkat.texi: Likewise.
35003         * doc/posix-functions/utimensat.texi: Likewise.
35004         * doc/glibc-functions/bindresvport.texi: Likewise.
35005         * doc/glibc-functions/dn_expand.texi: Likewise.
35006         * doc/glibc-functions/exp10.texi: Likewise.
35007         * doc/glibc-functions/exp10f.texi: Likewise.
35008         * doc/glibc-functions/fgetxattr.texi: Likewise.
35009         * doc/glibc-functions/flistxattr.texi: Likewise.
35010         * doc/glibc-functions/fopencookie.texi: Likewise.
35011         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35012         * doc/glibc-functions/fremovexattr.texi: Likewise.
35013         * doc/glibc-functions/fsetxattr.texi: Likewise.
35014         * doc/glibc-functions/getifaddrs.texi: Likewise.
35015         * doc/glibc-functions/getxattr.texi: Likewise.
35016         * doc/glibc-functions/lgetxattr.texi: Likewise.
35017         * doc/glibc-functions/listxattr.texi: Likewise.
35018         * doc/glibc-functions/llistxattr.texi: Likewise.
35019         * doc/glibc-functions/lremovexattr.texi: Likewise.
35020         * doc/glibc-functions/lsetxattr.texi: Likewise.
35021         * doc/glibc-functions/pow10.texi: Likewise.
35022         * doc/glibc-functions/pow10f.texi: Likewise.
35023         * doc/glibc-functions/rcmd_af.texi: Likewise.
35024         * doc/glibc-functions/removexattr.texi: Likewise.
35025         * doc/glibc-functions/res_init.texi: Likewise.
35026         * doc/glibc-functions/res_mkquery.texi: Likewise.
35027         * doc/glibc-functions/res_query.texi: Likewise.
35028         * doc/glibc-functions/res_querydomain.texi: Likewise.
35029         * doc/glibc-functions/res_send.texi: Likewise.
35030         * doc/glibc-functions/rresvport_af.texi: Likewise.
35031         * doc/glibc-functions/setxattr.texi: Likewise.
35032         * doc/glibc-functions/strcasestr.texi: Likewise.
35033
35034 2008-12-15  Bruno Haible  <bruno@clisp.org>
35035
35036         Fix compilation error on OSF/1 4.0.
35037         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35038         <sys/time.h>, simply delegate to the system header.
35039         Reported by Daniel Richard G. <oss@teragram.com>.
35040
35041 2008-12-15  Bruno Haible  <bruno@clisp.org>
35042
35043         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35044         * doc/posix-functions/fchmodat.texi: Likewise.
35045         * doc/posix-functions/fchownat.texi: Likewise.
35046         * doc/posix-functions/fdopendir.texi: Likewise.
35047         * doc/posix-functions/fstatat.texi: Likewise.
35048         * doc/posix-functions/mkdirat.texi: Likewise.
35049         * doc/posix-functions/unlinkat.texi: Likewise.
35050
35051 2008-12-14  Bruno Haible  <bruno@clisp.org>
35052
35053         Update doc for POSIX:2008.
35054         * doc/posix-functions/faccessat.texi: New file.
35055         * doc/posix-functions/fchmodat.texi: New file.
35056         * doc/posix-functions/fchownat.texi: New file.
35057         * doc/posix-functions/fdopendir.texi: New file.
35058         * doc/posix-functions/fstatat.texi: New file.
35059         * doc/posix-functions/futimens.texi: New file.
35060         * doc/posix-functions/linkat.texi: New file.
35061         * doc/posix-functions/mkdirat.texi: New file.
35062         * doc/posix-functions/mkfifoat.texi: New file.
35063         * doc/posix-functions/mknodat.texi: New file.
35064         * doc/posix-functions/open_wmemstream.texi: New file.
35065         * doc/posix-functions/openat.texi: New file.
35066         * doc/posix-functions/psiginfo.texi: New file.
35067         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35068         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35069         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35070         * doc/posix-functions/readlinkat.texi: New file.
35071         * doc/posix-functions/renameat.texi: New file.
35072         * doc/posix-functions/strerror_l.texi: New file.
35073         * doc/posix-functions/symlinkat.texi: New file.
35074         * doc/posix-functions/unlinkat.texi: New file.
35075         * doc/posix-functions/utimensat.texi: New file.
35076         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35077
35078 2008-12-14  Bruno Haible  <bruno@clisp.org>
35079
35080         Update doc for POSIX:2008.
35081         * doc/posix-functions/alphasort.texi: Renamed from
35082         doc/glibc-functions/alphasort.texi.
35083         * doc/posix-functions/dirfd.texi: Renamed from
35084         doc/glibc-functions/dirfd.texi.
35085         * doc/posix-functions/dprintf.texi: Renamed from
35086         doc/glibc-functions/dprintf.texi.
35087         * doc/posix-functions/duplocale.texi: Renamed from
35088         doc/glibc-functions/duplocale.texi.
35089         * doc/posix-functions/fexecve.texi: Renamed from
35090         doc/glibc-functions/fexecve.texi.
35091         * doc/posix-functions/fmemopen.texi: Renamed from
35092         doc/glibc-functions/fmemopen.texi.
35093         * doc/posix-functions/freelocale.texi: Renamed from
35094         doc/glibc-functions/freelocale.texi.
35095         * doc/posix-functions/getdate_err.texi: Renamed from
35096         doc/glibc-functions/getdate_err.texi.
35097         * doc/posix-functions/isalnum_l.texi: Renamed from
35098         doc/glibc-functions/isalnum_l.texi.
35099         * doc/posix-functions/isalpha_l.texi: Renamed from
35100         doc/glibc-functions/isalpha_l.texi.
35101         * doc/posix-functions/isblank_l.texi: Renamed from
35102         doc/glibc-functions/isblank_l.texi.
35103         * doc/posix-functions/iscntrl_l.texi: Renamed from
35104         doc/glibc-functions/iscntrl_l.texi.
35105         * doc/posix-functions/isdigit_l.texi: Renamed from
35106         doc/glibc-functions/isdigit_l.texi.
35107         * doc/posix-functions/isgraph_l.texi: Renamed from
35108         doc/glibc-functions/isgraph_l.texi.
35109         * doc/posix-functions/islower_l.texi: Renamed from
35110         doc/glibc-functions/islower_l.texi.
35111         * doc/posix-functions/isprint_l.texi: Renamed from
35112         doc/glibc-functions/isprint_l.texi.
35113         * doc/posix-functions/ispunct_l.texi: Renamed from
35114         doc/glibc-functions/ispunct_l.texi.
35115         * doc/posix-functions/isspace_l.texi: Renamed from
35116         doc/glibc-functions/isspace_l.texi.
35117         * doc/posix-functions/isupper_l.texi: Renamed from
35118         doc/glibc-functions/isupper_l.texi.
35119         * doc/posix-functions/iswalnum_l.texi: Renamed from
35120         doc/glibc-functions/iswalnum_l.texi.
35121         * doc/posix-functions/iswalpha_l.texi: Renamed from
35122         doc/glibc-functions/iswalpha_l.texi.
35123         * doc/posix-functions/iswblank_l.texi: Renamed from
35124         doc/glibc-functions/iswblank_l.texi.
35125         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35126         doc/glibc-functions/iswcntrl_l.texi.
35127         * doc/posix-functions/iswctype_l.texi: Renamed from
35128         doc/glibc-functions/iswctype_l.texi.
35129         * doc/posix-functions/iswdigit_l.texi: Renamed from
35130         doc/glibc-functions/iswdigit_l.texi.
35131         * doc/posix-functions/iswgraph_l.texi: Renamed from
35132         doc/glibc-functions/iswgraph_l.texi.
35133         * doc/posix-functions/iswlower_l.texi: Renamed from
35134         doc/glibc-functions/iswlower_l.texi.
35135         * doc/posix-functions/iswprint_l.texi: Renamed from
35136         doc/glibc-functions/iswprint_l.texi.
35137         * doc/posix-functions/iswpunct_l.texi: Renamed from
35138         doc/glibc-functions/iswpunct_l.texi.
35139         * doc/posix-functions/iswspace_l.texi: Renamed from
35140         doc/glibc-functions/iswspace_l.texi.
35141         * doc/posix-functions/iswupper_l.texi: Renamed from
35142         doc/glibc-functions/iswupper_l.texi.
35143         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35144         doc/glibc-functions/iswxdigit_l.texi.
35145         * doc/posix-functions/isxdigit_l.texi: Renamed from
35146         doc/glibc-functions/isxdigit_l.texi.
35147         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35148         doc/glibc-functions/mbsnrtowcs.texi.
35149         * doc/posix-functions/mkdtemp.texi: Renamed from
35150         doc/glibc-functions/mkdtemp.texi.
35151         * doc/posix-functions/newlocale.texi: Renamed from
35152         doc/glibc-functions/newlocale.texi.
35153         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35154         doc/glibc-functions/nl_langinfo_l.texi.
35155         * doc/posix-functions/open_memstream.texi: Renamed from
35156         doc/glibc-functions/open_memstream.texi.
35157         * doc/posix-functions/opterr.texi: Renamed from
35158         doc/glibc-functions/opterr.texi.
35159         * doc/posix-functions/optind.texi: Renamed from
35160         doc/glibc-functions/optind.texi.
35161         * doc/posix-functions/optopt.texi: Renamed from
35162         doc/glibc-functions/optopt.texi.
35163         * doc/posix-functions/psignal.texi: Renamed from
35164         doc/glibc-functions/psignal.texi.
35165         * doc/posix-functions/scandir.texi: Renamed from
35166         doc/glibc-functions/scandir.texi.
35167         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35168         doc/glibc-functions/sched_get_priority_min.texi.
35169         * doc/posix-functions/signgam.texi: Renamed from
35170         doc/glibc-functions/signgam.texi.
35171         * doc/posix-functions/stpcpy.texi: Renamed from
35172         doc/glibc-functions/stpcpy.texi.
35173         * doc/posix-functions/stpncpy.texi: Renamed from
35174         doc/glibc-functions/stpncpy.texi.
35175         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35176         doc/glibc-functions/strcasecmp_l.texi.
35177         * doc/posix-functions/strcoll_l.texi: Renamed from
35178         doc/glibc-functions/strcoll_l.texi.
35179         * doc/posix-functions/strfmon_l.texi: Renamed from
35180         doc/glibc-functions/strfmon_l.texi.
35181         * doc/posix-functions/strftime_l.texi: Renamed from
35182         doc/glibc-functions/strftime_l.texi.
35183         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35184         doc/glibc-functions/strncasecmp_l.texi.
35185         * doc/posix-functions/strndup.texi: Renamed from
35186         doc/glibc-functions/strndup.texi.
35187         * doc/posix-functions/strnlen.texi: Renamed from
35188         doc/glibc-functions/strnlen.texi.
35189         * doc/posix-functions/strsignal.texi: Renamed from
35190         doc/glibc-functions/strsignal.texi.
35191         * doc/posix-functions/strxfrm_l.texi: Renamed from
35192         doc/glibc-functions/strxfrm_l.texi.
35193         * doc/posix-functions/timer_gettime.texi: Renamed from
35194         doc/glibc-functions/timer_gettime.texi.
35195         * doc/posix-functions/tolower_l.texi: Renamed from
35196         doc/glibc-functions/tolower_l.texi.
35197         * doc/posix-functions/toupper_l.texi: Renamed from
35198         doc/glibc-functions/toupper_l.texi.
35199         * doc/posix-functions/towctrans_l.texi: Renamed from
35200         doc/glibc-functions/towctrans_l.texi.
35201         * doc/posix-functions/towlower_l.texi: Renamed from
35202         doc/glibc-functions/towlower_l.texi.
35203         * doc/posix-functions/towupper_l.texi: Renamed from
35204         doc/glibc-functions/towupper_l.texi.
35205         * doc/posix-functions/uselocale.texi: Renamed from
35206         doc/glibc-functions/uselocale.texi.
35207         * doc/posix-functions/vdprintf.texi: Renamed from
35208         doc/glibc-functions/vdprintf.texi.
35209         * doc/posix-functions/wcpcpy.texi:
35210         Renamed from doc/glibc-functions/wcpcpy.texi.
35211         * doc/posix-functions/wcpncpy.texi: Renamed from
35212         doc/glibc-functions/wcpncpy.texi.
35213         * doc/posix-functions/wcscasecmp.texi: Renamed from
35214         doc/glibc-functions/wcscasecmp.texi.
35215         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
35216         doc/glibc-functions/wcscasecmp_l.texi.
35217         * doc/posix-functions/wcscoll_l.texi: Renamed from
35218         doc/glibc-functions/wcscoll_l.texi.
35219         * doc/posix-functions/wcsdup.texi: Renamed from
35220         doc/glibc-functions/wcsdup.texi.
35221         * doc/posix-functions/wcsncasecmp.texi: Renamed from
35222         doc/glibc-functions/wcsncasecmp.texi.
35223         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
35224         doc/glibc-functions/wcsncasecmp_l.texi.
35225         * doc/posix-functions/wcsnlen.texi: Renamed from
35226         doc/glibc-functions/wcsnlen.texi.
35227         * doc/posix-functions/wcsnrtombs.texi: Renamed from
35228         doc/glibc-functions/wcsnrtombs.texi.
35229         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
35230         doc/glibc-functions/wcsxfrm_l.texi.
35231         * doc/posix-functions/wctrans_l.texi: Renamed from
35232         doc/glibc-functions/wctrans_l.texi.
35233         * doc/posix-functions/wctype_l.texi: Renamed from
35234         doc/glibc-functions/wctype_l.texi.
35235         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35236         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
35237         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
35238         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
35239         these subsections.
35240         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
35241         Remove sections.
35242
35243 2008-12-14  Bruno Haible  <bruno@clisp.org>
35244
35245         Update doc for POSIX:2008.
35246         * doc/posix-functions/*.texi: Update URL of POSIX specification.
35247
35248 2008-12-14  Bruno Haible  <bruno@clisp.org>
35249
35250         Update doc for POSIX:2008.
35251         * doc/pastposix-functions/bcmp.texi: Renamed from
35252         doc/posix-functions/bcmp.texi.
35253         * doc/pastposix-functions/bcopy.texi: Renamed from
35254         doc/posix-functions/bcopy.texi.
35255         * doc/pastposix-functions/bsd_signal.texi: Renamed from
35256         doc/posix-functions/bsd_signal.texi.
35257         * doc/pastposix-functions/bzero.texi: Renamed from
35258         doc/posix-functions/bzero.texi.
35259         * doc/pastposix-functions/ecvt.texi: Renamed from
35260         doc/posix-functions/ecvt.texi.
35261         * doc/pastposix-functions/fcvt.texi: Renamed from
35262         doc/posix-functions/fcvt.texi.
35263         * doc/pastposix-functions/ftime.texi: Renamed from
35264         doc/posix-functions/ftime.texi.
35265         * doc/pastposix-functions/gcvt.texi: Renamed from
35266         doc/posix-functions/gcvt.texi.
35267         * doc/pastposix-functions/getcontext.texi: Renamed from
35268         doc/posix-functions/getcontext.texi.
35269         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
35270         doc/posix-functions/gethostbyaddr.texi.
35271         * doc/pastposix-functions/gethostbyname.texi: Renamed from
35272         doc/posix-functions/gethostbyname.texi.
35273         * doc/pastposix-functions/getwd.texi: Renamed from
35274         doc/posix-functions/getwd.texi.
35275         * doc/pastposix-functions/h_errno.texi: Renamed from
35276         doc/posix-functions/h_errno.texi.
35277         * doc/pastposix-functions/index.texi: Renamed from
35278         doc/posix-functions/index.texi.
35279         * doc/pastposix-functions/makecontext.texi: Renamed from
35280         doc/posix-functions/makecontext.texi.
35281         * doc/pastposix-functions/mktemp.texi: Renamed from
35282         doc/posix-functions/mktemp.texi.
35283         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35284         doc/posix-functions/pthread_attr_getstackaddr.texi.
35285         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35286         doc/posix-functions/pthread_attr_setstackaddr.texi.
35287         * doc/pastposix-functions/rindex.texi: Renamed from
35288         doc/posix-functions/rindex.texi.
35289         * doc/pastposix-functions/scalb.texi: Renamed from
35290         doc/posix-functions/scalb.texi.
35291         * doc/pastposix-functions/setcontext.texi: Renamed from
35292         doc/posix-functions/setcontext.texi.
35293         * doc/pastposix-functions/swapcontext.texi: Renamed from
35294         doc/posix-functions/swapcontext.texi.
35295         * doc/pastposix-functions/ualarm.texi: Renamed from
35296         doc/posix-functions/ualarm.texi.
35297         * doc/pastposix-functions/usleep.texi: Renamed from
35298         doc/posix-functions/usleep.texi.
35299         * doc/pastposix-functions/vfork.texi: Renamed from
35300         doc/posix-functions/vfork.texi.
35301         * doc/pastposix-functions/wcswcs.texi: Renamed from
35302         doc/posix-functions/wcswcs.texi.
35303         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35304         (Function Substitutes): Update.
35305
35306 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35307
35308         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35309         m4/strerror.m4.
35310
35311 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35312             Bruno Haible  <bruno@clisp.org>
35313
35314         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35315
35316 2008-12-13  Bruno Haible  <bruno@clisp.org>
35317
35318         * modules/strtoull (Depends-on): Remove unistd.
35319
35320 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35321
35322         * modules/strtoull (Depends-on): Add stdlib.
35323
35324 2008-12-11  Simon Josefsson  <simon@josefsson.org>
35325
35326         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
35327
35328 2008-12-10  Jim Meyering  <meyering@redhat.com>
35329
35330         gl_ASSERT: don't say assertions are disabled when they're not
35331         * m4/assert.m4 (gl_ASSERT): Do not make configure report
35332         "checking whether to enable assertions... no", when they are in
35333         fact enabled.  This is solely a bug in the output of configure.
35334         In spite of saying "no", NDEBUG was not defined in that case.
35335         Also, as noted by Eric Blake, leave assertions enabled upon
35336         --enable-assert=INVALID.
35337
35338 2008-12-10  Bruno Haible  <bruno@clisp.org>
35339
35340         Change MODULES.html to refer to POSIX:2008 where possible.
35341         * MODULES.html.sh (POSIX2008_URL): New variable.
35342         (posix_headers): Remove sys/timeb, ucontext.
35343         (posix2001_headers): New variable.
35344         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
35345         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
35346         index, makecontext, mktemp, pthread_attr_getstackaddr,
35347         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
35348         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
35349         (posix2001_functions): New variable.
35350         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
35351         otherwise.
35352
35353 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35354
35355         add missing include to parse-duration.c
35356         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
35357         * modules/parse-duration (Depends-on): Add xalloc.
35358
35359         fix sed script reading maint.mk
35360         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
35361         (syntax-check-rules): Use it.
35362
35363 2008-12-09  Bruno Haible  <bruno@clisp.org>
35364
35365         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
35366         MacOS X 10.4/PowerPC.
35367         Reported by Simon Josefsson.
35368
35369 2008-12-08  Jim Meyering  <meyering@redhat.com>
35370
35371         work around mingw's lack of some S_IF definitions
35372         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
35373         Reported by Simon Josefsson.
35374
35375 2008-12-08  Bruno Haible  <bruno@clisp.org>
35376
35377         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35378         applied to variables. Needed on MacOS X 10.4/PowerPC.
35379         Reported by Simon Josefsson.
35380
35381 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35382         and Eric Blake  <ebb9@byu.net>
35383
35384         assert: honor --enable-assert
35385         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35386         order to honor --enable-assert, rather than treating it as a
35387         synonym for --disable-assert.
35388
35389 2008-12-08  Jim Meyering  <meyering@redhat.com>
35390
35391         * lib/posixtm.c: Remove now-useless declaration of mktime.
35392
35393         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35394
35395 2008-12-07  Bruno Haible  <bruno@clisp.org>
35396
35397         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35398         test_once): Mark functions as static.
35399         * tests/test-tls.c (test_tls): Likewise.
35400
35401 2008-12-07  Bruno Haible  <bruno@clisp.org>
35402
35403         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35404         iconv_register_autodetect.
35405
35406 2008-12-07  Jim Meyering  <meyering@redhat.com>
35407
35408         posixtm.c: avoid a warning
35409         * lib/posixtm.c (posixtime): Don't initialize tm0.
35410         It's no longer needed to placate gcc4's -Wuninitialized,
35411         and the attempt to placate would elicit a new warning.
35412
35413         unicodeio.c: mark unused parameters
35414         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35415         (fallback_failure_callback): Likewise.
35416
35417 2008-12-07  Bruno Haible  <bruno@clisp.org>
35418
35419         * gnulib-tool (func_create_testdir): When building the tests
35420         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35421         Reported by Simon Josefsson.
35422
35423 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35424
35425         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35426
35427 2008-12-06  Bruno Haible  <bruno@clisp.org>
35428
35429         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35430         Suggested by Eric Blake.
35431
35432 2008-12-06  Bruno Haible  <bruno@clisp.org>
35433
35434         Fix a c-stack test failure on MacOS X.
35435         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35436         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35437         handler for SIGBUS as well.
35438         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35439         install a signal handler for SIGBUS as well.
35440         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35441
35442 2008-12-06  Bruno Haible  <bruno@clisp.org>
35443
35444         Advocacy documentation.
35445         * doc/gnulib-intro.texi (Benefits): New section.
35446         * doc/gnulib.texi: Update.
35447
35448 2008-12-06  Bruno Haible  <bruno@clisp.org>
35449
35450         Document the 'manywarnings' module.
35451         * doc/manywarnings.texi: New file.
35452         * doc/gnulib.texi: Include it.
35453
35454 2008-12-05  Eric Blake  <ebb9@byu.net>
35455
35456         tests: silence some gcc warnings
35457         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35458         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35459         type mismatches.
35460
35461 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35462             Bruno Haible  <bruno@clisp.org>
35463
35464         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35465
35466 2008-11-29  Jim Meyering  <meyering@redhat.com>
35467
35468         unicodeio.c: mark unused parameters
35469         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35470         (fallback_failure_callback): Likewise.
35471
35472         fts: fix a thinko
35473         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35474         (set_stat_type): Return S_IF*-valued "type" directly.
35475         Prompted by James Youngman's spotting a related bug.
35476         Confirmed by further testing through find.
35477
35478         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35479         * lib/fts.c (D_TYPE): Define.
35480         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35481         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35482         (s_ifmt_shift_bits): New function.
35483         (set_stat_type): New function.
35484         (fts_build): When not calling fts_stat, call set_stat_type
35485         to propagate dirent.d_type info to fts_read caller.
35486         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35487         fts_statp->st_mode type information may be valid.
35488
35489 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35490
35491         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35492         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35493         <sds@gnu.org>.
35494
35495 2008-11-20  Bruno Haible  <bruno@clisp.org>
35496
35497         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35498         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35499         INCLUDE_NEXT.
35500         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35501         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35502         * modules/math (Makefile.am): Substitute
35503         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35504         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35505
35506 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35507             Bruno Haible  <bruno@clisp.org>
35508
35509         * lib/stdint.in.h: Define all type macros so that their expansion is
35510         a single typedef'ed token. Fixes a compilation failure in Boost which
35511         does "using ::int8_t;".
35512
35513 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35514
35515         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35516         gl_MANYWARN_ALL_GCC.
35517         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35518         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35519         * modules/manywarnings: New file.
35520         * MODULES.html.sh: Mention manywarnings module.
35521
35522 2008-11-18  Bruno Haible  <bruno@clisp.org>
35523
35524         * doc/gnulib-tool.texi (Unit tests): New section.
35525
35526 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35527
35528         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35529         paths like 'lib/po/foo.po'.
35530
35531 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35532
35533         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35534         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35535
35536 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35537
35538         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35539         parameter works.
35540
35541 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35542
35543         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35544
35545 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35546
35547         * modules/parse-duration-tests: New file.
35548         * tests/test-parse-duration.sh: New file.
35549         * tests/test-parse-duration.c: New file.
35550
35551         New module 'parse-duration'.
35552         * lib/parse-duration.h: New file.
35553         * lib/parse-duration.c: New file.
35554         * modules/parse-duration: New file.
35555
35556 2008-11-17  Bruno Haible  <bruno@clisp.org>
35557
35558         * tests/test-select-out.sh: Comment out the first pipe test.
35559         Reported by Simon Josefsson.
35560
35561 2008-11-17  Bruno Haible  <bruno@clisp.org>
35562
35563         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35565         gl_HOSTENT.
35566
35567 2008-11-17  Bruno Haible  <bruno@clisp.org>
35568
35569         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35570         -lnetwork and -lnet. Needed for Haiku and BeOS.
35571
35572 2008-11-16  Bruno Haible  <bruno@clisp.org>
35573
35574         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35575
35576 2008-11-16  Bruno Haible  <bruno@clisp.org>
35577
35578         Avoid test failure on Haiku.
35579         * tests/test-fsync.c: Include <errno.h>.
35580         (main): Don't require that fsync (0) fails.
35581
35582 2008-11-15  Bruno Haible  <bruno@clisp.org>
35583
35584         New module 'hostent'.
35585         * modules/hostent: New file.
35586         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35587
35588 2008-11-15  Bruno Haible  <bruno@clisp.org>
35589
35590         New module 'servent'.
35591         * modules/servent: New file.
35592         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35593
35594 2008-11-15  Bruno Haible  <bruno@clisp.org>
35595
35596         Avoid generating same test program with two different rules.
35597         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35598         test-frexp to test-frexp-nolibm.
35599         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35600         test-frexpl to test-frexpl-nolibm.
35601
35602 2008-11-15  Bruno Haible  <bruno@clisp.org>
35603
35604         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35605         $(FREXPL_LIBM).
35606
35607 2008-11-15  Bruno Haible  <bruno@clisp.org>
35608
35609         * lib/netdb.in.h: Activate the definitions also when the system's
35610         <netdb.h> has 'struct addrinfo'.
35611         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35612         EAI_OVERFLOW or AI_NUMERICSERV.
35613         * doc/posix-headers/netdb.texi: Document the problem.
35614
35615 2008-11-15  Bruno Haible  <bruno@clisp.org>
35616
35617         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35618
35619         Make the 'sched' module work on platforms where <sched.h> exists but
35620         is incomplete (such as Haiku).
35621         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35622         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35623         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35624         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35625         HAVE_STRUCT_SCHED_PARAM.
35626         * modules/sched (Depends-on): Add include_next.
35627         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35628         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35629         * doc/posix-headers/sched.texi: Document the issue.
35630
35631 2008-11-13  Jim Meyering  <meyering@redhat.com>
35632
35633         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35634         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35635         test would fail due to the difference in the Report bugs to ...
35636         line.  The expected address is empty, "<>", while the actual
35637         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35638
35639 2008-11-12  Bruno Haible  <bruno@clisp.org>
35640
35641         lstat: don't compile lstat.c on systems lacking lstat
35642         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35643         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35644         Reported by Daniel P. Berrange via Jim Meyering.
35645
35646 2008-11-12  Jim Meyering  <meyering@redhat.com>
35647
35648         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35649
35650 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35651
35652         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35653         instead.
35654
35655 2008-11-12  Bruno Haible  <bruno@clisp.org>
35656
35657         * lib/unicodeio.c: Include unistr.h.
35658         (utf8_wctomb): Remove function.
35659         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35660
35661 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35662
35663         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35664         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35665         <bruno@clisp.org>.
35666         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35667
35668 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35669
35670         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35671         * doc/gnulib.texi: Add section for warnings.
35672
35673 2008-11-11  Bruno Haible  <bruno@clisp.org>
35674
35675         * lib/sockets.h: Add a comment.
35676
35677 2008-11-11  Karl Berry  <karl@gnu.org>
35678
35679         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35680
35681 2008-11-11  Eric Blake  <ebb9@byu.net>
35682
35683         fdl.texi: avoid git symlinks
35684         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35685
35686 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35687
35688         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35689
35690 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35691
35692         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35693         (gl_WARN_ADD): Substitute $2 if literal.
35694
35695 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35696
35697         * m4/warning.m4: Remove.
35698
35699 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35700
35701         * m4/warnings.m4: Almost complete rewrite. :-)
35702
35703 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35704
35705         * modules/warnings: New module.
35706         * m4/warnings.m4: New file.
35707         * MODULES.html.sh: Mention warnings module.
35708         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35709         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35710
35711 2008-11-10  Eric Blake  <ebb9@byu.net>
35712
35713         fdl.texi: make a symlink to the latest version
35714         * doc/standards.texi: Revert today's earlier change.
35715         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35716         * doc/fdl.texi: ...and replace this with a symlink to the newer
35717         fdl-1.3.texi.
35718
35719 2008-11-10  Bruno Haible  <bruno@clisp.org>
35720
35721         * tests/test-select-fd.c (main): Accept the result file name as fourth
35722         argument.
35723         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35724         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35725
35726 2008-11-10  Bruno Haible  <bruno@clisp.org>
35727
35728         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35729         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35730         as autoconf-substituted macros.
35731         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35732         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35733         gl_NETDB_H_DEFAULTS. Set these variables.
35734         * modules/netdb (Makefile.am): Substitute these variables.
35735
35736 2008-11-10  Eric Blake  <ebb9@byu.net>
35737
35738         standards.texi: include correct file for FDL 1.3
35739         * doc/standards.texi (GNU Free Documentation License): Change
35740         include file to pull in FDL 1.3, not 1.2.
35741
35742         fdl.texi: revert accidental change to license
35743         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35744
35745 2008-11-10  Bruno Haible  <bruno@clisp.org>
35746
35747         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35748         cross-compiling guesses also when the native compile gives no result.
35749
35750 2008-11-10  Bruno Haible  <bruno@clisp.org>
35751
35752         * lib/spawni.c (__spawni): Force variable into the stack.
35753
35754 2008-11-10  Bruno Haible  <bruno@clisp.org>
35755
35756         Add support for Haiku.
35757         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35758         glibc and BeOS, but also on Haiku.
35759         * lib/fpurge.c (fpurge): Likewise.
35760         * lib/freadable.c (freadable): Likewise.
35761         * lib/freadahead.c (freadahead): Likewise.
35762         * lib/freading.c (freading): Likewise.
35763         * lib/freadptr.c (freadptr): Likewise.
35764         * lib/freadseek.c (freadptrinc): Likewise.
35765         * lib/fseeko.c (rpl_fseeko): Likewise.
35766         * lib/fseterr.c (fseterr): Likewise.
35767         * lib/fwritable.c (fwritable): Likewise.
35768         * lib/fwriting.c (fwriting): Likewise.
35769         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35770
35771 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35772
35773         * lib/config.charset: Treat Haiku like BeOS.
35774
35775 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35776
35777         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35778         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35779
35780 2008-11-08  Bruno Haible  <bruno@clisp.org>
35781
35782         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35783         AC_CACHE_CHECK.
35784
35785 2008-11-08  Bruno Haible  <bruno@clisp.org>
35786
35787         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35788
35789 2008-11-08  Bruno Haible  <bruno@clisp.org>
35790
35791         * tests/test-select-fd.c: New file.
35792         * tests/test-select-in.sh: New file.
35793         * tests/test-select-out.sh: New file.
35794         * tests/test-select-stdin.c: New file.
35795         * modules/select-tests (Files): Add the new files.
35796         (Depends-on): Add gettimeofday.
35797         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35798         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35799         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35800
35801 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35802             Bruno Haible  <bruno@clisp.org>
35803
35804         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35805
35806 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35807
35808         * build-aux/pmccabe2html: Added support for C++ source files.
35809
35810 2008-11-05  Ben Pfaff  <blp@gnu.org>
35811
35812         Fix lib/close.c build on Windows.
35813         * modules/close (Files): Add lib/w32sock.h.
35814
35815 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35816
35817         Accept Bison's NEWS format.
35818         * build-aux/announce-gen (print_news_deltas): Tweak
35819         $re_prefix.
35820
35821 2008-11-04  Bruno Haible  <bruno@clisp.org>
35822
35823         * modules/random_r (Maintainer): Add glibc.
35824
35825 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35826
35827         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35828         by karl@freefriends.org (Karl Berry).
35829         * doc/alloca.texi: Likewise.
35830         * doc/c-ctype.texi: Likewise.
35831         * doc/c-strcase.texi: Likewise.
35832         * doc/c-strcaseeq.texi: Likewise.
35833         * doc/c-strcasestr.texi: Likewise.
35834         * doc/c-strstr.texi: Likewise.
35835         * doc/c-strtod.texi: Likewise.
35836         * doc/c-strtold.texi: Likewise.
35837         * doc/ctime.texi: Likewise.
35838         * doc/error.texi: Likewise.
35839         * doc/fdl.texi: Likewise.
35840         * doc/gcd.texi: Likewise.
35841         * doc/getdate.texi: Likewise.
35842         * doc/gnulib-intro.texi: Likewise.
35843         * doc/gnulib-tool.texi: Likewise.
35844         * doc/gnulib.texi: Likewise.
35845         * doc/inet_ntoa.texi: Likewise.
35846         * doc/maintain.texi: Likewise.
35847         * doc/make-stds.texi: Likewise.
35848         * doc/quote.texi: Likewise.
35849         * doc/regexprops-generic.texi: Likewise.
35850         * doc/standards.texi: Likewise.
35851         * doc/verify.texi: Likewise.
35852         * doc/visibility.texi: Likewise.
35853         * doc/gnulib.texi (GNU Free Documentation License): Include
35854         fdl-1.3.texi instead of fdl.texi.
35855
35856 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35857
35858         * doc/fdl-1.3.texi: New file, from
35859         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35860         * modules/fdl-1.3: Add.
35861         * MODULES.html.sh: Add fdl-1.3.
35862
35863 2008-11-03  Bruno Haible  <bruno@clisp.org>
35864
35865         Make determination of absolute name of header file work with AIX xlc.
35866         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35867         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35868         preprocessing.
35869         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35870         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35871
35872 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35873
35874         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35875         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35876         <ludo@gnu.org>.
35877
35878 2008-11-02  Bruno Haible  <bruno@clisp.org>
35879
35880         Mark 'strpbrk' obsolete.
35881         * modules/strpbrk (Status, Notice): New sections.
35882         * modules/strtok_r (Depends-on): Add strpbrk.
35883
35884 2008-11-02  Bruno Haible  <bruno@clisp.org>
35885
35886         Mark 'strdup' obsolete.
35887         * modules/strdup (Status, Notice): New sections.
35888         * modules/findprog (Depends-on): Add strdup.
35889         * modules/getaddrinfo (Depends-on): Likewise.
35890         * modules/localename (Depends-on): Likewise.
35891         * modules/relocatable-lib (Depends-on): Likewise.
35892         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35893         * modules/relocatable-prog (Depends-on): Likewise.
35894         * modules/trim (Depends-on): Likewise.
35895         * modules/unictype/gen-ctype (Depends-on): Likewise.
35896         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35897
35898 2008-11-02  Bruno Haible  <bruno@clisp.org>
35899
35900         Mark 'strcspn' obsolete.
35901         * modules/strcspn (Status, Notice): New sections.
35902
35903 2008-11-02  Bruno Haible  <bruno@clisp.org>
35904
35905         Mark 'rmdir' obsolete.
35906         * modules/rmdir (Status, Notice): New sections.
35907         * modules/clean-temp (Depends-on): Add rmdir.
35908         * modules/openat (Depends-on): Likewise.
35909
35910 2008-11-02  Bruno Haible  <bruno@clisp.org>
35911
35912         Mark 'raise' obsolete.
35913         * modules/raise (Status, Notice): New sections.
35914         (Include): Specify <signal.h>.
35915         * modules/stdio (Depends-on): Add raise.
35916         * modules/write (Depends-on): Likewise.
35917
35918 2008-11-02  Bruno Haible  <bruno@clisp.org>
35919
35920         Mark 'memset' obsolete.
35921         * modules/memset (Status, Notice): New sections.
35922
35923 2008-11-02  Bruno Haible  <bruno@clisp.org>
35924
35925         Mark 'memmove' obsolete.
35926         * modules/memmove (Status, Notice): New sections.
35927         * modules/argp (Depends-on): Add memmove.
35928         * modules/argz (Depends-on): Likewise.
35929         * modules/canonicalize (Depends-on): Likewise.
35930         * modules/canonicalize-lgpl (Depends-on): Likewise.
35931         * modules/fts (Depends-on): Likewise.
35932         * modules/getcwd (Depends-on): Likewise.
35933         * modules/human (Depends-on): Likewise.
35934         * modules/regex (Depends-on): Likewise.
35935         * modules/striconveh (Depends-on): Likewise.
35936         * modules/trim (Depends-on): Likewise.
35937         * modules/unistr/u8-move (Depends-on): Likewise.
35938         * modules/unistr/u16-move (Depends-on): Likewise.
35939         * modules/unistr/u32-move (Depends-on): Likewise.
35940
35941 2008-11-02  Bruno Haible  <bruno@clisp.org>
35942
35943         Mark 'memcpy' obsolete.
35944         * modules/memcpy (Status, Notice): New sections.
35945
35946 2008-11-02  Bruno Haible  <bruno@clisp.org>
35947
35948         Mark 'memcmp' obsolete.
35949         * modules/memcmp (Status, Notice): New sections.
35950         * modules/argmatch (Depends-on): Add memchr.
35951         * modules/backupfile (Depends-on): Likewise.
35952         * modules/c-strcasestr (Depends-on): Likewise.
35953         * modules/crypto/des (Depends-on): Likewise.
35954         * modules/csharpcomp (Depends-on): Likewise.
35955         * modules/fnmatch (Depends-on): Likewise.
35956         * modules/git-merge-changelog (Depends-on): Likewise.
35957         * modules/isnand (Depends-on): Likewise.
35958         * modules/isnand-nolibm (Depends-on): Likewise.
35959         * modules/isnanf (Depends-on): Likewise.
35960         * modules/isnanf-nolibm (Depends-on): Likewise.
35961         * modules/isnanl (Depends-on): Likewise.
35962         * modules/isnanl-nolibm (Depends-on): Likewise.
35963         * modules/mbchar (Depends-on): Likewise.
35964         * modules/memcoll (Depends-on): Likewise.
35965         * modules/quotearg (Depends-on): Likewise.
35966         * modules/regex (Depends-on): Likewise.
35967         * modules/relocatable-prog (Depends-on): Likewise.
35968         * modules/same (Depends-on): Likewise.
35969         * modules/signbit (Depends-on): Likewise.
35970         * modules/strcasestr-simple (Depends-on): Likewise.
35971         * modules/unictype/gen-ctype (Depends-on): Likewise.
35972         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35973         * modules/uniname/uniname (Depends-on): Likewise.
35974         * modules/unistr/u8-cmp (Depends-on): Likewise.
35975
35976 2008-11-02  Bruno Haible  <bruno@clisp.org>
35977
35978         Mark 'memchr' obsolete.
35979         * modules/memchr (Status, Notice): New sections.
35980         * modules/argp (Depends-on): Add memchr.
35981         * modules/base64 (Depends-on): Likewise.
35982         * modules/c-strcasestr (Depends-on): Likewise.
35983         * modules/chdir-long (Depends-on): Likewise.
35984         * modules/fnmatch (Depends-on): Likewise.
35985         * modules/getsubopt (Depends-on): Likewise.
35986         * modules/git-merge-changelog (Depends-on): Likewise.
35987         * modules/glob (Depends-on): Likewise.
35988         * modules/strcasestr-simple (Depends-on): Likewise.
35989         * modules/strnlen (Depends-on): Likewise.
35990
35991 2008-11-02  Bruno Haible  <bruno@clisp.org>
35992
35993         Mark 'atexit' obsolete.
35994         * modules/atexit (Status, Notice): New sections.
35995         * modules/chdir-long (Depends-on): Add atexit.
35996         * modules/wait-process (Depends-on): Likewise.
35997
35998 2008-11-02  Bruno Haible  <bruno@clisp.org>
35999
36000         * gnulib-tool: New option --with-obsolete.
36001         (func_usage): Document it.
36002         (func_modules_transitive_closure): Drop obsolete dependencies if
36003         incobsolete is not true.
36004         (func_import): Read and save the incobsolete variable to the cache.
36005
36006 2008-11-02  Bruno Haible  <bruno@clisp.org>
36007
36008         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36009         * gnulib-tool: New option --extract-status.
36010         (func_usage): Document it.
36011         (sed_extract_prog): Recognize it.
36012         (func_get_status): New function.
36013
36014 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36015
36016         * modules/sockets (License): Change from LGPL to LGPLv2+.
36017
36018 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36019
36020         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36021
36022 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36023
36024         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36025         Mention times and sys_times.
36026         * modules/sys_times, modules/sys_times-tests: New modules.
36027         * modules/times, modules/times-tests: Likewise
36028         * m4/sys_times_h.m4: New file.
36029         * lib/sys_times.in.h: Likewise
36030         * lib/times.c: Likewise.
36031         * tests/test-sys_times.c: Likewise.
36032         * tests/test-times.c: Likewise.
36033         * doc/posix-headers/sys_times.texi: Update.
36034         * doc/posix-functions/times.texi: Update.
36035
36036 2008-10-28  Jim Meyering  <meyering@redhat.com>
36037
36038         * modules/tempname (Depends-on): Add lstat.
36039
36040         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36041
36042 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36043
36044         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36045         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36046         using idiom used elsewhere in gnulib.
36047
36048 2008-10-27  Jim Meyering  <meyering@redhat.com>
36049
36050         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36051
36052 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36053
36054         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36055         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36056         programs.
36057         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36058
36059 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36060
36061         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36062
36063 2008-10-27  Bruno Haible  <bruno@clisp.org>
36064
36065         * tests/test-lstat.c: Include <stdio.h>.
36066
36067 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36068
36069         * modules/lstat-tests: New module.
36070         * tests/test-lstat.c: New file.
36071
36072 2008-10-26  Jim Meyering  <meyering@redhat.com>
36073
36074         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36075
36076 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36077             Bruno Haible  <bruno@clisp.org>
36078
36079         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36080         * modules/configmake (Include): Add a note that the include must come
36081         after all system headers.
36082         * lib/javaversion.c: Include configmake.h after all other includes.
36083
36084 2008-10-26  Bruno Haible  <bruno@clisp.org>
36085
36086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36087         HAVE_STRUCT_RANDOM_DATA to 1.
36088         (gl_STDLIB_H): Simplify.
36089
36090 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36091
36092         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36093         substitute HAVE_STRUCT_RANDOM_DATA.
36094         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36095         random_data.
36096         * modules/stdlib (Makefile.am): Substitute
36097         HAVE_STRUCT_RANDOM_DATA.
36098
36099 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36100
36101         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36102         * doc/gnulib-intro.texi (Copyright): Likewise.
36103
36104 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36105
36106         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36107         findings.
36108
36109 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36110             Bruno Haible  <bruno@clisp.org>
36111
36112         * lib/unistd.in.h: Include <winsock2.h>.
36113         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36114         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36115         Provide dummy declarations.
36116         (gethostname): Override.
36117         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36118         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36119         gl_PREREQ_SYS_H_WINSOCK2.
36120         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36121         * doc/posix-functions/gethostname.texi: More details.
36122
36123 2008-10-25  Bruno Haible  <bruno@clisp.org>
36124
36125         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36126         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36127         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36128
36129         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36130         here ...
36131         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36132         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36133         gl_UNISTD_H_DEFAULTS.
36134
36135 2008-10-25  Eric Blake  <ebb9@byu.net>
36136
36137         signbit: avoid spurious compiler failure
36138         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36139         declarations inside function.
36140
36141 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36142             Bruno Haible  <bruno@clisp.org>
36143
36144         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36145         * modules/random_r (Depends-on): Add stdint.
36146
36147 2008-10-24  Bruno Haible  <bruno@clisp.org>
36148
36149         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36150         Eggert.
36151         * modules/strerror (License): Likewise.
36152
36153 2008-10-24  Jim Meyering  <meyering@redhat.com>
36154
36155         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36156         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36157
36158 2008-10-24  Eric Blake  <ebb9@byu.net>
36159
36160         getgroups: fix compilation when getgroups is available
36161         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36162         but with <config.h> override of getgroups disabled.
36163
36164 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36165
36166         * doc/gnulib.texi (Header files): Add note about C++ problems.
36167         Explained by Bruno Haible <bruno@clisp.org>.
36168
36169 2008-10-23  Bruno Haible  <bruno@clisp.org>
36170
36171         Define a dummy SA_NODEFER macro on Interix.
36172         * lib/signal.in.h (SA_NODEFER): Define fallback.
36173         Reported by Aleksey Cheusov <cheusov@tut.by> via
36174         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36175
36176 2008-10-23  Bruno Haible  <bruno@clisp.org>
36177
36178         * modules/freadahead (License): Change to LGPLv2+.
36179         Suggested by Simon Josefsson.
36180
36181 2008-10-23  Jim Meyering  <meyering@redhat.com>
36182
36183         random_r: new module
36184         * modules/random_r: New file.
36185         * m4/random_r.m4: New file.
36186         * lib/random_r.c: New file, from glibc.
36187         * modules/random_r-tests: New file.
36188         * tests/test-random_r.c: New file.
36189         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36190          Declare.
36191         (RAND_MAX): Define.
36192         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36193         * modules/stdlib: Substitute them, too.
36194         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36195         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36196         * doc/glibc-functions/random_r.texi: Likewise.
36197         * doc/glibc-functions/setstate_r.texi: Likewise.
36198         * doc/glibc-functions/srandom_r.texi: Likewise.
36199         * config/srclist.txt: Mention it.
36200
36201 2008-10-23  David Lutterkort  <lutter@redhat.com>
36202
36203         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
36204         link requirement
36205
36206 2008-10-23  Jim Meyering  <meyering@redhat.com>
36207
36208         selinux-h: mark parameters of stub functions as intentionally unused
36209         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
36210         * lib/se-context.in.h: Likewise.
36211
36212 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36213
36214         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
36215
36216 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36217
36218         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
36219
36220 2008-10-22  Eric Blake  <ebb9@byu.net>
36221
36222         glthread/thread: avoid compiler warning
36223         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
36224         Add unreachable abort to silence compiler.
36225
36226 2008-10-22  Eric Blake  <ebb9@byu.net>
36227
36228         netdb: also supply struct addrinfo for cygwin 1.5.x
36229         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
36230         older cygwin.
36231         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
36232         cygwin.
36233         * doc/posix-headers/netdb.texi (netdb.h): Document this.
36234
36235 2008-10-22  Bruno Haible  <bruno@clisp.org>
36236
36237         * users.txt: Update entry about pspp.
36238
36239 2008-10-21  Bruno Haible  <bruno@clisp.org>
36240
36241         Simplification.
36242         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
36243         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
36244
36245         Simplification.
36246         * lib/ioctl.c (ioctl): Don't undefine.
36247         * lib/socket.c (socket): Don't undefine.
36248
36249         Remove unused module indicator macros.
36250         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
36251         GNULIB_$1 as a C macro.
36252
36253         * doc/posix-functions/close.texi: Undo last change.
36254         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
36255         Windows platforms.
36256
36257 2008-10-21  Bruno Haible  <bruno@clisp.org>
36258
36259         Add gethostname() declaration to <unistd.h>.
36260         * lib/unistd.in.h (gethostname): New declaration.
36261         * lib/gethostname.c: Include <unistd.h>.
36262         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
36263         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
36264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
36265         and HAVE_GETHOSTNAME.
36266         * modules/gethostname (Depends-on): Add unistd.
36267         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36268         (Include): Specify <unistd.h>.
36269         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
36270         HAVE_GETHOSTNAME.
36271         * tests/test-gethostname.c: Include <unistd.h> first.
36272
36273 2008-10-21  Bruno Haible  <bruno@clisp.org>
36274
36275         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36276         * modules/select-tests (Depends-on): Likewise.
36277         Reported by Simon Josefsson.
36278
36279 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36280
36281         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36282         * lib/accept.c: New file, based on winsock.c.
36283         * lib/bind.c: New file, based on winsock.c.
36284         * lib/connect.c: New file, based on winsock.c.
36285         * lib/getpeername.c: New file, based on winsock.c.
36286         * lib/getsockname.c: New file, based on winsock.c.
36287         * lib/getsockopt.c: New file, based on winsock.c.
36288         * lib/ioctl.c: New file, based on winsock.c.
36289         * lib/listen.c: New file, based on winsock.c.
36290         * lib/recv.c: New file, based on winsock.c.
36291         * lib/recvfrom.c: New file, based on winsock.c.
36292         * lib/send.c: New file, based on winsock.c.
36293         * lib/sendto.c: New file, based on winsock.c.
36294         * lib/setsockopt.c: New file, based on winsock.c.
36295         * lib/shutdown.c: New file, based on winsock.c.
36296         * lib/socket.c: New file, based on winsock.c.
36297         * lib/w32sock.h: New file, based on winsock.c.
36298         * lib/winsock.c: Remove file.
36299         * modules/accept: Likewise.
36300         * modules/bind: Likewise.
36301         * modules/connect: Likewise.
36302         * modules/getpeername: Likewise.
36303         * modules/getsockname: Likewise.
36304         * modules/getsockopt: Likewise.
36305         * modules/ioctl: Likewise.
36306         * modules/listen: Likewise.
36307         * modules/recv: Likewise.
36308         * modules/recvfrom: Likewise.
36309         * modules/send: Likewise.
36310         * modules/sendto: Likewise.
36311         * modules/setsockopt: Likewise.
36312         * modules/shutdown: Likewise.
36313         * modules/socket: Use socket.c instead of winsock.c.
36314         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36315         * doc/posix-functions/accept.texi: Doc fix.
36316         * doc/posix-functions/bind.texi: Doc fix.
36317         * doc/posix-functions/close.texi: Doc fix.
36318         * doc/posix-functions/connect.texi: Doc fix.
36319         * doc/posix-functions/getpeername.texi: Doc fix.
36320         * doc/posix-functions/getsockname.texi: Doc fix.
36321         * doc/posix-functions/getsockopt.texi: Doc fix.
36322         * doc/posix-functions/ioctl.texi: Doc fix.
36323         * doc/posix-functions/listen.texi: Doc fix.
36324         * doc/posix-functions/recv.texi: Doc fix.
36325         * doc/posix-functions/recvfrom.texi: Doc fix.
36326         * doc/posix-functions/send.texi: Doc fix.
36327         * doc/posix-functions/sendto.texi: Doc fix.
36328         * doc/posix-functions/setsockopt.texi: Doc fix.
36329         * doc/posix-functions/shutdown.texi: Doc fix.
36330         * doc/posix-functions/socket.texi: Doc fix.
36331
36332 2008-10-20  Bruno Haible  <bruno@clisp.org>
36333
36334         Take into account the role of SIGABRT_COMPAT on Windows 2008.
36335         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
36336         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
36337         as an alias for SIGABRT.
36338         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
36339         (sigaction): Map it to SIGABRT.
36340         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
36341
36342 2008-10-20  Bruno Haible  <bruno@clisp.org>
36343
36344         * lib/fts.c: Don't include lstat.h.
36345         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
36346
36347         Move the lstat() declaration to <sys/stat.h>.
36348         * lib/lstat.h: Remove file.
36349         * lib/sys_stat.in.h: Add special invocation convention.
36350         (lstat): New declaration.
36351         * lib/lstat.c (orig_lstat): New function.
36352         (rpl_lstat): Use orig_lstat instead of lstat.
36353         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
36354         AC_C_INLINE. Set REPLACE_LSTAT.
36355         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
36356         and REPLACE_LSTAT.
36357         * modules/lstat (Files): Remove lib/lstat.h.
36358         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36359         (Include): Specify <sys/stat.h> instead of lstat.h.
36360         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
36361         REPLACE_LSTAT.
36362         * NEWS: Mention the change.
36363
36364 2008-10-20  Bruno Haible  <bruno@clisp.org>
36365
36366         * modules/posix_spawn-tests: New file.
36367         * tests/test-posix_spawn3.c: New file.
36368
36369 2008-10-20  Bruno Haible  <bruno@clisp.org>
36370
36371         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
36372         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36373         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
36374         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36375         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
36376
36377 2008-10-20  Bruno Haible  <bruno@clisp.org>
36378
36379         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36380         of posix_spawn on AIX 5.3.
36381
36382 2008-10-20  Bruno Haible  <bruno@clisp.org>
36383
36384         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36385
36386 2008-10-20  Bruno Haible  <bruno@clisp.org>
36387
36388         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36389         of AC_LANG_PROGRAM.
36390
36391 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36392
36393         * lib/netdb.in.h: Don't define GNU specific constants until they
36394         are supported or needed.  Reported by Bruno Haible
36395         <bruno@clisp.org>.
36396
36397 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36398
36399         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36400
36401 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36402
36403         * lib/getaddrinfo.h: Remove file.
36404         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36405         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36406         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36407         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36408         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36409         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36410         * tests/test-getaddrinfo.c: Likewise.
36411         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36412         * NEWS: Mention change.
36413
36414 2008-10-19  Bruno Haible  <bruno@clisp.org>
36415
36416         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36417
36418 2008-10-19  Bruno Haible  <bruno@clisp.org>
36419
36420         * lib/wait-process.c: Include simply <sys/wait.h>.
36421         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36422         WIFSTOPPED): Remove fallback definitions.
36423         * modules/wait-process (Depends-on): Add sys_wait.
36424
36425         New module 'sys_wait'.
36426         * modules/sys_wait: New file.
36427         * lib/sys_wait.in.h: New file, partially copied from
36428         lib/wait-process.c.
36429         * m4/sys_wait_h.m4: New file.
36430         * doc/posix-headers/sys_wait.texi: Mention the new module.
36431
36432 2008-10-19  Bruno Haible  <bruno@clisp.org>
36433
36434         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36435
36436 2008-10-19  Bruno Haible  <bruno@clisp.org>
36437
36438         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36439         * lib/wait-process.c (WAIT_T): Remove type.
36440         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36441         (wait_subprocess): Update.
36442
36443 2008-10-19  Bruno Haible  <bruno@clisp.org>
36444
36445         New module 'atoll'.
36446         * modules/atoll: New file.
36447         * lib/stdlib.in.h (atoll): New declaration.
36448         * lib/atoll.c: New file, from glibc with modifications.
36449         * m4/atoll.m4: New file.
36450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36451         HAVE_ATOLL.
36452         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36453         * doc/posix-functions/atoll.texi: Mention the new module.
36454
36455 2008-10-19  Bruno Haible  <bruno@clisp.org>
36456
36457         Add strtoull() declaration to <stdlib.h>.
36458         * lib/stdlib.in.h (strtoull): New declaration.
36459         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36460         Set HAVE_STRTOULL.
36461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36462         HAVE_STRTOULL.
36463         * modules/strtoull (Depends-on): Add stdlib.
36464         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36465         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36466         HAVE_STRTOULL.
36467
36468 2008-10-19  Bruno Haible  <bruno@clisp.org>
36469
36470         Add strtoll() declaration to <stdlib.h>.
36471         * lib/stdlib.in.h (strtoll): New declaration.
36472         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36473         Set HAVE_STRTOLL.
36474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36475         HAVE_STRTOLL.
36476         * modules/strtoll (Depends-on): Add stdlib.
36477         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36478         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36479
36480 2008-10-19  Bruno Haible  <bruno@clisp.org>
36481
36482         * modules/bcopy (Depends-on): Add strings.
36483         (Include): Specify <strings.h>.
36484
36485 2008-10-19  Bruno Haible  <bruno@clisp.org>
36486
36487         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36488
36489 2008-10-19  Bruno Haible  <bruno@clisp.org>
36490
36491         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36492         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36493         mingw.
36494
36495 2008-10-19  Bruno Haible  <bruno@clisp.org>
36496
36497         * lib/atanl.c: Don't include isnanl.h.
36498         * lib/cosl.c: Likewise.
36499         * lib/ldexpl.c: Likewise.
36500         * lib/logl.c: Likewise.
36501         * lib/sinl.c: Likewise.
36502         * lib/sqrtl.c: Likewise.
36503         * lib/tanl.c: Likewise.
36504
36505         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36506         * lib/isnanf.h: Remove file.
36507         * lib/isnand.h: Remove file.
36508         * lib/isnanl.h: Remove file.
36509         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36510         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36511         macros.
36512         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36513         HAVE_ISNANF, don't define it as a C macro.
36514         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36515         HAVE_ISNAND, don't define it as a C macro.
36516         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36517         HAVE_ISNANL, don't define it as a C macro.
36518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36519         HAVE_ISNAN[FDL].
36520         * modules/isnanf (Files): Remove lib/isnanf.h.
36521         (Depends-on): Add math.
36522         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36523         (Include): Specify <math.h> instead of isnanf.h.
36524         * modules/isnand (Files): Remove lib/isnand.h.
36525         (Depends-on): Add math.
36526         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36527         (Include): Specify <math.h> instead of isnand.h.
36528         * modules/isnanl (Files): Remove lib/isnanl.h.
36529         (Depends-on): Add math.
36530         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36531         (Include): Specify <math.h> instead of isnanl.h.
36532         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36533         HAVE_ISNAN[FDL].
36534         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36535         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36536         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36537         * NEWS: Mention the change.
36538
36539 2008-10-18  Bruno Haible  <bruno@clisp.org>
36540
36541         Add getusershell(), setusershell(), endusershell() declarations to
36542         <unistd.h>.
36543         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36544         declarations.
36545         * lib/getusershell.c: Include unistd.h.
36546         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36547         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36548         HAVE_GETUSERSHELL.
36549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36550         and HAVE_GETUSERSHELL.
36551         * modules/getusershell (Depends-on): Add unistd, extensions.
36552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36553         (Include): Specify <unistd.h>.
36554         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36555         HAVE_GETUSERSHELL.
36556
36557 2008-10-18  Bruno Haible  <bruno@clisp.org>
36558
36559         Add a getloadavg() declaration to <stdlib.h>.
36560         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36561         getloadavg declaration.
36562         (getloadavg): New declaration.
36563         * lib/getloadavg.c: Include <stdlib.h> first.
36564         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36565         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36566         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36568         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36569         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36570         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36571         (Include): Specify <stdlib.h>.
36572         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36573         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36574
36575 2008-10-18  Bruno Haible  <bruno@clisp.org>
36576
36577         * lib/dirchownmod.c: Don't include lchmod.h.
36578
36579         Move the lchmod() declaration to <sys/stat.h>.
36580         * lib/lchmod.h: Remove file.
36581         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36582         (lchmod): New declaration, moved here from lib/lchown.h.
36583         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36584         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36585         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36586         and HAVE_LCHMOD.
36587         * modules/lchmod (Files): Remove lib/lchmod.h.
36588         (Depends-on): Add sys_stat, extensions.
36589         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36590         (Include): Specify <sys/stat.h> instead of lchmod.h.
36591         * modules/sys_stat (Depends-on): Add link-warning.
36592         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36593         definition of GL_LINK_WARNING.
36594         * NEWS: Mention the change.
36595
36596 2008-10-18  Bruno Haible  <bruno@clisp.org>
36597
36598         * lib/fchdir.c: Don't include dirfd.h.
36599         * lib/fts.c: Likewise.
36600         * lib/getcwd.c: Likewise.
36601         * lib/glob.c: Likewise.
36602
36603         Move the dirfd() declaration to <dirent.h>.
36604         * lib/dirfd.h: Remove file.
36605         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36606         (dirfd): New declaration.
36607         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36608         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36609         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36610         HAVE_DECL_DIRFD.
36611         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36612         HAVE_DECL_DIRFD.
36613         * modules/dirfd (Files): Remove lib/dirfd.h.
36614         (Depends-on): Add dirent, extensions.
36615         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36616         (Include): Specify <dirent.h> instead of dirfd.h.
36617         * modules/dirent (Depends-on): Add link-warning.
36618         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36619         definition of GL_LINK_WARNING.
36620         * NEWS: Mention the change.
36621
36622 2008-10-18  Bruno Haible  <bruno@clisp.org>
36623
36624         Move the euidaccess() declaration to <unistd.h>.
36625         * lib/euidaccess.h: Remove file.
36626         * lib/unistd.in.h (euidaccess): New declaration.
36627         * lib/euidaccess.c: Don't include euidaccess.h.
36628         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36629         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36631         and HAVE_EUIDACCESS.
36632         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36633         (Depends-on): Add unistd.
36634         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36635         (Include): Specify <unistd.h> instead of euidaccess.h.
36636         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36637         HAVE_EUIDACCESS.
36638         * NEWS: Mention the change.
36639
36640 2008-10-18  Bruno Haible  <bruno@clisp.org>
36641
36642         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36643
36644         Move the getdomainname() declaration to <unistd.h>.
36645         * lib/getdomainname.h: Remove file.
36646         * lib/unistd.in.h (getdomainname): New declaration.
36647         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36648         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36649         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36650         HAVE_GETDOMAINNAME.
36651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36652         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36653         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36654         (Depends-on): Add unistd, extensions.
36655         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36656         (Includes): Specify <unistd.h> instead of getdomainname.h.
36657         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36658         HAVE_GETDOMAINNAME.
36659         * NEWS: Mention the change.
36660
36661 2008-10-18  Bruno Haible  <bruno@clisp.org>
36662
36663         * modules/dirent: New file.
36664         * m4/dirent_h.m4: New file.
36665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36666         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36667         * modules/fchdir (Files): Remove lib/dirent.in.h.
36668         (Depends-on): Add dirent.
36669         (Makefile.am): Move rules to modules/dirent.
36670         * doc/posix-headers/dirent.texi: Mention the new module.
36671
36672 2008-10-18  Bruno Haible  <bruno@clisp.org>
36673
36674         Avoid -Wunused-parameter warnings in public gnulib header files.
36675         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36676         macro.
36677         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36678
36679 2008-10-18  Bruno Haible  <bruno@clisp.org>
36680
36681         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36682         * doc/glibc-functions/error.texi: Mention the module 'error'.
36683         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36684         * doc/glibc-functions/getdomainname.texi: Mention the module
36685         'getdomainname'.
36686         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36687         * doc/glibc-functions/getpagesize.texi: Mention the module
36688         'getpagesize'.
36689         * doc/glibc-functions/getusershell.texi: Mention the module
36690         'getusershell'.
36691         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36692         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36693         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36694         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36695         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36696         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36697         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36698         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36699         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36700         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36701         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36702         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36703         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36704         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36705
36706 2008-10-17  Bruno Haible  <bruno@clisp.org>
36707
36708         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36709         HP-UX and IRIX, use -0.0L.
36710         * tests/test-ceill.c (minus_zero): Likewise.
36711         * tests/test-floorl.c (minus_zero): Likewise.
36712         * tests/test-frexpl.c (minus_zero): Likewise.
36713         * tests/test-isnan.c (minus_zerol): Likewise.
36714         * tests/test-isnanl.h (minus_zero): Likewise.
36715         * tests/test-ldexpl.c (minus_zero): Likewise.
36716         * tests/test-roundl.c (minus_zero): Likewise.
36717         * tests/test-signbit.c (minus_zerol): Likewise.
36718         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36719         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36720         * tests/test-truncl.c (minus_zero): Likewise.
36721         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36722         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36723         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36724         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36725
36726 2008-10-17  Bruno Haible  <bruno@clisp.org>
36727
36728         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36729         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36730         that it gets activated only for gcc >= 3.0.
36731         * lib/dirent.in.h: Likewise.
36732         * lib/errno.in.h: Likewise.
36733         * lib/fcntl.in.h: Likewise.
36734         * lib/float.in.h: Likewise.
36735         * lib/iconv.in.h: Likewise.
36736         * lib/inttypes.in.h: Likewise.
36737         * lib/locale.in.h: Likewise.
36738         * lib/math.in.h: Likewise.
36739         * lib/netdb.in.h: Likewise.
36740         * lib/netinet_in.in.h: Likewise.
36741         * lib/search.in.h: Likewise.
36742         * lib/signal.in.h: Likewise.
36743         * lib/spawn.in.h: Likewise.
36744         * lib/stdarg.in.h: Likewise.
36745         * lib/stdint.in.h: Likewise.
36746         * lib/stdio.in.h: Likewise.
36747         * lib/stdlib.in.h: Likewise.
36748         * lib/string.in.h: Likewise.
36749         * lib/strings.in.h: Likewise.
36750         * lib/sys_file.in.h: Likewise.
36751         * lib/sys_ioctl.in.h: Likewise.
36752         * lib/sys_select.in.h: Likewise.
36753         * lib/sys_socket.in.h: Likewise.
36754         * lib/sys_stat.in.h: Likewise.
36755         * lib/sys_time.in.h: Likewise.
36756         * lib/sysexits.in.h: Likewise.
36757         * lib/time.in.h: Likewise.
36758         * lib/unistd.in.h: Likewise.
36759         * lib/wchar.in.h: Likewise.
36760         * lib/wctype.in.h: Likewise.
36761         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36762
36763 2008-10-17  Jim Meyering  <meyering@redhat.com>
36764
36765         ignore-value: don't depend on inline module
36766         * modules/ignore-value (Depends-on): Remove 'inline'.
36767         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36768         Suggestion from Bruno Haible.
36769
36770 2008-10-17  Bruno Haible  <bruno@clisp.org>
36771
36772         New implementation of condition variables for Win32.
36773         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36774         (gl_linked_waitqueue_t): New type.
36775         (gl_cond_t): Use it.
36776         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36777         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36778         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36779         (glthread_cond_init_func, glthread_cond_wait_func,
36780         glthread_cond_timedwait_func, glthread_cond_signal_func,
36781         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36782         Reimplemented on the basis of gl_linked_waitqueue_t.
36783         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36784         gl_waitqueue_t.
36785         (gl_rwlock_t): Update.
36786         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36787
36788 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36789
36790         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36791         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36792
36793 2008-10-17  Jim Meyering  <meyering@redhat.com>
36794
36795         ignore-value: new module
36796         * modules/ignore-value: New file.
36797         * lib/ignore-value.h: New file.
36798         * MODULES.html.sh (Compiler warning management): New section,
36799         just for this module.  More to come.
36800
36801 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36802
36803         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36804         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36805         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36806
36807 2008-10-16  Jim Meyering  <meyering@redhat.com>
36808
36809         openat-die.c: avoid 'no previous prototype' warning
36810         * lib/openat-die.c: Include "openat.h".
36811         Reported by Reuben Thomas <rrt@sc3d.org>.
36812
36813 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36814
36815         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36816         * lib/netdb.in.h: Fix typo.
36817         Reported by Bruno Haible  <bruno@clisp.org>
36818
36819         * lib/netdb.in.h: Include sys/socket.h for platforms without
36820         netdb.h, to get structures like hostent on MinGW.
36821         * modules/netdb (Depends-on): Add sys_socket.
36822
36823 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36824
36825         * modules/netdb, modules/netdb-tests: New file.
36826         * m4/netdb_h.m4: New file.
36827         * lib/netdb.in.h: Add, currently just an empty file pending
36828         definitions.
36829         * tests/test-netdb.c: New file.
36830         * doc/posix-headers/netdb.texi: Mention that we replace it if
36831         needed.
36832         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36833         netdb.
36834
36835 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36836
36837         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36838         with code.
36839
36840 2008-10-13  Bruno Haible  <bruno@clisp.org>
36841
36842         * lib/glthread/cond.c (glthread_cond_wait_func,
36843         glthread_cond_timedwait_func): Add a comment.
36844
36845 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36846
36847         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36848         * tests/test-select.c: Likewise,
36849
36850 2008-10-13  Bruno Haible  <bruno@clisp.org>
36851
36852         * lib/glthread/cond.c (glthread_cond_wait_func,
36853         glthread_cond_timedwait_func): Fix variable name.
36854         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36855
36856 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36857
36858         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36859         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36860         struct sockaddr.sa_len.
36861         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36862
36863 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36864
36865         * build-aux/pmccabe2html: Add css and css_url parameters.
36866
36867 2008-10-12  Bruno Haible  <bruno@clisp.org>
36868
36869         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36870         calling aclx_get.
36871         Reported by Rainer Tammer <tammer@tammer.net>.
36872
36873 2008-10-12  Bruno Haible  <bruno@clisp.org>
36874
36875         Use msvcrt aware primitives for creation/termination of Win32 threads.
36876         * lib/glthread/thread.c: Include <process.h>.
36877         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36878         (wrapper_func): Update signature.
36879         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36880
36881 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36882             Bruno Haible  <bruno@clisp.org>
36883
36884         Provide a Win32 implementation of the 'cond' module.
36885         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36886         * lib/glthread/cond.c (glthread_cond_init_func,
36887         glthread_cond_wait_func, glthread_cond_timedwait_func,
36888         glthread_cond_signal_func, glthread_cond_broadcast_func,
36889         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36890         * modules/cond (Dependencies): Add gettimeofday.
36891
36892 2008-10-11  Bruno Haible  <bruno@clisp.org>
36893
36894         Make sleep work on older versions of mingw.
36895         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36896         only whether it exists.
36897         * doc/posix-functions/sleep.texi: Mention the problem with older
36898         versions of mingw.
36899
36900 2008-10-11  Bruno Haible  <bruno@clisp.org>
36901
36902         New module 'shutdown'.
36903         * modules/shutdown: New file.
36904         * lib/sys_socket.in.h (shutdown): New declaration.
36905         * lib/winsock.c (shutdown): New function.
36906         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36907         GNULIB_SHUTDOWN.
36908         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36909         * doc/posix-functions/shutdown.texi: Document the new module.
36910
36911 2008-10-11  Jim Meyering  <meyering@redhat.com>
36912
36913         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36914
36915 2008-10-11  Bruno Haible  <bruno@clisp.org>
36916
36917         New module 'fclose'.
36918         * modules/fclose: New file.
36919         * lib/stdio.in.h (fclose): New declaration.
36920         * lib/fclose.c: New file.
36921         * m4/fclose.m4: New file.
36922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36923         REPLACE_FCLOSE.
36924         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36925         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36926         REPLACE_FCLOSE.
36927         * modules/close (Depends-on): fclose.
36928         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36929
36930 2008-10-11  Bruno Haible  <bruno@clisp.org>
36931
36932         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36933         set errno and don't call _close.
36934
36935 2008-10-10  Bruno Haible  <bruno@clisp.org>
36936
36937         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36938         ACL, not afterwards. Fixes test failure on Cygwin.
36939
36940 2008-10-09  Ben Pfaff  <blp@gnu.org>
36941
36942         * build-aux/announce-gen: Fix gnulib version related part of usage
36943         message.  Die with a useful error message if no tarballs are
36944         found.
36945
36946 2008-10-10  Jim Meyering  <meyering@redhat.com>
36947
36948         bootstrap: use git's --depth=N option only if it's supported
36949         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36950         recognize the --depth option.  Reported by Pádraig Brady.
36951
36952 2008-10-09  Bruno Haible  <bruno@clisp.org>
36953
36954         New module 'ioctl'.
36955         * modules/ioctl: New file.
36956         * lib/sys_socket.in.h (ioctl): Remove declaration.
36957         * lib/winsock.c: Include <sys/ioctl.h>.
36958         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36959         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36960         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36961         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36962         * doc/posix-functions/ioctl.texi: Mention the new module.
36963
36964 2008-10-09  Bruno Haible  <bruno@clisp.org>
36965
36966         New module 'sys_ioctl'.
36967         * lib/sys_ioctl.in.h: New file.
36968         * m4/sys_ioctl_h.m4: New file.
36969         * modules/sys_ioctl: New file.
36970         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36971
36972 2008-10-09  Bruno Haible  <bruno@clisp.org>
36973
36974         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36975         * lib/winsock.c: Include <stdarg.h>.
36976         (rpl_ioctl): Change to second argument 'int' and then varargs.
36977
36978 2008-10-09  Bruno Haible  <bruno@clisp.org>
36979
36980         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36981         when the sys_socket module is present and the system has <winsock2.h>.
36982
36983 2008-10-09  Bruno Haible  <bruno@clisp.org>
36984
36985         * doc/posix-functions/close.texi: Mention module 'close' instead of
36986         module 'sys_socket'.
36987
36988 2008-10-09  Bruno Haible  <bruno@clisp.org>
36989
36990         * doc/glibc-headers/sys_ioctl.texi: New file.
36991         * doc/gnulib.texi: Include it.
36992
36993 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36994             Bruno Haible  <bruno@clisp.org>
36995
36996         Combine the two replacements of 'close'.
36997         * lib/sys_socket.in.h (close): Define to a reminder to include
36998         <unistd.h>.
36999         (_gl_close_fd_maybe_socket): New declaration.
37000         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37001         * lib/winsock.c (close): Remove undefinition.
37002         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37003         needed for the gnulib module 'close'.
37004         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37005         define to an error symbol or to a warning, if suitable.
37006         * lib/close.c: Include <sys/socket.h>.
37007         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37008         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37009         UNISTD_H_HAVE_WINSOCK2_H.
37010         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37012         UNISTD_H_HAVE_WINSOCK2_H.
37013         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37014         (configure.ac): Set a module indicator.
37015         (Makefile.am): Substitute GNULIB_CLOSE.
37016         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37017         * modules/poll-tests (Depends-on): Add close.
37018         * modules/select-tests (Depends-on): Likewise.
37019
37020 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37021             Bruno Haible  <bruno@clisp.org>
37022
37023         New module 'close'.
37024         * modules/close: New file.
37025         * lib/unistd.in.h (close): Move declaration out of the
37026         FCHDIR_REPLACEMENT scope.
37027         (_gl_unregister_fd): New declaration.
37028         * lib/close.c: New file.
37029         * lib/fchdir.c (rpl_close): Remove function.
37030         * m4/close.m4: New file.
37031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37032         close.
37033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37034         REPLACE_CLOSE.
37035         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37036         REPLACE_CLOSE.
37037         * modules/fchdir (Depends-on): Add close.
37038
37039 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37040             Bruno Haible  <bruno@clisp.org>
37041
37042         * lib/fcntl.in.h (open): Simplify conditionals.
37043         (_gl_register_fd): New declaration.
37044         * lib/fchdir.c (rpl_open): Remove function.
37045         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37046         also.
37047         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37049         open.
37050
37051 2008-10-09  Jim Meyering  <meyering@redhat.com>
37052
37053         GNUmakefile: use the more name-space-friendly "_version"
37054         * top/GNUmakefile (_dummy): Update.
37055         (_version): Rename from "version".
37056
37057 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37058             Bruno Haible  <bruno@clisp.org>
37059
37060         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37061         rpl_close.
37062         (_gl_register_fd): New function, extracted from rpl_open.
37063         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37064         (rpl_open, rpl_opendir): Use _gl_register_fd.
37065
37066 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37067
37068         Fix organization of 'open' replacement.
37069         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37070         (gl_FUNC_OPEN): Use it.
37071         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37072
37073 2008-10-08  Bruno Haible  <bruno@clisp.org>
37074
37075         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37076
37077 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37078
37079         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37080         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37081         listen).
37082
37083 2008-10-08  Eric Blake  <ebb9@byu.net>
37084
37085         GNUmakefile: add 'make version' target
37086         * top/GNUmakefile (_curr-ver): Split version update rules...
37087         (version): ...into a target.
37088
37089 2008-10-07  Bruno Haible  <bruno@clisp.org>
37090
37091         Use a more portable replacement expression for -0.0L.
37092         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37093         instead of -0.0L. Fix m4 quotation.
37094
37095         * tests/test-signbit.c: Include <float.h>.
37096         (minus_zero): New variable.
37097         (test_signbitl): Use minus_zero instead of -zero.
37098         * modules/signbit-tests (Depends-on): Add float.
37099
37100         * tests/test-ceill.c: Include <float.h>.
37101         (zero): Remove variable.
37102         (minus_zero): New variable.
37103         (main): Use minus_zero instead of -zero.
37104         * modules/ceill-tests (Depends-on): Add float.
37105
37106         * tests/test-floorl.c: Include <float.h>.
37107         (zero): Remove variable.
37108         (minus_zero): New variable.
37109         (main): Use minus_zero instead of -zero.
37110         * modules/floorl-tests (Depends-on): Add float.
37111
37112         * tests/test-roundl.c: Include <float.h>.
37113         (zero): Remove variable.
37114         (minus_zero): New variable.
37115         (main): Use minus_zero instead of -zero.
37116         * modules/roundl-tests (Depends-on): Add float.
37117
37118         * tests/test-truncl.c: Include <float.h>.
37119         (zero): Remove variable.
37120         (minus_zero): New variable.
37121         (main): Use minus_zero instead of -zero.
37122         * modules/truncl-tests (Depends-on): Add float.
37123
37124         * tests/test-frexpl.c (zero): Remove variable.
37125         (minus_zero): New variable.
37126         (main): Use minus_zero instead of -zero.
37127         * modules/frexpl-tests (Depends-on): Add float.
37128
37129         * tests/test-isnan.c (zerol): Remove variable.
37130         (minus_zerol): New variable.
37131         (test_long_double): Use minus_zerol instead of -zerol.
37132         * modules/isnan-tests (Depends-on): Add float.
37133
37134         * tests/test-isnanl.h (zero): Remove variable.
37135         (minus_zero): New variable.
37136         (main): Use minus_zero instead of -zero.
37137         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37138         * modules/isnanl-tests (Depends-on): Add float.
37139
37140         * tests/test-ldexpl.c (zero): Remove variable.
37141         (minus_zero): New variable.
37142         (main): Use minus_zero instead of -zero.
37143         * modules/ldexpl-tests (Depends-on): Add float.
37144
37145         * tests/test-snprintf-posix.h (zerol): Remove variable.
37146         (minus_zerol): New variable.
37147         (test_function): Use minus_zerol instead of -zerol.
37148         * modules/snprintf-posix-tests (Depends-on): Add float.
37149         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37150
37151         * tests/test-sprintf-posix.h (zerol): Remove variable.
37152         (minus_zerol): New variable.
37153         (test_function): Use minus_zerol instead of -zerol.
37154         * modules/sprintf-posix-tests (Depends-on): Add float.
37155         * modules/vsprintf-posix-tests (Depends-on): Add float.
37156
37157         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37158         (minus_zerol): New variable.
37159         (test_function): Use minus_zerol instead of -zerol.
37160         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37161
37162         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37163         (minus_zerol): New variable.
37164         (test_function): Use minus_zerol instead of -zerol.
37165         * modules/vasprintf-posix-tests (Depends-on): Add float.
37166
37167 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37168
37169         * MODULES.html.sh (Support for building documentation): Mention
37170         pmccabe2html.  Sort entries.
37171
37172         Add pmccabe2html module, from gnupdf.
37173         * build-aux/pmccabe.css: New file.
37174         * build-aux/pmccabe2html: New file.
37175         * m4/pmccabe2html.m4: New file.
37176         * modules/pmccabe2html: New file.
37177
37178 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37179
37180         flock: new module
37181         * MODULES.html.sh: Add to list of modules.
37182         * lib/flock.c: flock implementation for Windows and Unix systems
37183         which have fcntl.
37184         * doc/glibc-functions/flock.texi: Update documentation.
37185         * lib/sys_file.in.h: <sys/file.h> header file.
37186         * m4/flock.m4: M4 macros.
37187         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37188         * modules/flock: flock module.
37189         * modules/flock-tests: flock tests module.
37190         * modules/sys_file: sys/file.h module.
37191         * tests/test-flock.c: test suite for flock.
37192
37193 2008-10-06  Jim Meyering  <meyering@redhat.com>
37194
37195         bootstrap: check for LT_INIT more portably still ;-)
37196         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37197         Spotted by Bruno Haible.
37198
37199 2008-10-06  Eric Blake  <ebb9@byu.net>
37200
37201         test-signbit: avoid tripping Irix cc bug on -0.0L
37202         * tests/test-signbit.c (minus_zerol): Delete, and replace with
37203         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
37204         entire testsuite consistent and avoids an Irix 6.2 bug.
37205
37206 2008-10-05  Bruno Haible  <bruno@clisp.org>
37207             Jim Meyering  <jim@meyering.net>
37208
37209         Add an option for ignoring EPIPE during close_stdout.
37210         * lib/closeout.h: Include <stdbool.h>.
37211         (close_stdout_set_ignore_EPIPE): New declaration.
37212         * lib/closeout.c: Include <stdbool.h>.
37213         (ignore_EPIPE): New variable.
37214         (close_stdout_set_ignore_EPIPE): New function.
37215         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
37216         * lib/close-stream.c (close_stream): Mention the possible EPIPE
37217         failure.
37218         * modules/closeout (Depends-on): Add stdbool.
37219
37220 2008-10-05  Bruno Haible  <bruno@clisp.org>
37221
37222         * modules/accept: New file.
37223         * modules/bind: New file.
37224         * modules/connect: New file.
37225         * modules/getpeername: New file.
37226         * modules/getsockname: New file.
37227         * modules/getsockopt: New file.
37228         * modules/listen: New file.
37229         * modules/recv: New file.
37230         * modules/recvfrom: New file.
37231         * modules/send: New file.
37232         * modules/sendto: New file.
37233         * modules/setsockopt: New file.
37234         * modules/socket: New file.
37235         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
37236         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37237         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
37238         the particular module is requested. Add a link warning when the
37239         particular module is not requested.
37240         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
37241         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
37242         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
37243         the particular module is requested.
37244         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
37245         gl_SYS_SOCKET_H_DEFAULTS): New macros.
37246         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
37247         * modules/sys_socket (Depends-on): Add link-warning.
37248         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
37249         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
37250         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
37251         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
37252         GL_LINK_WARNING.
37253         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
37254         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
37255         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
37256         * doc/posix-functions/getpeername.texi: Mention the new module
37257         'getpeername'.
37258         * doc/posix-functions/getsockname.texi: Mention the new module
37259         'getsockname'.
37260         * doc/posix-functions/getsockopt.texi: Mention the new module
37261         'getsockopt'.
37262         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
37263         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
37264         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
37265         * doc/posix-functions/send.texi: Mention the new module 'send'.
37266         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
37267         * doc/posix-functions/setsockopt.texi: Mention the new module
37268         'setsockopt'.
37269         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
37270         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
37271         listen, connect, accept.
37272         * modules/select-tests (Depends-on): Likewise.
37273
37274 2008-10-05  Bruno Haible  <bruno@clisp.org>
37275
37276         * lib/winsock.c (strerror): Remove unused #undef.
37277         (rpl_close): Remove unused local variable.
37278
37279         * modules/sys_socket (Depends-on); Add errno.
37280
37281 2008-10-05  Bruno Haible  <bruno@clisp.org>
37282
37283         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37284         (select): Add a link warning when the 'select' module is not used.
37285         * modules/sys_select (Depends-on): Add link-warning.
37286         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37287         Suggested by Paolo Bonzini.
37288
37289 2008-10-05  Jim Meyering  <meyering@redhat.com>
37290
37291         bootstrap: check for LT_INIT more portably
37292         * build-aux/bootstrap: Avoid using grep -E, since it's not
37293         portable enough.  Suggestion from Bruno Haible.
37294
37295 2008-10-05  Bruno Haible  <bruno@clisp.org>
37296
37297         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37298         as being fixed by gnulib.
37299
37300 2008-10-05  Bruno Haible  <bruno@clisp.org>
37301
37302         * modules/select-tests: New file, mostly copied from
37303         modules/sys_select-tests.
37304         * tests/test-select.c: New file, mostly copied from
37305         tests/test-sys_select.c.
37306         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37307         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37308         (Makefile.am): Remove test_sys_select_LDADD.
37309
37310         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
37311         to an undefined symbol, for an error message.
37312         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
37313         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37314         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37315         winsock-select.c here.
37316         * modules/sys_select (Files): Remove lib/winsock-select.c.
37317         (Depends-on): Remove alloca.
37318         (Makefile.am): Substitute GNULIB_SELECT.
37319         * modules/select: New file.
37320         * doc/posix-functions/select.texi: Update.
37321
37322 2008-10-05  Bruno Haible  <bruno@clisp.org>
37323
37324         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
37325         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
37326         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
37327         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
37328         getdtablesize.
37329         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37330         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37331
37332 2008-10-05  Bruno Haible  <bruno@clisp.org>
37333
37334         * modules/getdtablesize-tests: New file.
37335         * tests/test-getdtablesize.c: New file.
37336
37337         New module 'getdtablesize'.
37338         * lib/unistd.in.h (getdtablesize): New declaration.
37339         * lib/getdtablesize.c: New file.
37340         * m4/getdtablesize.m4: New file.
37341         * modules/getdtablesize: New file.
37342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37343         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
37344         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
37345         HAVE_GETDTABLESIZE.
37346         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
37347
37348 2008-10-05  Bruno Haible  <bruno@clisp.org>
37349
37350         * modules/sched (Makefile.am): Fix typo.
37351         Reported by Simon Josefsson.
37352
37353 2008-10-05  Jim Meyering  <meyering@redhat.com>
37354
37355         bootstrap: check for LT_INIT, too
37356         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
37357         are deprecated.  Suggestion from Ralf Wildenhues.
37358
37359 2008-10-05  Bruno Haible  <bruno@clisp.org>
37360
37361         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
37362         overriding them by ours.
37363         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
37364
37365 2008-10-05  Jim Meyering  <meyering@redhat.com>
37366
37367         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
37368         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
37369         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
37370
37371 2008-10-04  Bruno Haible  <bruno@clisp.org>
37372
37373         * modules/dup2 (License): Change to LGPLv2+.
37374         * modules/sleep (License): Likewise.
37375         * modules/perror (License): Likewise.
37376         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37377         Blake.
37378         * modules/signal (License): Likewise.
37379         * modules/sigprocmask (License): Likewise.
37380         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37381         Meyering.
37382
37383 2008-10-04  Bruno Haible  <bruno@clisp.org>
37384
37385         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37386         Reported by Rainer Tammer <tammer@tammer.net>.
37387
37388 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37389             Bruno Haible  <bruno@clisp.org>
37390
37391         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37392         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37393         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37394
37395 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37396
37397         filevercmp: new module
37398         * lib/filevercmp.h: New function filevercmp comparing version strings.
37399         * lib/filevercmp.c: Implementation of filevercmp function.
37400         * modules/filevercmp: Module metadata.
37401         * tests/test-filevercmp.c: Unit test for new module.
37402         * modules/filevercmp-tests: Unit test metadata.
37403         * MODULES.html.sh: Add filevercmp module.
37404
37405 2008-10-03  Bruno Haible  <bruno@clisp.org>
37406
37407         * lib/c-ctype.h: Add comment.
37408         Reported by Jim Meyering.
37409
37410 2008-10-02  Bruno Haible  <bruno@clisp.org>
37411
37412         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37413
37414 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37415
37416         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37417         name of bootstrap.conf accordingly.
37418
37419 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37420
37421         * build-aux/bootstrap: Install git-merge-changelog configuration
37422         items into .gitconfig if needed.
37423
37424 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37425
37426         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37427         git repository, and initialize/update it accordingly.
37428
37429 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37430
37431         * modules/fsync-tests: New file.
37432         * tests/test-fsync.c: New file.
37433
37434         New module 'fsync'.
37435         * lib/fsync.c: New file.
37436         * m4/fsync.m4: New file.
37437         * modules/fsync: New file.
37438         * lib/unistd.in.h (fsync): New declaration.
37439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37440         GNULIB_FSYNC and HAVE_FSYNC.
37441         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37442         * MODULES.html.sh (posix_functions): Add fsync.
37443         * doc/posix-functions/fsync.texi: Mention the new module.
37444
37445 2008-10-02  Jim Meyering  <meyering@redhat.com>
37446
37447         fts.c: sync with similar code from coreutils' remove.c
37448         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37449         Guard also with "#if defined __linux__", since for now at least,
37450         this code is Linux-kernel-specific.
37451
37452 2008-10-02  Jim Meyering  <meyering@redhat.com>
37453
37454         fts: bug fixes
37455         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37456         Include <sys/vfs.h>, not <sys/statfs.h>.
37457
37458         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37459         Include <sys/vfs.h>, not <sys/statfs.h>.
37460
37461 2008-10-01  Bruno Haible  <bruno@clisp.org>
37462
37463         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37465         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37466         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37467         * doc/posix-functions/posix_spawnp.texi: Likewise.
37468         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37469         whether posix_spawn actually works.
37470         * m4/pipe.m4 (gl_PIPE): Likewise.
37471         * modules/execute (Files): Add m4/posix_spawn.m4.
37472         * modules/pipe (Files): Add m4/posix_spawn.m4.
37473         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37474
37475 2008-10-01  Jim Meyering  <meyering@redhat.com>
37476
37477         remove trailing spaces
37478         * NEWS: Likewise.
37479         * lib/poll.c (poll): Likewise.
37480         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37481         * lib/winsock.c (rpl_close): Likewise.
37482         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37483         * modules/yield: Likewise.
37484         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37485         * tests/test-sys_select.c (connect_to_socket): Likewise.
37486
37487         fts.c: adjust a new interface to be more generally useful
37488         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37489         (fts_build): Adjust caller.
37490
37491 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37492
37493         * modules/cond-tests: New file.
37494         * tests/test-cond.c: New file.
37495
37496 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37497             Bruno Haible  <bruno@clisp.org>
37498
37499         * modules/cond (Dependencies): Add errno, time.
37500         * lib/glthread/cond.h: Include <time.h>.
37501         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37502         across platforms.
37503
37504 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37505             Bruno Haible  <bruno@clisp.org>
37506
37507         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37508
37509 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37510             Bruno Haible  <bruno@clisp.org>
37511
37512         * modules/tls-tests (Depends-on): Add thread, yield.
37513         (configure.ac): Remove all checks.
37514         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37515         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37516         gl_thread_self): Remove definitions. Include glthread/thread.h and
37517         glthread/yield.h instead.
37518         (test_tls): Pass an additional NULL argument to gl_thread_join.
37519
37520 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37521             Bruno Haible  <bruno@clisp.org>
37522
37523         * modules/lock-tests (Depends-on): Add thread, yield.
37524         (configure.ac): Remove all checks.
37525         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37526         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37527         gl_thread_self): Remove definitions. Include glthread/thread.h and
37528         glthread/yield.h instead.
37529         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37530         additional NULL argument to gl_thread_join.
37531
37532 2008-09-30  Bruno Haible  <bruno@clisp.org>
37533
37534         Fix the Win32 implementation of the 'thread' module.
37535         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37536         pointer type.
37537         (gl_thread_self): Invoke gl_thread_self_func.
37538         (gl_thread_self_func): New declaration.
37539         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37540         (do_init_self_key, init_self_key): New functions.
37541         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37542         Remove some fields.
37543         (running_threads, running_lock): Remove variables.
37544         (get_current_thread_handle): New function.
37545         (gl_thread_self_func, wrapper_func, glthread_create_func,
37546         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37547         simplified.
37548
37549 2008-09-30  Bruno Haible  <bruno@clisp.org>
37550
37551         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37552         files.
37553
37554 2008-09-30  Jim Meyering  <meyering@redhat.com>
37555
37556         fts.m4: correct the test for statfs.f_type
37557         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37558         when checking for statfs.f_type.
37559
37560 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37561
37562         tests: avoid some compiler warnings
37563         * tests/test-memchr.c (main): Pass NULL indirectly.
37564         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37565
37566 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37567
37568         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37569         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37570         exactly specified dayshifts.
37571         (dayshift): New rule.
37572         (rel): Add dayshift.
37573         (relative_time_table) [tomorrow, yesterday, today, now]:
37574         Use tDAY_SHIFT in place of tDAY_UNIT.
37575         * tests/test-getdate.c: Add tests for now-disallowed countable
37576         dayshifts, e.g., "4 yesterday ago".
37577
37578 2008-09-29  Bruno Haible  <bruno@clisp.org>
37579
37580         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37581         * tests/test-posix_spawn1.in.sh: Renamed from
37582         tests/test-posix_spawn.in.sh.
37583         * tests/test-posix_spawn2.c: New file.
37584         * tests/test-posix_spawn2.in.sh: New file.
37585         * modules/posix_spawnp-tests (Files): Update.
37586         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37587
37588 2008-09-29  Bruno Haible  <bruno@clisp.org>
37589
37590         Propagate effects of putenv/setenv/unsetenv to child processes.
37591         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37592         * lib/pipe.c (create_pipe): Likewise.
37593
37594 2008-09-29  Bruno Haible  <bruno@clisp.org>
37595
37596         Enable use of shell scripts as executables in mingw.
37597         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37598         run the program as a shell script.
37599         * lib/pipe.c (create_pipe): Likewise.
37600         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37601         resulting array.
37602
37603 2008-09-29  Eric Blake  <ebb9@byu.net>
37604
37605         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37606
37607 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37608
37609         * doc/posix-functions/accept.texi: Update mingw problems.
37610         * doc/posix-functions/bind.texi: Update mingw problems.
37611         * doc/posix-functions/close.texi: Update mingw problems.
37612         * doc/posix-functions/connect.texi: Update mingw problems.
37613         * doc/posix-functions/getpeername.texi: Update mingw problems.
37614         * doc/posix-functions/getsockname.texi: Update mingw problems.
37615         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37616         * doc/posix-functions/ioctl.texi: Update mingw problems.
37617         * doc/posix-functions/listen.texi: Update mingw problems.
37618         * doc/posix-functions/recv.texi: Update mingw problems.
37619         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37620         * doc/posix-functions/select.texi: Update mingw problems.
37621         * doc/posix-functions/send.texi: Update mingw problems.
37622         * doc/posix-functions/sendto.texi: Update mingw problems.
37623         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37624         * doc/posix-functions/socket.texi: Update mingw problems.
37625
37626 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37627             Bruno Haible  <bruno@clisp.org>
37628
37629         * lib/sys_select.in.h: Include sys/time.h.
37630         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37631         * modules/sys_select: Depend on sys_time.
37632         * tests/test-sys_select.c: Test that sys/select.h defines struct
37633         timeval fully.
37634
37635 2008-09-29  Bruno Haible  <bruno@clisp.org>
37636
37637         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37638         * lib/sys_select.in.h: Likewise.
37639
37640 2008-09-29  Bruno Haible  <bruno@clisp.org>
37641
37642         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37643
37644 2008-09-29  Bruno Haible  <bruno@clisp.org>
37645
37646         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37647         Set LIBSOCKET instead of augmenting LIBS.
37648         * modules/sockets (Link): New section.
37649         * modules/sockets-tests (test_sockets_LDADD): New variable.
37650         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37651         * modules/poll-tests (test_poll_LDADD): New variable.
37652         * NEWS: Document the change.
37653
37654 2008-09-29  Bruno Haible  <bruno@clisp.org>
37655
37656         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37657         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37658         ARPA_INET_H directly.
37659         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37660
37661 2008-09-28  Bruno Haible  <bruno@clisp.org>
37662
37663         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37664         from gl_HEADER_SYS_SOCKET.
37665         (gl_HEADER_SYS_SOCKET): Invoke it.
37666         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37667
37668 2008-09-28  Bruno Haible  <bruno@clisp.org>
37669
37670         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37671         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37672         Needed on OSF/1 4.0.
37673
37674 2008-09-28  Bruno Haible  <bruno@clisp.org>
37675
37676         Override open more carefully.
37677         * lib/open.c (orig_open): New function.
37678         (rpl_open): Use orig_open instead of open.
37679         * lib/fcntl.in.h: Add special invocation convention.
37680         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37681         (gl_FUNC_OPEN): Invoke it.
37682
37683         Override freopen more carefully.
37684         * lib/freopen.c (orig_freopen): New function.
37685         (rpl_freopen): Use orig_freopen instead of freopen.
37686         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37687         (gl_FUNC_FREOPEN): Invoke it.
37688
37689         Override fopen more carefully.
37690         * lib/fopen.c (orig_fopen): New function.
37691         (rpl_fopen): Use orig_fopen instead of fopen.
37692         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37693         (gl_FUNC_FOPEN): Invoke it.
37694         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37695
37696 2008-09-28  Bruno Haible  <bruno@clisp.org>
37697
37698         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37699         SIGPIPE.
37700
37701 2008-09-28  Bruno Haible  <bruno@clisp.org>
37702
37703         * tests/test-sigaction.c (handler, main): Disable the check whether
37704         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37705         glibc systems with LinuxThreads.
37706
37707 2008-09-28  Bruno Haible  <bruno@clisp.org>
37708
37709         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37710
37711         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37712         with AIX xlc.
37713         * lib/fcntl.in.h (open): Likewise.
37714         Reported by Rainer Tammer <tammer@tammer.net>.
37715
37716 2008-09-28  Bruno Haible  <bruno@clisp.org>
37717
37718         * modules/posix_spawnp-tests: New file.
37719         * tests/test-posix_spawn.c: New file.
37720         * tests/test-posix_spawn.in.sh: New file.
37721
37722         New module 'posix_spawnp'.
37723         * modules/posix_spawnp: New file.
37724         * lib/spawnp.c: New file, from GNU libc with modifications.
37725         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37726
37727         New module 'posix_spawn'.
37728         * modules/posix_spawn: New file.
37729         * lib/spawn.c: New file, from GNU libc with modifications.
37730         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37731
37732         New module 'posix_spawnattr_destroy'.
37733         * modules/posix_spawnattr_destroy: New file.
37734         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37735         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37736         module.
37737
37738         New module 'posix_spawnattr_setsigmask'.
37739         * modules/posix_spawnattr_setsigmask: New file.
37740         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37741         modifications.
37742         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37743         new module.
37744
37745         New module 'posix_spawnattr_getsigmask'.
37746         * modules/posix_spawnattr_getsigmask: New file.
37747         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37748         modifications.
37749         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37750         new module.
37751
37752         New module 'posix_spawnattr_setsigdefault'.
37753         * modules/posix_spawnattr_setsigdefault: New file.
37754         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37755         modifications.
37756         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37757         new module.
37758
37759         New module 'posix_spawnattr_getsigdefault'.
37760         * modules/posix_spawnattr_getsigdefault: New file.
37761         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37762         modifications.
37763         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37764         new module.
37765
37766         New module 'posix_spawnattr_setschedpolicy'.
37767         * modules/posix_spawnattr_setschedpolicy: New file.
37768         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37769         modifications.
37770         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37771         new module.
37772
37773         New module 'posix_spawnattr_getschedpolicy'.
37774         * modules/posix_spawnattr_getschedpolicy: New file.
37775         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37776         modifications.
37777         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37778         new module.
37779
37780         New module 'posix_spawnattr_setschedparam'.
37781         * modules/posix_spawnattr_setschedparam: New file.
37782         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37783         modifications.
37784         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37785         new module.
37786
37787         New module 'posix_spawnattr_getschedparam'.
37788         * modules/posix_spawnattr_getschedparam: New file.
37789         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37790         modifications.
37791         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37792         new module.
37793
37794         New module 'posix_spawnattr_setpgroup'.
37795         * modules/posix_spawnattr_setpgroup: New file.
37796         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37797         modifications.
37798         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37799         module.
37800
37801         New module 'posix_spawnattr_getpgroup'.
37802         * modules/posix_spawnattr_getpgroup: New file.
37803         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37804         modifications.
37805         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37806         module.
37807
37808         New module 'posix_spawnattr_setflags'.
37809         * modules/posix_spawnattr_setflags: New file.
37810         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37811         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37812         module.
37813
37814         New module 'posix_spawnattr_getflags'.
37815         * modules/posix_spawnattr_getflags: New file.
37816         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37817         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37818         module.
37819
37820         New module 'posix_spawnattr_init'.
37821         * modules/posix_spawnattr_init: New file.
37822         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37823         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37824         module.
37825
37826         New module 'posix_spawn_file_actions_destroy'.
37827         * modules/posix_spawn_file_actions_destroy: New file.
37828         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37829         modifications.
37830         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37831         the new module.
37832
37833         New module 'posix_spawn_file_actions_addopen'.
37834         * modules/posix_spawn_file_actions_addopen: New file.
37835         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37836         modifications.
37837         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37838         the new module.
37839
37840         New module 'posix_spawn_file_actions_adddup2'.
37841         * modules/posix_spawn_file_actions_adddup2: New file.
37842         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37843         modifications.
37844         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37845         the new module.
37846
37847         New module 'posix_spawn_file_actions_addclose'.
37848         * modules/posix_spawn_file_actions_addclose: New file.
37849         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37850         modifications.
37851         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37852         the new module.
37853
37854         New module 'posix_spawn_file_actions_init'.
37855         * modules/posix_spawn_file_actions_init: New file.
37856         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37857         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37858         new module.
37859
37860         New module 'posix_spawn-internal'.
37861         * modules/posix_spawn-internal: New file.
37862         * lib/spawn_int.h: New file, from GNU libc with modifications.
37863         * lib/spawni.c: New file, from GNU libc with modifications.
37864         * m4/posix_spawn.m4: New file.
37865
37866         New module 'spawn'.
37867         * modules/spawn: New file.
37868         * lib/spawn.in.h: New file, from GNU libc with modifications.
37869         * m4/spawn_h.m4: New file.
37870         * doc/posix-headers/spawn.texi: Mention the new module.
37871
37872 2008-09-28  Bruno Haible  <bruno@clisp.org>
37873
37874         * modules/sched-tests: New file.
37875         * tests/test-sched.c: New file.
37876
37877         New module 'sched'.
37878         * modules/sched: New file.
37879         * lib/sched.in.h: New file.
37880         * m4/sched_h.m4: New file.
37881         * doc/posix-headers/sched.texi: Mention the new module.
37882
37883 2008-09-27  Eric Blake  <ebb9@byu.net>
37884
37885         Fix previous patch, and tweak references to $0.
37886         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37887         (func_version, func_gnulib_dir): Don't call this program
37888         gnulib-tool.
37889         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37890         with using $0 in function.
37891         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37892         (func_fatal_error): Reuse the name the user invoked us with.
37893
37894 2008-09-27  Bruno Haible  <bruno@clisp.org>
37895
37896         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37897         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37898         (gl_ICONV_H): Not here.
37899         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37900         instead of assigning ICONV_H directly.
37901
37902         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37904         WCHAR_H directly.
37905
37906 2008-09-27  Bruno Haible  <bruno@clisp.org>
37907
37908         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37909         * modules/arpa_inet (Depends-on): Add link-warning.
37910         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37911         * modules/unistd (Makefile.am): Likewise.
37912
37913 2008-09-26  Bruno Haible  <bruno@clisp.org>
37914
37915         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37916         variables.
37917         (func_version): Essentially copied from gnulib-tool.
37918         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37919         func_readlink): Copied from gnulib-tool.
37920
37921 2008-09-26  Bruno Haible  <bruno@clisp.org>
37922
37923         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37924         invoking git-version-gen.
37925
37926 2008-09-26  Bruno Haible  <bruno@clisp.org>
37927
37928         * posix-modules: Update to directory names changed on 2008-01-19.
37929         Remove commas in output before splitting into words. No more need to
37930         avoid 'ftruncate' since 2007-02-19.
37931
37932 2008-09-26  Bruno Haible  <bruno@clisp.org>
37933
37934         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37935
37936 2008-09-26  Bruno Haible  <bruno@clisp.org>
37937
37938         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37939         * modules/fwriteerror (Depends-on): Add errno.
37940
37941 2008-09-26  Bruno Haible  <bruno@clisp.org>
37942
37943         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37944         * tests/test-vc-list-files-cvs.sh: Likewise.
37945
37946 2008-09-26  Bruno Haible  <bruno@clisp.org>
37947
37948         * doc/posix-headers/sys_resource.texi: Reorder items.
37949
37950 2008-09-26  Jim Meyering  <meyering@redhat.com>
37951
37952         fts: tweak inode comparison function
37953         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37954         inode numbers, as documented.
37955
37956         fts: sort dirent entries on inode number before traversing
37957         This avoids a quadratic, seek-related performance penalty when
37958         operating on a directory containing many entries (measurable at 10k;
37959         3.5 hours at 2 million entries with a cold cache) on certain types
37960         of file systems, including ext3 and ext4, but not tmpfs.
37961         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37962         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37963         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37964         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37965         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37966         (fts_build): Set the stat.st_ino member from D_INO.
37967         If it is likely to be useful, sort dirent entries on inode number.
37968
37969         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37970         and the struct statfs.f_type member.
37971         * modules/fts (Depends-on): Add d-ino.
37972
37973 2008-09-26  Bruno Haible  <bruno@clisp.org>
37974
37975         * modules/sigpipe-die (Depends-on): Add sigpipe.
37976
37977         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37978         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37979         and GNULIB_STDIO_H_SIGPIPE are set.
37980         * lib/stdio-write.c: New file.
37981         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37982         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37983         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37984         REPLACE_STDIO_WRITE_FUNCS.
37985         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37986         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37987         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37988         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37989         * modules/stdio (Files): Add lib/stdio-write.c.
37990         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37991         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37992         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37993         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37994         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37995         REPLACE_FPRINTF_POSIX.
37996         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37997         REPLACE_PRINTF_POSIX.
37998         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37999         REPLACE_VFPRINTF_POSIX.
38000         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38001         REPLACE_VPRINTF_POSIX.
38002         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38003         SIGPIPE issue.
38004         * doc/posix-functions/fputc.texi: Likewise.
38005         * doc/posix-functions/fputs.texi: Likewise.
38006         * doc/posix-functions/fwrite.texi: Likewise.
38007         * doc/posix-functions/printf.texi: Likewise.
38008         * doc/posix-functions/putc.texi: Likewise.
38009         * doc/posix-functions/putchar.texi: Likewise.
38010         * doc/posix-functions/puts.texi: Likewise.
38011         * doc/posix-functions/vfprintf.texi: Likewise.
38012         * doc/posix-functions/vprintf.texi: Likewise.
38013
38014         * modules/safe-write (Depends-on): Add write.
38015
38016         * modules/sigpipe-tests: New file.
38017         * tests/test-sigpipe.c: New file.
38018         * tests/test-sigpipe.sh: New file.
38019
38020         * modules/write: New file.
38021         * lib/unistd.in.h: Include <sys/types.h>.
38022         (write): New declaration.
38023         * lib/write.c: New file.
38024         * m4/write.m4: New file.
38025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38026         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38027         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38028         GNULIB_WRITE, REPLACE_WRITE.
38029         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38030         and the SIGPIPE issue.
38031
38032         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38033         (raise): New declaration.
38034         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38035         (ext_signal): New function.
38036         (rpl_raise): New function.
38037         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38038         GNULIB_SIGNAL_H_SIGPIPE.
38039         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38040         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38041
38042         * modules/sigpipe: New file.
38043         * m4/sigpipe.m4: New file.
38044
38045 2008-09-25  Derek Price  <derek@ximbiot.com>
38046             Bruno Haible  <bruno@clisp.org>
38047
38048         * gnulib-tool (func_import): Report all license incompatibilities, not
38049         just the first one.
38050
38051 2008-09-25  Bruno Haible  <bruno@clisp.org>
38052
38053         * gnulib-tool (func_import): When computing the edits, consider not
38054         only the Makefile.ams that exist but also those that will be generated.
38055
38056 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38057
38058         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38059         fixes gnulib-tool --test warning about duplicate dependency.
38060
38061 2008-09-25  Bruno Haible  <bruno@clisp.org>
38062
38063         * gnulib-tool: Don't ask the user to perform edits in the generated
38064         Makefile.ams.
38065         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38066         apply to the Makefile.am being generated.
38067         (func_emit_tests_Makefile_am): Execute edits that apply to the
38068         Makefile.am being generated.
38069         (func_import): Setup list of Makefile.am edits before emitting the
38070         Makefile.ams, not at the end.
38071         (func_create_testdir): Update.
38072         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38073
38074 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38075
38076         * gnulib-tool (func_import): Store the --tests-base option in the
38077         comment in gnulib-cache.m4.
38078
38079 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38080
38081         * NEWS: Document increased portability that sys_select now provides.
38082
38083         * lib/sys_select.in.h: Install select wrapper.
38084         * lib/sys_socket.in.h: Use more descriptive name when there is no
38085         select wrapper.
38086         * lib/winsock-select.c: New.
38087         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38088         Require gl_HEADER_SYS_SOCKET.
38089         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38090         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38091         * tests/test-sys_select.c: Add functional tests.
38092
38093 2008-09-24  Eric Blake  <ebb9@byu.net>
38094
38095         open, fopen: close fd leak in last patch
38096         * lib/open.c (rpl_open): Close fd before returning error.
38097         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38098         * doc/posix-functions/open.texi (open): Document that Irix also
38099         has the bug.
38100         * doc/posix-functions/fopen.texi (fopen): Likewise.
38101         Reported by Paolo Bonzini.
38102
38103 2008-09-24  Bruno Haible  <bruno@clisp.org>
38104
38105         Ensure that a filename ending in a slash cannot be used to access a
38106         non-directory.
38107         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38108         to check whether it's really a directory.
38109         * lib/fopen.c: Include fcntl.h, unistd.h.
38110         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38111         and fdopen().
38112         * modules/fopen (Depends-on): Add unistd.
38113         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38114         * tests/test-fopen.c (main): Likewise.
38115         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38116         * doc/posix-functions/fopen.texi: Likewise.
38117         Reported by Eric Blake.
38118
38119 2008-09-23  Eric Blake  <ebb9@byu.net>
38120
38121         c-stack: avoid compiler optimizations when provoking overflow
38122         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38123         recursion harder to optimize, to ensure a stack overflow occurs.
38124         * tests/test-c-stack.c (recurse): Likewise.
38125         Borrowed from libsigsegv.
38126
38127         c-stack: work around Irix sigaltstack bug
38128         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38129         whether sigaltstack uses wrong end of stack_t (copied in part from
38130         libsigsegv).
38131         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38132         Irix bug, without requiring an over-allocation.
38133         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38134         bug.
38135
38136         fopen: document mingw bug on directories
38137         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38138         not allowing a stream visiting a directory, even though reading
38139         from such a stream is not portable.
38140
38141 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38142
38143         * lib/poll.c: Rewrite.
38144         * modules/poll: Depend on alloca.
38145
38146 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38147
38148         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38149         instead define prototypes for a full set of wrappers.  Ensure
38150         that Cygwin does not use the compatibility code, which is only
38151         for MinGW.
38152         * lib/winsock.c: New.
38153         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38154         * modules/sys_socket: Add lib/winsock.c.
38155
38156         * modules/poll-tests: Add errno and perror.
38157         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38158
38159 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38160
38161         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38162
38163 2008-09-23  Bruno Haible  <bruno@clisp.org>
38164
38165         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38166         * doc/glibc-functions/*: Likewise.
38167
38168 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38169
38170         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38171         success.
38172
38173 2008-09-22  Eric Blake  <ebb9@byu.net>
38174             Bruno Haible  <bruno@clisp.org>
38175
38176         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38177         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38178         supply %A but mishandle pseudo-NaN.
38179         Reported by Simon Josefsson.
38180
38181 2008-09-21  Bruno Haible  <bruno@clisp.org>
38182
38183         * tests/test-lock.c (main): Tweak skip message.
38184         * tests/test-tls.c (main): Likewise.
38185
38186 2008-09-21  Bruno Haible  <bruno@clisp.org>
38187
38188         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38189         whether 'struct sigaction' has sa_sigaction here...
38190         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38191         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38192
38193 2008-09-21  Bruno Haible  <bruno@clisp.org>
38194
38195         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38196         section.
38197         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38198         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
38199         the new section.
38200         (Support for obsolete systems lacking POSIX:2001): New section.
38201         (String handling <string.h>): Move strdup to the new section.
38202         Suggested by Simon Josefsson and Paolo Bonzini.
38203
38204 2008-09-21  Bruno Haible  <bruno@clisp.org>
38205
38206         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
38207         exponents in %e and %g results on 'long double'. Needed for mingw's
38208         improved *printf functions.
38209         * tests/test-vasprintf-posix.c (test_function): Likewise.
38210         * tests/test-snprintf-posix.h (test_function): Likewise.
38211         * tests/test-sprintf-posix.h (test_function): Likewise.
38212         Reported by Eric Blake.
38213
38214 2008-09-21  Bruno Haible  <bruno@clisp.org>
38215
38216         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
38217         * tests/test-sprintf-posix.h (test_function): Likewise.
38218
38219 2008-09-21  Bruno Haible  <bruno@clisp.org>
38220
38221         * modules/getpass (Depends-on): Add strdup-posix.
38222
38223         New module 'strdup-posix'.
38224         * modules/strdup-posix: New file.
38225         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
38226         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
38227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38228         REPLACE_STRDUP.
38229         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
38230         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
38231         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38232         strdup-posix.
38233
38234         * modules/strdup (Depends-on): Remove malloc-posix.
38235
38236 2008-09-20  Bruno Haible  <bruno@clisp.org>
38237
38238         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
38239         Wildenhues.
38240
38241 2008-09-20  Bruno Haible  <bruno@clisp.org>
38242
38243         Ensure that wint_t gets defined on IRIX 5.3.
38244         * lib/wchar.in.h (wint_t): Define if not defined by the system.
38245         * lib/wctype.in.h (wint_t): Likewise.
38246         (__wctype_wint_t): Remove type.
38247         (isw*): Use wint_t instead of __wctype_wint_t.
38248         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
38249         * modules/wchar (Files): Add m4/wint_t.m4.
38250         (Makefile.am): Substitute HAVE_WINT_T.
38251         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
38252         * tests/test-wctype.c: Check that wint_t is defined.
38253         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
38254         * doc/posix-headers/wctype.texi: Likewise.
38255         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38256
38257 2008-09-18  Bruno Haible  <bruno@clisp.org>
38258
38259         * gnulib-tool (func_exit): Update comment.
38260
38261 2008-09-18  Simon Josefsson  <simon@josefsson.org>
38262
38263         * modules/getaddrinfo (Depends-on): Remove strdup, this module
38264         assumes strdup exists and does not depend on strdup to return
38265         ENOMEM on out of memory conditions.
38266
38267 2008-09-18  Bruno Haible  <bruno@clisp.org>
38268
38269         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
38270         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
38271         digits for the exponent.
38272
38273 2008-09-18  Jim Meyering  <meyering@redhat.com>
38274             Bruno Haible  <bruno@clisp.org>
38275
38276         * lib/vasnprintf.c (decimal_point_char): Define also if
38277         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38278
38279 2008-09-16  Bruno Haible  <bruno@clisp.org>
38280         and Eric Blake  <ebb9@byu.net>
38281
38282         vasnprintf: support Irix 5.3
38283         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38284         that mishandle long double infinity.
38285         Reported by Tom G. Christensen.
38286
38287 2008-09-16  Bruno Haible  <bruno@clisp.org>
38288
38289         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38290         Solaris 9.
38291         * doc/glibc-functions/alphasort.texi: Likewise.
38292         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38293
38294 2008-09-16  Jim Meyering  <meyering@redhat.com>
38295
38296         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38297         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38298         a umask modification leak out of a subshell.  Otherwise, the
38299         opensolaris /bin/sh would be accepted and thus cause unwarranted
38300         failures in the coreutils test suite.
38301
38302 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38303
38304         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38305         to succeed.
38306
38307 2008-09-16  Jim Meyering  <meyering@redhat.com>
38308
38309         avoid spurious test failure when library is built without ACL support
38310         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
38311         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
38312         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
38313         * tests/test-copy-acl.sh: Likewise.
38314
38315 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38316
38317         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
38318         based on character occurrence counts.
38319
38320 2008-09-15  Eric Blake  <ebb9@byu.net>
38321
38322         tests: avoid some compiler warnings
38323         * tests/test-memchr.c (main): Pass NULL indirectly.
38324         * tests/test-closein.c (main): Avoid unused variable.
38325
38326 2008-09-15  Bruno Haible  <bruno@clisp.org>
38327
38328         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
38329         are missing on OpenBSD 4.0 individually.
38330         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38331
38332 2008-09-15  Bruno Haible  <bruno@clisp.org>
38333
38334         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
38335         * doc/posix-functions/strerror.texi: Mention also Cygwin.
38336         * doc/posix-functions/perror.texi: Likewise.
38337         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
38338         is missing.
38339         Reported by Eric Blake.
38340
38341         * lib/errno.in.h: Use replacement values >= 2000.
38342         Reported by Eric Blake.
38343
38344 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38345
38346         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
38347         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
38348         limit.
38349         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
38350         compareseq was aborted.
38351
38352 2008-09-14  Bruno Haible  <bruno@clisp.org>
38353
38354         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
38355         yvec_edit_count.
38356         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
38357         (fstrcmp_bounded): Simplify result computation accordingly.
38358
38359 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38360
38361         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
38362         (fstrcmp): Define in terms of fstrcmp_bounded.
38363         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
38364         lower_bound argument.
38365         Return quickly if the result is certainly < lower_bound.
38366         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
38367
38368 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38369
38370         * lib/diffseq.h (EARLY_ABORT): New macro.
38371         (compareseq): Change return type to bool. Return true when EARLY_ABORT
38372         evaluates to true.
38373
38374 2008-09-14  Bruno Haible  <bruno@clisp.org>
38375
38376         * modules/perror-tests: New file.
38377         * tests/test-perror.sh: New file.
38378         * tests/test-perror.c: New file.
38379
38380         New module 'perror'.
38381         * lib/stdio.in.h (perror): New declaration.
38382         * lib/perror.c: New file.
38383         * m4/perror.m4: New file.
38384         * modules/perror: New file.
38385         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38386         * doc/posix-functions/perror.texi: Mention the perror module.
38387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38388         REPLACE_PERROR.
38389         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38390         REPLACE_PERROR.
38391
38392 2008-09-14  Bruno Haible  <bruno@clisp.org>
38393
38394         * modules/stdio (Makefile.am): Reorder to match the order in
38395         lib/stdio.in.h.
38396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38397
38398 2008-09-13  Bruno Haible  <bruno@clisp.org>
38399
38400         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38401
38402 2008-09-13  Bruno Haible  <bruno@clisp.org>
38403
38404         Extend strerror to cover the added errno values.
38405         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38406         (rpl_strerror): Provide error messages for the added errno values and
38407         for the WSA* values.
38408         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38409         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38410         strerror.
38411         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38412         * modules/strerror (Depends-on): Add errno.
38413         * doc/posix-functions/strerror.texi: Document the change.
38414         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38415         and EOVERFLOW.
38416
38417 2008-09-13  Bruno Haible  <bruno@clisp.org>
38418
38419         * modules/EOVERFLOW: Remove file.
38420         * m4/eoverflow.m4: Remove file.
38421         * modules/EOVERFLOW-tests: Remove file.
38422         * tests/test-EOVERFLOW.c: Remove file.
38423         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38424         * modules/ftell (Depends-on): Likewise.
38425         * modules/getdelim (Depends-on): Likewise.
38426         * modules/getugroups (Depends-on): Likewise.
38427         * modules/poll (Depends-on): Likewise.
38428         * modules/snprintf (Depends-on): Likewise.
38429         * modules/sprintf-posix (Depends-on): Likewise.
38430         * modules/vasnprintf (Depends-on): Likewise.
38431         * modules/vasprintf (Depends-on): Likewise.
38432         * modules/vfprintf-posix (Depends-on): Likewise.
38433         * modules/vsnprintf (Depends-on): Likewise.
38434         * modules/vsprintf-posix (Depends-on): Likewise.
38435         * modules/xvasprintf (Depends-on): Likewise.
38436         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38437         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38438         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38439         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38440         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38441         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38442         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38443         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38444         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38445         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38446         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38447         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38448         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38449         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38450         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38451         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38452         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38453         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38454         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38455         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38456         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38457         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38458         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38459         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38460         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38461         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38462         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38463         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38464         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38465         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38466         * MODULES.html.sh: Remove EOVERFLOW.
38467         * NEWS: Mention the change.
38468
38469 2008-09-13  Bruno Haible  <bruno@clisp.org>
38470
38471         * modules/errno-tests: New file.
38472         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38473
38474         * lib/errno.in.h: New file.
38475         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38476         * modules/errno: New file.
38477         * doc/posix-headers/errno.texi: Update documentation.
38478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38479
38480 2008-09-13  Bruno Haible  <bruno@clisp.org>
38481
38482         * tests/test-poll.c: Use #if for native Windows, rather than testing
38483         __MSVCRT__.
38484
38485 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38486             Bruno Haible  <bruno@clisp.org>
38487
38488         * lib/glob.c: Don't include <pwd.h> on native Windows.
38489         (WINDOWS32): New macro.
38490         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38491
38492 2008-09-13  Bruno Haible  <bruno@clisp.org>
38493
38494         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38495         (ETIMEDOUT): Remove macro.
38496         (glthread_cond_timedwait_multithreaded): New declaration.
38497         (glthread_cond_timedwait): Use it.
38498         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38499         (glthread_cond_timedwait_multithreaded): New function.
38500
38501 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38502
38503         * modules/poll-tests: Do not check for io.h.
38504         * tests/test-poll.c: Check for __MSVCRT__ instead.
38505
38506 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38507
38508         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38509         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38510         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38511
38512 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38513
38514         * modules/poll-tests: New.
38515         * tests/test-poll.c: New.
38516
38517 2008-09-12  Eric Blake  <ebb9@byu.net>
38518
38519         frexp: test for NetBSD failure on -0.0
38520         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38521         not all, bugs from NetBSD 3.0 have been fixed.
38522         * doc/posix-functions/frexp.texi (frexp): Document bug.
38523         Reported by Thomas Klausner.
38524
38525         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38526         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38527         literal -0.0.
38528         Reported by Jonathan C. Patschke <jp@centtech.com>.
38529
38530 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38531
38532         * lib/glthread/cond.h: Use dummy implementation also if
38533         USE_WIN32_THREADS.
38534
38535 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38536
38537         * modules/fnmatch-posix (License): Change to LGPLv2+.
38538         * modules/fnmatch-gnu (License): Likewise.
38539
38540 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38541
38542         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38543
38544 2008-09-11  Jim Meyering  <meyering@redhat.com>
38545
38546         * users.txt: Add gtk-vnc.
38547
38548 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38549
38550         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38551         rotate amounts.
38552
38553         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38554         required for 16-bit and 8-bit rotates.
38555         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38556         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38557         UINT8_MAX instead of hard-coded constants.
38558         Suggested by Paul Eggert.
38559
38560 2008-09-07  Bruno Haible  <bruno@clisp.org>
38561
38562         * tests/test-striconveh.c (main): Check behaviour when converting from
38563         UTF-7.
38564
38565         Make striconveh work better with stateful encodings.
38566         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38567         that iconv does not increment the inptr when returning -1/EINVAL.
38568
38569 2008-09-07  Bruno Haible  <bruno@clisp.org>
38570
38571         * build-aux/config.rpath: Update according to libtool-2.2.6.
38572         * build-aux/config.libpath: Likewise.
38573
38574 2008-09-06  Bruno Haible  <bruno@clisp.org>
38575
38576         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38577         * lib/freadptr.c (freadptr): Likewise.
38578         * lib/freadseek.c (freadptrinc): Likewise.
38579         Reported by Simon Josefsson.
38580
38581 2008-09-06  Bruno Haible  <bruno@clisp.org>
38582
38583         * modules/freadptr (License): Change to LGPLv2+.
38584         * modules/freadseek (License): Likewise.
38585         Suggested by Eric Blake.
38586
38587         * modules/memchr2 (License): Change to LGPLv2+.
38588         Approved by Eric Blake.
38589
38590 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38591             Bruno Haible  <bruno@clisp.org>
38592
38593         Make gnulib-tool work with native 'sed' on AIX.
38594         * gnulib-tool (sed_noop): New variable.
38595         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38596         func_add_or_update, func_create_testdir): Use it to initialize sed
38597         script variables.
38598         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38599
38600 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38601             Bruno Haible  <bruno@clisp.org>
38602
38603         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38604         also works after #include directives.
38605
38606 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38607
38608         getdate.y: reject an out-of-range timezone value
38609         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38610         the range [-24...+24].  When specified with only one or two digits,
38611         * tests/test-getdate.c: Tests for the fix.
38612         * doc/getdate.texi: Document this change.
38613
38614 2008-09-03  Bruno Haible  <bruno@clisp.org>
38615
38616         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38617
38618 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38619
38620         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38621         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38622         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38623         Blake <ebb9@byu.net>.
38624
38625         * tests/test-bitrotate.c: Add more test vectors.
38626
38627 2008-09-02  Eric Blake  <ebb9@byu.net>
38628
38629         vasnprintf-posix: handle large precision via %.*d
38630         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38631         when handling it ourselves.
38632         * tests/test-vasnprintf-posix.c (test_function): Add test.
38633         * tests/test-snprintf-posix.h (test_function): Likewise.
38634         * tests/test-sprintf-posix.h (test_function): Likewise.
38635         * tests/test-vasprintf-posix.c (test_function): Likewise.
38636         Reported by Alain Guibert.
38637
38638 2008-09-01  Eric Blake  <ebb9@byu.net>
38639
38640         c-stack: make configure-time check more robust
38641         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38642         successful sigaction call.
38643         Reported by Tom G. Christensen.
38644
38645 2008-09-01  Bruno Haible  <bruno@clisp.org>
38646
38647         New module 'findprog-lgpl'.
38648         * modules/findprog-lgpl: New file.
38649         * lib/findprog-lgpl.c: New file.
38650         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38651         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38652         to decide whether to use strdup or xstrdup, concatenated_filename or
38653         xconcatenated_filename.
38654
38655 2008-09-01  Bruno Haible  <bruno@clisp.org>
38656
38657         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38658         'xconcat-filename' (GPL).
38659         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38660         (License): Change to LGPLv2+.
38661         * modules/xconcat-filename: New file.
38662         * lib/concat-filename.h (concatenated_filename): Change specification.
38663         (xconcatenated_filename): New declaration.
38664         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38665         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38666         memory situations.
38667         * lib/xconcat-filename.c: New file.
38668         * NEWS: Mention the change.
38669         * lib/findprog.c: Include concat-filename.h, not filename.h.
38670         (find_in_path): Use xconcatenated_filename instead of
38671         concatenated_filename.
38672         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38673         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38674         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38675         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38676         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38677         instead of concatenated_filename.
38678         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38679         (execute_java_class): Use xconcatenated_filename instead of
38680         concatenated_filename.
38681         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38682         * modules/javacomp (Depends-on): Likewise.
38683         * modules/javaexec (Depends-on): Likewise.
38684
38685 2008-09-01  Bruno Haible  <bruno@clisp.org>
38686
38687         Split module 'filename' into 'filename' and 'concat-filename'.
38688         * modules/filename: Keep only lib/filename.h.
38689         (License): Change to LGPLv2+.
38690         * modules/concat-filename: New file, extracted from modules/filename.
38691         * lib/filename.h (concatenated_filename): Remove declaration.
38692         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38693         * lib/concat-filename.c: Include concat-filename.h.
38694         * NEWS: Mention the change.
38695
38696 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38697
38698         * lib/bitrotate.h (rotl8, rotr8): Add.
38699
38700         * modules/bitrotate (configure.ac): Need
38701         AC_REQUIRE([AC_C_INLINE]).
38702         (Description): Mention stdint.h.  Reported by Bruno Haible
38703         <bruno@clisp.org>.
38704
38705         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38706         Paolo Bonzini <bonzini@gnu.org>.
38707
38708 2008-08-31  Bruno Haible  <bruno@clisp.org>
38709
38710         Assume Solaris specific bi-arch conventions on Solaris systems.
38711         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38712         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38713         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38714         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38715         like acl_libdirstem.
38716         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38717         acl_libdirstem.
38718         * NEWS: Mention the change.
38719         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38720
38721 2008-08-31  Jim Meyering  <meyering@redhat.com>
38722
38723         * lib/strftime.h: Add comments describing the two added arguments.
38724
38725         remove duplicate #include directives
38726         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38727         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38728
38729 2008-08-31  Bruno Haible  <bruno@clisp.org>
38730
38731         New module 'sigpipe-die'.
38732         * modules/sigpipe-die: New file.
38733         * lib/sigpipe-die.h: New file.
38734         * lib/sigpipe-die.c: New file.
38735         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38736
38737 2008-08-31  Bruno Haible  <bruno@clisp.org>
38738
38739         Don't override previously installed signal handlers.
38740         * lib/fatal-signal.c (saved_sigactions): New variable.
38741         (uninstall_handlers): Reset the signal to the saved handler, not
38742         to SIG_DFL (except when ignored).
38743         (install_handlers): Save the previous handlers.
38744
38745 2008-08-30  Bruno Haible  <bruno@clisp.org>
38746
38747         * gnulib-tool (func_reset_sigpipe): New function.
38748         (func_get_automake_snippet, func_modules_transitive_closure,
38749         func_import): Invoke it before a join command that reads from stdin,
38750         to avoid "echo: write error: Broken pipe" error messages on stderr.
38751         Reported by Sam Steingold <sds@gnu.org>.
38752
38753 2008-08-30  Bruno Haible  <bruno@clisp.org>
38754
38755         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38756         Code copied from m4/open.m4.
38757         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38758         access and the filename ends in a slash. Code copied from lib/open.c.
38759         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38760         * tests/test-fopen.c (main): Check against bug with trailing slash.
38761
38762 2008-08-29  Bruno Haible  <bruno@clisp.org>
38763
38764         Avoid some "gcc -pedantic" warnings.
38765         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38766         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38767         * lib/dirent.in.h: Likewise.
38768         * lib/fcntl.in.h: Likewise.
38769         * lib/float.in.h: Likewise.
38770         * lib/iconv.in.h: Likewise.
38771         * lib/inttypes.in.h: Likewise.
38772         * lib/locale.in.h: Likewise.
38773         * lib/math.in.h: Likewise.
38774         * lib/netinet_in.in.h: Likewise.
38775         * lib/search.in.h: Likewise.
38776         * lib/signal.in.h: Likewise.
38777         * lib/stdarg.in.h: Likewise.
38778         * lib/stdint.in.h: Likewise.
38779         * lib/stdio.in.h: Likewise.
38780         * lib/stdlib.in.h: Likewise.
38781         * lib/string.in.h: Likewise.
38782         * lib/strings.in.h: Likewise.
38783         * lib/sys_select.in.h: Likewise.
38784         * lib/sys_socket.in.h: Likewise.
38785         * lib/sys_stat.in.h: Likewise.
38786         * lib/sys_time.in.h: Likewise.
38787         * lib/sysexits.in.h: Likewise.
38788         * lib/time.in.h: Likewise.
38789         * lib/unistd.in.h: Likewise.
38790         * lib/wchar.in.h: Likewise.
38791         * lib/wctype.in.h: Likewise.
38792         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38793         * modules/fchdir (Makefile.am): Likewise.
38794         * modules/fcntl (Makefile.am): Likewise.
38795         * modules/float (Makefile.am): Likewise.
38796         * modules/iconv_open (Makefile.am): Likewise.
38797         * modules/inttypes (Makefile.am): Likewise.
38798         * modules/locale (Makefile.am): Likewise.
38799         * modules/math (Makefile.am): Likewise.
38800         * modules/netinet_in (Makefile.am): Likewise.
38801         * modules/search (Makefile.am): Likewise.
38802         * modules/signal (Makefile.am): Likewise.
38803         * modules/stdarg (Makefile.am): Likewise.
38804         * modules/stdint (Makefile.am): Likewise.
38805         * modules/stdio (Makefile.am): Likewise.
38806         * modules/stdlib (Makefile.am): Likewise.
38807         * modules/string (Makefile.am): Likewise.
38808         * modules/strings (Makefile.am): Likewise.
38809         * modules/sys_select (Makefile.am): Likewise.
38810         * modules/sys_socket (Makefile.am): Likewise.
38811         * modules/sys_stat (Makefile.am): Likewise.
38812         * modules/sys_time (Makefile.am): Likewise.
38813         * modules/sysexits (Makefile.am): Likewise.
38814         * modules/time (Makefile.am): Likewise.
38815         * modules/unistd (Makefile.am): Likewise.
38816         * modules/wchar (Makefile.am): Likewise.
38817         * modules/wctype (Makefile.am): Likewise.
38818         Reported by Reuben Thomas <rrt@sc3d.org>.
38819
38820 2008-08-29  Bruno Haible  <bruno@clisp.org>
38821
38822         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38823         any more.
38824
38825 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38826
38827         * MODULES.html.sh (Misc): Add bitrotate.
38828
38829         * modules/bitrotate: New file.
38830
38831         * lib/bitrotate.h: New file.
38832
38833         * modules/bitrotate-tests: New file.
38834
38835         * tests/test-bitrotate.c: New file.
38836
38837         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38838         on the bitrotate module.
38839
38840         * lib/arctwo.c: Use new bitrotate module.
38841
38842 2008-08-29  Jim Meyering  <meyering@redhat.com>
38843
38844         bootstrap: merge changes from coreutils
38845         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38846         of copied files.  Remove a kludge, now that this is fixed.
38847         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38848         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38849         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38850
38851 2008-08-29  Bruno Haible  <bruno@clisp.org>
38852
38853         * MODULES.html.sh: Remove --cvs-urls option.
38854
38855 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38856
38857         maint.mk: adjust to file name change
38858         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38859
38860 2008-08-28  Jim Meyering  <meyering@redhat.com>
38861
38862         * modules/getndelim2 (License): Relicense to LGPLv2+.
38863         Approved by Richard Stallman for the version of 1995, and by
38864         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38865
38866 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38867
38868         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38869         dummy if one is not available.  Do not touch them if
38870         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38871         (getc_maybe_unlocked): New.
38872         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38873
38874 2008-08-26  Eric Blake  <ebb9@byu.net>
38875
38876         doc/INSTALL: resync from autoconf
38877         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38878         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38879         moving...
38880         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38881         * INSTALL: Regenerate.
38882         * INSTALL.ISO: New file.
38883         * INSTALL.UTF-8: Likewise.
38884
38885 2008-08-26  Jim Meyering  <meyering@redhat.com>
38886
38887         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38888         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38889         these definitions conditional, so that they may be overridden, too.
38890
38891 2008-08-26  Bruno Haible  <bruno@clisp.org>
38892
38893         Generate INSTALL file variants with prettier quotes.
38894         * doc/Makefile (INSTALL_PRELUDE): New macro.
38895         (INSTALL): Use it.
38896         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38897
38898 2008-08-26  Bruno Haible  <bruno@clisp.org>
38899
38900         Run makeinfo in an English locale.
38901         * doc/Makefile (MAKEINFO): New variable.
38902
38903 2008-08-26  Bruno Haible  <bruno@clisp.org>
38904
38905         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38906         Suggested by Eric Blake.
38907
38908 2008-08-25  Bruno Haible  <bruno@clisp.org>
38909
38910         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38911
38912 2008-08-25  Eric Blake  <ebb9@byu.net>
38913
38914         c-stack: test that stack overflow can be caught
38915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38916         that platform allows handling stack overflow; at least OS/2 EMX
38917         has sigaltstack, but crashes before transferring control to
38918         handler on stack overflow.
38919         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38920         check for HAVE_STACK_OVERFLOW_HANDLING.
38921         Reported by Elbert Pol.
38922
38923 2008-08-25  Bruno Haible  <bruno@clisp.org>
38924
38925         * doc/posix-functions/strftime.texi: Fix description of strftime
38926         module.
38927
38928 2008-08-24  Bruno Haible  <bruno@clisp.org>
38929
38930         * tests/uniwidth/test-uc_width2.c: New file.
38931         * tests/uniwidth/test-uc_width2.sh: New file.
38932         * modules/uniwidth/width-tests (Files): Add the new files.
38933         (TESTS): Add uniwidth/test-uc_width2.sh.
38934         (TESTS_ENVIRONMENT): New variable.
38935         (check_PROGRAMS): Add test-uc_width2.
38936         (test_uc_width2_SOURCES): New variable.
38937
38938         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38939         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38940         not 0x00AB.
38941         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38942
38943 2008-08-22  Eric Blake  <ebb9@byu.net>
38944
38945         test-lock, test-tls: mention why a test is skipped
38946         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38947         skipped.
38948         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38949
38950         count-one-bits: relax license
38951         * modules/count-one-bits (License): Relicense to LGPLv2+.
38952         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38953
38954 2008-08-22  Andreas Schwab  <schwab@suse.de>
38955
38956         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38957         Remove spurious space in assignment.
38958
38959 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38960
38961         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38962         Paul Eggert <eggert@CS.UCLA.EDU>.
38963
38964 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38965
38966         * modules/gettext: Add m4/threadlib.m4.
38967
38968 2008-08-19  Eric Blake  <ebb9@byu.net>
38969
38970         test-c-stack: fix compilation failure on FreeBSD 5.0
38971         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38972         headers before <sys/resource.h>.
38973         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38974         the bug.
38975         Reported by Nelson H. F. Beebe.
38976
38977         strverscmp: migrate from "strverscmp.h" to <string.h>
38978         * modules/string (Makefile.am): Add new hooks.
38979         * modules/strverscmp (Files): Remove strverscmp.h.
38980         (Depends-on): Add string.
38981         (configure.ac): Add indicator.
38982         (Include): Mention new header.
38983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38984         defaults.
38985         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38986         results.
38987         * lib/strverscmp.h: Delete.
38988         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38989         * tests/test-strverscmp.c (includes): Adjust client.
38990         * lib/check-version.c (includes): Likewise.
38991         * NEWS: Document the change.
38992
38993         strverscmp: add unit test
38994         * modules/strverscmp-tests: New file.
38995         * tests/test-strverscmp.c: Likewise.
38996
38997 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38998
38999         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39000         regarding Windows crypto stuff, from Mono.
39001
39002 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39003
39004         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39005         if present, for intel RND.  Return error on failures.
39006
39007 2008-08-18  Ben Pfaff  <blp@gnu.org>
39008
39009         gitlog-to-changelog: give better diagnostic for failed pipe-open
39010         * build-aux/gitlog-to-changelog: Improve error message: suggest
39011         that the version of Git may be too old.
39012
39013 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39014
39015         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39016         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39017
39018 2008-08-18  Bruno Haible  <bruno@clisp.org>
39019
39020         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39021         pthread_in_use().
39022
39023 2008-08-18  Bruno Haible  <bruno@clisp.org>
39024
39025         * lib/glthread/threadlib.c: Include <pthread.h>.
39026
39027 2008-08-18  Bruno Haible  <bruno@clisp.org>
39028
39029         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39030         glthread_recursive_lock_* macros.
39031         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39032         Fix syntax error.
39033
39034 2008-08-18  Bruno Haible  <bruno@clisp.org>
39035
39036         * lib/glthread/thread.c: Avoid forcing a context switch right after
39037         thread creation.
39038
39039 2008-08-17  Bruno Haible  <bruno@clisp.org>
39040
39041         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39042         * lib/glthread/thread.h: Provide Win32 specific implementation.
39043         * modules/thread (Files): Add lib/glthread/thread.c.
39044         (Depends-on): Add lock.
39045         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39046
39047 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39048
39049         New module 'yield'.
39050         * modules/yield: New file.
39051         * lib/glthread/yield.h: New file.
39052         * m4/yield.m4: New file.
39053         * MODULES.html.sh (Multithreading): Add yield.
39054
39055 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39056
39057         New module 'thread'.
39058         * modules/thread: New file.
39059         * lib/glthread/thread.h: New file.
39060         * m4/thread.m4: New file.
39061         * MODULES.html.sh (Multithreading): Add thread.
39062
39063 2008-08-17  Bruno Haible  <bruno@clisp.org>
39064
39065         * lib/glthread/lock.h: Include <stdlib.h> always.
39066         * lib/glthread/tls.h: Likewise.
39067         * lib/glthread/cond.h: Likewise.
39068
39069 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39070
39071         New module 'cond'.
39072         * modules/cond: New file.
39073         * lib/glthread/cond.h: New file.
39074         * lib/glthread/cond.c: New file.
39075         * m4/cond.m4: New file.
39076         * MODULES.html.sh (Multithreading): Add cond.
39077
39078 2008-08-16  Eric Blake  <ebb9@byu.net>
39079
39080         c-stack: fix regression on Irix 5.3 from 2008-06-21
39081         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39082         sa_sigaction...
39083         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39084         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39085         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39086         * modules/signal (Makefile.am): Use the value.
39087         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39088         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39089         * doc/posix-headers/signal.texi (signal.h): Document this
39090         portability issue.
39091         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39092         Reported by Tom G. Christensen.
39093
39094 2008-08-17  Bruno Haible  <bruno@clisp.org>
39095
39096         New module 'threadlib'.
39097         * modules/threadlib: New file.
39098         * lib/glthread/threadlib.c: New file, extracted from
39099         lib/glthread/lock.c.
39100         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39101         functions.
39102         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39103         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39104         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39105         macros.
39106         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39107         (gl_DISABLE_THREADS): Remove macro.
39108         * modules/lock (Files): Remove build-aux/config.rpath.
39109         (Depends-on): Remove havelib. Add threadlib.
39110         (configure.ac-early): Remove section.
39111         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39112         * modules/tls (Depends-on): Remove lock. Add threadlib.
39113         (Link): New section, copied from threadlib.
39114         * MODULES.html.sh (Multithreading): Add threadlib.
39115
39116 2008-08-14  Bruno Haible  <bruno@clisp.org>
39117
39118         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39119         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39120         glthread_rwlock_unlock, glthread_rwlock_destroy,
39121         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39122         glthread_recursive_lock_destroy): Define as macros always.
39123         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39124         glthread_lock_lock.
39125         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39126         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39127         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39128         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39129         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39130         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39131         (glthread_recursive_lock_lock_func): Renamed from
39132         glthread_recursive_lock_lock.
39133         (glthread_recursive_lock_unlock_func): Renamed from
39134         glthread_recursive_lock_unlock.
39135         (glthread_recursive_lock_destroy_func): Renamed from
39136         glthread_recursive_lock_destroy.
39137
39138 2008-08-14  Bruno Haible  <bruno@clisp.org>
39139
39140         * lib/glthread/lock.h: Renamed from lib/lock.h.
39141         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39142         * lib/glthread/tls.h: Renamed from lib/tls.h.
39143         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39144         * lib/fstrcmp.c: Update includes.
39145         * lib/strsignal.c: Update includes.
39146         * modules/lock (Files, Makefile.am): Update.
39147         (Include): Change to "glthread/lock.h".
39148         * modules/tls (Files, Makefile.am): Update.
39149         (Include): Change to "glthread/tls.h".
39150         * tests/test-lock.c: Update includes.
39151         * tests/test-tls.c: Update includes.
39152         * NEWS: Mention the renamed header files.
39153
39154 2008-08-11  Jim Meyering  <meyering@redhat.com>
39155
39156         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39157
39158 2008-08-11  Eric Blake  <ebb9@byu.net>
39159
39160         test-c-stack: avoid C99-ism
39161         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39162         before statement.
39163         Reported by Alain Guibert.
39164
39165 2008-08-10  Jim Meyering  <meyering@redhat.com>
39166
39167         ensure that return value of uinttostr et al are not ignored
39168         * lib/inttostr.h (__GNUC_PREREQ): Define.
39169         (__attribute_warn_unused_result__): Define.
39170         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39171
39172 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39173
39174         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39175         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39176
39177 2008-08-07  Jim Meyering  <meyering@redhat.com>
39178
39179         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39180
39181         * modules/mkstemp (License): Relicense under LGPLv2+.
39182         * modules/tempname (License): Likewise.
39183
39184 2008-08-06  Bruno Haible  <bruno@clisp.org>
39185
39186         * lib/poll.c (poll): Further micro-optimization.
39187
39188 2008-08-06  Jim Meyering  <meyering@redhat.com>
39189
39190         inet_pton.c: use locale-independent tolower
39191         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39192         (inet_pton6): Use c_tolower rather than tolower.
39193         * modules/inet_pton (Depends-on): Add c-ctype.
39194
39195 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39196
39197         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39198         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
39199
39200 2008-08-06  Jim Meyering  <meyering@redhat.com>
39201
39202         * modules/inet_pton (License): Relicense under LGPLv2+.
39203
39204 2008-08-03  Bruno Haible  <bruno@clisp.org>
39205
39206         Additional non-aborting API for lock and tls.
39207         * lib/lock.h: Include <errno.h>.
39208         (glthread_lock_init): New macro/function.
39209         (gl_lock_init): Define as wrapper around glthread_lock_init.
39210         (glthread_lock_lock): New macro/function.
39211         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
39212         (glthread_lock_unlock): New macro/function.
39213         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
39214         (glthread_lock_destroy): New macro/function.
39215         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
39216         (glthread_rwlock_init): New macro/function.
39217         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
39218         (glthread_rwlock_rdlock): New macro/function.
39219         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
39220         (glthread_rwlock_wrlock): New macro/function.
39221         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
39222         (glthread_rwlock_unlock): New macro/function.
39223         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
39224         (glthread_rwlock_destroy): New macro/function.
39225         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
39226         (glthread_recursive_lock_init): New macro/function.
39227         (gl_recursive_lock_init): Define as wrapper around
39228         glthread_recursive_lock_init.
39229         (glthread_recursive_lock_lock): New macro/function.
39230         (gl_recursive_lock_lock): Define as wrapper around
39231         glthread_recursive_lock_lock.
39232         (glthread_recursive_lock_unlock): New macro/function.
39233         (gl_recursive_lock_unlock): Define as wrapper around
39234         glthread_recursive_lock_unlock.
39235         (glthread_recursive_lock_destroy): New macro/function.
39236         (gl_recursive_lock_destroy): Define as wrapper around
39237         glthread_recursive_lock_destroy.
39238         (glthread_once): New macro/function.
39239         (gl_once): Define as wrapper around glthread_once.
39240         Update function declarations.
39241         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
39242         glthread_rwlock_init. Return error code.
39243         (glthread_rwlock_rdlock_multithreaded): Renamed from
39244         glthread_rwlock_rdlock. Return error code.
39245         (glthread_rwlock_wrlock_multithreaded): Renamed from
39246         glthread_rwlock_wrlock. Return error code.
39247         (glthread_rwlock_unlock_multithreaded): Renamed from
39248         glthread_rwlock_unlock. Return error code.
39249         (glthread_rwlock_destroy_multithreaded): Renamed from
39250         glthread_rwlock_destroy. Return error code.
39251         (glthread_recursive_lock_init_multithreaded): Renamed from
39252         glthread_recursive_lock_init. Return error code.
39253         (glthread_recursive_lock_lock_multithreaded): Renamed from
39254         glthread_recursive_lock_lock. Return error code.
39255         (glthread_recursive_lock_unlock_multithreaded): Renamed from
39256         glthread_recursive_lock_unlock. Return error code.
39257         (glthread_recursive_lock_destroy_multithreaded): Renamed from
39258         glthread_recursive_lock_destroy. Return error code.
39259         (glthread_once_call): Make static.
39260         (glthread_once_multithreaded): Renamed from glthread_once.
39261         * lib/tls.h: Include <errno.h>.
39262         (glthread_tls_key_init): New macro/function.
39263         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
39264         (glthread_tls_set): New macro/function.
39265         (gl_tls_set): Define as wrapper around glthread_tls_set.
39266         (glthread_tls_key_destroy): New macro/function.
39267         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
39268         Update function declarations.
39269         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
39270         glthread_tls_get.
39271         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39272
39273 2008-08-04  Eric Blake  <ebb9@byu.net>
39274
39275         gnumakefile: use space, not TAB, outside of targets
39276         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39277
39278 2008-08-02  Jim Meyering  <meyering@redhat.com>
39279
39280         getdate.y: avoid locale-dependent date parsing failure
39281         In Turkish locales, getdate would fail to recognize keywords
39282         containing a lowercase "i".  The solution is not to rely on
39283         locale-sensitive case-conversion.
39284         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39285         (lookup_word): Use c_toupper in place of toupper.
39286         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39287         Reported by Vefa Bicakci <bicave@superonline.com> in
39288         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39289         * modules/getdate (Depends-on): Add c-ctype.
39290
39291 2008-08-02  Bruno Haible  <bruno@clisp.org>
39292
39293         * gnulib-tool (func_import): When updating or creating a .gitignore
39294         file, prepend each added line with a slash, and ignore leading slashes
39295         from the existing lines.
39296         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39297
39298 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39299
39300         Portability fix for GNU make 3.79.1.
39301         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39302         versions do not understand.
39303
39304 2008-08-01  Bruno Haible  <bruno@clisp.org>
39305
39306         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39307         * tests/test-isnanf.h (zero): New variable.
39308         (main): Avoid literal -0.0f.
39309         * tests/test-isnand.h (zero): New variable.
39310         (main): Avoid literal -0.0.
39311         * tests/test-isnanl.h (zero): New variable.
39312         (main): Avoid literal -0.0L.
39313         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39314         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39315         -0.0, -0.0L.
39316         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39317         (test_signbitd): Avoid literal -0.0.
39318         (test_signbitl): Avoid literal -0.0L.
39319         * tests/test-ceilf1.c (zero): New variable.
39320         (main): Avoid literal -0.0f.
39321         * tests/test-ceill.c (zero): New variable.
39322         (main): Avoid literal -0.0L.
39323         * tests/test-floorf1.c (zero): New variable.
39324         (main): Avoid literal -0.0f.
39325         * tests/test-floorl.c (zero): New variable.
39326         (main): Avoid literal -0.0L.
39327         * tests/test-roundf1.c (zero): New variable.
39328         (main): Avoid literal -0.0f.
39329         * tests/test-round1.c (zero): New variable.
39330         (main): Avoid literal -0.0.
39331         * tests/test-roundl.c (zero): New variable.
39332         (main): Avoid literal -0.0L.
39333         * tests/test-truncf1.c (zero): New variable.
39334         (main): Avoid literal -0.0f.
39335         * tests/test-trunc1.c (zero): New variable.
39336         (main): Avoid literal -0.0.
39337         * tests/test-truncl.c (zero): New variable.
39338         (main): Avoid literal -0.0L.
39339         * tests/test-frexp.c (zero): New variable.
39340         (main): Avoid literal -0.0.
39341         * tests/test-frexpl.c (zero): New variable.
39342         (main): Avoid literal -0.0L.
39343         * tests/test-ldexpl.c (zero): New variable.
39344         (main): Avoid literal -0.0L.
39345         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39346         (zerod, zerol): New variables.
39347         (test_function): Avoid literals -0.0, -0.0L.
39348         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39349         (zerod, zerol): New variables.
39350         (test_function): Avoid literals -0.0, -0.0L.
39351         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39352         (zerod, zerol): New variables.
39353         (test_function): Avoid literals -0.0, -0.0L.
39354         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39355         (zerod, zerol): New variables.
39356         (test_function): Avoid literals -0.0, -0.0L.
39357         * tests/test-strtod.c (zero): New variable.
39358         (main): Avoid literal -0.0.
39359         Reported by Jonathan C. Patschke <jp@centtech.com>.
39360
39361 2008-07-31  Jim Meyering  <meyering@redhat.com>
39362
39363         sha256.h: correct definition of SHA224_DIGEST_SIZE
39364         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
39365         Reported by Paulie Pena IV <paulie4@gmail.com>.
39366         Define as 224 / 8, rather than as a literal.
39367         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
39368         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
39369         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
39370
39371 2008-07-31  Bruno Haible  <bruno@clisp.org>
39372
39373         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
39374         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
39375         Reported by Jonathan Patschke <jp@centtech.com>.
39376
39377 2008-07-31  Bruno Haible  <bruno@clisp.org>
39378
39379         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39380         Reported by Paolo Bonzini <bonzini@gnu.org>.
39381
39382 2008-07-30  Eric Blake  <ebb9@byu.net>
39383
39384         test-strtod: allow compilation without -lm
39385         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39386         Reported by Dennis Clarke <blastwave@gmail.com>.
39387
39388 2008-07-28  Jim Meyering  <meyering@redhat.com>
39389
39390         bootstrap: work also when there are no .po files in po/
39391         * build-aux/bootstrap (update_po_files): Complete the change
39392         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39393
39394 2008-07-27  Jim Meyering  <meyering@redhat.com>
39395
39396         * users.txt: Add zile.
39397
39398 2008-07-26  Ben Pfaff  <blp@gnu.org>
39399
39400         Add missing dependencies on new m4/exponent[fdl].m4 files.
39401         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39402         * modules/isnand-nolibm: Add m4/exponentd.m4.
39403         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39404         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39405         m4/isnan[fdl].m4, because the macros actually used moved.
39406         Reported by Jim Meyering.
39407
39408 2008-07-14  Ben Pfaff  <blp@gnu.org>
39409
39410         Add isinf module.
39411         * lib/isinf.c: New file.
39412         * lib/math.in.h: Define isinf macro if we have decided to replace
39413         it.
39414         * m4/isinf.m4: New file.
39415         * m4/math_h.m4: Initialize and substitute variables for isinf
39416         module.
39417         * modules/isinf: New file.
39418         * modules/isinf-tests: New file.
39419         * modules/math: Add substitutions for new module.
39420         * tests/test-isinf.c: New file.
39421         * doc/posix-functions/isinf.texi: Mention new module.
39422         * MODULES.html.sh: Mention new module.
39423
39424 2008-07-14  Ben Pfaff  <blp@gnu.org>
39425
39426         Factor out some macros for use by additional modules.
39427         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39428         exponentf.m4.
39429         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39430         exponentd.m4.
39431         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39432         file exponentl.m4.
39433         * m4/exponentf.m4: New file.
39434         * m4/exponentd.m4: New file.
39435         * m4/exponentl.m4: New file.
39436         * modules/isnanf: Use new file m4/exponentf.m4.
39437         * modules/isnand: Use new file m4/exponentd.m4.
39438         * modules/isnanl: Use new file m4/exponentl.m4.
39439
39440 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39441
39442         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39443         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39444         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39445         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39446
39447         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39448         readlink on platforms without PATH_MAX.
39449
39450 2008-07-21  Eric Blake  <ebb9@byu.net>
39451
39452         Warn, not fail, on stale version.
39453         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39454
39455         Don't allow installation with stale devel version number.
39456         * top/GNUmakefile (_is-install-target): New macro.
39457         (_curr-ver): Forbid installation with stale version number.
39458
39459 2008-07-20  Bruno Haible  <bruno@clisp.org>
39460
39461         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39462         TESTS_ENVIRONMENT.
39463         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39464
39465 2008-07-20  Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/c-stack.h (c_stack_action): Add documentation.
39468         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39469
39470 2008-07-20  Bruno Haible  <bruno@clisp.org>
39471
39472         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39473         * modules/readlink (License): Likewise.
39474
39475 2008-07-17  Eric Blake  <ebb9@byu.net>
39476
39477         * modules/c-stack (Link): Fix typo.
39478
39479         Make c-stack use libsigsegv, when available.
39480         * modules/c-stack (Depends-on): Add libsigsegv.
39481         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39482         needed.
39483         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39484         (segv_handler, overflow_handler, c_stack_action)
39485         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39486         implementation when libsigsegv is available, but only when using
39487         the library is necessary.
39488         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39489         comment, explaining why XSI check fails on Linux.
39490         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39491         * tests/test-c-stack2.sh: Tweak skip message.
39492         * NEWS: Document new link-time requirements.
39493
39494 2008-07-16  Eric Blake  <ebb9@byu.net>
39495
39496         c-stack: Expose false positives when not using libsigsegv.
39497         * modules/c-stack-tests (Files): Expand test.
39498         * tests/test-c-stack.c (main): Add means to conditionally trigger
39499         non-overflow SIGSEGV.
39500         * tests/test-c-stack2.sh: New file.
39501
39502 2008-07-14  Bruno Haible  <bruno@clisp.org>
39503
39504         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39505         Reported by Eric Blake.
39506
39507 2008-07-14  Sam Steingold  <sds@gnu.org>
39508             Bruno Haible  <bruno@clisp.org>
39509
39510         New module libsigsegv.
39511         * modules/libsigsegv: New file.
39512         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39513         modifications.
39514         * MODULES.html.sh (Signal handling): New section.
39515
39516 2008-07-14  Bruno Haible  <bruno@clisp.org>
39517
39518         * modules/unictype/ctype-* (Description): Add the word "function".
39519         Improves the resulting doc in MODULES.html.
39520
39521 2008-07-12  Ben Pfaff  <blp@gnu.org>
39522
39523         Add longlong module.
39524         * modules/longlong: New file.
39525
39526 2008-07-12  Bruno Haible  <bruno@clisp.org>
39527
39528         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39529         to empty.
39530
39531 2008-07-10  Ben Pfaff  <blp@gnu.org>
39532
39533         Add isnan module.
39534         * doc/posix-functions/isnan.texi: Mention new module.
39535         * lib/math.in.h: Define isnan macro if we have decided to replace
39536         it.
39537         * m4/isnan.m4: New file.
39538         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39539         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39540         also.
39541         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39542         redundancy.
39543         * m4/math_h.m4: Initialize and substitute variables for isnan
39544         module.
39545         * modules/isnan: New file.
39546         * modules/isnan-tests: New file.
39547         * modules/math: Add substitutions for new module.
39548         * tests/test-isnan.c: New file.
39549         * MODULES.html.sh: Mention new module.
39550
39551 2008-07-10  Ben Pfaff  <blp@gnu.org>
39552
39553         Add isnanf module.
39554         * lib/isnanf.m4: New file.
39555         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39556         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39557         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39558         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39559         * modules/isnanf: New file.
39560         * modules/isnanf-tests: New file.
39561         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39562         files.
39563         * tests/test-isnanf-nolibm.c: factored most of its contents into
39564         new file tests/test-isnanf.h.
39565         * tests/test-isnanf.h: New file.
39566         * tests/test-isnanf.c: New file.
39567         * MODULES.html.sh: Mention new module.
39568         * doc/glibc-functions/isnanf.texi: Mention new module.
39569
39570 2008-07-10  Ben Pfaff  <blp@gnu.org>
39571
39572         Add isnand module.
39573         * lib/isnand.h: New file.
39574         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39575         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39576         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39577         functionality also.
39578         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39579         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39580         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39581         * modules/isnand: New file.
39582         * modules/isnand-tests: New file.
39583         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39584         files.
39585         * tests/test-isnand-nolibm.c: factored most of its contents into
39586         new file tests/test-isnand.h.
39587         * tests/test-isnand.h: New file.
39588         * tests/test-isnand.c: New file.
39589         * MODULES.html.sh: Mention new module.
39590
39591 2008-07-10  Ben Pfaff  <blp@gnu.org>
39592
39593         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39594         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39595         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39596         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39597         * modules/isnanf-nolibm: Update references to renamed files.
39598         * modules/isnand-nolibm: Likewise.
39599         * modules/isnanf-nolibm-tests: Likewise.
39600         * modules/isnand-nolibm-tests: Likewise.
39601         * lib/frexp.c: Likewise.
39602         * lib/isfinite.c: Likewise.
39603         * lib/signbitd.c: Likewise.
39604         * lib/signbitf.c: Likewise.
39605         * lib/vasnprintf.c: Likewise.
39606         * tests/test-ceilf1.c: Likewise.
39607         * tests/test-ceilf2.c: Likewise.
39608         * tests/test-floorf1.c: Likewise.
39609         * tests/test-floorf2.c: Likewise.
39610         * tests/test-frexp.c: Likewise.
39611         * tests/test-round1.c: Likewise.
39612         * tests/test-round2.c: Likewise.
39613         * tests/test-roundf1.c: Likewise.
39614         * tests/test-strtod.c: Likewise.
39615         * tests/test-trunc1.c: Likewise.
39616         * tests/test-trunc2.c: Likewise.
39617         * tests/test-truncf1.c: Likewise.
39618         * tests/test-truncf2.c: Likewise.
39619         * NEWS: Mention the renamed header files.
39620
39621 2008-07-11  Jim Meyering  <meyering@redhat.com>
39622
39623         vc-list-files: make the last-resort awk code more portable
39624         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39625         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39626         does not support it.
39627
39628 2008-07-10  Eric Blake  <ebb9@byu.net>
39629
39630         Work with tar's bootstrap.
39631         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39632         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39633         an m4 comment.
39634
39635 2008-07-09  Jim Meyering  <meyering@redhat.com>
39636
39637         posix-shell.m4: fix typo that made this test malfunction
39638         * m4/posix-shell.m4: Remove capitalization in variable name.
39639
39640 2008-07-08  Bruno Haible  <bruno@clisp.org>
39641
39642         * m4/onceonly.m4: Update comments.
39643         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39644
39645 2008-07-04  Jim Meyering  <meyering@redhat.com>
39646
39647         * users.txt: Add vc-dwim.
39648         (bison, coreutils): Use the gitweb URL.
39649
39650 2008-07-03  Jim Meyering  <meyering@redhat.com>
39651
39652         * users.txt: Add libffcall.  From Sam Steingold.
39653
39654 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39655
39656         getdate.y: do not ignore TZ with relative day, month or year offset
39657         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39658         relative-date-handling, since otherwise, the latter would clobber the
39659         sole output (an updated Start value) of the tz-handling block.
39660         * tests/test-getdate.c: Tests for the fix
39661
39662 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39663
39664         Recognize 'foo_LIBRARIES += libgnu.a'.
39665         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39666         makefile snippet has already specified an installation location,
39667         also using '+='.
39668
39669 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39670
39671         getdate.y: factor out common actions
39672         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39673         Use them in place of open-coded actions.
39674
39675 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39676
39677         Add self-test for getdate module.
39678         * modules/getdate-tests: New file.
39679         * tests/test-getdate.c: New file.
39680
39681 2008-06-29  Bruno Haible  <bruno@clisp.org>
39682
39683         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39684         .gitignore.
39685         Reported by Sylvain Beucler <beuc@beuc.net>.
39686
39687 2008-06-29  Bruno Haible  <bruno@clisp.org>
39688
39689         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39690         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39691
39692 2008-06-29  Bruno Haible  <bruno@clisp.org>
39693
39694         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39695         EXTRA_DIST.
39696         Reported by Sylvain Beucler <beuc@beuc.net>.
39697
39698 2008-06-26  Jim Meyering  <meyering@redhat.com>
39699
39700         make several modules depend on the "open" module
39701         This provides slightly increased consistency when opening-for-write
39702         the name of a non-directory spelled with a trailing slash.
39703         * modules/chdir-safer: Likewise.
39704         * modules/chown: Likewise.
39705         * modules/clean-temp: Likewise.
39706         * modules/copy-file: Likewise.
39707         * modules/fchdir: Likewise.
39708         * modules/fcntl-safer: Likewise.
39709         * modules/pipe: Likewise.
39710         * modules/utime: Likewise.
39711         Prompted by Eric Blake and Bruno Haible.
39712
39713 2008-06-24  Andreas Schwab  <schwab@suse.de>
39714
39715         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39716         literals can be used as initializers for global variables.
39717
39718 2008-06-23  Eric Blake  <ebb9@byu.net>
39719
39720         Make gnulib-cache.m4 easier to diff.
39721         * gnulib-tool (func_import): Allow newlines when reading cached
39722         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39723
39724 2008-06-23  Bruno Haible  <bruno@clisp.org>
39725
39726         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39727         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39728         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39729         m4/signalblocking.m4.
39730         (gl_PREREQ_SIGACTION): Don't invoke it.
39731         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39732         gl_PREREQ_SIG_HANDLER_H.
39733         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39734         Don't check for sigaction here.
39735
39736 2008-06-23  Bruno Haible  <bruno@clisp.org>
39737
39738         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39739         (install_handlers): Don't set the SA_RESETHAND flag.
39740
39741 2008-06-23  Bruno Haible  <bruno@clisp.org>
39742
39743         * m4/sigaction.m4: Comment fixes.
39744         * lib/signal.in.h: Likewise.
39745
39746 2008-06-23  Eric Blake  <ebb9@byu.net>
39747
39748         Fix typo.
39749         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39750
39751         Avoid SA_ namespace.
39752         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39753         Reported by Ralf Wildenhues.
39754
39755         Avoid test failure due to SA_RESTORER.
39756         * tests/test-sigaction.c (SA_MASK): New macro.
39757         (main): Avoid failing due to extension flags being set.
39758         Reported by Jim Meyering.
39759
39760         Revert use of sig-handler.h in sigprocmask.c.
39761         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39762         it requires the existence of struct sigaction.
39763         * lib/sigprocmask.c (handler_t): Restore typedef.
39764         (rpl_signal, old_handlers): Use local type.
39765
39766 2008-06-22  Bruno Haible  <bruno@clisp.org>
39767
39768         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39769         conditionally.
39770         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39771
39772 2008-06-22  Bruno Haible  <bruno@clisp.org>
39773
39774         * doc/posix-functions/siginterrupt.texi: Move note.
39775
39776         * lib/signal.in.h (SA_RESTART): New macro.
39777         * lib/sigaction.c: Update comment.
39778
39779         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39780
39781         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39782         (gl_PREREQ_SIGPROCMASK): Invoke it.
39783         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39784
39785         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39786
39787         * lib/sigprocmask.c: Update a comment.
39788
39789 2008-06-21  Eric Blake  <ebb9@byu.net>
39790
39791         Use sigaction module rather than signal().
39792         * modules/c-stack (Depends-on): Add sigaction.
39793         * modules/fatal-signal (Depends-on): Likewise.
39794         * modules/nanosleep (Depends-on): Likewise.
39795         * modules/sigprocmask (Files): Add sig-handler.h.
39796         * modules/sigaction (Files): Likewise.
39797         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39798         Eggert.
39799         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39800         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39801         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39802         (init_fatal_signals): Likewise.
39803         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39804         (siginterrupt): Delete fallback.
39805         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39806         instead.
39807         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39808         siginterrupt.
39809
39810         New module sigaction, for mingw.
39811         * modules/sigaction: New module...
39812         * modules/sigaction-tests: ...and its test.
39813         * m4/sigaction.m4: New file.
39814         * lib/sigaction.c: Likewise.
39815         * tests/test-sigaction.c: Likewise.
39816         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39817         * modules/signal (Makefile.am): Likewise.
39818         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39819         needed.
39820         * doc/posix-headers/signal.texi (signal.h): Mention provided
39821         types.
39822         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39823         that sigaction is preferable.
39824         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39825         module.
39826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39827         sigaction.
39828
39829         Improve robustness of sigprocmask by overriding signal.
39830         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39831         is in use.
39832         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39833         (SIGKILL, SIGSTOP): Provide fallbacks.
39834         (rpl_signal): Implement.
39835         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39836         signal can be called inside handlers.
39837
39838         Fix nanosleep module on mingw.
39839         * modules/nanosleep (Depends-on): Add sys_select.
39840         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39841
39842         Fix licensing of sigprocmask.
39843         * modules/raise (License): Relicense as LGPL.
39844
39845 2008-06-21  Bruno Haible  <bruno@clisp.org>
39846
39847         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39848         result if it contains question marks.
39849         Reported by Michael Geng <linux@michaelgeng.de>.
39850
39851 2008-06-19  Bruno Haible  <bruno@clisp.org>
39852
39853         Fix CVS-ism.
39854         * doc/gnulib.texi: Include updated-stamp.texi.
39855         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39856         (updated-stamp.texi): New rule.
39857         (gnulib.info): Depend on it.
39858         * doc/.gitignore: Add updated-stamp.texi.
39859         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39860
39861 2008-06-19  Bruno Haible  <bruno@clisp.org>
39862
39863         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39864         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39865
39866 2008-06-19  Eric Blake  <ebb9@byu.net>
39867
39868         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39869         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39870         Reported by Stepan Kasal.
39871
39872 2008-06-18  Bruno Haible  <bruno@clisp.org>
39873
39874         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39875         Reported by Eric Blake.
39876
39877 2008-06-18  Eric Blake  <ebb9@byu.net>
39878
39879         Work around cygwin 1.5.25 strsignal bug.
39880         * tests/test-strsignal.c: Allow for const char *.
39881         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39882
39883 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39884
39885         * users.txt: Update URL to article and add author/date
39886         information.
39887
39888 2008-06-17  Bruno Haible  <bruno@clisp.org>
39889
39890         New macro gl_DISABLE_THREADS.
39891         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39892         if the user did not pass --enable-threads or --disable-threads option.
39893         (gl_DISABLE_THREADS): New macro.
39894         Reported by Eric Blake <ebb9@byu.net>.
39895
39896 2008-06-17  Bruno Haible  <bruno@clisp.org>
39897
39898         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39899         when the macro ignores it.
39900         Based on a patch by Eric Blake <ebb9@byu.net>.
39901
39902 2008-06-17  Bruno Haible  <bruno@clisp.org>
39903
39904         * modules/tls (License): Change to LGPLv2+.
39905         Reported by Eric Blake.
39906
39907 2008-06-17  Eric Blake  <ebb9@byu.net>
39908
39909         Simplify c-stack prerequisites.
39910         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39911         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39912         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39913         check.
39914         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39915         <sys/resource.h>.
39916
39917         Move c-stack test into testsuite.
39918         * modules/c-stack-tests: New file.
39919         * lib/c-stack.c [DEBUG]: Move test program...
39920         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39921         fail test if sigaltstack is lacking.
39922         * tests/test-c-stack.sh: New driver file.
39923
39924 2008-06-16  Eric Blake  <ebb9@byu.net>
39925
39926         Use raise module consistently.
39927         * modules/fatal-signal (Depends-on): Add raise.
39928         * modules/sigprocmask (Depends-on): Likewise.
39929         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39930         * lib/sigprocmask.c (sigprocmask): Likewise.
39931         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39932         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39933
39934         Fix compliance bug in sigpending.
39935         * lib/sigprocmask.c (sigpending): Return pending array via
39936         parameter, not return value.
39937
39938 2008-06-14  Eric Blake  <ebb9@byu.net>
39939
39940         Improve obstack-printf test code.
39941         * tests/test-obstack-printf.c (test_function): Fix comment, and
39942         simplify usage of obstack_* in macros.  Add a test for coverage.
39943         Reported by Bruno Haible.
39944
39945 2008-06-14  Bruno Haible  <bruno@clisp.org>
39946
39947         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39948         array size as a constant, not as a const variable.
39949         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39950         AC_USE_SYSTEM_EXTENSIONS.
39951         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39952         Test whether the obstack_printf function actually exists.
39953         * modules/obstack-printf (Depends-on): Add extensions.
39954         (Include): Remove obstack.h.
39955         * modules/obstack-printf-posix (Depends-on): Add extensions.
39956         (Include): Remove obstack.h.
39957
39958 2008-06-13  Eric Blake  <ebb9@byu.net>
39959
39960         Add obstack-printf and obstack-printf-posix modules.
39961         * modules/obstack-printf: New file.
39962         * modules/obstack-printf-posix: Likewise.
39963         * MODULES.html.sh (Misc): Mention them.
39964         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39965         Likewise.
39966         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39967         Likewise.
39968         * modules/stdio (Makefile.am): Accomodate new modules.
39969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39970         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39971         Declare.
39972         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39973         functions.
39974         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39975         (gl_REPLACE_OBSTACK_PRINTF): New macros
39976         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39977         * tests/test-obstack-printf.c: New file.
39978         * modules/obstack-printf-tests: Likewise.
39979         * modules/obstack-printf-posix-tests: Likewise.
39980
39981 2008-06-11  Bruno Haible  <bruno@clisp.org>
39982
39983         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39984         * lib/open.c: Include errno.h.
39985         (open): Fail when attempting to write to a file that has a trailing
39986         slash.
39987         * tests/test-open.c (main): Test against trailing slash bug.
39988         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39989
39990 2008-06-10  Bruno Haible  <bruno@clisp.org>
39991
39992         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39993         for $? to work inside the trap command, with various /bin/sh-s.
39994         * tests/test-vc-list-files-cvs.sh: Likewise.
39995
39996 2008-06-10  Bruno Haible  <bruno@clisp.org>
39997
39998         * lib/acl-internal.h: Don't include gettext.h here.
39999         * lib/set-mode-acl.c: Include gettext.h here.
40000         * lib/copy-acl.c: Likewise.
40001
40002 2008-06-10  Bruno Haible  <bruno@clisp.org>
40003
40004         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40005         * lib/wait-process.c (wait_subprocess): Likewise.
40006         * lib/execute.h (execute): Add termsigp argument.
40007         * lib/execute.c (execute): Likewise.
40008         * lib/csharpcomp.c (compile_csharp_using_pnet,
40009         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40010         * lib/csharpexec.c (execute_csharp_using_pnet,
40011         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40012         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40013         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40014         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40015         is_jikes_present): Update.
40016         * lib/javaexec.c (execute_java_class): Update.
40017         * lib/javaversion.c (execute_and_read_line): Update.
40018         * NEWS: Document the changes.
40019         Reported by Eric Blake.
40020
40021 2008-06-10  Eric Blake  <ebb9@byu.net>
40022
40023         Add missing include.
40024         * tests/test-strstr.c (includes): Add <signal.h>.
40025         * tests/test-strcasestr.c (includes): Likewise.
40026         * tests/test-memmem.c (includes): Likewise.
40027
40028 2008-06-10  Bruno Haible  <bruno@clisp.org>
40029
40030         * lib/wait-process.c (wait_subprocess): Add an assertion.
40031
40032 2008-06-10  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40035
40036 2008-06-10  Bruno Haible  <bruno@clisp.org>
40037
40038         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40039         using alarm().
40040         * tests/test-strcasestr.c (main): Likewise.
40041         * tests/test-strstr.c (main): Likewise.
40042
40043 2008-06-09  Bruno Haible  <bruno@clisp.org>
40044
40045         Work around the Solaris 10 ACE ACLs ABI change.
40046         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40047         declare if ACL_NO_TRIVIAL is present.
40048         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40049         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40050         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40051         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40052         define if ACL_NO_TRIVIAL is present.
40053         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40054         and use the current ABI.
40055         (file_has_acl): Use same #if condition as elsewhere.
40056         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40057         in use, and use the current ABI.
40058         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40059         Reported by Jim Meyering.
40060
40061 2008-06-09  Eric Blake  <ebb9@byu.net>
40062
40063         Work around environments that (stupidly) ignore SIGALRM.
40064         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40065         before using alarm().
40066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40067         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40068         Reported by Ian Beckwith <ianb@erislabs.net>.
40069
40070         Produce autobuild blurb earlier in log.
40071         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40072
40073 2008-06-09  Jim Meyering  <meyering@redhat.com>
40074         and OndÅ™ej Vašík  <ovasik@redhat.com>
40075
40076         utimens.c: correct kernel bug work-around
40077         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40078         failure, not success, and the kernel bug we're trying to work
40079         around affects not just the utimensat call, but also the fallback
40080         futimens call.
40081         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40082         not success.
40083         [HAVE_FUTIMENS]: Use the same work-around, here.
40084
40085 2008-06-09  Jim Meyering  <meyering@redhat.com>
40086
40087         add more guards around definition of ACE_-related code
40088         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40089         ALLOW and ACE_OWNER are also defined.
40090
40091 2008-06-08  Bruno Haible  <bruno@clisp.org>
40092
40093         * lib/acl-internal.h: Add me as co-author.
40094         * lib/file-has-acl.c: Likewise.
40095         * lib/set-mode-acl.c: Likewise.
40096         * lib/copy-acl.c: Likewise.
40097
40098 2008-06-08  Bruno Haible  <bruno@clisp.org>
40099
40100         Add support for AIX ACLs.
40101         * lib/acl-internal.h (acl_nontrivial): New declaration.
40102         * lib/file-has-acl.c (acl_nontrivial): New function.
40103         (file_has_acl): Add implementation using AIX 4 ACL API.
40104         * lib/set-mode-acl.c (qset_acl): Likewise.
40105         * lib/copy-acl.c (qcopy_acl): Likewise.
40106
40107 2008-06-08  Bruno Haible  <bruno@clisp.org>
40108
40109         Add support for HP-UX ACLs.
40110         * lib/acl-internal.h (acl_nontrivial): New declaration.
40111         * lib/file-has-acl.c (acl_nontrivial): New function.
40112         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40113         * lib/set-mode-acl.c (qset_acl): Likewise.
40114         * lib/copy-acl.c (qcopy_acl): Likewise.
40115
40116 2008-06-08  Bruno Haible  <bruno@clisp.org>
40117
40118         Add support for Cygwin ACLs.
40119         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40120         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40121         the chmod_or_fchmod call.
40122         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40123
40124 2008-06-08  Bruno Haible  <bruno@clisp.org>
40125
40126         Fix bug with setuid modes in Solaris 10+ code.
40127         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40128         succeeded, when the mode contains some special bits.
40129
40130 2008-06-08  Bruno Haible  <bruno@clisp.org>
40131
40132         Add support for Solaris 7..10 ACLs.
40133         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40134         declarations.
40135         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40136         functions.
40137         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40138         * lib/set-mode-acl.c (qset_acl): Likewise.
40139         * lib/copy-acl.c (qcopy_acl): Likewise.
40140
40141 2008-06-08  Bruno Haible  <bruno@clisp.org>
40142
40143         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40144         declaration.
40145         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40146         (acl_access_nontrivial): Remove MacOS X case.
40147         (file_has_acl): Use acl_extended_nontrivial.
40148         * lib/copy-acl.c (qcopy_acl): Likewise.
40149
40150 2008-06-08  Bruno Haible  <bruno@clisp.org>
40151
40152         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40153
40154 2008-06-08  Jim Meyering  <meyering@redhat.com>
40155
40156         * modules/acl (Maintainer): Add Bruno Haible.
40157
40158 2008-06-07  Bruno Haible  <bruno@clisp.org>
40159
40160         Improve support for Tru64 ACLs.
40161         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40162         ACL on OSF/1.
40163
40164 2008-06-07  Bruno Haible  <bruno@clisp.org>
40165
40166         Add support for MacOS X ACLs.
40167         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40168         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40169         * lib/set-mode-acl.c (qset_acl): Likewise.
40170         * lib/copy-acl.c (qcopy_acl): Likewise.
40171
40172 2008-06-07  Bruno Haible  <bruno@clisp.org>
40173
40174         Fix memory leak introduced on 2008-05-22.
40175         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40176         use.
40177
40178 2008-06-07  Bruno Haible  <bruno@clisp.org>
40179
40180         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40181         to construct an empty ACL.
40182
40183 2008-06-07  Bruno Haible  <bruno@clisp.org>
40184
40185         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40186         precisely.
40187         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40188
40189 2008-06-07  Bruno Haible  <bruno@clisp.org>
40190
40191         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40192         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40193
40194 2008-06-07  Bruno Haible  <bruno@clisp.org>
40195
40196         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40197         regardless of POSIX.
40198         * doc/posix-functions/_longjmp.texi: Likewise.
40199         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
40200         SystemV platform in this case.
40201
40202 2008-06-06  Eric Blake  <ebb9@byu.net>
40203
40204         Document abort() bugs.
40205         * doc/posix-functions/abort.texi (abort): Mention anomalies.
40206
40207         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
40208         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
40209         sigsetjmp.
40210         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
40211         siglongjmp, but only as a macro.
40212         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
40213         is obsolete.
40214         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
40215
40216         Tweak documentation to cover cygwin argz bugs.
40217         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
40218         argz bug fix; no code change needed since no cygwin releases
40219         occurred between the last fix and the bug being tested.
40220         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
40221         module and recently fixed cygwin bugs.
40222         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
40223         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
40224         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
40225         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
40226         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
40227         Likewise.
40228         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
40229         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
40230         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
40231         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
40232         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40233         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
40234         Likewise.
40235
40236         Avoid gcc warning on cygwin.
40237         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
40238         !ACL_NO_TRIVIAL]: Avoid unused variable.
40239
40240 2008-06-05  Eric Blake  <ebb9@byu.net>
40241
40242         Be tolerant of UNKNOWN version in gnulib-tool test dir.
40243         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
40244         git-version-gen fails to come up with a version.
40245         Reported by Simon Josefsson.
40246
40247 2008-06-05  Jim Meyering  <meyering@redhat.com>
40248             Paul Eggert  <eggert@cs.ucla.edu>
40249
40250         utimens.c: work around a probable Linux kernel bug
40251         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
40252         appears to be a kernel bug that causes utimensat to return 280
40253         instead of 0, indicating success.
40254
40255 2008-06-04  Bruno Haible  <bruno@clisp.org>
40256
40257         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
40258         2008-06-01 commit.
40259
40260 2008-06-04  Bruno Haible  <bruno@clisp.org>
40261
40262         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
40263         * lib/file-has-acl.c (acl_access_nontrivial): New function.
40264         (file_has_acl): Use it. Save errno afterwards.
40265         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
40266
40267 2008-06-03  Bruno Haible  <bruno@clisp.org>
40268
40269         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
40270         draft code. Simplify #ifs.
40271         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
40272         Put Solaris code after POSIX-draft code. Fix comments regarding
40273         Solaris 10, HP-UX. Mention Cygwin.
40274         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40275
40276 2008-06-03  Eric Blake  <ebb9@byu.net>
40277
40278         Provide fallback for older kernels.
40279         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40280         Provide runtime fallback if kernel lacks support.
40281         Reported by Mike Frysinger.
40282
40283 2008-06-02  Bruno Haible  <bruno@clisp.org>
40284
40285         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40286         it exists.
40287
40288 2008-06-02  Bruno Haible  <bruno@clisp.org>
40289
40290         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40291         * lib/copy-acl.c (qcopy_acl): Update comment.
40292
40293 2008-06-02  Bruno Haible  <bruno@clisp.org>
40294
40295         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40296         like ACL APIs.
40297
40298 2008-06-02  Bruno Haible  <bruno@clisp.org>
40299
40300         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40301         * tests/test-set-mode-acl.sh: Likewise.
40302         * tests/test-copy-acl.sh: Likewise.
40303         * tests/test-copy-file.sh: Likewise.
40304
40305 2008-06-02  Bruno Haible  <bruno@clisp.org>
40306
40307         * tests/test-file-has-acl.sh: Remove unused code.
40308
40309 2008-06-01  Bruno Haible  <bruno@clisp.org>
40310
40311         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
40312         (copy_acl): Just a wrapper around qcopy_acl that emits the error
40313         messages.
40314         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40315
40316 2008-06-01  Bruno Haible  <bruno@clisp.org>
40317
40318         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
40319         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
40320         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
40321         APIs.
40322         * modules/acl-tests (configure.ac): Remove tests now contained in
40323         m4/acl.m4.
40324
40325 2008-06-02  Jim Meyering  <meyering@redhat.com>
40326
40327         announce-gen: use a better key-server host name
40328         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
40329         it may be more consistently reliable.  Suggested by Werner Koch
40330         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
40331
40332 2008-06-01  Bruno Haible  <bruno@clisp.org>
40333
40334         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
40335         Reported by Voroskoi Andras <voroskoi@gmail.com>.
40336
40337 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
40338
40339         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
40340
40341 2008-06-01  Bruno Haible  <bruno@clisp.org>
40342
40343         New ACL tests.
40344         * tests/test-file-has-acl.sh: New file.
40345         * tests/test-file-has-acl.c: New file.
40346         * tests/test-set-mode-acl.sh: New file.
40347         * tests/test-set-mode-acl.c: New file.
40348         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
40349         * tests/test-copy-acl.c: New file.
40350         * modules/acl-tests: New file, based on modules/copy-file-tests.
40351         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
40352         (Depends-on): Add acl-tests.
40353         (configure.ac): Remove checks.
40354         (Makefile.am): Don't create test-sameacls program here any more.
40355
40356 2008-06-01  Bruno Haible  <bruno@clisp.org>
40357
40358         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
40359         * tests/test-sameacls.c: Include progname.h.
40360         (main): Invoke set_program_name. Portability fixes for MacOS X,
40361         Solaris, HP-UX.
40362
40363 2008-06-01  Bruno Haible  <bruno@clisp.org>
40364
40365         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
40366         function.
40367         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
40368
40369 2008-06-01  Bruno Haible  <bruno@clisp.org>
40370
40371         * modules/rpmatch (Depends-on): Add strdup.
40372
40373 2008-06-01  Bruno Haible  <bruno@clisp.org>
40374
40375         * lib/pipe.c: Include unistd-safer.h.
40376         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40377         * modules/pipe (Depends-on): Add unistd-safer.
40378
40379 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40380
40381         * modules/autobuild (configure.ac): Call AB_INIT.
40382
40383 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40384
40385         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40386         Suggested by Bruno Haible <bruno@clisp.org>.
40387
40388 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40389
40390         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40391         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40392         <bruno@clisp.org>.
40393
40394 2008-05-29  Eric Blake  <ebb9@byu.net>
40395
40396         Prefer new POSIX 200x interfaces over futimesat.
40397         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40398         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40399         when available.
40400         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40401
40402 2008-05-28  Bruno Haible  <bruno@clisp.org>
40403
40404         * modules/stpcpy (License): Change to LGPLv2+.
40405         Requested by David Lutterkort <dlutter@redhat.com>.
40406
40407 2008-05-27  Bruno Haible  <bruno@clisp.org>
40408
40409         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40410         current mingw.
40411         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40412
40413 2008-05-27  Bruno Haible  <bruno@clisp.org>
40414
40415         * modules/iconv_open (Link): New section, from module 'iconv'.
40416         * modules/striconv (Link): Likewise.
40417         * modules/striconveh (Link): Likewise.
40418         * modules/xstriconv (Link): Likewise.
40419         * modules/unicodeio (Link): Likewise.
40420         * modules/propername (Link): Likewise.
40421         Reported by Jim Meyering.
40422
40423 2008-05-26  Jim Meyering  <meyering@redhat.com>
40424
40425         sha256: do not artificially restrict buffer length to be < 2^32
40426         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40427         uint32_t to size_t.
40428         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40429         to match.
40430
40431         avoid unaligned access errors, e.g., on sparc
40432         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40433         direct access through a possibly-unaligned uint64* pointer.
40434         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40435         direct access through a possibly-unaligned uint32* pointer.
40436         Prompted by this patch from Tom "spot" Callaway:
40437         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40438
40439         sha512.c: fix typo in comment
40440         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40441
40442 2008-05-25  Bruno Haible  <bruno@clisp.org>
40443
40444         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40445         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40446         (Makefile.am): Update lib_SOURCES.
40447
40448 2008-05-25  Bruno Haible  <bruno@clisp.org>
40449
40450         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40451
40452 2008-05-25  Jim Meyering  <meyering@redhat.com>
40453
40454         useless-if-before-free: freed expr may have white-space differences
40455         * build-aux/useless-if-before-free: Recognize cases in which the
40456         freed expression differs from the tested one in embedded white
40457         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40458         $1 was used, so we can't make any regexp shy.  Improved tests now
40459         detect this.
40460
40461         useless-if-before-free: accept white space in the expression.
40462         * build-aux/useless-if-before-free: For now, any white space
40463         in the expression must be identical in the free argument.
40464
40465         useless-if-before-free: efficiency tweak
40466         * build-aux/useless-if-before-free: Make the expression-matching
40467         regexp "shy".
40468         Make the *outer* regexp shy, not the expr-matching one.
40469
40470         update code-in-comment to accept cast of free arg
40471         * build-aux/useless-if-before-free: Update regexp.
40472
40473 2008-05-25  Bruno Haible  <bruno@clisp.org>
40474
40475         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40476         * modules/copy-file-tests (Files, Makefile.am): Update.
40477         * tests/test-copy-file.c (func_test_copy): Update.
40478
40479 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40480
40481         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40482
40483 2008-05-23  Bruno Haible  <bruno@clisp.org>
40484
40485         Improve support for ACLs on OSF/1.
40486         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40487         Remove fallback for unknown flavors of ACLs.
40488
40489 2008-05-22  Bruno Haible  <bruno@clisp.org>
40490
40491         Add support for ACLs on OSF/1.
40492         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40493         replacements.
40494         (acl_free_text): New macro fallback.
40495         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40496         acl_free.
40497         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40498         acl_free_text function. Require AC_C_INLINE.
40499
40500 2008-05-22  Bruno Haible  <bruno@clisp.org>
40501
40502         Make copy_acl work on MacOS X 10.5.
40503         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40504         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40505         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40506         If MODE_INSIDE_ACL, don't assume that every system has the same text
40507         representation for ACLs as FreeBSD.
40508         * lib/copy-acl.c (copy_acl): Add support for platforms with
40509         !MODE_INSIDE_ACL.
40510         * lib/file-has-acl.c (file_has_acl): Likewise.
40511         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40512         FreeBSD, MacOS X, or IRIX, respectively.
40513
40514 2008-05-22  Bruno Haible  <bruno@clisp.org>
40515
40516         * lib/acl.h: Don't include <sys/acl.h>.
40517         (GETACLCNT): Move fallback to lib/acl-internal.h.
40518         * lib/acl-internal.h: Include <sys/acl.h> here.
40519         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40520
40521 2008-05-22  Bruno Haible  <bruno@clisp.org>
40522
40523         Split off copy_acl function to separate file.
40524         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40525         * lib/acl.c (copy_acl): Moved function to separate file.
40526         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40527         * modules/acl (Files): Add lib/copy-acl.c.
40528         (Makefiles.am): Augment lib_SOURCES.
40529
40530 2008-05-22  Bruno Haible  <bruno@clisp.org>
40531
40532         * modules/copy-file-tests: New file.
40533         * tests/test-copy-file.sh: New file.
40534         * tests/test-copy-file.c: New file.
40535         * tests/test-copy-file-sameacls.c: New file.
40536
40537 2008-05-22  Eric Blake  <ebb9@byu.net>
40538
40539         Avoid gcc warning.
40540         * tests/test-memcmp.c (main): Pass NULL indirectly.
40541
40542 2008-05-21  Bruno Haible  <bruno@clisp.org>
40543
40544         Add reference doc about ACLs.
40545         * doc/acl-resources.txt: New file.
40546         * doc/acl-cygwin.txt: New file.
40547
40548 2008-05-21  Bruno Haible  <bruno@clisp.org>
40549
40550         Avoid one more warning from gcc.
40551         * lib/vasnprintf.c (IF_LINT): Update comments.
40552         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40553
40554 2008-05-21  Jim Meyering  <meyering@redhat.com>
40555
40556         avoid a warning from gcc
40557         * lib/vasnprintf.c (IF_LINT): Define.
40558         (scale10_round_decimal_long_double):
40559         Use it to avoid a "may be used uninitialized" warning.
40560         (scale10_round_decimal_double): Likewise.
40561
40562 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40563
40564         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40565         declared.
40566
40567 2008-05-20  Bruno Haible  <bruno@clisp.org>
40568
40569         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40570         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40571
40572 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40573
40574         * modules/memcmp-tests: New file.
40575         * tests/test-memcmp.c: New file.
40576
40577 2008-05-19  Bruno Haible  <bruno@clisp.org>
40578
40579         * modules/propername (Notice, configure.ac): Put quoted "..." into
40580         --keyword option.
40581         * lib/propername.h: Update comments accordingly.
40582         Reported by Eric Blake.
40583
40584 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40585
40586         * modules/getpass-gnu (Depends-on): Add fseeko.
40587
40588 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40589
40590         * modules/base64-tests: New file.
40591
40592 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40593
40594         * lib/base64.c (base64_decode_ctx): If a decode context structure
40595         was passed in use it to ignore newlines.  If a context structure
40596         was _not_ passed in, continue to treat newlines as garbage (this
40597         is the historical behavior).  Formerly base64_decode.
40598         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40599         takes a decode context structure.
40600         * lib/base64.h (base64_decode): Macro for four-argument calls.
40601         (base64_decode_alloc): Likewise.
40602         * lib/base64.c (base64_decode_ctx): If a decode context structure
40603         was passed in use it to ignore newlines.  If a context structure
40604         was _not_ passed in, continue to treat newlines as garbage (this
40605         is the historical behavior).  Formerly base64_decode.
40606         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40607         takes a decode context structure.
40608         * lib/base64.h (base64_decode): Macro for four-argument calls.
40609         (base64_decode_alloc): Likewise.
40610
40611 2008-05-19  Jim Meyering  <meyering@redhat.com>
40612
40613         avoid a warning from gcc
40614         * lib/trim.c (IF_LINT): Define.
40615         (trim2): Use it to avoid a "may be used uninitialized" warning.
40616
40617         Fix doc typo.
40618         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40619
40620 2008-05-19  Bruno Haible  <bruno@clisp.org>
40621
40622         * doc/glibc-functions/getpass.texi: Document limits of other
40623         implementations.
40624
40625 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40626             Bruno Haible <bruno@clisp.org>
40627
40628         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40629
40630 2008-05-18  Bruno Haible  <bruno@clisp.org>
40631
40632         * modules/propername: New file, from GNU gettext.
40633         * lib/propername.h: New file, from GNU gettext.
40634         * lib/propername.c: New file, from GNU gettext.
40635         * MODULES.html.sh (Internationalization functions): Add propername.
40636
40637 2008-05-16  Jim Meyering  <meyering@redhat.com>
40638             Bruno Haible  <bruno@clisp.org>
40639
40640         Avoid some warnings from "gcc -Wshadow".
40641         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40642
40643 2008-05-15  Eric Blake  <ebb9@byu.net>
40644
40645         Extend previous patch to cygwin 1.7.0.
40646         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40647         fast implementation in cygwin >= 1.7.0.
40648         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40650
40651 2008-05-15  Bruno Haible  <bruno@clisp.org>
40652
40653         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40654         implementation in glibc >= 2.9.
40655         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40657
40658 2008-05-15  Bruno Haible  <bruno@clisp.org>
40659
40660         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40661         (Unicode string functions): Add unilbrk/*.
40662         Reported by Karl Berry.
40663
40664 2008-05-15  Eric Blake  <ebb9@byu.net>
40665
40666         Fix violation of <stdbool.h> replacement in regex.
40667         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40668         * lib/regexec.c (re_search_internal): Likewise.
40669         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40670
40671 2008-05-15  Jim Meyering  <meyering@redhat.com>
40672
40673         avoid distracting test output when git or cvs is not found
40674         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40675         * tests/test-vc-list-files-git.sh: Likewise.
40676
40677 2008-05-15  Eric Blake  <ebb9@byu.net>
40678
40679         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40680         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40681         glibc version.
40682         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40683         * doc/posix-functions/strstr.texi (strstr): Likewise.
40684         * lib/str-two-way.h (MAX): Sychronize with glibc.
40685
40686 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40687
40688         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40689         opr.ctx_type.
40690         (calc_first): Initialize constraint field.
40691         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40692         Fix grammar.
40693         (duplicate_node): Merge constraint field for all node types.
40694         (calc_eclosure_iter): Look at constraint field for all node types.
40695         * lib/regex_internal.c (create_cd_newstate): Don't look at
40696         opr.ctx_type.
40697
40698 2008-05-14  Bruno Haible  <bruno@clisp.org>
40699
40700         Help GCC to do better code generation.
40701         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40702         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40703         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40704         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40705         Declare with attribute 'malloc' if supported.
40706
40707 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40708
40709         use "echo STR|wc -c" rather than unportable "expr length STR"
40710         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40711         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40712
40713 2008-05-14  Jim Meyering  <meyering@redhat.com>
40714
40715         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40716         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40717         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40718         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40719         via Collin Lasse.
40720
40721 2008-05-14  Eric Blake  <ebb9@byu.net>
40722
40723         Avoid quadratic growth in gl_LIBSOURCES.
40724         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40725         Suggested by Bruno Haible.
40726
40727         Test xmemdup0.
40728         * modules/xmemdup0-tests: New file.
40729         * tests/test-xmemdup0.c: Likewise.
40730
40731 2008-05-13  Eric Blake  <ebb9@byu.net>
40732
40733         Split xmemdup0 into its own module.
40734         * modules/xmemdup0: New file.
40735         * lib/xmemdup0.h: Likewise.
40736         * lib/xmemdup0.c: Likewise.
40737         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40738         * lib/xalloc.h (xmemdup0): Remove.
40739         * lib/xmalloc.c (xmemdup0): Likewise.
40740
40741 2008-05-13  Eric Blake  <ebb9@byu.net>
40742             Bruno Haible  <bruno@clisp.org>
40743
40744         Reduce number of forks required during autoconf.
40745         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40746         and gl_LIBSOURCES_DIR.
40747         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40748         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40749         m4_syscmd per file.
40750         <m4_foreach_w>: Move...
40751         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40752
40753 2008-05-13  Eric Blake  <ebb9@byu.net>
40754
40755         * gnulib-tool: Fix various comment typos.
40756
40757 2008-05-12  Bruno Haible  <bruno@clisp.org>
40758
40759         Tailor the linebreaking algorithm.
40760         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40761
40762 2008-05-12  Bruno Haible  <bruno@clisp.org>
40763
40764         Update to Unicode 5.0.0.
40765         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40766         LBP_JV, LBP_JT. Redistribute values.
40767         (unilbrk_table): Change size.
40768         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40769         Unicode TR#14 rev. 22.
40770         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40771         LBP_JV, LBP_JT. Redistribute values.
40772         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40773         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40774         Update.
40775         * lib/unilbrk/lbrkprop1.h: Regenerated.
40776         * lib/unilbrk/lbrkprop2.h: Regenerated.
40777         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40778         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40779         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40780         Likewise.
40781         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40782         Likewise.
40783         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40784         result.
40785         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40786         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40787         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40788         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40789         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40790         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40791
40792 2008-05-11  Bruno Haible  <bruno@clisp.org>
40793
40794         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40795
40796 2008-05-11  Bruno Haible  <bruno@clisp.org>
40797
40798         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40799         * modules/unilbrk/gen-lbrk: New file.
40800
40801 2008-05-11  Bruno Haible  <bruno@clisp.org>
40802
40803         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40804         * m4/sha512.m4 (gl_SHA512): Likewise.
40805
40806 2008-05-11  Jim Meyering  <meyering@redhat.com>
40807
40808         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40809         * modules/crypto/sha256: New file.
40810         * modules/crypto/sha512: Likewise.
40811         * lib/sha256.c: Likewise.
40812         * lib/sha256.h: Likewise.
40813         * lib/sha512.c: Likewise.
40814         * lib/sha512.h: Likewise.
40815         * lib/u64.h: Likewise.
40816         * m4/sha256.m4: Likewise.
40817         * m4/sha512.m4: Likewise.
40818         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40819
40820 2008-05-10  Bruno Haible  <bruno@clisp.org>
40821
40822         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40823         (Input/Output <stdio.h>): Add xprintf.
40824         (Signal handling <signal.h>): Add strsignal.
40825         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40826         (Core language properties): Add func.
40827         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40828         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40829         strings.
40830         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40831         (Input/output): New section.
40832         (File system functions): Add openat-die, stat-macros.
40833         (Networking functions): Add sockets.
40834         (Unicode string functions): Add unictype/*.
40835         (Support for building libraries and executables): Add gperf.
40836         (Support for building documentation): Add agpl-3.0.
40837         (Misc): Add nocrash.
40838
40839 2008-05-10  Bruno Haible  <bruno@clisp.org>
40840
40841         * modules/unictype/gen-ctype: New file.
40842
40843 2008-05-10  Jim Meyering  <meyering@redhat.com>
40844
40845         Make chdir-safer.c more efficient on a system with no symlinks.
40846         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40847         also if ELOOP is zero.  Suggested by Bruno Haible.
40848
40849         Make chdir-safer.c slightly safer.
40850         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40851         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40852
40853         Avoid compile failure on systems without ELOOP (like mingw).
40854         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40855         Reported by Bruno Haible.
40856
40857 2008-05-10  Bruno Haible  <bruno@clisp.org>
40858
40859         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40860         (is_utf8_encoding): Use a case-insensitive comparison.
40861         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40862         streq.
40863
40864 2008-05-10  Bruno Haible  <bruno@clisp.org>
40865
40866         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40867         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40868         * lib/unilbrk/ulc-common.h (iconv_string_length,
40869         iconv_string_keeping_offsets): Remove declarations.
40870         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40871         Don't include <iconv.h>, streq.h, xsize.h.
40872         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40873         conversion.
40874         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40875         <iconv.h>, streq.h, xsize.h.
40876         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40877         conversion.
40878         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40879         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40880         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40881         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40882
40883 2008-05-10  Bruno Haible  <bruno@clisp.org>
40884
40885         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40886         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40887
40888         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40889         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40890
40891         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40892         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40893
40894         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40895         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40896
40897         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40898         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40899
40900         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40901         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40902
40903         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40904         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40905
40906         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40907         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40908
40909 2008-05-10  Bruno Haible  <bruno@clisp.org>
40910
40911         Split up 'linebreak' module.
40912         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40913         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40914         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40915         modifications.
40916         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40917         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40918         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40919         lib/linebreak.c.
40920         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40921         lib/linebreak.c.
40922         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40923         lib/linebreak.c.
40924         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40925         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40926         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40927         lib/linebreak.c.
40928         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40929         lib/linebreak.c.
40930         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40931         lib/linebreak.c.
40932         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40933         lib/linebreak.c.
40934         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40935         lib/linebreak.c.
40936         * modules/unilbrk/base: New file.
40937         * modules/unilbrk/tables: New file.
40938         * modules/unilbrk/u8-possible-linebreaks: New file.
40939         * modules/unilbrk/u16-possible-linebreaks: New file.
40940         * modules/unilbrk/u32-possible-linebreaks: New file.
40941         * modules/unilbrk/ulc-common: New file.
40942         * modules/unilbrk/ulc-possible-linebreaks: New file.
40943         * modules/unilbrk/u8-width-linebreaks: New file.
40944         * modules/unilbrk/u16-width-linebreaks: New file.
40945         * modules/unilbrk/u32-width-linebreaks: New file.
40946         * modules/unilbrk/ulc-width-linebreaks: New file.
40947         * lib/linebreak.h: Remove file.
40948         * lib/linebreak.c: Remove file.
40949         * m4/linebreak.m4: Remove file.
40950         * modules/linebreak: Remove file.
40951         * NEWS: Mention the changes.
40952
40953 2008-05-09  Eric Blake  <ebb9@byu.net>
40954
40955         Add xmemdup0.
40956         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40957         implementation.
40958         * lib/xmalloc.c (xmemdup0): New C implementation.
40959
40960 2008-05-08  Bruno Haible  <bruno@clisp.org>
40961
40962         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40963
40964 2008-05-07  Eric Blake  <ebb9@byu.net>
40965
40966         Support cross-compilation of <wctype.h>.
40967         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40968         AC_CACHE_CHECK.
40969
40970 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40971
40972         * build-aux/vc-list-files: Add support for bzr.
40973
40974 2008-05-03  Jim Meyering  <meyering@redhat.com>
40975
40976         avoid failed assertion with tight malloc
40977         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40978
40979 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40980
40981         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40982         are needed from arpa/inet.h.
40983         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40984         Reported by Bruno Haible.
40985
40986 2008-05-02  Jim Meyering  <meyering@redhat.com>
40987
40988         avoid compilation error on FreeBSD 6
40989         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40990
40991 2008-05-01  Jim Meyering  <meyering@redhat.com>
40992
40993         useless-if-before-free: correct --help's exit status description
40994         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40995         for one or more matches, etc.  Reported by Bruno Haible.
40996
40997         vc-list-files: make the stand-alone gnulib test work
40998         * modules/vc-list-files-tests (configure.ac):
40999         Define and AC_SUBST abs_aux_dir.
41000         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41001         $(abs_top_srcdir) to each script and having each of them
41002         duplicate the work of setting PATH, set PATH here, using
41003         the new variable, abs_aux_dir instead.
41004         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41005         * tests/test-vc-list-files-git.sh: Likewise.
41006         Reported by Bruno Haible.
41007
41008 2008-05-01  Bruno Haible  <bruno@clisp.org>
41009
41010         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41011         reallocation. Rename 'done' to 'found_delimiter'.
41012
41013 2008-05-01  Jim Meyering  <meyering@redhat.com>
41014
41015         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41016         * build-aux/vc-list-files: Use `...`, not $(...).
41017
41018 2008-04-30  Jim Meyering  <meyering@redhat.com>
41019
41020         add tests for vc-list-files
41021         * modules/vc-list-files-tests: New module.
41022         * tests/test-vc-list-files-cvs.sh: New file.
41023         * tests/test-vc-list-files-git.sh: New file.
41024
41025         avoid a warning from gcc
41026         * lib/getndelim2.c (IF_LINT): Define.
41027         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41028
41029         vc-list-files: work properly with build-aux/cvsu, too
41030         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41031         to all cvs-based clauses.
41032
41033         vc-list-files: work properly in the CVS+awk case, too
41034         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41035
41036         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41037         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41038         take more than one file argument, so .  Add quotes, just in case $dir
41039         ever contains a shell meta-character.  Prompted by Soren Hansen in
41040         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41041
41042 2008-04-29  Eric Blake  <ebb9@byu.net>
41043
41044         Optimize getndelim2 to use block operations when possible.
41045         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41046         freadseek, and memchr2.
41047         * lib/getndelim2.c (getndelim2): Use them for block reads.
41048
41049 2008-04-29  Bruno Haible  <bruno@clisp.org>
41050
41051         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41052         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41053         * modules/inet_ntop (Depends-on): Add extensions.
41054         * modules/inet_pton (Depends-on): Likewise.
41055         Reported by Simon Josefsson.
41056
41057 2008-04-29  Jim Meyering  <meyering@redhat.com>
41058
41059         When the is more than one match in a block, match all of them.
41060         * build-aux/useless-if-before-free: Iterate through each block
41061         until there are no more matches.
41062
41063         Fix broken useless-if-before-free script.
41064         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41065         the expression to match cast of argument to free-like function.
41066
41067 2008-04-29  Eric Blake  <ebb9@byu.net>
41068
41069         Use new header.
41070         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41071
41072 2008-04-29  Jim Meyering  <meyering@redhat.com>
41073
41074         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41075         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41076         by gnulib to exist and to declare e.g., inet_ntop.
41077         Don't include "inet_ntop.h", now removed.
41078
41079         * m4/arpa_inet_h.m4: Remove trailing blanks.
41080
41081 2008-04-29  Eric Blake  <ebb9@byu.net>
41082
41083         Silence valgrind on safe reads beyond potential array bounds.
41084         * lib/rawmemchr.valgrind: New file.
41085         * lib/strchrnul.valgrind: Likewise.
41086         * modules/rawmemchr (Files): Distribute new file.
41087         * modules/strchrnul (Files): Likewise.
41088         Suggested by Bruno Haible.
41089
41090 2008-04-29  Bruno Haible  <bruno@clisp.org>
41091
41092         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41093         (inet_ntop, inet_pton): Change portability warning's wording.
41094         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41095         Invoke gl_CHECK_NEXT_HEADERS.
41096         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41097         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41098         set ARPA_INET_H.
41099         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41100         * modules/arpa_inet (Description): No longer only for systems that
41101         lack it.
41102         (Depends-on): Add include_next.
41103         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41104         HAVE_ARPA_INET_H.
41105
41106 2008-04-29  Jim Meyering  <meyering@redhat.com>
41107
41108         * modules/mkdir (License): Re-license as LGPLv2+.
41109
41110 2008-04-29  Bruno Haible  <bruno@clisp.org>
41111
41112         * modules/rawmemchr (Maintainer): Set to Eric.
41113         * modules/strchrnul (Maintainer): Likewise.
41114
41115 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41116
41117         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41118         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41119
41120         * modules/arpa_inet (arpa/inet.h): Use them.
41121
41122 2008-04-28  Eric Blake  <ebb9@byu.net>
41123
41124         Test getndelim2.
41125         * modules/getndelim2-tests: New file.
41126         * tests/test-getndelim2.c: Likewise.
41127         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41128         stream.
41129         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41130
41131         * MODULES.html.sh: Document new module.
41132
41133 2008-04-20  Bruno Haible  <bruno@clisp.org>
41134
41135         * lib/c-stack.c (die): Use raise.
41136         * modules/c-stack (Depends-on): Add raise.
41137
41138 2008-04-28  Bruno Haible  <bruno@clisp.org>
41139
41140         Expect rpmatch to be declared.
41141         * lib/yesno.c (rpmatch): Remove declaration.
41142
41143         Declare rpmatch.
41144         * lib/stdlib.in.h (rpmatch): New declaration.
41145         * lib/rpmatch.c: Include <stdlib.h> first.
41146         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41147         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41149         HAVE_RPMATCH.
41150         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41151         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41152         (Include): Set to <stdlib.h>.
41153         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41154         HAVE_RPMATCH.
41155         * NEWS: Document the change.
41156
41157 2008-04-28  Bruno Haible  <bruno@clisp.org>
41158
41159         Change rpmatch to use nl_langinfo when appropriate.
41160         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41161         (N_): New macro.
41162         (localized_pattern): New function/macro.
41163         (try): Remove match, nomatch arguments. Copy the pattern into safe
41164         memory before caching it.
41165         (rpmatch): Use localized_pattern. Add translator comments.
41166         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41167         Suggested by Eric Blake.
41168         * modules/rpmatch (Depends-on): Add stdbool.
41169
41170 2008-04-28  Eric Blake  <ebb9@byu.net>
41171
41172         Add rawmemchr module, matching glibc.
41173         * modules/string (Makefile.am): New indicator.
41174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41175         * lib/string.in.h (rawmemchr): Declare when appropriate.
41176         * modules/rawmemchr: New file.
41177         * m4/rawmemchr.m4: Likewise.
41178         * lib/rawmemchr.c: Likewise.
41179         * modules/rawmemchr-tests: Likewise.
41180         * tests/test-rawmemchr.c: Likewise.
41181         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41182         module.
41183         * modules/strchrnul (Depends-on): Add rawmemchr.
41184         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41185
41186         Whitespace cleanup.
41187         * tests/test-strchrnul.c: Reindent.
41188         * lib/strchrnul.c: Likewise.
41189
41190         Optimize and test strchrnul.
41191         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41192         * modules/strchrnul-tests: New file.
41193         * tests/test-strchrnul.c: Likewise.
41194
41195         Remove intprops dependency.
41196         * modules/memchr (Depends-on): Remove intprops.
41197         * modules/memrchr (Depends-on): Likewise.
41198         * modules/memchr2 (Depends-on): Likewise.
41199         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
41200         * lib/memrchr.c (__memrchr): Likewise.
41201         * lib/memrchr2.c (memchr2): Likewise.
41202         Reported by Simon Josefsson.
41203
41204 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41205
41206         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
41207         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41208
41209 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41210
41211         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
41212
41213         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
41214
41215         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
41216
41217         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
41218         declarations.
41219         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
41220
41221         * m4/inet_pton.m4: Don't check for header files.
41222
41223         * m4/inet_ntop.m4: Don't check for header files.
41224
41225 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41226
41227         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
41228         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
41229         trigger for cygwin).
41230         Reported by Bruno Haible  <bruno@clisp.org>.
41231
41232 2008-04-28  Bruno Haible  <bruno@clisp.org>
41233
41234         * doc/posix-functions/strdup.texi: Mention mingw problem.
41235
41236 2008-04-27  Bruno Haible  <bruno@clisp.org>
41237
41238         * modules/stat-time-tests (Depends-on): Add sleep.
41239         * tests/test-stat-time.c (force_unlink): New function.
41240         (cleanup): Use it.
41241         (test_mtime): Remove the ctime related tests.
41242         (test_ctime): New function, containing the ctime related tests.
41243         (main): Call test_ctime, except on native Windows platforms.
41244
41245 2008-04-27  Bruno Haible  <bruno@clisp.org>
41246
41247         * lib/rpmatch.c (rpmatch): Add some comments.
41248         Reported by James Youngman <jay@gnu.org>.
41249
41250 2008-04-27  Bruno Haible  <bruno@clisp.org>
41251
41252         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
41253         quiet NaNs.
41254
41255 2008-04-27  Bruno Haible  <bruno@clisp.org>
41256
41257         Make test-yesno.sh work on mingw.
41258         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
41259         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
41260         (main): Set stdin to binary mode.
41261         * modules/yesno-tests (Depends-on): Add binary-io.
41262
41263 2008-04-27  Bruno Haible  <bruno@clisp.org>
41264
41265         Fix 'isfinite' on x86, x86_64, ia64 platforms.
41266         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
41267         argument that lie outside the IEEE 854 domain.
41268         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
41269         (gl_ISFINITE): Use it.
41270         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
41271
41272 2008-04-27  Bruno Haible  <bruno@clisp.org>
41273
41274         Allow local renaming in config.h.
41275         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41276
41277 2008-04-27  Bruno Haible  <bruno@clisp.org>
41278
41279         * lib/memchr.c (__memchr): Change type of 'i'.
41280         * lib/memchr2.c (memchr2): Likewise.
41281
41282 2008-04-26  Eric Blake  <ebb9@byu.net>
41283         and Bruno Haible  <bruno@clisp.org>
41284
41285         Optimize and test memrchr.
41286         * modules/memrchr (Depends-on): Add intprops.
41287         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41288         * modules/memrchr-tests: New file.
41289         * tests/test-memrchr.c: New file.
41290
41291 2008-04-26  Bruno Haible  <bruno@clisp.org>
41292
41293         Add tentative support for DragonFly BSD.
41294         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41295         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41296         fp.
41297         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41298         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41299         * lib/fpurge.c (fpurge): Likewise.
41300         * lib/freadable.c (freaadable): Likewise.
41301         * lib/freadahead.c (freadahead): Likewise.
41302         * lib/freading.c (freading): Likewise.
41303         * lib/freadptr.c (freadptr): Likewise.
41304         * lib/freadseek.c (freadptrinc): Likewise.
41305         * lib/fseeko.c (fseeko): Likewise.
41306         * lib/fseterr.c (fseterr): Likewise.
41307         * lib/fwritable.c (fwritable): Likewise.
41308         * lib/fwriting.c (fwriting): Likewise.
41309
41310 2008-04-26  Bruno Haible  <bruno@clisp.org>
41311
41312         * lib/stdio-impl.h: New file.
41313         * lib/fbufmode.c: Include stdio-impl.h.
41314         (fbufmode): Use fp_, remove redundant #defines.
41315         * lib/fflush.c: Include stdio-impl.h.
41316         (clear_ungetc_buffer): Remove redundant #defines.
41317         * lib/fpurge.c: Include stdio-impl.h.
41318         (fpurge): Remove redundant #defines.
41319         * lib/freadable.c: Include stdio-impl.h.
41320         (freadable): Remove redundant #defines.
41321         * lib/freadahead.c: Include stdio-impl.h.
41322         (freadahead): Remove redundant #defines.
41323         * lib/freading.c: Include stdio-impl.h.
41324         (freading): Remove redundant #defines.
41325         * lib/freadptr.c: Include stdio-impl.h.
41326         (freadptr): Remove redundant #defines.
41327         * lib/freadseek.c: Include stdio-impl.h.
41328         (freadptrinc): Remove redundant #defines.
41329         * lib/fseeko.c: Include stdio-impl.h.
41330         (rpl_fseeko): Remove redundant #defines.
41331         * lib/fseterr.c: Include stdio-impl.h.
41332         (fseterr): Remove redundant #defines.
41333         * lib/fwritable.c: Include stdio-impl.h.
41334         (fwritable: Remove redundant #defines.
41335         * lib/fwriting.c: Include stdio-impl.h.
41336         (fwriting): Remove redundant #defines.
41337         * modules/fbufmode (Files): Add lib/stdio-impl.h.
41338         * modules/fflush (Files): Likewise.
41339         * modules/fpurge (Files): Likewise.
41340         * modules/freadable (Files): Likewise.
41341         * modules/freadahead (Files): Likewise.
41342         * modules/freading (Files): Likewise.
41343         * modules/freadptr (Files): Likewise.
41344         * modules/freadseek (Files): Likewise.
41345         * modules/fseeko (Files): Likewise.
41346         * modules/fseterr (Files): Likewise.
41347         * modules/fwritable (Files): Likewise.
41348         * modules/fwriting (Files): Likewise.
41349
41350 2008-04-26  Bruno Haible  <bruno@clisp.org>
41351
41352         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41353         restore_seek_optimization, update_fpos_cache): New functions, extracted
41354         from rpl_fflush.
41355         (rpl_fflush): Use them.
41356         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
41357         (gl_REPLACE_FFLUSH): Use it.
41358
41359 2008-04-26  Bruno Haible  <bruno@clisp.org>
41360
41361         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
41362         on Solaris.
41363         * tests/test-xstrtoimax.sh: Likewise.
41364         * tests/test-xstrtoumax.sh: Likewise.
41365         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41366
41367 2008-04-26  Bruno Haible  <bruno@clisp.org>
41368
41369         * modules/memchr-tests: New file.
41370         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
41371
41372 2008-04-26  Eric Blake  <ebb9@byu.net>
41373             Bruno Haible  <bruno@clisp.org>
41374
41375         * lib/memchr.c: Include intprops.h.
41376         (__memchr): Optimize parallel detection of matching bytes. Rename local
41377         variables. Add explanatory comments.
41378
41379 2008-04-26  Bruno Haible  <bruno@clisp.org>
41380
41381         Fix module 'memchr', broken since 2000-10-28.
41382         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41383
41384 2008-04-26  Bruno Haible  <bruno@clisp.org>
41385
41386         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41387         comments.
41388
41389 2008-04-25  Eric Blake  <ebb9@byu.net>
41390
41391         Use native fstatat on cygwin 1.7.0.
41392         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41393         first.
41394
41395 2008-04-23  Eric Blake  <ebb9@byu.net>
41396
41397         Improve memchr2 performance.
41398         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41399         NUL bytes.
41400         * modules/memchr2 (Depends-on): Use intprops.h.
41401
41402 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41403
41404         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41405         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41406         <blp@cs.stanford.edu>.
41407
41408 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41409
41410         * lib/arpa_inet.in.h: New file.
41411
41412         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41413         (Makefile.am): Sed in substitute header file.
41414
41415         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41416         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41417
41418         * modules/inet_ntop (configure.ac): Use
41419         gl_ARPA_INET_MODULE_INDICATOR.
41420
41421         * modules/inet_pton (configure.ac): Use
41422         gl_ARPA_INET_MODULE_INDICATOR.
41423
41424 2008-04-22  Jim Meyering  <meyering@redhat.com>
41425
41426         * modules/verify (License): Re-license as LGPLv2+.
41427
41428 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41429
41430         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41431         parameter to void* as per POSIX standard (MinGW uses char*).
41432
41433 2008-04-21  Bruno Haible  <bruno@clisp.org>
41434
41435         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41436         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41437         Define to replacements if REPLACE_ISWCNTRL is 1.
41438         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41439         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41440         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41441         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41442         what it fixes.
41443         * doc/posix-functions/iswalpha.texi: Likewise.
41444         * doc/posix-functions/iswblank.texi: Likewise.
41445         * doc/posix-functions/iswcntrl.texi: Likewise.
41446         * doc/posix-functions/iswdigit.texi: Likewise.
41447         * doc/posix-functions/iswgraph.texi: Likewise.
41448         * doc/posix-functions/iswlower.texi: Likewise.
41449         * doc/posix-functions/iswprint.texi: Likewise.
41450         * doc/posix-functions/iswpunct.texi: Likewise.
41451         * doc/posix-functions/iswspace.texi: Likewise.
41452         * doc/posix-functions/iswupper.texi: Likewise.
41453         * doc/posix-functions/iswxdigit.texi: Likewise.
41454         Reported by Alain Guibert.
41455
41456 2008-04-21  Bruno Haible  <bruno@clisp.org>
41457
41458         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41459         Patch by Alain Guibert.
41460
41461 2008-04-21  Bruno Haible  <bruno@clisp.org>
41462
41463         Fix test failures on mingw.
41464         * tests/test-xstrtol.c (print_no_progname): New function.
41465         (main): Install it in error_print_progname hook.
41466         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41467         * tests/test-xstrtoimax.sh: Likewise.
41468         * tests/test-xstrtoumax.sh: Likewise.
41469
41470 2008-04-21  Bruno Haible  <bruno@clisp.org>
41471
41472         Fix test failure on mingw.
41473         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41474
41475 2008-04-21  Bruno Haible  <bruno@clisp.org>
41476
41477         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41478         Actually assign a value.
41479
41480 2008-04-20  Bruno Haible  <bruno@clisp.org>
41481
41482         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41483         take 2.
41484         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41485         'canonicalize-lgpl' module is also used.
41486         * lib/canonicalize-lgpl.c: Undo last change.
41487         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41488
41489 2008-04-20  Bruno Haible  <bruno@clisp.org>
41490
41491         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41492         config.h. Provide _mkdir based fallback for mingw.
41493         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41494         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41495         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41496         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41497         rather than defining mkdir in config.h.
41498         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41499         (gl_SYS_STAT_H_DEFAULTS): New macro.
41500         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41501         HAVE_IO_H any more.
41502         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41503         HAVE_DECL_MKDIR and HAVE_IO_H.
41504
41505 2008-04-20  Bruno Haible  <bruno@clisp.org>
41506
41507         * lib/isapipe.c: Port to native Windows platforms.
41508
41509 2008-04-20  Bruno Haible  <bruno@clisp.org>
41510
41511         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41512
41513 2008-04-21  Eric Blake  <ebb9@byu.net>
41514
41515         Work around preprocessors that don't handle UINTMAX_MAX.
41516         * lib/memchr2.c (memchr2): Avoid embedded #if.
41517         Reported by Alain Guibert, fix suggested by Bruno Haible.
41518
41519 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41520
41521         * doc/posix-functions/strftime.texi (strftime): Explain better
41522         Windows incompatibility.  Suggested by Micah Cowan
41523         <micah@cowan.name>.
41524
41525 2008-04-20  Bruno Haible  <bruno@clisp.org>
41526
41527         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41528         unistr/u8-mblen.
41529
41530 2008-04-20  Bruno Haible  <bruno@clisp.org>
41531
41532         Fix test failure on platforms with non-GNU iconv.
41533         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41534         (U_TO_U8): Use it, rather than u16_to_u8.
41535         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41536         units at the end of the input string.
41537         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41538
41539 2008-04-20  Bruno Haible  <bruno@clisp.org>
41540
41541         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41542         when the resulting length is 0.
41543         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41544
41545 2008-04-20  Bruno Haible  <bruno@clisp.org>
41546
41547         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41548         works.
41549         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41550
41551 2008-04-20  Bruno Haible  <bruno@clisp.org>
41552
41553         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41554         * modules/tsearch-tests (configure.ac): Test for initstate function.
41555
41556 2008-04-20  Bruno Haible  <bruno@clisp.org>
41557
41558         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41559         for nlink_t if missing.
41560         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41561
41562 2008-04-19  Bruno Haible  <bruno@clisp.org>
41563
41564         Work around snprintf bug on Linux libc5.
41565         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41566         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41567         gl_SNPRINTF_SIZE1.
41568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41569         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41570         that test failed.
41571         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41572         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41573         * modules/snprintf (Files): Add m4/printf.m4.
41574         * modules/vsnprintf (Files): Likewise.
41575         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41576         * doc/posix-functions/vsnprintf.texi: Likewise.
41577
41578 2008-04-19  Bruno Haible  <bruno@clisp.org>
41579
41580         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41581         from 0.0058 to less than 10^-7.
41582
41583 2008-04-19  Bruno Haible  <bruno@clisp.org>
41584
41585         Fix rounding when a precision is given.
41586         * lib/vasnprintf.c (is_borderline): New function.
41587         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41588         9...9x.
41589         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41590         %e, %g.
41591         * tests/test-vasprintf-posix.c (test_function): Likewise.
41592         * tests/test-snprintf-posix.h (test_function): Likewise.
41593         * tests/test-sprintf-posix.h (test_function): Likewise.
41594         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41595         * tests/test-printf-posix.h (test_function): Likewise.
41596         * tests/test-printf-posix.output: Update.
41597         Reported by John Darrington <john@darrington.wattle.id.au> via
41598         Ben Pfaff <blp@cs.stanford.edu>.
41599
41600 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41601
41602         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41603         Suggested by Bruno Haible <bruno@clisp.org>.
41604
41605 2008-04-17  Bruno Haible  <bruno@clisp.org>
41606
41607         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41608         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41609         implementation.
41610         Patch by Bruce Merry <bmerry@gmail.com>.
41611
41612 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41613
41614         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41615         doesn't work under Windows.
41616
41617 2008-04-16  Bruno Haible  <bruno@clisp.org>
41618
41619         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41620         New macros.
41621         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41622         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41623         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41624         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41625         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41626         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41627         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41628         macros.
41629         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41630         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41631         Northern Sotho, Uighur.
41632
41633 2008-04-16  Bruno Haible  <bruno@clisp.org>
41634
41635         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41636         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41637         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41638         Reported by Daniel Bergström <daniel@octocode.com>.
41639
41640 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41641             Bruno Haible  <bruno@clisp.org>
41642
41643         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41644         function.
41645         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41646         New functions, mostly extracted from gl_locale_name_default.
41647         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41648
41649 2008-04-16  Eric Blake  <ebb9@byu.net>
41650
41651         Adjust strtod detection to catch glibc 2.7 bug.
41652         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41653         Reported by John Gatewood Ham.
41654
41655 2008-04-16  Bruno Haible  <bruno@clisp.org>
41656
41657         Add tentative support for Linux libc5.
41658         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41659         * lib/fpurge.c (fpurge): Likewise.
41660         * lib/freadable.c (freadable): Likewise.
41661         * lib/freadahead.c (freadahead): Likewise.
41662         * lib/freading.c (freading): Likewise.
41663         * lib/freadptr.c (freadptr): Likewise.
41664         * lib/freadseek.c (freadptrinc): Likewise.
41665         * lib/fseeko.c (rpl_fseeko): Likewise.
41666         * lib/fseterr.c (fseterr): Likewise.
41667         * lib/fwritable.c (fwritable): Likewise.
41668         * lib/fwriting.c (fwriting): Likewise.
41669         Reported by Alain Guibert <alguibert+bts@free.fr>.
41670
41671 2008-04-15  Bruno Haible  <bruno@clisp.org>
41672
41673         * modules/mathl (configure.ac): Define module indicator.
41674
41675 2008-04-15  Bruno Haible  <bruno@clisp.org>
41676
41677         * lib/logl.c (logl): Remove unused variables.
41678
41679 2008-04-15  Bruno Haible  <bruno@clisp.org>
41680
41681         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41682         fails.
41683
41684 2008-04-15  Bruno Haible  <bruno@clisp.org>
41685
41686         * lib/trim.c (trim2): Fix argument of isspace() macro.
41687
41688 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41689
41690         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41691         to 0.
41692         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41693
41694 2008-04-14  Bruno Haible  <bruno@clisp.org>
41695
41696         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41697         AC_LANG_PROGRAM argument.
41698         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41699         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41700         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41701         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41702         * m4/math_h.m4 (gl_MATH_H): Likewise.
41703         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41704         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41705         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41706         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41707         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41708         * m4/regex.m4 (gl_REGEX): Likewise.
41709         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41710         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41711         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41712         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41713         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41714         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41715         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41716         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41717
41718 2008-04-14  Jim Meyering  <meyering@redhat.com>
41719
41720         test-strtod: fix typos: s/abs/fabs/
41721         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41722
41723 2008-04-13  Bruno Haible  <bruno@clisp.org>
41724
41725         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41726         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41727         module is also used and while not building the reloc-wrapper.
41728
41729 2008-04-13  Bruno Haible  <bruno@clisp.org>
41730
41731         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41732
41733 2008-04-13  Bruno Haible  <bruno@clisp.org>
41734
41735         Fix AIX compilation failure introduced on 2008-04-02.
41736         * tests/test-frexp.c (exp): Undefine before redefining.
41737         * tests/test-frexpl.c (exp): Likewise.
41738
41739 2008-04-13  Bruno Haible  <bruno@clisp.org>
41740
41741         Work around a HP-UX stdio bug.
41742         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41743         * tests/test-ftello.c (main): Likewise.
41744         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41745         * doc/posix-functions/ftello.texi: Likewise.
41746
41747 2008-04-13  Bruno Haible  <bruno@clisp.org>
41748
41749         Make test-signbit pass on HP-UX/hppa.
41750         * tests/test-signbit.c (minus_zerol): New variable.
41751         (test_signbitl): Use it.
41752
41753 2008-04-13  Bruno Haible  <bruno@clisp.org>
41754
41755         Make truncl work on OSF/1 4.0.
41756         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41757         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41758         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41760         HAVE_DECL_TRUNCL.
41761         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41762         HAVE_DECL_TRUNCL.
41763         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41764
41765 2008-04-13  Bruno Haible  <bruno@clisp.org>
41766
41767         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41768
41769 2008-04-13  Bruno Haible  <bruno@clisp.org>
41770
41771         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41772         expression, so as to avoid HP-UX 11 cc compiler bug.
41773
41774 2008-04-13  Bruno Haible  <bruno@clisp.org>
41775
41776         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41777
41778 2008-04-13  Bruno Haible  <bruno@clisp.org>
41779
41780         * lib/git-merge-changelog.c: Remove empty declaration outside of
41781         functions.
41782
41783 2008-04-13  Bruno Haible  <bruno@clisp.org>
41784
41785         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41786
41787 2008-04-13  Bruno Haible  <bruno@clisp.org>
41788
41789         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41790         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41791         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41792         also if it exists but lacks definitions of the SHUT_* macros.
41793         * modules/sys_socket (Description): Update.
41794         Reported by Elbert Pol <e.pol@chello.nl>.
41795
41796 2008-04-13  Bruno Haible  <bruno@clisp.org>
41797
41798         * lib/localcharset.c (OS2): Don't redefine if already defined.
41799         Reported by Elbert Pol <e.pol@chello.nl>.
41800
41801 2008-04-13  Bruno Haible  <bruno@clisp.org>
41802
41803         * lib/binary-io.h [__EMX__]: Include <io.h>.
41804         Reported by Elbert Pol <e.pol@chello.nl>.
41805
41806 2008-04-12  Bruno Haible  <bruno@clisp.org>
41807
41808         * lib/fpucw.h: Enable the definitions also for x86_64.
41809         Needed for NetBSD/x86_64.
41810         Reported by Thomas Klausner <tk@giga.or.at>.
41811
41812 2008-04-12  Bruno Haible  <bruno@clisp.org>
41813
41814         * tests/test-strtod.c: Include isnand.h.
41815         (main): Use isnand instead of isnan.
41816         Reported by Jim Meyering.
41817
41818 2008-04-12  Bruno Haible  <bruno@clisp.org>
41819
41820         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41821         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41822
41823 2008-04-12  Jim Meyering  <meyering@redhat.com>
41824
41825         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41826
41827 2008-04-12  Bruno Haible  <bruno@clisp.org>
41828
41829         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41830         Reported by Elbert Pol <e.pol@chello.nl>.
41831
41832 2008-04-12  Eric Blake  <ebb9@byu.net>
41833
41834         Work around Solaris 10 math.h bug.
41835         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41836         (gl_MATH_H_DEFAULTS): Set up default.
41837         * modules/math (Makefile.am): Replace new indicators.
41838         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41839         * tests/test-math.c (main): Test this.
41840         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41841         * doc/posix-headers/math.texi (math.h): Mention bug.
41842         Reported by Nelson H. F. Beebe and Jim Meyering.
41843
41844 2008-04-11  Bruno Haible  <bruno@clisp.org>
41845
41846         Adapt to future versions of Apple GCC.
41847         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41848         Reported by Peter O'Gorman <peter@pogma.com>.
41849
41850 2008-04-11  Bruno Haible  <bruno@clisp.org>
41851
41852         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41853
41854 2008-04-11  Bruno Haible  <bruno@clisp.org>
41855
41856         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41857
41858         * modules/getaddrinfo-tests (Makefile.am): Define
41859         test_getaddrinfo_LDADD.
41860
41861 2008-04-11  Bruno Haible  <bruno@clisp.org>
41862
41863         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41864         (init): Fix syntax error.
41865         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41866         is declared.
41867
41868 2008-04-11  Bruno Haible  <bruno@clisp.org>
41869
41870         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41871         * modules/glob (Depends-on): Add stdbool.
41872
41873 2008-04-11  Bruno Haible  <bruno@clisp.org>
41874
41875         * lib/trim.c: Include <string.h>.
41876
41877 2008-04-11  Eric Blake  <ebb9@byu.net>
41878
41879         Avoid compile failure on OS/2.
41880         * lib/regex_internal.h (internal_function): Disable optimization
41881         on OS/2 (__EMX__), where it caused compiler error.
41882         Reported by Elbert Pol.
41883
41884 2008-04-11  Bruno Haible  <bruno@clisp.org>
41885
41886         Flush the standard error stream before aborting. Needed on mingw.
41887         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41888         * tests/test-array_list.c (ASSERT): Likewise.
41889         * tests/test-array_oset.c (ASSERT): Likewise.
41890         * tests/test-avltree_list.c (ASSERT): Likewise.
41891         * tests/test-avltree_oset.c (ASSERT): Likewise.
41892         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41893         * tests/test-binary-io.c (ASSERT): Likewise.
41894         * tests/test-byteswap.c (ASSERT): Likewise.
41895         * tests/test-c-ctype.c (ASSERT): Likewise.
41896         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41897         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41898         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41899         * tests/test-c-strstr.c (ASSERT): Likewise.
41900         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41901         * tests/test-canonicalize.c (ASSERT): Likewise.
41902         * tests/test-carray_list.c (ASSERT): Likewise.
41903         * tests/test-ceilf1.c (ASSERT): Likewise.
41904         * tests/test-ceilf2.c (ASSERT): Likewise.
41905         * tests/test-ceill.c (ASSERT): Likewise.
41906         * tests/test-count-one-bits.c (ASSERT): Likewise.
41907         * tests/test-fbufmode.c (ASSERT): Likewise.
41908         * tests/test-fflush2.c (ASSERT): Likewise.
41909         * tests/test-floorf1.c (ASSERT): Likewise.
41910         * tests/test-floorf2.c (ASSERT): Likewise.
41911         * tests/test-floorl.c (ASSERT): Likewise.
41912         * tests/test-fopen.c (ASSERT): Likewise.
41913         * tests/test-fpending.c (ASSERT): Likewise.
41914         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41915         * tests/test-fpurge.c (ASSERT): Likewise.
41916         * tests/test-freadable.c (ASSERT): Likewise.
41917         * tests/test-freadahead.c (ASSERT): Likewise.
41918         * tests/test-freading.c (ASSERT): Likewise.
41919         * tests/test-freadptr.c (ASSERT): Likewise.
41920         * tests/test-freadptr2.c (ASSERT): Likewise.
41921         * tests/test-freadseek.c (ASSERT): Likewise.
41922         * tests/test-freopen.c (ASSERT): Likewise.
41923         * tests/test-frexp.c (ASSERT): Likewise.
41924         * tests/test-frexpl.c (ASSERT): Likewise.
41925         * tests/test-fseek.c (ASSERT): Likewise.
41926         * tests/test-fseeko.c (ASSERT): Likewise.
41927         * tests/test-fstrcmp.c (ASSERT): Likewise.
41928         * tests/test-ftell.c (ASSERT): Likewise.
41929         * tests/test-ftello.c (ASSERT): Likewise.
41930         * tests/test-func.c (ASSERT): Likewise.
41931         * tests/test-fwritable.c (ASSERT): Likewise.
41932         * tests/test-fwriting.c (ASSERT): Likewise.
41933         * tests/test-getdelim.c (ASSERT): Likewise.
41934         * tests/test-getline.c (ASSERT): Likewise.
41935         * tests/test-i-ring.c (ASSERT): Likewise.
41936         * tests/test-iconv-utf.c (ASSERT): Likewise.
41937         * tests/test-iconv.c (ASSERT): Likewise.
41938         * tests/test-isfinite.c (ASSERT): Likewise.
41939         * tests/test-isnand.c (ASSERT): Likewise.
41940         * tests/test-isnanf.c (ASSERT): Likewise.
41941         * tests/test-isnanl.h (ASSERT): Likewise.
41942         * tests/test-ldexpl.c (ASSERT): Likewise.
41943         * tests/test-linked_list.c (ASSERT): Likewise.
41944         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41945         * tests/test-localename.c (ASSERT): Likewise.
41946         * tests/test-lseek.c (ASSERT): Likewise.
41947         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41948         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41949         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41950         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41951         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41952         * tests/test-mbschr.c (ASSERT): Likewise.
41953         * tests/test-mbscspn.c (ASSERT): Likewise.
41954         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41955         * tests/test-mbspbrk.c (ASSERT): Likewise.
41956         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41957         * tests/test-mbsrchr.c (ASSERT): Likewise.
41958         * tests/test-mbsspn.c (ASSERT): Likewise.
41959         * tests/test-mbsstr1.c (ASSERT): Likewise.
41960         * tests/test-mbsstr2.c (ASSERT): Likewise.
41961         * tests/test-mbsstr3.c (ASSERT): Likewise.
41962         * tests/test-memchr2.c (ASSERT): Likewise.
41963         * tests/test-memmem.c (ASSERT): Likewise.
41964         * tests/test-open.c (ASSERT): Likewise.
41965         * tests/test-printf-frexp.c (ASSERT): Likewise.
41966         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41967         * tests/test-printf-posix.c (ASSERT): Likewise.
41968         * tests/test-quotearg.c (ASSERT): Likewise.
41969         * tests/test-rbtree_list.c (ASSERT): Likewise.
41970         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41971         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41972         * tests/test-round1.c (ASSERT): Likewise.
41973         * tests/test-roundf1.c (ASSERT): Likewise.
41974         * tests/test-roundl.c (ASSERT): Likewise.
41975         * tests/test-signbit.c (ASSERT): Likewise.
41976         * tests/test-sleep.c (ASSERT): Likewise.
41977         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41978         * tests/test-snprintf.c (ASSERT): Likewise.
41979         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41980         * tests/test-stat-time.c (ASSERT): Likewise.
41981         * tests/test-strcasestr.c (ASSERT): Likewise.
41982         * tests/test-strerror.c (ASSERT): Likewise.
41983         * tests/test-striconv.c (ASSERT): Likewise.
41984         * tests/test-striconveh.c (ASSERT): Likewise.
41985         * tests/test-striconveha.c (ASSERT): Likewise.
41986         * tests/test-strsignal.c (ASSERT): Likewise.
41987         * tests/test-strstr.c (ASSERT): Likewise.
41988         * tests/test-strtod.c (ASSERT): Likewise.
41989         * tests/test-trunc1.c (ASSERT): Likewise.
41990         * tests/test-trunc2.c (ASSERT): Likewise.
41991         * tests/test-truncf1.c (ASSERT): Likewise.
41992         * tests/test-truncf2.c (ASSERT): Likewise.
41993         * tests/test-truncl.c (ASSERT): Likewise.
41994         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41995         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41996         * tests/test-vasnprintf.c (ASSERT): Likewise.
41997         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41998         * tests/test-vasprintf.c (ASSERT): Likewise.
41999         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42000         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42001         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42002         * tests/test-vsnprintf.c (ASSERT): Likewise.
42003         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42004         * tests/test-wcwidth.c (ASSERT): Likewise.
42005         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42006         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42007         * tests/test-xvasprintf.c (ASSERT): Likewise.
42008         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42009         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42010         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42011         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42012         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42013         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42014         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42015         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42016         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42017         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42018         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42019         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42020         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42021         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42022         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42023         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42024         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42025         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42026         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42027         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42028         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42029         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42030         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42031         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42032         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42033         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42034         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42035         * tests/unictype/test-combining.c (ASSERT): Likewise.
42036         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42037         * tests/unictype/test-digit.c (ASSERT): Likewise.
42038         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42039         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42040         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42041         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42042         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42043         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42044         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42045         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42046         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42047         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42048         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42049         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42050         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42051         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42052         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42053         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42054         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42055         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42056         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42057         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42058         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42059         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42060         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42061         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42062         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42063         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42064         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42065         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42066         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42067         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42068         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42069         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42070         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42071         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42072         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42073         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42074         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42075         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42076         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42077         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42078         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42079         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42080         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42081         Reported by Eric Blake.
42082
42083 2008-04-11  Bruno Haible  <bruno@clisp.org>
42084
42085         * lib/wchar.in.h: Tweak comment.
42086
42087 2008-04-11  Bruno Haible  <bruno@clisp.org>
42088
42089         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42090         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42091         gl_COMMON.
42092         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42093
42094 2008-04-11  Bruno Haible  <bruno@clisp.org>
42095
42096         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42097
42098 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42099
42100         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42101         of attempting to use non-existing /dev/*random.  Based on patch
42102         from Adam Strzelecki <ono@java.pl> in
42103         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42104
42105 2008-04-08  Bruno Haible  <bruno@clisp.org>
42106
42107         Add tentative support for emx+gcc.
42108         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42109         * lib/fpurge.c (fpurge): Likewise.
42110         * lib/freadable.c (freadable): Likewise.
42111         * lib/freadahead.c (freadahead): Likewise.
42112         * lib/freading.c (freading): Likewise.
42113         * lib/freadptr.c (freadptr): Likewise.
42114         * lib/freadseek.c (freadptrinc): Likewise.
42115         * lib/fseeko.c (rpl_fseeko): Likewise.
42116         * lib/fseterr.c (fseterr): Likewise.
42117         * lib/fwritable.c (fwritable): Likewise.
42118         * lib/fwriting.c (fwriting): Likewise.
42119         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42120
42121 2008-04-09  Eric Blake  <ebb9@byu.net>
42122
42123         Avoid some autoconf warnings.
42124         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42125         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42126         * m4/afs.m4 (gl_AFS): Likewise.
42127         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42128         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42129         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42130         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42131         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42132         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42133         (AC_CHECK_DECLS_ONCE): Likewise.
42134         Rename file...
42135         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42136         gnulib-tool requires autoconf 2.59 or better.
42137         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42138
42139 2008-04-08  Eric Blake  <ebb9@byu.net>
42140
42141         Use 'git describe --match' if present (added in git 1.5.5).
42142         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42143         if possible.
42144
42145 2008-04-08  Bruno Haible  <bruno@clisp.org>
42146
42147         Add tentative support for OpenServer.
42148         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42149         _ptr, _cnt.
42150         * lib/fpurge.c (fpurge): Likewise.
42151         * lib/freadable.c (freadable): Likewise.
42152         * lib/freadahead.c (freadahead): Likewise.
42153         * lib/freading.c (freading): Likewise.
42154         * lib/freadptr.c (freadptr): Likewise.
42155         * lib/freadseek.c (freadptrinc): Likewise.
42156         * lib/fseeko.c (rpl_fseeko): Likewise.
42157         * lib/fseterr.c (fseterr): Likewise.
42158         * lib/fwritable.c (fwritable): Likewise.
42159         * lib/fwriting.c (fwriting): Likewise.
42160         Reported by Roger Cornelius <rac@tenzing.org> and
42161         Brian K. White <brian@aljex.com>.
42162
42163 2008-04-06  Jim Meyering  <meyering@redhat.com>
42164
42165         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42166
42167 2008-04-06  Bruno Haible  <bruno@clisp.org>
42168
42169         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42170         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42171         * tests/test-printf-posix.sh: Likewise.
42172         * tests/test-vfprintf-posix.sh: Likewise.
42173         * tests/test-vprintf-posix.sh: Likewise.
42174         * tests/test-xprintf-posix.sh: Likewise.
42175
42176 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42177
42178         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42179         hide error from 'ls', needed on OS/2.
42180         Report by Elbert Pol <elbert.pol@gmail.com>.
42181
42182 2008-04-04  Eric Blake  <ebb9@byu.net>
42183
42184         Make test-fseeko.c failures meaningful.
42185         * tests/test-fseeko.c: Print line number on failure.
42186         * tests/test-fseek.c: Likewise.
42187         Reported by Nelson H. F. Beebe.
42188
42189         Improve strtod bug detection check.
42190         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42191         required for Solaris 10.
42192         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42193
42194 2008-04-04  Bruno Haible  <bruno@clisp.org>
42195
42196         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42197         by m4/setenv.m4.
42198
42199 2008-04-03  Eric Blake  <ebb9@byu.net>
42200
42201         Ensure sane .version contents.
42202         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
42203         version string.
42204         * build-aux/git-version-gen: Improve documentation.
42205
42206         Make GNU make output nicer.
42207         * top/GNUmakefile [!_have-Makefile]: Add dependency on
42208         MAKECMDGOALS to enforce message for all command line targets.  Set
42209         srcdir for use in maint.mk.
42210
42211         Another maintainer tweak.
42212         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
42213         a target that regenerates version.
42214
42215 2008-04-03  Jim Meyering  <meyering@redhat.com>
42216
42217         vc-list-files: don't cause coreutils "make po-check" failure
42218         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
42219
42220 2008-04-03  Eric Blake  <ebb9@byu.net>
42221
42222         Allow VPATH usage of vc-list-files.
42223         * build-aux/vc-list-files (scriptversion): Add timestamp.
42224         (options): Add --help, --version, -C.
42225         (CVS): Support installed cvsu.
42226
42227 2008-04-02  Bruno Haible  <bruno@clisp.org>
42228
42229         Avoid some "statement with no effect" warnings from gcc.
42230         * tests/test-wctype.c (main): Explicitly ignore unused values.
42231         Reported by Jim Meyering.
42232
42233 2008-04-02  Jim Meyering  <meyering@redhat.com>
42234
42235         Avoid some warnings from "gcc -Wshadow".
42236         * tests/test-frexp.c (exp): Define to a different identifier.
42237         * tests/test-frexpl.c (exp): Likewise.
42238
42239 2008-04-03  Jim Meyering  <meyering@redhat.com>
42240
42241         bootstrap: remove dangling *.[ch] symlinks from lib
42242         * build-aux/bootstrap [dangling symlink removal]: Move find's
42243         -depth option to precede all others, to avoid a warning.
42244         Remove *.[ch] files too, and from "$source_base" (usually lib/).
42245
42246 2008-04-02  Bruno Haible  <bruno@clisp.org>
42247
42248         Avoid some warnings from "gcc -Wshadow".
42249         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
42250         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
42251         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
42252         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
42253         Reported by Jim Meyering.
42254
42255 2008-04-01  Bruno Haible  <bruno@clisp.org>
42256
42257         Fix test to work on IRIX 6.5 with cc.
42258         * tests/test-math.c (numeric_equal): New function.
42259         (main): Use it.
42260
42261 2008-04-01  Bruno Haible  <bruno@clisp.org>
42262
42263         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
42264
42265 2008-04-01  Bruno Haible  <bruno@clisp.org>
42266
42267         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
42268         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42269         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
42270         (Depends-on): Remove math.
42271
42272         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42273         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42274         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42275         (Depends-on): Remove math.
42276
42277         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42278         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42279         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42280         (Depends-on): Remove math.
42281         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42282         (Depends-on): Remove math.
42283
42284         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42285         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42286         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42287         (Depends-on): Remove math.
42288         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42289         (Depends-on): Remove math.
42290
42291         * tests/test-round1.c: Include nan.h.
42292         (main): Use NaNd instead of NAN.
42293         * modules/round-tests (Files): Add tests/nan.h.
42294
42295         * tests/test-trunc1.c: Include nan.h.
42296         (main): Use NaNd instead of NAN.
42297         * modules/trunc-tests (Files): Add tests/nan.h.
42298
42299         * tests/test-roundf1.c: Include nan.h.
42300         (main): Use NaNf instead of NAN.
42301         * modules/roundf-tests (Files): Add tests/nan.h.
42302
42303         * tests/test-truncf1.c: Include nan.h.
42304         (main): Use NaNf instead of NAN.
42305         * modules/truncf-tests (Files): Add tests/nan.h.
42306
42307         * tests/test-ceilf1.c: Include nan.h.
42308         (main): Use NaNf instead of NAN.
42309         * modules/ceilf-tests (Files): Add tests/nan.h.
42310
42311         * tests/test-floorf1.c: Include nan.h.
42312         (main): Use NaNf instead of NAN.
42313         * modules/floorf-tests (Files): Add tests/nan.h.
42314
42315         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42316         (main): Use NaNf instead of NAN.
42317         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
42318
42319         * tests/test-isnand.c: Include nan.h instead of <math.h>.
42320         (main): Use NaNd instead of NAN.
42321         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
42322
42323         * tests/test-frexp.c: Include nan.h.
42324         (main): Use NaNd instead of NAN.
42325         * modules/frexp-tests (Files): Add tests/nan.h.
42326
42327         * lib/isnan.c: Don't include <math.h>.
42328         (FUNC): Don't use NAN macro.
42329         * modules/isnand-nolibm (Depends-on): Remove math.
42330         * modules/isnanf-nolibm (Depends-on): Remove math.
42331         * modules/isnanl (Depends-on): Remove math.
42332         * modules/isnanl-nolibm (Depends-on): Remove math.
42333
42334         * tests/nan.h: New file.
42335
42336 2008-04-01  Eric Blake  <ebb9@byu.net>
42337
42338         Fix typos.
42339         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
42340         values to be the right type.
42341
42342         For now, cater to gnulib strtod inaccuracies.
42343         * tests/test-strtod.c (main): Allow 1-ulp error on expected
42344         fractional results.  While not as nice from a QoI perspective, it
42345         is a quicker patch than correctly implementing decimal to binary
42346         rounding.
42347
42348 2008-03-31  Eric Blake  <ebb9@byu.net>
42349
42350         Guarantee a definition of NAN.
42351         * lib/math.in.h (NAN): Define if missing.
42352         * tests/test-math.c (main): Test it.
42353         * doc/posix-headers/math.texi (math.h): Document this.
42354         * lib/isnan.c (rpl_isnand): Use it.
42355         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
42356         * tests/test-floorf1.c (NaN): Likewise.
42357         * tests/test-frexp.c (NaN): Likewise.
42358         * tests/test-isnand.c (NaN): Likewise.
42359         * tests/test-isnanf.c (NaN): Likewise.
42360         * tests/test-round1.c (NaN): Likewise.
42361         * tests/test-roundf1.c (NaN): Likewise.
42362         * tests/test-snprintf-posix.h (NaN): Likewise.
42363         * tests/test-sprintf-posix.h (NaN): Likewise.
42364         * tests/test-trunc1.c (NaN): Likewise.
42365         * tests/test-truncf1.c (NaN): Likewise.
42366         * tests/test-vasnprintf-posix.c (NaN): Likewise.
42367         * tests/test-vasprintf-posix.c (NaN): Likewise.
42368         * modules/isnand-nolibm (Depends-on): Add math.
42369         * modules/isnanf-nolibm (Depends-on): Likewise.
42370         * modules/isnanl (Depends-on): Likewise.
42371         * modules/isnanl-nolibm (Depends-on): Likewise.
42372         * modules/snprintf-posix-tests (Depends-on): Likewise.
42373         * modules/sprintf-posix-tests (Depends-on): Likewise.
42374         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
42375         * modules/vsprintf-posix-tests (Depends-on): Likewise.
42376         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42377         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42378
42379 2008-03-31  Bruno Haible  <bruno@clisp.org>
42380
42381         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42382         * doc/posix-functions/strtod.texi: Likewise.
42383
42384 2008-03-31  Bruno Haible  <bruno@clisp.org>
42385
42386         * tests/test-strtod.c (main): Don't use C99 syntax.
42387
42388 2008-03-31  Bruno Haible  <bruno@clisp.org>
42389
42390         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42391         Reported by Eric Blake.
42392
42393 2008-03-31  Jim Meyering  <meyering@redhat.com>
42394
42395         Don't compare actual signbit return values.
42396         * tests/test-strtod.c (main): Rather, compare only their
42397         zero/non-zero nature.
42398
42399 2008-03-31  Eric Blake  <ebb9@byu.net>
42400
42401         More strtod documentation.
42402         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42403         failures as distinct bugs.
42404
42405 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42406
42407         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42408         Problem reported by Erik Benada in
42409         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42410
42411 2008-03-30  Bruno Haible  <bruno@clisp.org>
42412
42413         * tests/test-strtod.c: Add comments about which assertion fails on which
42414         platform.
42415         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42416
42417 2008-03-30  Eric Blake  <ebb9@byu.net>
42418
42419         Test signbit behavior on zeros.
42420         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42421         (test_signbitd, test_signbitl): Likewise.
42422
42423         More strtod touchups.
42424         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42425         sign of negative underflow, for now.  Use .5, not .1.
42426         * doc/posix-functions/strtod.texi (strtod): Mention these
42427         limitations.
42428         Reported by Jim Meyering.
42429
42430 2008-03-30  Bruno Haible  <bruno@clisp.org>
42431
42432         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42433         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42434
42435 2008-03-30  Bruno Haible  <bruno@clisp.org>
42436
42437         Avoid failure when attempting to return empty iconv results on some
42438         platforms.
42439         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42440         allocation, don't report ENOMEM when the resulting string is empty.
42441
42442 2008-03-30  Bruno Haible  <bruno@clisp.org>
42443
42444         Fix buffer overrun.
42445         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42446         Don't consider the width for tmp_length. Check count against tmp_length
42447         before doing the padding. Ensure enough allocation during padding.
42448
42449 2008-03-30  Eric Blake  <ebb9@byu.net>
42450
42451         strtod touchups.
42452         * lib/strtod.c (strtod): Avoid compiler warnings.
42453         Reported by Jim Meyering.
42454
42455 2008-03-30  Bruno Haible  <bruno@clisp.org>
42456
42457         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42458         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42459         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42460         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42461         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42462         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42463         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42464         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42465
42466         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42467         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42468         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42469         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42470         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42471         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42472         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42473         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42474
42475         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42476         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42477         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42478         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42479         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42480         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42481         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42482         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42483
42484         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42485         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42486
42487         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42488         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42489
42490         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42491         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42492
42493         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42495         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42496
42497         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42498         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42499         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42500
42501         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42502         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42503         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42504
42505         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42507         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42508
42509         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42510         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42511         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42512         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42513         (Depends-on): Add EOVERFLOW.
42514         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42515         (Depends-on): Add EOVERFLOW.
42516         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42517         (Depends-on): Add EOVERFLOW.
42518         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42519         (Depends-on): Add EOVERFLOW.
42520         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42521         (Depends-on): Add EOVERFLOW.
42522         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42523         (Depends-on): Add EOVERFLOW.
42524         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42525         (Depends-on): Add EOVERFLOW.
42526         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42527         (Depends-on): Add EOVERFLOW.
42528
42529         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42530         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42531         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42532
42533         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42534         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42535         * modules/snprintf (Depends-on): Add EOVERFLOW.
42536
42537         * lib/poll.c (EOVERFLOW): Remove fallback.
42538         * modules/poll (Depends-on): Add EOVERFLOW.
42539
42540         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42541         * modules/getugroups (Depends-on): Add EOVERFLOW.
42542
42543         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42544         * modules/getdelim (Depends-on): Add EOVERFLOW.
42545
42546         * lib/ftell.c (EOVERFLOW): Remove fallback.
42547         * modules/ftell (Depends-on): Add EOVERFLOW.
42548
42549         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42550         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42551         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42552
42553         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42554
42555         * modules/EOVERFLOW-tests: New file.
42556         * tests/test-EOVERFLOW.c: New file.
42557
42558         * modules/EOVERFLOW: New file.
42559         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42560
42561 2008-03-30  Bruno Haible  <bruno@clisp.org>
42562
42563         Fix bug introduced on 2007-06-10.
42564         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42565         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42566
42567 2008-03-30  Bruno Haible  <bruno@clisp.org>
42568
42569         Improve freadseek's efficiency after ungetc.
42570         * lib/freadseek.c: Include freadahead.h.
42571         (freadptrinc): New function, extracted from freadseek.
42572         (freadseek): Use it in a loop. Use freadahead to determine the number
42573         of loop iterations.
42574         * modules/freadseek (Depends-on): Add freadahead.
42575         (configure.ac): Require AC_C_INLINE.
42576
42577 2008-03-30  Bruno Haible  <bruno@clisp.org>
42578
42579         * lib/freadseek.c (freadseek): Don't ignore the return value of
42580         freadptr.
42581
42582 2008-03-29  Eric Blake  <ebb9@byu.net>
42583
42584         Add hex float support.
42585         * modules/strtod (Depends-on): Add c-ctype.
42586         (Link): Mention POW_LIB.
42587         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42588         whitespace between 'e' and exponent.
42589         * tests/test-strtod.c (main): Enable hex float tests.
42590         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42591         now provides.
42592
42593         Document various strtod bugs, with some fixes.
42594         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42595         "-0x", "inf", "nan", and hex constants.
42596         * doc/posix-functions/atof.texi (atof): Likewise.
42597         * modules/stdlib (Makefile.am): Support strtod.
42598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42599         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42600         detect additional strtod bugs.
42601         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42602         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42603         bool where appropriate.  Parse 'inf' and 'nan'.
42604         * tests/test-strtod.c: New file.
42605         * modules/strtod (Depends-on): Add stdbool, stdlib.
42606         (configure.ac): Turn on module indicator.
42607         * modules/strtod-tests: New module.
42608
42609 2008-03-29  Eric Blake  <ebb9@byu.net>
42610
42611         Fix ftell on mingw.
42612         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42613         * modules/ftell-tests (Depends-on): Add binary-io.
42614         * modules/ftello-tests (Depends-on): Likewise.
42615         * tests/test-ftell.c (main): Enhance test to cover behavior after
42616         ungetc.  Enforce binary mode.
42617         * tests/test-ftello.c (main): Likewise.
42618
42619         Pass test-freadseek on cygwin.
42620         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42621         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42622         ungetc buffer.
42623
42624         * tests/test-fflush2.c (main): Fix typo.
42625
42626 2008-03-29  Bruno Haible  <bruno@clisp.org>
42627
42628         * tests/test-fflush2.c (main): Temporarily disable the contents of
42629         this test.
42630         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42631         Reported by Eric Blake.
42632
42633 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42634
42635         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42636         (GC_SHA224_DIGEST_SIZE): Add.
42637
42638         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42639         (gc_hash_digest_length): Likewise.
42640         (gc_hash_buffer): Likewise.
42641
42642 2008-03-25  Bruno Haible  <bruno@clisp.org>
42643
42644         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42645         detail which gettext release to use.
42646         Reported by Simon Josefsson.
42647
42648 2008-03-26  Jim Meyering  <meyering@redhat.com>
42649
42650         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42651         * modules/gnumakefile (clean-GNUmakefile): Also, use
42652         test ... && ... || : syntax rather than if-then ... fi.
42653
42654         gnumakefile: Don't double-quote-expand $(VPATH) value.
42655         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42656
42657 2008-03-24  Eric Blake  <ebb9@byu.net>
42658
42659         Alter GNUmakefile to install into top directory.
42660         * modules/maintainer-makefile: Split, and add dependency...
42661         * modules/gnumakefile: to this new module.
42662         * build-aux/GNUmakefile: Move...
42663         * top/GNUmakefile: ...here.
42664         * build-aux/maint.mk: Move...
42665         * top/maint.mk: ...here.
42666         * MODULES.html.sh (Support for maintaining...): Document new
42667         module.
42668
42669 2008-03-23  Bruno Haible  <bruno@clisp.org>
42670
42671         * gnulib-tool: New options --vc-files, --no-vc-files.
42672         (func_usage): Document them.
42673         (vc_files): New variable.
42674         (func_import): Consider vc_files.
42675         (func_create_testdir): Set vc_files to empty.
42676         Suggested by Jim Meyering and Karl Berry.
42677
42678 2008-03-23  Bruno Haible  <bruno@clisp.org>
42679
42680         Fix regex compilation error on HP-UX 11.
42681         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42682         * modules/regex (Files): Add m4/mbstate_t.m4.
42683         Reported by Ton Voon <ton.voon@altinity.com>.
42684
42685 2008-03-23  Bruno Haible  <bruno@clisp.org>
42686
42687         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42688
42689 2008-03-23  Eric Blake  <ebb9@byu.net>
42690             Bruno Haible  <bruno@clisp.org>
42691
42692         Install files from top/ in the destination directory.
42693         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42694         augmentation also for the files from top/.
42695         (func_import, func_create_testdir): Rewrite file names:
42696         top/filename -> filename.
42697
42698 2008-03-23  Bruno Haible  <bruno@clisp.org>
42699
42700         Tweak "gnulib --version" output.
42701         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42702
42703 2008-03-23  Bruno Haible  <bruno@clisp.org>
42704
42705         Tweak "gnulib --version" output.
42706         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42707         rather than contents of ChangeLog, when possible.
42708
42709 2008-03-21  Eric Blake  <ebb9@byu.net>
42710
42711         More --version tweaks.
42712         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42713         date of last ChangeLog entry.
42714
42715 2008-03-21  Jim Meyering  <meyering@redhat.com>
42716
42717         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42718
42719 2008-03-20  Eric Blake  <ebb9@byu.net>
42720
42721         VPATH fix.
42722         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42723
42724 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42725
42726         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42727         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42728
42729 2008-03-20  Eric Blake  <ebb9@byu.net>
42730
42731         Sync GNUmakefile with coreutils.
42732         * build-aux/GNUmakefile (have-Makefile): Rename...
42733         (_have-Makefile): ...to this, for namespace consideration.
42734         (GNUmakefile.cfg): Include, if present.
42735         (_autoreconf): Define a default.
42736         (_is-dist-target): New rule for rebuilds to pick up intra-release
42737         version.
42738         (maint-cfg.mk): Rename...
42739         (cfg.mk): ...to this.
42740
42741 2008-03-18  Jim Meyering  <meyering@redhat.com>
42742
42743         New script and module: mktempd
42744         * MODULES.html.sh (maint+release support): Add mktempd.
42745         * build-aux/mktempd: New file.
42746         * modules/mktempd: New file.
42747
42748 2008-03-15  Jim Meyering  <meyering@redhat.com>
42749
42750         Undo last change.
42751         * lib/sha1.c, lib/md5.c: 63 != ~63.
42752         Reported by Andreas Schwab.
42753
42754         sha1.c, md5.c: Hoist a redundant expression.
42755         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42756         "ctx->buflen" only once, before calling *_process_block.
42757         * lib/md5.c (md5_process_bytes): Likewise.
42758
42759 2008-03-14  Eric Blake  <ebb9@byu.net>
42760
42761         Bump copyright year in files generated by gnulib-tool.
42762         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42763         gnulib-tool, rather than hard-coding it.
42764
42765         Fix 'gnulib-tool --version' output to work with git.
42766         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42767         (startup): ...here.
42768         (func_version): Use it to invoke git-version-gen, rather than
42769         relying on CVS keyword expansion.  Modernize wording.
42770         (cvsdatestamp, last_checkin_date, version): Kill unused
42771         variables.
42772
42773 2008-03-12  Jim Meyering  <meyering@redhat.com>
42774
42775         Recognize optional cast of the argument to free.
42776         * build-aux/useless-if-before-free: Update regexps.
42777
42778         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42779
42780 2008-03-11  Bruno Haible  <bruno@clisp.org>
42781
42782         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42783         by a single package.
42784         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42785         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42786         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42787         Reported by Sam Steingold <sds@gnu.org>.
42788
42789 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42790
42791         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42792         repositories.
42793
42794 2008-03-11  Bruno Haible  <bruno@clisp.org>
42795
42796         Avoid conflicts between local macro definitions.
42797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42798         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42799
42800 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42801             Bruno Haible  <bruno@clisp.org>
42802
42803         Make va_copy work with some version of xlc on AIX 5.1.
42804         * lib/stdarg.in.h: New file.
42805         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42806         On AIX, use a <stdarg.h> file substitute.
42807         * modules/stdarg (Files): Add lib/stdarg.in.h.
42808         (Depends-on): Add include_next.
42809         (Makefile.am): Build a stdarg.h substitute if requested.
42810         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42811
42812 2008-03-10  Bruno Haible  <bruno@clisp.org>
42813
42814         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42815         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42816         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42817
42818 2008-03-10  Bruno Haible  <bruno@clisp.org>
42819
42820         * modules/stdlib (Depends-on): Add include_next, remove
42821         absolute-header.
42822
42823 2008-03-09  Bruno Haible  <bruno@clisp.org>
42824
42825         * lib/freadahead.h (freadahead): Document more precisely.
42826         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42827         the sum of both buffer sizes.
42828         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42829         * NEWS: Document the change.
42830
42831 2008-03-09  Bruno Haible  <bruno@clisp.org>
42832
42833         Extend freadptr to return also the buffer size.
42834         * lib/freadptr.h (freadptr): Add sizep argument.
42835         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42836         (freadptr): Add sizep argument. Determine buffer size like freadahead
42837         does.
42838         * tests/test-freadptr.c: Don't include freadahead.h.
42839         (main): Adapt for new calling convention of freadptr.
42840         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42841         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42842         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42843         tests/test-freadptr2.sh.
42844         (Depends): Remove freadahead.
42845         (TESTS): Add test-freadptr2.sh.
42846         (check_PROGRAMS): Add test-freadptr2.
42847
42848 2008-03-09  Bruno Haible  <bruno@clisp.org>
42849
42850         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42851         Report and solution by Simon Josefsson.
42852
42853 2008-03-06  Bruno Haible  <bruno@clisp.org>
42854
42855         Make fflush after ungetc work on BSD platforms.
42856         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42857         * tests/test-fflush2.c: New file.
42858         * tests/test-fflush2.sh: New file.
42859         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42860         tests/test-fflush2.c.
42861         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42862         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42863
42864 2008-03-06  Eric Blake  <ebb9@byu.net>
42865
42866         Likewise for ftello.
42867         * modules/ftello (Dependencies): Add extensions.
42868         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42869
42870 2008-03-06  Bruno Haible  <bruno@clisp.org>
42871
42872         * modules/fseeko (Dependencies): Add extensions.
42873         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42874         Needed on glibc systems.
42875
42876 2008-03-06  Bruno Haible  <bruno@clisp.org>
42877
42878         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42879         email address.
42880         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42881
42882 2008-03-06  Bruno Haible  <bruno@clisp.org>
42883
42884         * users.txt: Add libgnupdf.
42885
42886 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42887
42888         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42889         (Header File Substitutes, Function Substitutes,
42890         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42891         (Build robot for gnulib): Fix typo.
42892
42893 2008-03-06  Bruno Haible  <bruno@clisp.org>
42894
42895         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42896         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42897
42898 2008-03-06  Bruno Haible  <bruno@clisp.org>
42899
42900         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42901         * doc/gnulib.texi: Include it.
42902
42903 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42904
42905         * modules/func (License): Change license to unlimited; there was
42906         no LGPL parts in the module anyway.
42907
42908 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42909
42910         * modules/__func__: Renamed to modules/func.
42911         * modules/__func__-tests: Renamed to modules/func-tests.
42912         * tests/test-__func__.c: Renamed to tests/test-func.c.
42913         * m4/__func__.m4: Renamed to m4/func.m4.
42914         * doc/gnulib.texi (__func__): Section renamed to func.
42915         Suggested by Eric Blake <ebb9@byu.net>.
42916
42917 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42918
42919         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42920         about __func__.  Make example self-contained.  Suggested by Eric
42921         Blake <ebb9@byu.net>.
42922
42923         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42924         Suggested by Eric Blake <ebb9@byu.net>.
42925
42926 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42927
42928         * modules/__func__: New file.
42929         * modules/__func__-tests: New file.
42930         * tests/test-__func__.c: New file.
42931         * m4/__func__.m4: New file.
42932         * doc/gnulib.texi (__func__): Document __func__ module.
42933
42934 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42935
42936         * modules/byteswap (License): Re-license as LGPLv2+.
42937
42938 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42939
42940         * doc/Makefile: Add pdf target.
42941
42942 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42943
42944         * modules/inline (License): Use 'unlimited', since there are only
42945         *.m4 files in this module.
42946
42947 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42948             Bruno Haible  <bruno@clisp.org>
42949
42950         Add support for HP C 7.1 on OpenVMS 8.3.
42951         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42952
42953 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42954
42955         Update VMS specifics.
42956         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42957
42958 2008-03-02  Jim Meyering  <meyering@redhat.com>
42959
42960         Remove the last dependency on the "free" module.
42961         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42962         Reported by Bob Proulx.
42963
42964         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42965
42966         Remove useless "if" tests before free.  Deprecate "free" module.
42967         * doc/posix-functions/free.texi: Mention that this
42968         module is no longer useful.
42969         * modules/free (Notice): Say this module is obsolete.
42970         * modules/readutmp (Depends-on): Remove free.
42971         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42972         * lib/putenv.c (putenv): Likewise.
42973         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42974         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42975         * tests/test-c-strcasestr.c (main): Likewise.
42976         * tests/test-c-strstr.c (main): Likewise.
42977         * tests/test-mbscasestr1.c (main): Likewise.
42978         * tests/test-mbscasestr2.c (main): Likewise.
42979         * tests/test-mbsstr1.c (main): Likewise.
42980         * tests/test-mbsstr2.c (main): Likewise.
42981         * tests/test-memmem.c (main): Likewise.
42982         * tests/test-strcasestr.c (main): Likewise.
42983         * tests/test-striconv.c (main): Likewise.
42984         * tests/test-striconveh.c (main): Likewise.
42985         * tests/test-striconveha.c (main): Likewise.
42986         * tests/test-strstr.c (main): Likewise.
42987
42988         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42989
42990         bootstrap: sync from coreutils again
42991         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42992
42993 2008-03-01  Jim Meyering  <meyering@redhat.com>
42994
42995         bootstrap: sync from coreutils
42996         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42997         also when the target doesn't exist.
42998
42999 2008-03-01  Eric Blake  <ebb9@byu.net>
43000
43001         Fix bugs in last patch.
43002         * lib/memchr2.c (memchr2): Fix typo.
43003         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43004         extension.
43005         Reported by Bruce Korb.
43006
43007         New module 'memchr2'.
43008         * modules/memchr2: New file.
43009         * modules/memchr2-tests: Likewise.
43010         * lib/memchr2.h: Likewise.
43011         * lib/memchr2.c: Likewise, based on memchr.c.
43012         * tests/test-memchr2.c: New test.
43013         * MODULES.html.sh (String handling): Add memchr2.
43014
43015 2008-02-29  Bruno Haible  <bruno@clisp.org>
43016
43017         * modules/freadseek-tests: New file.
43018         * tests/test-freadseek.sh: New file.
43019         * tests/test-freadseek.c: New file.
43020
43021         New module 'freadseek'.
43022         * modules/freadseek: New file.
43023         * lib/freadseek.h: New file.
43024         * lib/freadseek.c: New file.
43025         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43026
43027 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43028
43029         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43030         wydawca.
43031
43032         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43033         program_invocation_name and program_invocation_short_name are
43034         present.
43035
43036 2008-02-28  Bruno Haible  <bruno@clisp.org>
43037
43038         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43039         * tests/test-freadptr.sh: Also test non-seekable stdin.
43040
43041 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43042
43043         * build-aux/bootstrap (source_base, m4_base)
43044         (doc_base, tests_base): New variables.
43045         (gnulib_tool_options): Do not hardcode base directories, use
43046         the above variables instead.
43047
43048 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43049
43050         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43051
43052 2008-02-28  Bruno Haible  <bruno@clisp.org>
43053
43054         * modules/freadptr-tests: New file.
43055         * tests/test-freadptr.sh: New file.
43056         * tests/test-freadptr.c: New file.
43057
43058         New module 'freadptr'.
43059         * modules/freadptr: New file.
43060         * lib/freadptr.h: New file.
43061         * lib/freadptr.c: New file.
43062         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43063
43064 2008-02-26  Karl Berry  <karl@freefriends.org>
43065
43066         Sync from Libtool:
43067         * libltdl/argz.c (argz_add, argz_count): New functions.
43068         * libltdl/argz.in.h: Declare them.
43069         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43070
43071 2008-02-22  Bruno Haible  <bruno@clisp.org>
43072
43073         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43074         is a pointer type.  Needed for HP-UX 10.
43075         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43076         * doc/posix-functions/gmtime_r.texi: Likewise.
43077         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43078
43079 2008-02-24  Bruno Haible  <bruno@clisp.org>
43080
43081         * modules/environ-tests: New file.
43082         * tests/test-environ.c: New file.
43083
43084         New module 'environ'.
43085         * modules/environ: New file.
43086         * lib/unistd.in.h (environ): New declaration.
43087         * m4/environ.m4: New file.
43088         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43089         after use.
43090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43091         HAVE_DECL_ENVIRON.
43092         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43093         HAVE_DECL_ENVIRON.
43094         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43095         wrong claim that 'environ' is missing on some systems.
43096         * modules/execute (Depends-on): Add environ.
43097         * lib/execute.c (environ): Remove fallback declaration.
43098         * modules/pipe (Depends-on): Add environ.
43099         * lib/pipe.c (environ): Remove fallback declaration.
43100         * modules/setenv (Depends-on): Add environ.
43101         * lib/setenv.c (environ): Remove fallback declaration.
43102         * modules/unsetenv (Depends-on): Add environ.
43103         * lib/unsetenv.c (environ): Remove fallback declaration.
43104         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43105         m4/environ.m4.
43106         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43107         (gl_PREREQ_UNSETENV): Likewise.
43108
43109 2008-02-24  Bruno Haible  <bruno@clisp.org>
43110
43111         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43112
43113 2008-02-20  Bob Proulx  <bob@proulx.com>
43114
43115         Enable use of older two part flavor 'git describe'.
43116         * build-aux/git-version-gen: If using the older two part flavor of
43117         git version then recreate the third part now present in the
43118         newer three part flavor of git describe.
43119
43120 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43121
43122         * lib/fts.c (fts_build): Typo correction to comment.
43123
43124 2008-02-17  Bruno Haible  <bruno@clisp.org>
43125
43126         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43127         generating no-op conflicts.
43128
43129 2008-02-17  Bruno Haible  <bruno@clisp.org>
43130
43131         Speed up by 10%.
43132         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43133         result_entries, rather than an index-based loop.
43134
43135 2008-02-17  Bruno Haible  <bruno@clisp.org>
43136
43137         Speed up by 25%.
43138         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43139         'hashcode_cached'.
43140         (entry_create): New function.
43141         (entry_hashcode): Use the cached hashcode if possible.
43142         (read_changelog_file, try_split_merged_entry): Use entry_create.
43143
43144 2008-02-17  Bruno Haible  <bruno@clisp.org>
43145
43146         Speed up from O(n^2) to O(n) for long ChangeLog files.
43147         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43148         (read_changelog_file): Change implementation of entries_reversed list
43149         to rbtreehash.
43150         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43151
43152 2008-02-17  Bruno Haible  <bruno@clisp.org>
43153
43154         New option --split-merged-entry.
43155         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43156         (find_paragraph_end, try_split_merged_entry): New functions.
43157         (long_options): Add option --split-merged-entry.
43158         (usage): Document option --split-merged-entry.
43159         (main): Implement option --split-merged-entry.
43160         Reported by Eric Blake.
43161
43162 2008-02-17  Bruno Haible  <bruno@clisp.org>
43163
43164         * lib/git-merge-changelog.c: Include c-strstr.h.
43165         (main): Support the "git pull --rebase" situation.
43166         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43167         Reported by Eric Blake.
43168
43169 2008-02-16  Eric Blake  <ebb9@byu.net>
43170
43171         Avoid doubling \ in common case of "c-maybe" quoting style.
43172         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43173         eliding outer quotes.
43174         * lib/quotearg.h: Document this.
43175         * tests/test-quotearg.c (result_strings, inputs, results_g)
43176         (flag_results, locale_results): Test it by adding a new string to
43177         each test group.
43178         (compare_strings): Test new string.
43179
43180 2008-02-13  Eric Blake  <ebb9@byu.net>
43181
43182         Avoid trigraph quoting in default output.
43183         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43184         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43185         unless explicitly requested.
43186         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43187
43188 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43189
43190         Don't rely on signed integer overflowing to negative value.
43191         * lib/getugroups.c (getugroups): Include <limits.h>.
43192         Instead, compare against INT_MAX, and increment only if the test passes.
43193
43194 2008-02-13  Jim Meyering  <meyering@redhat.com>
43195         and Eric Blake  <ebb9@byu.net>
43196
43197         Avoid shadowing warning and compile errors on Linux.
43198         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
43199         forwarding macros on Linux.
43200         (dcgettext): Define a stub, for Linux.
43201         (results_g, main): Avoid warnings.
43202
43203 2008-02-12  Eric Blake  <ebb9@byu.net>
43204
43205         Silence warning in last patch.
43206         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
43207
43208         Quotearg part 4: add tests, fix c-maybe colon quoting.
43209         * lib/quotearg.h: Improve documentation.
43210         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
43211         escapes when adding outer quotes.  When quoting trigraphs, use
43212         valid C notation.  When quoting NUL, omit extra characters if next
43213         character is not digit.  Alter prototype.
43214         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
43215         callers.
43216         * modules/quotearg-tests: New module.
43217         * tests/test-quotearg.c: New test.
43218
43219 2008-02-07  Eric Blake  <ebb9@byu.net>
43220
43221         Quotearg part 3: add flag to control outer quote elision.
43222         * lib/quotearg.h (c_maybe_quoting_style): New style.
43223         (enum quoting_flags): Better documentation of flags.
43224         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
43225         c-maybe style.
43226         (quotearg_buffer_restyled): Handle new flag to elide outer
43227         quotes.
43228
43229         Quotearg part 2: add flag that can control NUL elision.
43230         * lib/quotearg.h (set_quoting_flags): New prototype.
43231         * lib/quotearg.c (struct quoting_options): Add flag field.
43232         (set_quoting_flags): New function.
43233         (quotearg_buffer_restyled): Add flags parameter.
43234         (quotearg_alloc_mem): Set the flag if length cannot be returned.
43235         (quotearg_n_options): Set the flag, since length cannot be
43236         returned.
43237         (quoting_options_from_style): Default flags correctly.
43238
43239         Quotearg part 1: more wrappers, restore quotearg_char state.
43240         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
43241         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
43242         (quotearg_colon_mem): New wrappers.
43243         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
43244         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
43245         functions.
43246         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
43247         (quotearg_colon_mem): New functions.
43248
43249 2008-02-11  Bruno Haible  <bruno@clisp.org>
43250
43251         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
43252         library in the current directory: it does not work with parallel make.
43253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43254
43255 2008-02-11  Bruno Haible  <bruno@clisp.org>
43256
43257         * .gitattributes: New file.
43258
43259 2008-02-11  Jim Meyering  <meyering@redhat.com>
43260
43261         useless-if-before-free: Fix reversed exit values.
43262         * build-aux/useless-if-before-free: Use correct values
43263         for EXIT_MATCH and EXIT_NO_MATCH.
43264
43265         * build-aux/useless-if-before-free: Close stdout carefully.
43266
43267 2008-02-10  Bruno Haible  <bruno@clisp.org>
43268
43269         New module 'git-merge-changelog'.
43270         * modules/git-merge-changelog: New file.
43271         * lib/git-merge-changelog.c: New file.
43272
43273 2008-02-10  Jim Meyering  <meyering@redhat.com>
43274
43275         useless-if-before-free: New option: --list (-l).
43276
43277         useless-if-before-free: Don't exit immediately upon open failure.
43278         * build-aux/useless-if-before-free: Exit 2 for errors.
43279         Upon failure to open a file, don't exit immediately.
43280         Rather, just warn and continue with any remaining files.
43281
43282 2008-02-10  Bruno Haible  <bruno@clisp.org>
43283
43284         New abstract list operation 'node_set_value'.
43285         * lib/gl_list.h (gl_list_node_set_value): New function.
43286         (struct gl_list_implementation): New field node_set_value.
43287         * lib/gl_list.c (gl_list_node_set_value): New function.
43288         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43289         (gl_array_list_implementation): Update.
43290         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43291         (gl_carray_list_implementation): Update.
43292         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43293         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43294         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43295         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43296         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43297         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43298         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43299         Update.
43300         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43301         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43302         (gl_sublist_list_implementation): Update.
43303
43304 2008-02-10  Bruno Haible  <bruno@clisp.org>
43305
43306         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43307         Needed when ELEMENT is #defined to 'some_type *'.
43308
43309 2008-02-10  Jim Meyering  <meyering@redhat.com>
43310
43311         New script and module: useless-if-before-free
43312         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
43313         * build-aux/useless-if-before-free: New file.
43314         * modules/useless-if-before-free: New file.
43315
43316         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43317
43318         xstrtol_error: Fix typo.
43319         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
43320         s/exit_failure/exit_status/.
43321
43322 2008-02-09  Jim Meyering  <meyering@redhat.com>
43323
43324         New script and module: gitlog-to-changelog
43325         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
43326         * modules/gitlog-to-changelog: New file.
43327         * build-aux/gitlog-to-changelog: New file.
43328
43329 2008-02-08  Jim Meyering  <meyering@redhat.com>
43330
43331         Avoid two "parameter unused" warnings.
43332         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
43333         Mark "st" as used.
43334
43335         Use "git COMMAND", not "git-COMMAND".
43336         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
43337         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
43338         * build-aux/git-version-gen: Use "git status", not "git-status".
43339
43340 2008-02-07  Bruno Haible  <bruno@clisp.org>
43341
43342         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
43343         Avoids a crash on Windows Vista.
43344         Reported by Adam Strzelecki <ono@java.pl> via
43345         Simon Josefsson <simon@josefsson.org>.
43346
43347 2008-02-06  Bruno Haible  <bruno@clisp.org>
43348
43349         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
43350         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
43351         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
43352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
43353         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43354         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43355         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
43356         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
43357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43358         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43360         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43361         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43363         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43364         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
43365         left-adjust flag.
43366         * tests/test-snprintf-posix.h (test_function): Likewise.
43367         * tests/test-sprintf-posix.h (test_function): Likewise.
43368         * tests/test-vasprintf-posix.c (test_function): Likewise.
43369         * doc/posix-functions/fprintf.texi: Update.
43370         * doc/posix-functions/printf.texi: Update.
43371         * doc/posix-functions/snprintf.texi: Update.
43372         * doc/posix-functions/sprintf.texi: Update.
43373         * doc/posix-functions/vfprintf.texi: Update.
43374         * doc/posix-functions/vprintf.texi: Update.
43375         * doc/posix-functions/vsnprintf.texi: Update.
43376         * doc/posix-functions/vsprintf.texi: Update.
43377         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43378
43379 2008-02-06  Bruno Haible  <bruno@clisp.org>
43380
43381         Fix bug introduced on 2008-01-26.
43382         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43383
43384 2008-02-06  Bruno Haible  <bruno@clisp.org>
43385
43386         Fix bug introduced on 2007-06-10.
43387         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43388         !NEED_PRINTF_FLAG_ZERO.
43389
43390 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43391
43392         getloadavg: use libperfstat on AIX5
43393         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43394
43395 2008-02-03  Bruno Haible  <bruno@clisp.org>
43396
43397         * lib/diffseq.h: Add comments about required #includes.
43398         Reported by Michael Biggs <gnulib@doubleplum.net>.
43399
43400 2008-02-01  Bruno Haible  <bruno@clisp.org>
43401
43402         * users.txt: Add gnuit.
43403
43404 2008-01-31  Bruno Haible  <bruno@clisp.org>
43405
43406         * lib/md4.c (set_uint32): Mark as inline.
43407         * lib/md5.c (set_uint32): Likewise.
43408         * lib/sha1.c (set_uint32): Likewise.
43409         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43410         * m4/md5.m4 (gl_MD5): Likewise.
43411         * m4/sha1.m4 (gl_SHA1): Likewise.
43412
43413 2008-01-31  Jim Meyering  <meyering@redhat.com>
43414
43415         Use "sizeof VAR", rather than a literal "4".
43416         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43417         * lib/md4.c (md4_read_ctx): Likewise.
43418         * lib/sha1.c (sha1_read_ctx): Likewise.
43419
43420 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43421
43422         * tests/test-sha1.c: New file, based on test-md5.c.
43423
43424         * modules/crypto/sha1-tests: New file.
43425
43426 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43427
43428         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43429
43430 2008-01-31  Jim Meyering  <meyering@redhat.com>
43431
43432         Prefer "sizeof v" over the equivalent "4".
43433         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43434         * lib/md5.c (set_uint32): Likewise.
43435         * lib/sha1.c (set_uint32): Likewise.
43436
43437 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43438
43439         * lib/sha1.c (set_uint32): Mark function as static.
43440
43441 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43442
43443         md2: clarify comments to say that alignment is not required.
43444         * lib/md2.h: Remove warning about alignment in comment.
43445         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43446         never been required.
43447
43448 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43449
43450         md4: adapt alignment constraint fix from sha1.
43451         * lib/md4.c (set_uint32): New function, from sha1.c
43452         (md4_read_ctx): Use it.
43453         (md4_finish_ctx): Doc fix.
43454         * lib/md4.h: Doc fix.
43455
43456 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43457
43458         md5: adapt alignment constraint fix from sha1.
43459         * lib/md5.c (set_uint32): New function, from sha1.c
43460         (md5_read_ctx): Use it.
43461         (md5_finish_ctx): Doc fix.
43462         * lib/md5.h: Doc fix.
43463
43464 2008-01-30  Peter Palfrader  <weasel@debian.org>
43465
43466         sha1: remove the result buffer alignment constraint
43467         * lib/sha1.c (set_uint32): New function.
43468         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43469         constraint.
43470         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43471         * lib/sha1.h: Likewise.
43472
43473 2008-01-30  Andreas Schwab  <schwab@suse.de>
43474             Bruno Haible  <bruno@clisp.org>
43475
43476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43477         correct definition of LDBL_MIN_EXP.
43478
43479 2008-01-30  Karl Berry  <karl@gnu.org>
43480
43481         * config/srclist-update: try to preserve x bit on updates.
43482         * config/srclistvars.sh: update for karl.
43483
43484 2008-01-29  Jim Meyering  <meyering@redhat.com>
43485
43486         vasnprintf.c: Avoid warning about unused label
43487         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43488         "overflow" label definition and associated code with the
43489         same cpp condition that guards the sole use of that label.
43490
43491 2008-01-26  Bruno Haible  <bruno@clisp.org>
43492
43493         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43494         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43495         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43496         * lib/isnanl-nolibm.h (isnanl): Likewise.
43497         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43498
43499 2008-01-26  Bruno Haible  <bruno@clisp.org>
43500
43501         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43502         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43503
43504 2008-01-26  Bruno Haible  <bruno@clisp.org>
43505
43506         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43507         GCC >= 4.0 built-in.
43508         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43509
43510 2008-01-26  Bruno Haible  <bruno@clisp.org>
43511
43512         Rename isnan, applicable to 'double' only, to isnand.
43513         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43514         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43515         (configure.ac): Update.
43516         (Include): Replace "isnan.h" with "isnand.h".
43517         * m4/isnand.m4: Renamed from m4/isnan.m4.
43518         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43519         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43520         instead of isnan.c.
43521         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43522         instead of HAVE_ISNAN_IN_LIBC.
43523         (isnand): Renamed from isnan.
43524         * lib/isnand.c: New file.
43525         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43526         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43527         (Makefile.am): Update.
43528         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43529         Include isnand.h instead of isnan.h.
43530         (main): Test isnand instead of isnan.
43531         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43532         isnan-nolibm.
43533         * modules/frexp (Depends-on): Likewise.
43534         * modules/frexp-tests (Depends-on): Likewise.
43535         * modules/frexp-nolibm (Depends-on): Likewise.
43536         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43537         * modules/isfinite (Depends-on): Likewise.
43538         * modules/round-tests (Depends-on): Likewise.
43539         * modules/signbit (Depends-on): Likewise.
43540         * modules/signbit-tests (Depends-on): Likewise.
43541         * modules/snprintf-posix (Depends-on): Likewise.
43542         * modules/sprintf-posix (Depends-on): Likewise.
43543         * modules/trunc-tests (Depends-on): Likewise.
43544         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43545         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43546         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43547         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43548         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43549         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43550         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43551         * modules/vasnprintf-posix (Depends-on): Likewise.
43552         * modules/vasprintf-posix (Depends-on): Likewise.
43553         * modules/vfprintf-posix (Depends-on): Likewise.
43554         * modules/vsnprintf-posix (Depends-on): Likewise.
43555         * modules/vsprintf-posix (Depends-on): Likewise.
43556         * lib/frexp.c: Include isnand.h instead of isnan.h.
43557         (ISNAN): Set to isnand instead of isnan.
43558         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43559         (gl_isfinited): Use isnand instead of isnan.
43560         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43561         (gl_signbitd): Use isnand instead of isnan.
43562         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43563         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43564         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43565         (main): Use isnand instead of isnan.
43566         * tests/test-round1.c: Include isnand.h.
43567         (main): Use isnand instead of isnan.
43568         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43569         (ISNAN): Set to isnand instead of isnan.
43570         * tests/test-trunc1.c: Include isnand.h.
43571         (main): Use isnand instead of isnan.
43572         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43573         (equal): Use isnand instead of isnan.
43574         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43575         isnand-nolibm.
43576         * NEWS: Mention the change.
43577
43578 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43579             Bruno Haible  <bruno@clisp.org>
43580
43581         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43582         the GCC builtins for signbits are present and set
43583         REPLACE_SIGNBIT_USING_GCC if so.
43584         * lib/math.in.h (signbit): Define using GCC builtins if
43585         REPLACE_SIGNBIT_USING_GCC is set.
43586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43587         REPLACE_SIGNBIT_USING_GCC.
43588         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43589
43590 2008-01-25  Jim Meyering  <meyering@redhat.com>
43591
43592         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43593         * lib/poll.c: Include <config.h>, not "config.h".
43594         * tests/test-getaddrinfo.c: Likewise.
43595
43596 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43597
43598         * modules/sockets-tests: New file.
43599
43600 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43601
43602         * modules/sockets: New module, can be used to call WSA_Startup and
43603         WSA_Cleanup when needed.
43604
43605         * lib/sockets.h, lib/sockets.c: New files.
43606
43607         * m4/sockets.m4: New file.
43608
43609         * tests/test-sockets.c: New file.
43610
43611 2008-01-19  Bruno Haible  <bruno@clisp.org>
43612
43613         * doc/posix-headers: Renamed from doc/headers.
43614         * doc/posix-functions: Renamed from doc/functions.
43615         * doc/gnulib.texi: Update.
43616
43617 2008-01-19  Bruno Haible  <bruno@clisp.org>
43618
43619         * doc/glibc-functions/strcasestr.texi: Include contents of
43620         doc/functions/strcasestr.texi, fixing the list of platforms.
43621         * doc/functions/strcasestr.texi: Remove file.
43622
43623 2008-01-19  Bruno Haible  <bruno@clisp.org>
43624
43625         * doc/glibc-functions/memmem.texi: Include contents of
43626         doc/functions/memmem.texi.
43627         * doc/functions/memmem.texi: Remove file.
43628
43629 2008-01-18  Bruno Haible  <bruno@clisp.org>
43630
43631         * doc/glibc-functions/*.texi: New files.
43632         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43633         to use the new files.
43634
43635 2008-01-17  Bruno Haible  <bruno@clisp.org>
43636
43637         * tests/test-gethostname.c (main): Fix printf statement.
43638
43639 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43640
43641         * modules/gethostname-tests: New file.
43642
43643         * tests/test-gethostname.c: New file.
43644
43645 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43646
43647         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43648         used by the UNAME case.  Reported by Bruno Haible
43649         <bruno@clisp.org>.
43650
43651 2008-01-17  Eric Blake  <ebb9@byu.net>
43652
43653         Convert c-strcasestr to be more efficient.
43654         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43655         (Depends-on): Add c-strcase, remove malloca, strnlen.
43656         * tests/test-c-strcasestr.c (main): Enhance test.
43657         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43658
43659 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43660
43661         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43662         Use it in creating po/Makevars.
43663
43664 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43665
43666         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43667         Applications that requires it should initialize libgcrypt
43668         manually.
43669
43670 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43671
43672         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43673
43674 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43675
43676         Fix problem with getdate on mingw32 reported by Simon Josefsson
43677         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43678         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43679         tzname", when deciding whether to declare tzname.
43680         * lib/strftime.c (tzname): Likewise.
43681
43682 2008-01-15  Bruno Haible  <bruno@clisp.org>
43683
43684         Work around a MacOS X 10.5 bug in frexpl().
43685         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43686         * doc/functions/frexpl.texi: Document the bug.
43687         Reported by Elias Pipping <pipping@gentoo.org>.
43688
43689 2008-01-14  Eric Blake  <ebb9@byu.net>
43690
43691         Touch up previous patch.
43692         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43693         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43694
43695         Convert strcasestr module to use Two-Way algorithm.
43696         * modules/strcasestr-simple: New module, based on the old
43697         strcasestr, but with Two-Way rather than KMP.
43698         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43699         * lib/string.in.h (rpl_strcasestr): Declare.
43700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43701         performance.
43702         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43703         * modules/string (Makefile.am): Support strcasestr.
43704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43705         * modules/strcasestr-tests (Depends-on): Check for alarm.
43706         * tests/test-strcasestr.c: Augment test.
43707         * lib/str-two-way.h: Clean up stray macro.
43708         * NEWS: Document new module.
43709         * MODULES.html.sh (string handling): Likewise.
43710         * doc/functions/strcasestr.texi: New file.
43711         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43712         here, since it is not a POSIX function.
43713
43714 2008-01-14  Colin Watson  <cjwatson@debian.org>
43715             Bruno Haible  <bruno@clisp.org>
43716
43717         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43718         works fine; if not, set REPLACE_STRSIGNAL.
43719         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43721         REPLACE_STRSIGNAL.
43722         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43723         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43724         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43725
43726 2008-01-14  Bruno Haible  <bruno@clisp.org>
43727
43728         * modules/strsignal (Include): Change to <string.h>.
43729
43730 2008-01-14  Colin Watson  <cjwatson@debian.org>
43731
43732         * modules/argp (Notice): Add a notice recommending to change
43733         XGETTEXT_OPTIONS.
43734         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43735
43736 2008-01-13  Colin Watson  <cjwatson@debian.org>
43737
43738         * modules/strsignal-tests: New file.
43739         * tests/test-strsignal.c: New file.
43740
43741         * lib/strsignal.c: New file, from glibc with modifications.
43742         * lib/siglist.h: New file, from glibc with modifications.
43743         * lib/string.in.h (strsignal): New declaration.
43744         * m4/strsignal.m4: New file.
43745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43746         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43747         * modules/strsignal: New file.
43748         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43749         HAVE_DECL_STRSIGNAL.
43750
43751 2008-01-13  Bruno Haible  <bruno@clisp.org>
43752
43753         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43754         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43755         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43756         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43757
43758 2008-01-13  Bruno Haible  <bruno@clisp.org>
43759
43760         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43761         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43762         * lib/argp.h (__attribute__): Likewise.
43763         * lib/c-stack.c (__attribute__): Likewise.
43764         * lib/error.h (__attribute__): Likewise.
43765         * lib/fts.c (__attribute__): Likewise.
43766         * lib/openat.h (__attribute__): Likewise.
43767         * lib/stdio.in.h (__attribute__): Likewise.
43768         * lib/string.in.h (__attribute__): Likewise.
43769         * lib/utimens.c (__attribute__): Likewise.
43770         * lib/vasnprintf.h (__attribute__): Likewise.
43771         * lib/xalloc.h (__attribute__): Likewise.
43772         * lib/xprintf.h (__attribute__): Likewise.
43773         * lib/xstrtol.h (__attribute__): Likewise.
43774         * lib/xvasprintf.h (__attribute__): Likewise.
43775
43776 2008-01-12  Bruno Haible  <bruno@clisp.org>
43777
43778         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43779         * doc/glibc-headers/a.out.texi: New file.
43780         * doc/glibc-headers/aliases.texi: New file.
43781         * doc/glibc-headers/alloca.texi: New file.
43782         * doc/glibc-headers/ar.texi: New file.
43783         * doc/glibc-headers/argp.texi: New file.
43784         * doc/glibc-headers/argz.texi: New file.
43785         * doc/glibc-headers/byteswap.texi: New file.
43786         * doc/glibc-headers/crypt.texi: New file.
43787         * doc/glibc-headers/endian.texi: New file.
43788         * doc/glibc-headers/envz.texi: New file.
43789         * doc/glibc-headers/err.texi: New file.
43790         * doc/glibc-headers/error.texi: New file.
43791         * doc/glibc-headers/execinfo.texi: New file.
43792         * doc/glibc-headers/fpu_control.texi: New file.
43793         * doc/glibc-headers/fstab.texi: New file.
43794         * doc/glibc-headers/fts.texi: New file.
43795         * doc/glibc-headers/getopt.texi: New file.
43796         * doc/glibc-headers/ieee754.texi: New file.
43797         * doc/glibc-headers/ifaddrs.texi: New file.
43798         * doc/glibc-headers/libintl.texi: New file.
43799         * doc/glibc-headers/mcheck.texi: New file.
43800         * doc/glibc-headers/mntent.texi: New file.
43801         * doc/glibc-headers/obstack.texi: New file.
43802         * doc/glibc-headers/paths.texi: New file.
43803         * doc/glibc-headers/printf.texi: New file.
43804         * doc/glibc-headers/pty.texi: New file.
43805         * doc/glibc-headers/resolv.texi: New file.
43806         * doc/glibc-headers/shadow.texi: New file.
43807         * doc/glibc-headers/sysexits.texi: New file.
43808         * doc/glibc-headers/ttyent.texi: New file.
43809
43810 2008-01-12  Jim Meyering  <meyering@redhat.com>
43811
43812         announce-gen: emit Gnulib's git-based version string.
43813         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43814         New option --gnulib-version=V, where V is expected to be
43815         the output of running git describe in the gnulib directory.
43816         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43817         not useful, and plan to stop publishing an xdelta file with each
43818         coreutils release.
43819
43820         * build-aux/announce-gen: Also check for lzma-compressed files.
43821
43822 2008-01-11  Bruno Haible  <bruno@clisp.org>
43823
43824         * tests/test-memmem.c (main): Increase maximum allowed time.
43825         * tests/test-strstr.c (main): Likewise.
43826
43827 2008-01-11  Bruno Haible  <bruno@clisp.org>
43828
43829         * doc/functions/memmem.texi: Add more precisions about platforms.
43830         * doc/functions/strstr.texi: Likewise.
43831
43832 2008-01-10  Eric Blake  <ebb9@byu.net>
43833
43834         * m4/strstr.m4: Delete cruft from copy-n-paste.
43835         Reported by Bruno Haible.
43836
43837 2008-01-10  Bruno Haible  <bruno@clisp.org>
43838
43839         Make c-strstr rely on strstr.
43840         * lib/c-strstr.c: Don't include str-kmp.h.
43841         (c_strstr): Define in terms of strstr.
43842         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43843         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43844
43845 2008-01-10  Bruno Haible  <bruno@clisp.org>
43846
43847         * doc/gnulib.texi (String Functions in C Locale): New section.
43848         * doc/c-ctype.texi: New file.
43849         * doc/c-strcase.texi: New file.
43850         * doc/c-strcaseeq.texi: New file.
43851         * doc/c-strcasestr.texi: New file.
43852         * doc/c-strstr.texi: New file.
43853         * doc/c-strtod.texi: New file.
43854         * doc/c-strtold.texi: New file.
43855
43856 2008-01-10  Eric Blake  <ebb9@byu.net>
43857
43858         * lib/relocatable.h: Fix a comment.
43859
43860 2008-01-10  Eric Blake  <ebb9@byu.net>
43861
43862         Share two-way algorithm.
43863         * lib/str-two-way.h: New file, merged from...
43864         * lib/memmem.c: ...here...
43865         * lib/strstr.c: ...and here.
43866         * modules/memmem (Files): Use it.
43867         * modules/strstr (Files): Likewise.
43868
43869         Avoid quadratic strstr implementations.
43870         * lib/strstr.c: New file.
43871         * m4/strstr.m4: Likewise.
43872         * modules/strstr: Likewise.
43873         * modules/strstr-tests: Likewise.
43874         * tests/test-strstr.c: Likewise.
43875         * lib/string.in.h (rpl_strstr): Declare.
43876         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43878         * modules/string (Makefile.am): Likewise.
43879         * MODULES.html.sh (string handling): Mention new module.
43880         * doc/functions/strstr.texi (strstr): Document the bug.
43881
43882 2008-01-10  Bruno Haible  <bruno@clisp.org>
43883
43884         * lib/relocatable.h (relocate): State whether result is freshly
43885         allocated or not.
43886         * lib/relocatable.c (relocate): Return a freshly allocated string
43887         instead of a pointer to a privately held string.
43888         Reported by Sylvain Beucler <beuc@gnu.org>.
43889
43890 2008-01-10  Colin Watson  <cjwatson@debian.org>
43891
43892         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43893         s/S_ISNLK/S_ISLNK/.
43894
43895 2008-01-09  Bruno Haible  <bruno@clisp.org>
43896
43897         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43898         and other files.
43899         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43900         if it's only a guess.
43901         * modules/memmem: Simplify by depending on memmem-simple.
43902
43903 2008-01-09  Bruno Haible  <bruno@clisp.org>
43904
43905         Work around OpenBSD 4.0 tdelete() bug.
43906         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43907         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43908         macros and don't redefine the enum values.
43909         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43910         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43911         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43912
43913 2008-01-09  Bruno Haible  <bruno@clisp.org>
43914
43915         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43916         (main): Don't perform the tests if setlocale did not install a UTF-8
43917         locale. Needed on OpenBSD 4.0.
43918         * modules/wcwidth-tests (Depends-on): Add localcharset.
43919
43920 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43921
43922         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43923         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43924         * NEWS: announce this.
43925         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43926
43927 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43928         and Eric Blake  <ebb9@byu.net>
43929
43930         Add memmem-simple module.
43931         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43932         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43933         * modules/memmem-simple: New file.
43934         * modules/memmem (Description): Tweak.
43935         * MODULES.html.sh (string handling): Mention new module.
43936         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43937         addressed by memmem-simple.
43938         * NEWS: Document the difference.
43939
43940 2008-01-09  Eric Blake  <ebb9@byu.net>
43941
43942         Give gcc some memmem optimization hints.
43943         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43944         (strcasestr): Declare as pure.
43945         * modules/memmem (Maintainer): Claim my implementation.
43946
43947 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43948
43949         Support AIX 6.1 and higher.
43950         * build-aux/config.libpath: Likewise.
43951         * build-aux/config.rpath: Likewise.
43952
43953 2008-01-08  Jim Meyering  <meyering@redhat.com>
43954             Bruno Haible  <bruno@clisp.org>
43955
43956         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43957         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43958         Reported by Peter Fales in
43959         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43960
43961 2008-01-08  Bruno Haible  <bruno@clisp.org>
43962
43963         * modules/unictype/category-of (Depends-on): Add
43964         unictype/category-none.
43965         * modules/unictype/category-and-tests (Depends-on): Add
43966         unictype/category-{L,N,Lu,Nd}.
43967         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43968         * modules/unictype/category-or-tests (Depends-on): Add
43969         unictype/category-{L,N}.
43970         * modules/unictype/category-name-tests (Depends-on): Add
43971         unictype/category-{Z,Nl}.
43972         Reported by Simon Josefsson.
43973
43974 2008-01-08  Bruno Haible  <bruno@clisp.org>
43975
43976         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43977         convention better.
43978         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43979         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43980         Reported by Peter Miller <millerp@canb.auug.org.au>.
43981
43982 2008-01-08  Eric Blake  <ebb9@byu.net>
43983
43984         Rewrite memmem to guarantee linear complexity without malloc.
43985         * lib/memmem.c (memmem): Use Two-Way rather than
43986         Knuth-Morris-Pratt, to allow O(1) space usage.
43987         (critical_factorization, two_way_short_needle)
43988         (two_way_long_needle): New functions.
43989         (knuth_morris_pratt): Delete.
43990         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43991         Add stdint.
43992         * tests/test-memmem.c (main): Add tests for periodic needle and
43993         sublinear performance.
43994         * doc/functions/memmem.texi (memmem): Document other deficiencies
43995         in cygwin and older glibc.
43996
43997 2008-01-08  Bruno Haible  <bruno@clisp.org>
43998
43999         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44000         augmentation.
44001
44002 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44003
44004         Add a configure time option: --disable-acl.
44005         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44006         AC_ARG_ENABLE(acl).
44007
44008 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44009
44010         * tests/test-localename.c: Don't include obsolete "setenv.h".
44011
44012         * modules/localename-tests (Depends-on): Need unsetenv.
44013
44014 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44015
44016         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44017
44018 2008-01-06  Colin Watson  <cjwatson@debian.org>
44019
44020         * users.txt: Add man-db.
44021
44022 2008-01-07  Bruno Haible  <bruno@clisp.org>
44023
44024         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44025         previous section name.
44026
44027 2008-01-07  Bruno Haible  <bruno@clisp.org>
44028
44029         * lib/progname.c (set_program_name): Don't strip off a leading
44030         "lt-" prefix outside a .libs directory.
44031         Suggested by Paul Eggert.
44032
44033 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44034             Bruno Haible  <bruno@clisp.org>
44035
44036         Improve memory cleanup in 'relocatable' module.
44037         * lib/relocatable.h (compute_curr_prefix): Change return type to
44038         'char *'.
44039         * lib/relocatable.c (compute_curr_prefix): Change return type to
44040         'char *'. Free curr_installdir after use.
44041         (relocate): Free curr_prefix_better after use.
44042         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44043
44044 2008-01-01  Bruno Haible  <bruno@clisp.org>
44045
44046         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44047         failure on older glibc systems.
44048         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44049
44050 2008-01-05  Eric Blake  <ebb9@byu.net>
44051
44052         Avoid quadratic system memmem.
44053         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44054         Reported by Ralf Wildenhues.
44055
44056         Fix memmem test for mingw.
44057         * modules/memmem-tests (configure.ac): Check for alarm.
44058         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44059         it.
44060         * doc/functions/memmem.texi: New file.
44061         * doc/gnulib.texi (Function Substitutes): Add memmem.
44062         Reported by Bruno Haible.
44063
44064 2008-01-04  Bruno Haible  <bruno@clisp.org>
44065
44066         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44067         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44068         gl_HEADER_STRING_H_DEFAULTS.
44069
44070 2008-01-04  Eric Blake  <ebb9@byu.net>
44071
44072         Shorten duration of memmem test.
44073         * tests/test-memmem.c (main): Use alarm to declare failure if test
44074         is taking too long.
44075         Reported by Ralf Wildenhues.
44076
44077 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44078
44079         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44080         string, needed by strerror.
44081
44082 2008-01-03  Colin Watson  <cjwatson@debian.org>
44083             Bruno Haible  <bruno@clisp.org>
44084
44085         * doc/gnulib-tool.texi (Localization): New section.
44086
44087 2008-01-02  Bruno Haible  <bruno@clisp.org>
44088
44089         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44090         variables to 'unsigned char *' type.
44091         Reported by Paul Eggert.
44092
44093 2008-01-02  Jim Meyering  <jim@meyering.net>
44094
44095         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44096
44097 2007-12-31  Jim Meyering  <jim@meyering.net>
44098
44099         Avoid use of private FTS type name.
44100         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44101
44102 2007-12-30  Karl Berry  <karl@gnu.org>
44103
44104         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44105         work around defect in Texinfo and/or the standalone Info browser.
44106
44107 2007-12-30  Bruno Haible  <bruno@clisp.org>
44108
44109         Unify 5 copies of the KMP code.
44110         * lib/str-kmp.h: New file.
44111         * lib/c-strcasestr.c: Include str-kmp.h.
44112         (knuth_morris_pratt): Remove function.
44113         (c_strcasestr): Update.
44114         * lib/c-strstr.c: Include str-kmp.h.
44115         (knuth_morris_pratt): Remove function.
44116         (c_strcasestr): Update.
44117         * lib/mbscasestr.c: Include str-kmp.h.
44118         (knuth_morris_pratt_unibyte): Remove function.
44119         * lib/mbsstr.c: Include str-kmp.h.
44120         (knuth_morris_pratt_unibyte): Remove function.
44121         * lib/strcasestr.c: Include str-kmp.h.
44122         (knuth_morris_pratt): Remove function.
44123         (strcasestr): Update.
44124         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44125         * modules/c-strstr (Files): Likewise.
44126         * modules/mbscasestr (Files): Likewise.
44127         * modules/mbsstr (Files): Likewise.
44128         * modules/strcasestr (Files): Likewise.
44129         Suggested by Paul Eggert.
44130
44131 2007-12-30  Bruno Haible  <bruno@clisp.org>
44132
44133         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44134         defined.
44135
44136 2007-12-30  Bruno Haible  <bruno@clisp.org>
44137
44138         * lib/xmalloca.h: Include xalloc.h.
44139         (xnmalloca): New macro.
44140
44141 2007-12-30  Bruno Haible  <bruno@clisp.org>
44142
44143         * lib/malloca.h (nmalloca): New macro.
44144         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44145         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44146         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44147         knuth_morris_pratt_multibyte): Likewise.
44148         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44149         knuth_morris_pratt_multibyte): Likewise.
44150         * lib/memmem.c (knuth_morris_pratt): Likewise.
44151         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44152
44153 2007-12-25  Bruno Haible  <bruno@clisp.org>
44154
44155         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44156         * lib/glob.c: Don't include openat.h.
44157         (link_exists2_p): Add back the code that deals with the
44158         !GLOB_ALTDIRFUNC case.
44159         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44160         let it do the filename concatenation.
44161         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44162         * modules/glob (Depends-on): Remove openat.
44163
44164 2007-12-31  Bruno Haible  <bruno@clisp.org>
44165
44166         * modules/dirfd (License): Change to LGPLv2+.
44167         Approved by Jim Meyering.
44168
44169 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44170
44171         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44172         when multiplying M by sizeof (size_t).
44173
44174 2007-12-10  Martin Lambers  <marlam@marlam.de>
44175
44176         Override getpagesize on mingw.
44177         * lib/getpagesize.c: New file.
44178         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44179         * modules/getpagesize (Files): Add lib/getpagesize.c.
44180         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44182         REPLACE_GETPAGESIZE.
44183         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44184
44185 2007-12-25  Bruno Haible  <bruno@clisp.org>
44186
44187         * modules/localcharset (Notice): New field.
44188         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44189         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44190
44191 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44192             Bruno Haible  <bruno@clisp.org>
44193
44194         Avoid using the syntax symbol() in formatted documentation.
44195         * MODULES.html.sh (func_module): When replacing symbol() with a
44196         hyperlink, remove the parentheses. Show an error if some remain.
44197         Recognize and render the '...' syntax.
44198         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
44199         Rework. Add paragraph about GCC's inlining.
44200         * doc/alloca.texi: Likewise.
44201         * doc/error.texi: Remove parentheses from symbol reference.
44202         * doc/gnulib-intro.texi: Likewise.
44203         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
44204         * modules/fnmatch (Description): Reword to say "the ... function".
44205         * modules/full-read (Description): Likewise.
44206         * modules/full-write (Description): Likewise.
44207         * modules/safe-read (Description): Likewise.
44208         * modules/safe-write (Description): Likewise.
44209         * modules/strchrnul (Description): Likewise.
44210         * modules/trim (Description): Likewise.
44211         * modules/error (Description): Remove parentheses from symbol
44212         references.
44213         * modules/verror (Description): Likewise.
44214         Reported by Karl Berry.
44215
44216 2007-12-25  Bruno Haible  <bruno@clisp.org>
44217
44218         Fixup after 2007-10-16 commit.
44219         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
44220
44221 2007-12-24  Bruno Haible  <bruno@clisp.org>
44222
44223         Make --enable-relocatable work with DESTDIR.
44224         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
44225         to compute installdir from destprog.
44226         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
44227         also set the RELOC_DESTDIR variable.
44228         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44229
44230 2007-12-24  Bruno Haible  <bruno@clisp.org>
44231
44232         Fix link error due to xalloc_die().
44233         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
44234         of xreadlink.
44235         * lib/relocwrapper.c: Update comments.
44236         * build-aux/install-reloc: Remove xreadlink.c from file list.
44237         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
44238         xreadlink.c.
44239         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44240
44241 2007-12-24  Bruno Haible  <bruno@clisp.org>
44242
44243         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
44244         * lib/setenv.h: Remove file.
44245         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
44246         lib/setenv.h.
44247         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
44248         (Depends-on): Add stdlib.
44249         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
44250         gl_FUNC_UNSETENV.
44251         (Include): Replace setenv.h with <stdlib.h>.
44252         * modules/unsetenv: New file.
44253         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
44254         * lib/unsetenv.c: Include <stdlib.h> first.
44255         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
44256         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
44257         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
44258         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
44259         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
44260         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
44262         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44263         * doc/functions/unsetenv.texi: Update.
44264         * modules/xsetenv (Depends-on): Add unsetenv.
44265         * modules/getdate (Depends-on): Likewise.
44266         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
44267         * lib/xsetenv.c: Don't include setenv.h.
44268         * lib/getdate.y: Likewise.
44269         * lib/relocwrapper.c: Likewise.
44270         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
44271         (Depends-on): Add stdlib.
44272         * NEWS: Mention the changes.
44273         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44274
44275 2007-12-23  Bruno Haible  <bruno@clisp.org>
44276
44277         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44278         indentation.
44279
44280 2007-12-23  Bruno Haible  <bruno@clisp.org>
44281
44282         * lib/c-strcasestr.c: Add more comments.
44283         * lib/c-strstr.c: Likewise.
44284         * lib/mbscasestr.c: Likewise.
44285         * lib/mbsstr.c: Likewise.
44286         * lib/strcasestr.c: Likewise.
44287         * lib/memmem.c: Likewise.
44288
44289 2007-12-23  Bruno Haible  <bruno@clisp.org>
44290
44291         * tests/test-memmem.c: Include <string.h> first.
44292
44293 2007-12-22  Bruno Haible  <bruno@clisp.org>
44294
44295         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44296         the contents of $testsbase.
44297         Reported by Ralf Wildenhues.
44298
44299 2007-12-22  Bruno Haible  <bruno@clisp.org>
44300
44301         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44302         two variables local_ldadd_before, local_ldadd_last.
44303
44304 2007-12-20  Eric Blake  <ebb9@byu.net>
44305
44306         Work around circular library issue when cross-compiling.
44307         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44308         that progname.o does not need to pull in rpl_memcmp.
44309
44310 2007-12-19  Eric Blake  <ebb9@byu.net>
44311
44312         Fix memmem to avoid O(n^2) worst-case complexity.
44313         * lib/memmem.c (knuth_morris_pratt): New function.
44314         (memmem): Use it if first few naive iterations fail.
44315         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44316         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44317         * modules/memchr (License): Likewise.
44318         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
44319         malloca.
44320         * tests/test-memmem.c: Rewrite, borrowing ideas from
44321         test-mbsstr1.c; the old version wouldn't even compile!
44322         * modules/memmem-tests: New file.
44323         * lib/string.in.h (rpl_memmem): Add declaration.
44324         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
44325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
44326         REPLACE_MEMMEM.
44327
44328 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44329
44330         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
44331         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
44332         before any system include files, and undef after them all.  This
44333         should fix a problem on VMS reported by John E. Malmberg in
44334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
44335
44336 2007-12-17  Eric Blake  <ebb9@byu.net>
44337
44338         Revert addition of verify, for BSD/OS.
44339         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
44340         can't handle large files, for the sake of obsolete platforms.
44341         * modules/fseeko (Depends-on): Remove verify.
44342         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
44343         * doc/functions/ftello.texi (ftello): Likewise.
44344         * doc/functions/fgetpos.texi (fgetpos): Likewise.
44345         Reported by Larry Jones.
44346
44347 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
44348
44349         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
44350         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
44351
44352 2007-12-17  Jim Meyering  <meyering@redhat.com>
44353
44354         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
44355         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
44356         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
44357         * modules/getcwd (Depends-on): Add openat.
44358         Reported by Petr Salinger.
44359
44360 2007-12-17  Bruno Haible  <bruno@clisp.org>
44361
44362         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
44363         avoid a segmentation fault of the configure test on x86_64 systems.
44364
44365 2007-12-15  Jim Meyering  <meyering@redhat.com>
44366
44367         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
44368
44369 2007-12-13  Eric Blake  <ebb9@byu.net>
44370
44371         Another fseek test.
44372         * tests/test-fseek.c (main): Also test ungetc handling.
44373         * tests/test-fseeko.c (main): Likewise.
44374         * modules/fseeko (Depends-on): Add verify.
44375         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
44376         large.
44377         Reported by Larry Jones.
44378
44379         Fix fseeko on mingw.
44380         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44381         seek.
44382
44383         Beef up fseek tests.
44384         * tests/test-fseek.c (main): Also test eof handling.
44385         * tests/test-fseeko.c (main): Likewise.
44386         Reported by Larry Jones.
44387
44388 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44389
44390         Fix fseeko on BSD-based platforms.
44391         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44392         successful seek.
44393
44394 2007-12-12  Eric Blake  <ebb9@byu.net>
44395
44396         Allow circular dependency of separate libtests.a
44397         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44398         when use_libtests.
44399
44400 2007-12-11  Eric Blake  <ebb9@byu.net>
44401
44402         Fix bug with -0.0L in previous patch.
44403         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44404         * tests/test-isnan.c (main): Also test on zeroes.
44405         * tests/test-isnanf.c (main): Likewise.
44406         * tests/test-isnanl.h (main): Likewise.
44407
44408         Detect pseudo-denormals on x86 even when cross-compiling.
44409         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44410         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44411         invalid bit patterns that happen to satisfy ==.
44412
44413         Avoid link failures with separate libtests.a.
44414         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44415         last, to satisfy circular dependencies.
44416
44417 2007-12-11  Eric Blake  <ebb9@byu.net>
44418         and Bruno Haible  <bruno@clisp.org>
44419
44420         Fix OpenBSD 4.0 <float.h> handling of long double.
44421         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44422         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44423         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44424
44425 2007-12-11  Jim Meyering  <meyering@redhat.com>
44426
44427         * users.txt: Add libvirt.
44428
44429         Support versions of autoconf prior to 2.59c.
44430         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44431         if it is not already defined.
44432
44433 2007-12-09  Bruno Haible  <bruno@clisp.org>
44434
44435         Let 'gnulib-tool --import' collect sources needed for the tests in
44436         tests/ rather than in lib/.
44437         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44438         argument. If true, add rules to generate libtests.a, and put libtests.a
44439         into $(LDADD). Consider source files in subdirectories and set
44440         uses_subdirs.
44441         (func_emit_initmacro_start, func_emit_initmacro_end,
44442         func_emit_initmacro_done): Pass all arguments explicitly.
44443         (func_import): Determine two module lists main_modules,
44444         testsrelated_modules. Determine use_libtests. Determine two variables
44445         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44446         instead of just sed_transform_lib_file. Determine two variables
44447         main_files and testsrelated_files. Compute 'files' as the union of
44448         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44449         func_add_or_update. In the generated gnulib-comp.m4, collect the
44450         object files for tests/ in different variables than those for lib/.
44451         Substitute LIBTESTS_LIBDEPS.
44452         (func_create_testdir): Combine the uses_subdirs results from
44453         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44454
44455 2007-12-09  Bruno Haible  <bruno@clisp.org>
44456
44457         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44458         the build-aux directory.
44459
44460 2007-12-09  Bruno Haible  <bruno@clisp.org>
44461
44462         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44463         introduced on 2006-09-09.
44464
44465 2007-12-07  Jim Meyering  <meyering@redhat.com>
44466
44467         Let these macros work also with autoconf-2.59.
44468         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44469         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44470         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44471
44472 2007-12-06  Jim Meyering  <meyering@redhat.com>
44473
44474         Avoid a configure-time syntax error in gl_FUNC_ACL.
44475         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44476         function in each branch, before testing the cache variable.
44477
44478 2007-12-04  Eric Blake  <ebb9@byu.net>
44479
44480         Make scripts executable.
44481         * build-aux/config.guess: Add execute permissions.
44482         * build-aux/config.sub: Likewise.
44483         * build-aux/gendocs.sh: Likewise.
44484
44485         Fix frexp on mingw.
44486         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44487         cross-compiling.
44488         * doc/functions/frexp.texi (frexp): Document the bug.
44489
44490         Make cygwin fseeko check more reliable.
44491         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44492         version numbers, rather than unrelated feature check.
44493         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44494         * doc/functions/ftello.texi (ftello): Likewise.
44495         Reported by Bruno Haible.
44496
44497         * m4/strerror.m4: Bump version number.
44498
44499 2007-12-03  Bruno Haible  <bruno@clisp.org>
44500
44501         * doc/functions/mprotect.texi: Mention the mingw problem.
44502
44503 2007-12-03  Eric Blake  <ebb9@byu.net>
44504
44505         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44506         REPLACE_STRERROR is initialized before this macro.
44507
44508 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44509
44510         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44511         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44512         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44513         put -lsec in even for programs other than 'ls'.  This fixes a problem
44514         for gettext reported by Bruno Haible in
44515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44516         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44517         Add support for Solaris 10.  This isn't efficient, but should get the
44518         job done for now.
44519
44520 2007-12-03  James Youngman  <jay@gnu.org>
44521
44522         * doc/regexprops-generic.texi: change "an close-group" to "a
44523         close-group" and "illegal" to "not allowed".
44524
44525 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44526
44527         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44528         pr_byname.h. Needed for the rare case when the maintainer has done
44529         "make maintainer-clean" in the source directory and then attempts a
44530         build outside the source directory.
44531         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44532         scripts_byname.h.
44533
44534 2007-12-02  Martin Lambers <marlam@marlam.de>
44535             Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/getpagesize.h: Remove file.
44538         * lib/unistd.in.h: Include declaration of getpagesize here.
44539         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44540         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44541         HAVE_SYS_PARAM_H.
44542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44543         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44544         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44545         (Depends-on): Add unistd.
44546         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44547         (Include): Use <unistd.h> instead of getpagesize.h.
44548         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44549         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44550         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44551         gl_GETPAGESIZE invocation, already handled by module dependency.
44552         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44553
44554 2007-12-02  Bruno Haible  <bruno@clisp.org>
44555
44556         * modules/strings-tests: New file.
44557         * tests/test-strings.c: New file.
44558
44559         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44560         * lib/strings.in.h: New file.
44561         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44562         * m4/strings_h.m4: New file.
44563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44564         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44565         * modules/strings: New file.
44566         * modules/string (Makefile.am): Update.
44567         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44568         Reported by Karl Berry.
44569
44570 2007-12-01  Eric Blake  <ebb9@byu.net>
44571
44572         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44573         accomodate fix in cygwin 1.5.25.
44574
44575 2007-12-01  Jim Meyering  <meyering@redhat.com>
44576
44577         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44578         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44579         that would inhibit utf8-optimization of a regexp containing line-
44580         or buffer-anchors, e.g., `^', `$'.
44581
44582 2007-11-30  Bruno Haible  <bruno@clisp.org>
44583
44584         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44585         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44586         glthread_recursive_lock_init.
44587         * lib/lock.c (glthread_recursive_lock_init)
44588         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44589         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44590
44591 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44592
44593         New function qset_acl, like set_acl but with syscall semantics.
44594         * lib/acl.h (qset_acl): New decl.
44595         * lib/acl.c (qset_acl): New function.
44596         (set_acl): Use new function.  Use more-consistent diagnostics.
44597
44598 2007-11-28  Jim Meyering  <meyering@redhat.com>
44599
44600         * modules/physmem (License): Change from GPL to LGPLv2+.
44601
44602 2007-11-26  Bruno Haible  <bruno@clisp.org>
44603
44604         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44605         'long double' type has excess precision.
44606         Reported by Jim Meyering in
44607         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44608
44609 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44610
44611         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44612         Sync from <http://gnu.org/licenses>.
44613         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44614         with license text from same location.
44615         * doc/maintain.texi, doc/standards.texi:  Sync from
44616         <http://savannah.gnu.org/projects/gnustandards>.
44617
44618 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44619         and Jim Meyering  <meyering@redhat.com>
44620
44621         Adjust getdate' grammar to accept a slightly more regular language.
44622         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44623         Before, the former was rejected.
44624         * lib/getdate.y (digits_to_date_time): New function, factored
44625         out of ...
44626         (number): ...here.  Just call digits_to_date_time.
44627         (hybrid): New non-terminal to handle an <unsigned number,
44628         signed relative offset> sequence consistently.
44629
44630 2007-11-18  Jim Meyering  <meyering@redhat.com>
44631
44632         Pull my changes from coreutils:
44633         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44634         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44635         use of $gnulib_tool_option_extras, so that it's separated from the
44636         preceding argument.
44637
44638         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44639         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44640         parent destination directories before copying a file into place.
44641
44642 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44643
44644         bootstrap: work also with 4-argument variant of AC_INIT
44645         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44646
44647 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44648
44649         Port test-getaddrinfo to Solaris.
44650         Problem reported by Bruno Haible in
44651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44652         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44653         explanation of setting 'hints'.
44654         Don't reject an implementation merely because it returns EAI_SERVICE.
44655         (EAI_SERVICE): Define to 0 if not defined.
44656
44657 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44658
44659         The license of gnu-make and posix-shell is now "GPLed build tool".
44660         * modules/gnu-make (License): Likewise.
44661         * modules/posix-shell (License): Likewise.
44662
44663         New module posix-shell, for determining a POSIX shell
44664         or perhaps something that is close enough to a POSIX shell.
44665         * m4/posix-shell.m4: New file.
44666         * modules/posix-shell: New file.
44667
44668         * MODULES.html.sh: Mention new module.
44669
44670         New module gnu-make, for determining whether we're using GNU Make.
44671         * m4/gnu-make.m4: New file.
44672         * modules/gnu-make: New file.
44673         * MODULES.html.sh: Mention new module.
44674
44675 2007-11-14  Jim Meyering  <meyering@redhat.com>
44676
44677         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44678         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44679         use this macro to create a function _definition_.
44680         Remove useless "#undef ARGMATCH_DIE".
44681
44682 2007-11-14  Bruno Haible  <bruno@clisp.org>
44683
44684         * lib/config.charset: Update for OpenBSD 4.1.
44685         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44686
44687 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44688
44689         Document 64-bit #if problems in stdint.texi.
44690         * doc/headers/stdint.texi (stdint.h): Mention problems with
44691         64-bit-#if, and how to work around them.
44692
44693         Don't insist on 'long long int' support in the preprocessor.  It
44694         breaks too many things.  For example, PRIdMAX still uses a 'long
44695         long int' format with the latest Sun compiler, even though
44696         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44697         preprocessor problem.  This causes the latest coreutils to dump
44698         core on Solaris 10 sparc with the Sun C compiler.
44699         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44700         the troublesome expressions at configure-time, not at #if-time.
44701         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44702         preprocessor.
44703         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44704         compile-time C checks, done at 'configure'-time.
44705         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44706         * modules/inttypes (Makefile): Substitute the new symbols that
44707         gl_INTTYPES_H now generates.
44708         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44709
44710 2007-11-12  Bruno Haible  <bruno@clisp.org>
44711
44712         Tests for Unicode character classification functions.
44713
44714         * modules/unictype/bidicategory-byname-tests: New file.
44715         * modules/unictype/bidicategory-name-tests: New file.
44716         * modules/unictype/bidicategory-of-tests: New file.
44717         * modules/unictype/bidicategory-test-tests: New file.
44718         * modules/unictype/block-list-tests: New file.
44719         * modules/unictype/block-of-tests: New file.
44720         * modules/unictype/block-test-tests: New file.
44721         * modules/unictype/category-C-tests: New file.
44722         * modules/unictype/category-Cc-tests: New file.
44723         * modules/unictype/category-Cf-tests: New file.
44724         * modules/unictype/category-Cn-tests: New file.
44725         * modules/unictype/category-Co-tests: New file.
44726         * modules/unictype/category-Cs-tests: New file.
44727         * modules/unictype/category-L-tests: New file.
44728         * modules/unictype/category-Ll-tests: New file.
44729         * modules/unictype/category-Lm-tests: New file.
44730         * modules/unictype/category-Lo-tests: New file.
44731         * modules/unictype/category-Lt-tests: New file.
44732         * modules/unictype/category-Lu-tests: New file.
44733         * modules/unictype/category-M-tests: New file.
44734         * modules/unictype/category-Mc-tests: New file.
44735         * modules/unictype/category-Me-tests: New file.
44736         * modules/unictype/category-Mn-tests: New file.
44737         * modules/unictype/category-N-tests: New file.
44738         * modules/unictype/category-Nd-tests: New file.
44739         * modules/unictype/category-Nl-tests: New file.
44740         * modules/unictype/category-No-tests: New file.
44741         * modules/unictype/category-P-tests: New file.
44742         * modules/unictype/category-Pc-tests: New file.
44743         * modules/unictype/category-Pd-tests: New file.
44744         * modules/unictype/category-Pe-tests: New file.
44745         * modules/unictype/category-Pf-tests: New file.
44746         * modules/unictype/category-Pi-tests: New file.
44747         * modules/unictype/category-Po-tests: New file.
44748         * modules/unictype/category-Ps-tests: New file.
44749         * modules/unictype/category-S-tests: New file.
44750         * modules/unictype/category-Sc-tests: New file.
44751         * modules/unictype/category-Sk-tests: New file.
44752         * modules/unictype/category-Sm-tests: New file.
44753         * modules/unictype/category-So-tests: New file.
44754         * modules/unictype/category-Z-tests: New file.
44755         * modules/unictype/category-Zl-tests: New file.
44756         * modules/unictype/category-Zp-tests: New file.
44757         * modules/unictype/category-Zs-tests: New file.
44758         * modules/unictype/category-and-not-tests: New file.
44759         * modules/unictype/category-and-tests: New file.
44760         * modules/unictype/category-byname-tests: New file.
44761         * modules/unictype/category-name-tests: New file.
44762         * modules/unictype/category-none-tests: New file.
44763         * modules/unictype/category-of-tests: New file.
44764         * modules/unictype/category-or-tests: New file.
44765         * modules/unictype/category-test-withtable-tests: New file.
44766         * modules/unictype/combining-class-tests: New file.
44767         * modules/unictype/ctype-alnum-tests: New file.
44768         * modules/unictype/ctype-alpha-tests: New file.
44769         * modules/unictype/ctype-blank-tests: New file.
44770         * modules/unictype/ctype-cntrl-tests: New file.
44771         * modules/unictype/ctype-digit-tests: New file.
44772         * modules/unictype/ctype-graph-tests: New file.
44773         * modules/unictype/ctype-lower-tests: New file.
44774         * modules/unictype/ctype-print-tests: New file.
44775         * modules/unictype/ctype-punct-tests: New file.
44776         * modules/unictype/ctype-space-tests: New file.
44777         * modules/unictype/ctype-upper-tests: New file.
44778         * modules/unictype/ctype-xdigit-tests: New file.
44779         * modules/unictype/decimal-digit-tests: New file.
44780         * modules/unictype/digit-tests: New file.
44781         * modules/unictype/mirror-tests: New file.
44782         * modules/unictype/numeric-tests: New file.
44783         * modules/unictype/property-alphabetic-tests: New file.
44784         * modules/unictype/property-ascii-hex-digit-tests: New file.
44785         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44786         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44787         * modules/unictype/property-bidi-block-separator-tests: New file.
44788         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44789         * modules/unictype/property-bidi-common-separator-tests: New file.
44790         * modules/unictype/property-bidi-control-tests: New file.
44791         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44792         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44793         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44794         * modules/unictype/property-bidi-european-digit-tests: New file.
44795         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44796         * modules/unictype/property-bidi-left-to-right-tests: New file.
44797         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44798         * modules/unictype/property-bidi-other-neutral-tests: New file.
44799         * modules/unictype/property-bidi-pdf-tests: New file.
44800         * modules/unictype/property-bidi-segment-separator-tests: New file.
44801         * modules/unictype/property-bidi-whitespace-tests: New file.
44802         * modules/unictype/property-byname-tests: New file.
44803         * modules/unictype/property-combining-tests: New file.
44804         * modules/unictype/property-composite-tests: New file.
44805         * modules/unictype/property-currency-symbol-tests: New file.
44806         * modules/unictype/property-dash-tests: New file.
44807         * modules/unictype/property-decimal-digit-tests: New file.
44808         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44809         * modules/unictype/property-deprecated-tests: New file.
44810         * modules/unictype/property-diacritic-tests: New file.
44811         * modules/unictype/property-extender-tests: New file.
44812         * modules/unictype/property-format-control-tests: New file.
44813         * modules/unictype/property-grapheme-base-tests: New file.
44814         * modules/unictype/property-grapheme-extend-tests: New file.
44815         * modules/unictype/property-grapheme-link-tests: New file.
44816         * modules/unictype/property-hex-digit-tests: New file.
44817         * modules/unictype/property-hyphen-tests: New file.
44818         * modules/unictype/property-id-continue-tests: New file.
44819         * modules/unictype/property-id-start-tests: New file.
44820         * modules/unictype/property-ideographic-tests: New file.
44821         * modules/unictype/property-ids-binary-operator-tests: New file.
44822         * modules/unictype/property-ids-trinary-operator-tests: New file.
44823         * modules/unictype/property-ignorable-control-tests: New file.
44824         * modules/unictype/property-iso-control-tests: New file.
44825         * modules/unictype/property-join-control-tests: New file.
44826         * modules/unictype/property-left-of-pair-tests: New file.
44827         * modules/unictype/property-line-separator-tests: New file.
44828         * modules/unictype/property-logical-order-exception-tests: New file.
44829         * modules/unictype/property-lowercase-tests: New file.
44830         * modules/unictype/property-math-tests: New file.
44831         * modules/unictype/property-non-break-tests: New file.
44832         * modules/unictype/property-not-a-character-tests: New file.
44833         * modules/unictype/property-numeric-tests: New file.
44834         * modules/unictype/property-other-alphabetic-tests: New file.
44835         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44836         * modules/unictype/property-other-grapheme-extend-tests: New file.
44837         * modules/unictype/property-other-id-continue-tests: New file.
44838         * modules/unictype/property-other-id-start-tests: New file.
44839         * modules/unictype/property-other-lowercase-tests: New file.
44840         * modules/unictype/property-other-math-tests: New file.
44841         * modules/unictype/property-other-uppercase-tests: New file.
44842         * modules/unictype/property-paired-punctuation-tests: New file.
44843         * modules/unictype/property-paragraph-separator-tests: New file.
44844         * modules/unictype/property-pattern-syntax-tests: New file.
44845         * modules/unictype/property-pattern-white-space-tests: New file.
44846         * modules/unictype/property-private-use-tests: New file.
44847         * modules/unictype/property-punctuation-tests: New file.
44848         * modules/unictype/property-quotation-mark-tests: New file.
44849         * modules/unictype/property-radical-tests: New file.
44850         * modules/unictype/property-sentence-terminal-tests: New file.
44851         * modules/unictype/property-soft-dotted-tests: New file.
44852         * modules/unictype/property-space-tests: New file.
44853         * modules/unictype/property-terminal-punctuation-tests: New file.
44854         * modules/unictype/property-test-tests: New file.
44855         * modules/unictype/property-titlecase-tests: New file.
44856         * modules/unictype/property-unassigned-code-value-tests: New file.
44857         * modules/unictype/property-unified-ideograph-tests: New file.
44858         * modules/unictype/property-uppercase-tests: New file.
44859         * modules/unictype/property-variation-selector-tests: New file.
44860         * modules/unictype/property-white-space-tests: New file.
44861         * modules/unictype/property-xid-continue-tests: New file.
44862         * modules/unictype/property-xid-start-tests: New file.
44863         * modules/unictype/property-zero-width-tests: New file.
44864         * modules/unictype/scripts-tests: New file.
44865         * modules/unictype/syntax-c-ident-tests: New file.
44866         * modules/unictype/syntax-c-whitespace-tests: New file.
44867         * modules/unictype/syntax-java-ident-tests: New file.
44868         * modules/unictype/syntax-java-whitespace-tests: New file.
44869         * tests/unictype/test-bidi_byname.c: New file.
44870         * tests/unictype/test-bidi_name.c: New file.
44871         * tests/unictype/test-bidi_of.c: New file.
44872         * tests/unictype/test-bidi_test.c: New file.
44873         * tests/unictype/test-block_list.c: New file.
44874         * tests/unictype/test-block_of.c: New file.
44875         * tests/unictype/test-block_test.c: New file.
44876         * tests/unictype/test-categ_and.c: New file.
44877         * tests/unictype/test-categ_and_not.c: New file.
44878         * tests/unictype/test-categ_byname.c: New file.
44879         * tests/unictype/test-categ_name.c: New file.
44880         * tests/unictype/test-categ_none.c: New file.
44881         * tests/unictype/test-categ_of.c: New file.
44882         * tests/unictype/test-categ_or.c: New file.
44883         * tests/unictype/test-categ_test_withtable.c: New file.
44884         * tests/unictype/test-combining.c: New file.
44885         * tests/unictype/test-decdigit.c: New file.
44886         * tests/unictype/test-digit.c: New file.
44887         * tests/unictype/test-mirror.c: New file.
44888         * tests/unictype/test-numeric.c: New file.
44889         * tests/unictype/test-pr_byname.c: New file.
44890         * tests/unictype/test-pr_test.c: New file.
44891         * tests/unictype/test-predicate-part1.h: New file.
44892         * tests/unictype/test-predicate-part2.h: New file.
44893         * tests/unictype/test-scripts.c: New file.
44894         * tests/unictype/test-sy_c_ident.c: New file.
44895         * tests/unictype/test-sy_java_ident.c: New file.
44896
44897         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44898         for Unicode 5.0.0.
44899         * tests/unictype/test-categ_Cc.c: Likewise.
44900         * tests/unictype/test-categ_Cf.c: Likewise.
44901         * tests/unictype/test-categ_Cn.c: Likewise.
44902         * tests/unictype/test-categ_Co.c: Likewise.
44903         * tests/unictype/test-categ_Cs.c: Likewise.
44904         * tests/unictype/test-categ_L.c: Likewise.
44905         * tests/unictype/test-categ_Ll.c: Likewise.
44906         * tests/unictype/test-categ_Lm.c: Likewise.
44907         * tests/unictype/test-categ_Lo.c: Likewise.
44908         * tests/unictype/test-categ_Lt.c: Likewise.
44909         * tests/unictype/test-categ_Lu.c: Likewise.
44910         * tests/unictype/test-categ_M.c: Likewise.
44911         * tests/unictype/test-categ_Mc.c: Likewise.
44912         * tests/unictype/test-categ_Me.c: Likewise.
44913         * tests/unictype/test-categ_Mn.c: Likewise.
44914         * tests/unictype/test-categ_N.c: Likewise.
44915         * tests/unictype/test-categ_Nd.c: Likewise.
44916         * tests/unictype/test-categ_Nl.c: Likewise.
44917         * tests/unictype/test-categ_No.c: Likewise.
44918         * tests/unictype/test-categ_P.c: Likewise.
44919         * tests/unictype/test-categ_Pc.c: Likewise.
44920         * tests/unictype/test-categ_Pd.c: Likewise.
44921         * tests/unictype/test-categ_Pe.c: Likewise.
44922         * tests/unictype/test-categ_Pf.c: Likewise.
44923         * tests/unictype/test-categ_Pi.c: Likewise.
44924         * tests/unictype/test-categ_Po.c: Likewise.
44925         * tests/unictype/test-categ_Ps.c: Likewise.
44926         * tests/unictype/test-categ_S.c: Likewise.
44927         * tests/unictype/test-categ_Sc.c: Likewise.
44928         * tests/unictype/test-categ_Sk.c: Likewise.
44929         * tests/unictype/test-categ_Sm.c: Likewise.
44930         * tests/unictype/test-categ_So.c: Likewise.
44931         * tests/unictype/test-categ_Z.c: Likewise.
44932         * tests/unictype/test-categ_Zl.c: Likewise.
44933         * tests/unictype/test-categ_Zp.c: Likewise.
44934         * tests/unictype/test-categ_Zs.c: Likewise.
44935         * tests/unictype/test-ctype_alnum.c: Likewise.
44936         * tests/unictype/test-ctype_alpha.c: Likewise.
44937         * tests/unictype/test-ctype_blank.c: Likewise.
44938         * tests/unictype/test-ctype_cntrl.c: Likewise.
44939         * tests/unictype/test-ctype_digit.c: Likewise.
44940         * tests/unictype/test-ctype_graph.c: Likewise.
44941         * tests/unictype/test-ctype_lower.c: Likewise.
44942         * tests/unictype/test-ctype_print.c: Likewise.
44943         * tests/unictype/test-ctype_punct.c: Likewise.
44944         * tests/unictype/test-ctype_space.c: Likewise.
44945         * tests/unictype/test-ctype_upper.c: Likewise.
44946         * tests/unictype/test-ctype_xdigit.c: Likewise.
44947         * tests/unictype/test-decdigit.h: Likewise.
44948         * tests/unictype/test-digit.h: Likewise.
44949         * tests/unictype/test-numeric.h: Likewise.
44950         * tests/unictype/test-pr_alphabetic.c: Likewise.
44951         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44952         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44953         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44954         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44955         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44956         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44957         * tests/unictype/test-pr_bidi_control.c: Likewise.
44958         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44959         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44960         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44961         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44962         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44963         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44964         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44965         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44966         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44967         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44968         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44969         * tests/unictype/test-pr_combining.c: Likewise.
44970         * tests/unictype/test-pr_composite.c: Likewise.
44971         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44972         * tests/unictype/test-pr_dash.c: Likewise.
44973         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44974         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44975         * tests/unictype/test-pr_deprecated.c: Likewise.
44976         * tests/unictype/test-pr_diacritic.c: Likewise.
44977         * tests/unictype/test-pr_extender.c: Likewise.
44978         * tests/unictype/test-pr_format_control.c: Likewise.
44979         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44980         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44981         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44982         * tests/unictype/test-pr_hex_digit.c: Likewise.
44983         * tests/unictype/test-pr_hyphen.c: Likewise.
44984         * tests/unictype/test-pr_id_continue.c: Likewise.
44985         * tests/unictype/test-pr_id_start.c: Likewise.
44986         * tests/unictype/test-pr_ideographic.c: Likewise.
44987         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44988         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44989         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44990         * tests/unictype/test-pr_iso_control.c: Likewise.
44991         * tests/unictype/test-pr_join_control.c: Likewise.
44992         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44993         * tests/unictype/test-pr_line_separator.c: Likewise.
44994         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44995         * tests/unictype/test-pr_lowercase.c: Likewise.
44996         * tests/unictype/test-pr_math.c: Likewise.
44997         * tests/unictype/test-pr_non_break.c: Likewise.
44998         * tests/unictype/test-pr_not_a_character.c: Likewise.
44999         * tests/unictype/test-pr_numeric.c: Likewise.
45000         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45001         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45002         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45003         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45004         * tests/unictype/test-pr_other_id_start.c: Likewise.
45005         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45006         * tests/unictype/test-pr_other_math.c: Likewise.
45007         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45008         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45009         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45010         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45011         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45012         * tests/unictype/test-pr_private_use.c: Likewise.
45013         * tests/unictype/test-pr_punctuation.c: Likewise.
45014         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45015         * tests/unictype/test-pr_radical.c: Likewise.
45016         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45017         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45018         * tests/unictype/test-pr_space.c: Likewise.
45019         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45020         * tests/unictype/test-pr_titlecase.c: Likewise.
45021         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45022         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45023         * tests/unictype/test-pr_uppercase.c: Likewise.
45024         * tests/unictype/test-pr_variation_selector.c: Likewise.
45025         * tests/unictype/test-pr_white_space.c: Likewise.
45026         * tests/unictype/test-pr_xid_continue.c: Likewise.
45027         * tests/unictype/test-pr_xid_start.c: Likewise.
45028         * tests/unictype/test-pr_zero_width.c: Likewise.
45029         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45030         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45031
45032 2007-11-12  Bruno Haible  <bruno@clisp.org>
45033
45034         Unicode character classification functions.
45035         * lib/unictype.h: New file.
45036         * modules/unictype/base: New file.
45037         * modules/unictype/category-L: New file.
45038         * modules/unictype/category-Lu: New file.
45039         * modules/unictype/category-Ll: New file.
45040         * modules/unictype/category-Lt: New file.
45041         * modules/unictype/category-Lm: New file.
45042         * modules/unictype/category-Lo: New file.
45043         * modules/unictype/category-M: New file.
45044         * modules/unictype/category-Mn: New file.
45045         * modules/unictype/category-Mc: New file.
45046         * modules/unictype/category-Me: New file.
45047         * modules/unictype/category-N: New file.
45048         * modules/unictype/category-Nd: New file.
45049         * modules/unictype/category-Nl: New file.
45050         * modules/unictype/category-No: New file.
45051         * modules/unictype/category-P: New file.
45052         * modules/unictype/category-Pc: New file.
45053         * modules/unictype/category-Pd: New file.
45054         * modules/unictype/category-Ps: New file.
45055         * modules/unictype/category-Pe: New file.
45056         * modules/unictype/category-Pi: New file.
45057         * modules/unictype/category-Pf: New file.
45058         * modules/unictype/category-Po: New file.
45059         * modules/unictype/category-S: New file.
45060         * modules/unictype/category-Sm: New file.
45061         * modules/unictype/category-Sc: New file.
45062         * modules/unictype/category-Sk: New file.
45063         * modules/unictype/category-So: New file.
45064         * modules/unictype/category-Z: New file.
45065         * modules/unictype/category-Zs: New file.
45066         * modules/unictype/category-Zl: New file.
45067         * modules/unictype/category-Zp: New file.
45068         * modules/unictype/category-C: New file.
45069         * modules/unictype/category-Cc: New file.
45070         * modules/unictype/category-Cf: New file.
45071         * modules/unictype/category-Cs: New file.
45072         * modules/unictype/category-Co: New file.
45073         * modules/unictype/category-Cn: New file.
45074         * modules/unictype/category-or: New file.
45075         * modules/unictype/category-of: New file.
45076         * modules/unictype/category-test: New file.
45077         * modules/unictype/category-test-withtable: New file.
45078         * modules/unictype/category-byname: New file.
45079         * modules/unictype/category-none: New file.
45080         * modules/unictype/category-and: New file.
45081         * modules/unictype/category-and-not: New file.
45082         * modules/unictype/category-name: New file.
45083         * modules/unictype/combining-class: New file.
45084         * modules/unictype/category-all: New file.
45085         * modules/unictype/bidicategory-all: New file.
45086         * modules/unictype/bidicategory-byname: New file.
45087         * modules/unictype/bidicategory-name: New file.
45088         * modules/unictype/bidicategory-of: New file.
45089         * modules/unictype/bidicategory-test: New file.
45090         * modules/unictype/decimal-digit: New file.
45091         * modules/unictype/digit: New file.
45092         * modules/unictype/numeric: New file.
45093         * modules/unictype/mirror: New file.
45094         * modules/unictype/property-white-space: New file.
45095         * modules/unictype/property-alphabetic: New file.
45096         * modules/unictype/property-other-alphabetic: New file.
45097         * modules/unictype/property-not-a-character: New file.
45098         * modules/unictype/property-default-ignorable-code-point: New file.
45099         * modules/unictype/property-other-default-ignorable-code-point: New
45100         file.
45101         * modules/unictype/property-deprecated: New file.
45102         * modules/unictype/property-logical-order-exception: New file.
45103         * modules/unictype/property-variation-selector: New file.
45104         * modules/unictype/property-private-use: New file.
45105         * modules/unictype/property-unassigned-code-value: New file.
45106         * modules/unictype/property-uppercase: New file.
45107         * modules/unictype/property-other-uppercase: New file.
45108         * modules/unictype/property-lowercase: New file.
45109         * modules/unictype/property-other-lowercase: New file.
45110         * modules/unictype/property-titlecase: New file.
45111         * modules/unictype/property-soft-dotted: New file.
45112         * modules/unictype/property-id-start: New file.
45113         * modules/unictype/property-other-id-start: New file.
45114         * modules/unictype/property-id-continue: New file.
45115         * modules/unictype/property-other-id-continue: New file.
45116         * modules/unictype/property-xid-start: New file.
45117         * modules/unictype/property-xid-continue: New file.
45118         * modules/unictype/property-pattern-white-space: New file.
45119         * modules/unictype/property-pattern-syntax: New file.
45120         * modules/unictype/property-join-control: New file.
45121         * modules/unictype/property-grapheme-base: New file.
45122         * modules/unictype/property-grapheme-extend: New file.
45123         * modules/unictype/property-other-grapheme-extend: New file.
45124         * modules/unictype/property-grapheme-link: New file.
45125         * modules/unictype/property-bidi-control: New file.
45126         * modules/unictype/property-bidi-left-to-right: New file.
45127         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45128         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45129         * modules/unictype/property-bidi-european-digit: New file.
45130         * modules/unictype/property-bidi-eur-num-separator: New file.
45131         * modules/unictype/property-bidi-eur-num-terminator: New file.
45132         * modules/unictype/property-bidi-arabic-digit: New file.
45133         * modules/unictype/property-bidi-common-separator: New file.
45134         * modules/unictype/property-bidi-block-separator: New file.
45135         * modules/unictype/property-bidi-segment-separator: New file.
45136         * modules/unictype/property-bidi-whitespace: New file.
45137         * modules/unictype/property-bidi-non-spacing-mark: New file.
45138         * modules/unictype/property-bidi-boundary-neutral: New file.
45139         * modules/unictype/property-bidi-pdf: New file.
45140         * modules/unictype/property-bidi-embedding-or-override: New file.
45141         * modules/unictype/property-bidi-other-neutral: New file.
45142         * modules/unictype/property-hex-digit: New file.
45143         * modules/unictype/property-ascii-hex-digit: New file.
45144         * modules/unictype/property-ideographic: New file.
45145         * modules/unictype/property-unified-ideograph: New file.
45146         * modules/unictype/property-radical: New file.
45147         * modules/unictype/property-ids-binary-operator: New file.
45148         * modules/unictype/property-ids-trinary-operator: New file.
45149         * modules/unictype/property-zero-width: New file.
45150         * modules/unictype/property-space: New file.
45151         * modules/unictype/property-non-break: New file.
45152         * modules/unictype/property-iso-control: New file.
45153         * modules/unictype/property-format-control: New file.
45154         * modules/unictype/property-dash: New file.
45155         * modules/unictype/property-hyphen: New file.
45156         * modules/unictype/property-punctuation: New file.
45157         * modules/unictype/property-line-separator: New file.
45158         * modules/unictype/property-paragraph-separator: New file.
45159         * modules/unictype/property-quotation-mark: New file.
45160         * modules/unictype/property-sentence-terminal: New file.
45161         * modules/unictype/property-terminal-punctuation: New file.
45162         * modules/unictype/property-currency-symbol: New file.
45163         * modules/unictype/property-math: New file.
45164         * modules/unictype/property-other-math: New file.
45165         * modules/unictype/property-paired-punctuation: New file.
45166         * modules/unictype/property-left-of-pair: New file.
45167         * modules/unictype/property-combining: New file.
45168         * modules/unictype/property-composite: New file.
45169         * modules/unictype/property-decimal-digit: New file.
45170         * modules/unictype/property-numeric: New file.
45171         * modules/unictype/property-diacritic: New file.
45172         * modules/unictype/property-extender: New file.
45173         * modules/unictype/property-ignorable-control: New file.
45174         * modules/unictype/property-test: New file.
45175         * modules/unictype/property-byname: New file.
45176         * modules/unictype/property-all: New file.
45177         * modules/unictype/scripts: New file.
45178         * modules/unictype/scripts-all: New file.
45179         * modules/unictype/block-of: New file.
45180         * modules/unictype/block-test: New file.
45181         * modules/unictype/block-list: New file.
45182         * modules/unictype/block-all: New file.
45183         * modules/unictype/syntax-c-whitespace: New file.
45184         * modules/unictype/syntax-java-whitespace: New file.
45185         * modules/unictype/syntax-c-ident: New file.
45186         * modules/unictype/syntax-java-ident: New file.
45187         * modules/unictype/ctype-alnum: New file.
45188         * modules/unictype/ctype-alpha: New file.
45189         * modules/unictype/ctype-cntrl: New file.
45190         * modules/unictype/ctype-digit: New file.
45191         * modules/unictype/ctype-graph: New file.
45192         * modules/unictype/ctype-lower: New file.
45193         * modules/unictype/ctype-print: New file.
45194         * modules/unictype/ctype-punct: New file.
45195         * modules/unictype/ctype-space: New file.
45196         * modules/unictype/ctype-upper: New file.
45197         * modules/unictype/ctype-xdigit: New file.
45198         * modules/unictype/ctype-blank: New file.
45199         * lib/unictype/bidi_byname.c: New file.
45200         * lib/unictype/bidi_name.c: New file.
45201         * lib/unictype/bidi_of.c: New file.
45202         * lib/unictype/bidi_test.c: New file.
45203         * lib/unictype/bitmap.h: New file.
45204         * lib/unictype/block_test.c: New file.
45205         * lib/unictype/blocks.c: New file.
45206         * lib/unictype/categ_C.c: New file.
45207         * lib/unictype/categ_Cc.c: New file.
45208         * lib/unictype/categ_Cf.c: New file.
45209         * lib/unictype/categ_Cn.c: New file.
45210         * lib/unictype/categ_Co.c: New file.
45211         * lib/unictype/categ_Cs.c: New file.
45212         * lib/unictype/categ_L.c: New file.
45213         * lib/unictype/categ_Ll.c: New file.
45214         * lib/unictype/categ_Lm.c: New file.
45215         * lib/unictype/categ_Lo.c: New file.
45216         * lib/unictype/categ_Lt.c: New file.
45217         * lib/unictype/categ_Lu.c: New file.
45218         * lib/unictype/categ_M.c: New file.
45219         * lib/unictype/categ_Mc.c: New file.
45220         * lib/unictype/categ_Me.c: New file.
45221         * lib/unictype/categ_Mn.c: New file.
45222         * lib/unictype/categ_N.c: New file.
45223         * lib/unictype/categ_Nd.c: New file.
45224         * lib/unictype/categ_Nl.c: New file.
45225         * lib/unictype/categ_No.c: New file.
45226         * lib/unictype/categ_P.c: New file.
45227         * lib/unictype/categ_Pc.c: New file.
45228         * lib/unictype/categ_Pd.c: New file.
45229         * lib/unictype/categ_Pe.c: New file.
45230         * lib/unictype/categ_Pf.c: New file.
45231         * lib/unictype/categ_Pi.c: New file.
45232         * lib/unictype/categ_Po.c: New file.
45233         * lib/unictype/categ_Ps.c: New file.
45234         * lib/unictype/categ_S.c: New file.
45235         * lib/unictype/categ_Sc.c: New file.
45236         * lib/unictype/categ_Sk.c: New file.
45237         * lib/unictype/categ_Sm.c: New file.
45238         * lib/unictype/categ_So.c: New file.
45239         * lib/unictype/categ_Z.c: New file.
45240         * lib/unictype/categ_Zl.c: New file.
45241         * lib/unictype/categ_Zp.c: New file.
45242         * lib/unictype/categ_Zs.c: New file.
45243         * lib/unictype/categ_and.c: New file.
45244         * lib/unictype/categ_and_not.c: New file.
45245         * lib/unictype/categ_byname.c: New file.
45246         * lib/unictype/categ_name.c: New file.
45247         * lib/unictype/categ_none.c: New file.
45248         * lib/unictype/categ_of.c: New file.
45249         * lib/unictype/categ_or.c: New file.
45250         * lib/unictype/categ_test.c: New file.
45251         * lib/unictype/combining.c: New file.
45252         * lib/unictype/ctype_alnum.c: New file.
45253         * lib/unictype/ctype_alpha.c: New file.
45254         * lib/unictype/ctype_blank.c: New file.
45255         * lib/unictype/ctype_cntrl.c: New file.
45256         * lib/unictype/ctype_digit.c: New file.
45257         * lib/unictype/ctype_graph.c: New file.
45258         * lib/unictype/ctype_lower.c: New file.
45259         * lib/unictype/ctype_print.c: New file.
45260         * lib/unictype/ctype_punct.c: New file.
45261         * lib/unictype/ctype_space.c: New file.
45262         * lib/unictype/ctype_upper.c: New file.
45263         * lib/unictype/ctype_xdigit.c: New file.
45264         * lib/unictype/decdigit.c: New file.
45265         * lib/unictype/digit.c: New file.
45266         * lib/unictype/identsyntaxmap.h: New file.
45267         * lib/unictype/mirror.c: New file.
45268         * lib/unictype/numeric.c: New file.
45269         * lib/unictype/pr_alphabetic.c: New file.
45270         * lib/unictype/pr_ascii_hex_digit.c: New file.
45271         * lib/unictype/pr_bidi_arabic_digit.c: New file.
45272         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45273         * lib/unictype/pr_bidi_block_separator.c: New file.
45274         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45275         * lib/unictype/pr_bidi_common_separator.c: New file.
45276         * lib/unictype/pr_bidi_control.c: New file.
45277         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45278         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45279         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45280         * lib/unictype/pr_bidi_european_digit.c: New file.
45281         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45282         * lib/unictype/pr_bidi_left_to_right.c: New file.
45283         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45284         * lib/unictype/pr_bidi_other_neutral.c: New file.
45285         * lib/unictype/pr_bidi_pdf.c: New file.
45286         * lib/unictype/pr_bidi_segment_separator.c: New file.
45287         * lib/unictype/pr_bidi_whitespace.c: New file.
45288         * lib/unictype/pr_byname.c: New file.
45289         * lib/unictype/pr_byname.gperf: New file.
45290         * lib/unictype/pr_combining.c: New file.
45291         * lib/unictype/pr_composite.c: New file.
45292         * lib/unictype/pr_currency_symbol.c: New file.
45293         * lib/unictype/pr_dash.c: New file.
45294         * lib/unictype/pr_decimal_digit.c: New file.
45295         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45296         * lib/unictype/pr_deprecated.c: New file.
45297         * lib/unictype/pr_diacritic.c: New file.
45298         * lib/unictype/pr_extender.c: New file.
45299         * lib/unictype/pr_format_control.c: New file.
45300         * lib/unictype/pr_grapheme_base.c: New file.
45301         * lib/unictype/pr_grapheme_extend.c: New file.
45302         * lib/unictype/pr_grapheme_link.c: New file.
45303         * lib/unictype/pr_hex_digit.c: New file.
45304         * lib/unictype/pr_hyphen.c: New file.
45305         * lib/unictype/pr_id_continue.c: New file.
45306         * lib/unictype/pr_id_start.c: New file.
45307         * lib/unictype/pr_ideographic.c: New file.
45308         * lib/unictype/pr_ids_binary_operator.c: New file.
45309         * lib/unictype/pr_ids_trinary_operator.c: New file.
45310         * lib/unictype/pr_ignorable_control.c: New file.
45311         * lib/unictype/pr_iso_control.c: New file.
45312         * lib/unictype/pr_join_control.c: New file.
45313         * lib/unictype/pr_left_of_pair.c: New file.
45314         * lib/unictype/pr_line_separator.c: New file.
45315         * lib/unictype/pr_logical_order_exception.c: New file.
45316         * lib/unictype/pr_lowercase.c: New file.
45317         * lib/unictype/pr_math.c: New file.
45318         * lib/unictype/pr_non_break.c: New file.
45319         * lib/unictype/pr_not_a_character.c: New file.
45320         * lib/unictype/pr_numeric.c: New file.
45321         * lib/unictype/pr_other_alphabetic.c: New file.
45322         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
45323         * lib/unictype/pr_other_grapheme_extend.c: New file.
45324         * lib/unictype/pr_other_id_continue.c: New file.
45325         * lib/unictype/pr_other_id_start.c: New file.
45326         * lib/unictype/pr_other_lowercase.c: New file.
45327         * lib/unictype/pr_other_math.c: New file.
45328         * lib/unictype/pr_other_uppercase.c: New file.
45329         * lib/unictype/pr_paired_punctuation.c: New file.
45330         * lib/unictype/pr_paragraph_separator.c: New file.
45331         * lib/unictype/pr_pattern_syntax.c: New file.
45332         * lib/unictype/pr_pattern_white_space.c: New file.
45333         * lib/unictype/pr_private_use.c: New file.
45334         * lib/unictype/pr_punctuation.c: New file.
45335         * lib/unictype/pr_quotation_mark.c: New file.
45336         * lib/unictype/pr_radical.c: New file.
45337         * lib/unictype/pr_sentence_terminal.c: New file.
45338         * lib/unictype/pr_soft_dotted.c: New file.
45339         * lib/unictype/pr_space.c: New file.
45340         * lib/unictype/pr_terminal_punctuation.c: New file.
45341         * lib/unictype/pr_test.c: New file.
45342         * lib/unictype/pr_titlecase.c: New file.
45343         * lib/unictype/pr_unassigned_code_value.c: New file.
45344         * lib/unictype/pr_unified_ideograph.c: New file.
45345         * lib/unictype/pr_uppercase.c: New file.
45346         * lib/unictype/pr_variation_selector.c: New file.
45347         * lib/unictype/pr_white_space.c: New file.
45348         * lib/unictype/pr_xid_continue.c: New file.
45349         * lib/unictype/pr_xid_start.c: New file.
45350         * lib/unictype/pr_zero_width.c: New file.
45351         * lib/unictype/scripts.c: New file.
45352         * lib/unictype/sy_c_ident.c: New file.
45353         * lib/unictype/sy_c_whitespace.c: New file.
45354         * lib/unictype/sy_java_ident.c: New file.
45355         * lib/unictype/sy_java_whitespace.c: New file.
45356
45357         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
45358         Unicode 5.0.0.
45359         * lib/unictype/blocks.h: Likewise.
45360         * lib/unictype/categ_C.h: Likewise.
45361         * lib/unictype/categ_Cc.h: Likewise.
45362         * lib/unictype/categ_Cf.h: Likewise.
45363         * lib/unictype/categ_Cn.h: Likewise.
45364         * lib/unictype/categ_Co.h: Likewise.
45365         * lib/unictype/categ_Cs.h: Likewise.
45366         * lib/unictype/categ_L.h: Likewise.
45367         * lib/unictype/categ_Ll.h: Likewise.
45368         * lib/unictype/categ_Lm.h: Likewise.
45369         * lib/unictype/categ_Lo.h: Likewise.
45370         * lib/unictype/categ_Lt.h: Likewise.
45371         * lib/unictype/categ_Lu.h: Likewise.
45372         * lib/unictype/categ_M.h: Likewise.
45373         * lib/unictype/categ_Mc.h: Likewise.
45374         * lib/unictype/categ_Me.h: Likewise.
45375         * lib/unictype/categ_Mn.h: Likewise.
45376         * lib/unictype/categ_N.h: Likewise.
45377         * lib/unictype/categ_Nd.h: Likewise.
45378         * lib/unictype/categ_Nl.h: Likewise.
45379         * lib/unictype/categ_No.h: Likewise.
45380         * lib/unictype/categ_P.h: Likewise.
45381         * lib/unictype/categ_Pc.h: Likewise.
45382         * lib/unictype/categ_Pd.h: Likewise.
45383         * lib/unictype/categ_Pe.h: Likewise.
45384         * lib/unictype/categ_Pf.h: Likewise.
45385         * lib/unictype/categ_Pi.h: Likewise.
45386         * lib/unictype/categ_Po.h: Likewise.
45387         * lib/unictype/categ_Ps.h: Likewise.
45388         * lib/unictype/categ_S.h: Likewise.
45389         * lib/unictype/categ_Sc.h: Likewise.
45390         * lib/unictype/categ_Sk.h: Likewise.
45391         * lib/unictype/categ_Sm.h: Likewise.
45392         * lib/unictype/categ_So.h: Likewise.
45393         * lib/unictype/categ_Z.h: Likewise.
45394         * lib/unictype/categ_Zl.h: Likewise.
45395         * lib/unictype/categ_Zp.h: Likewise.
45396         * lib/unictype/categ_Zs.h: Likewise.
45397         * lib/unictype/categ_of.h: Likewise.
45398         * lib/unictype/combining.h: Likewise.
45399         * lib/unictype/ctype_alnum.h: Likewise.
45400         * lib/unictype/ctype_alpha.h: Likewise.
45401         * lib/unictype/ctype_blank.h: Likewise.
45402         * lib/unictype/ctype_cntrl.h: Likewise.
45403         * lib/unictype/ctype_digit.h: Likewise.
45404         * lib/unictype/ctype_graph.h: Likewise.
45405         * lib/unictype/ctype_lower.h: Likewise.
45406         * lib/unictype/ctype_print.h: Likewise.
45407         * lib/unictype/ctype_punct.h: Likewise.
45408         * lib/unictype/ctype_space.h: Likewise.
45409         * lib/unictype/ctype_upper.h: Likewise.
45410         * lib/unictype/ctype_xdigit.h: Likewise.
45411         * lib/unictype/decdigit.h: Likewise.
45412         * lib/unictype/digit.h: Likewise.
45413         * lib/unictype/mirror.h: Likewise.
45414         * lib/unictype/numeric.h: Likewise.
45415         * lib/unictype/pr_alphabetic.h: Likewise.
45416         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45417         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45418         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45419         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45420         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45421         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45422         * lib/unictype/pr_bidi_control.h: Likewise.
45423         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45424         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45425         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45426         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45427         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45428         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45429         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45430         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45431         * lib/unictype/pr_bidi_pdf.h: Likewise.
45432         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45433         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45434         * lib/unictype/pr_combining.h: Likewise.
45435         * lib/unictype/pr_composite.h: Likewise.
45436         * lib/unictype/pr_currency_symbol.h: Likewise.
45437         * lib/unictype/pr_dash.h: Likewise.
45438         * lib/unictype/pr_decimal_digit.h: Likewise.
45439         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45440         * lib/unictype/pr_deprecated.h: Likewise.
45441         * lib/unictype/pr_diacritic.h: Likewise.
45442         * lib/unictype/pr_extender.h: Likewise.
45443         * lib/unictype/pr_format_control.h: Likewise.
45444         * lib/unictype/pr_grapheme_base.h: Likewise.
45445         * lib/unictype/pr_grapheme_extend.h: Likewise.
45446         * lib/unictype/pr_grapheme_link.h: Likewise.
45447         * lib/unictype/pr_hex_digit.h: Likewise.
45448         * lib/unictype/pr_hyphen.h: Likewise.
45449         * lib/unictype/pr_id_continue.h: Likewise.
45450         * lib/unictype/pr_id_start.h: Likewise.
45451         * lib/unictype/pr_ideographic.h: Likewise.
45452         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45453         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45454         * lib/unictype/pr_ignorable_control.h: Likewise.
45455         * lib/unictype/pr_iso_control.h: Likewise.
45456         * lib/unictype/pr_join_control.h: Likewise.
45457         * lib/unictype/pr_left_of_pair.h: Likewise.
45458         * lib/unictype/pr_line_separator.h: Likewise.
45459         * lib/unictype/pr_logical_order_exception.h: Likewise.
45460         * lib/unictype/pr_lowercase.h: Likewise.
45461         * lib/unictype/pr_math.h: Likewise.
45462         * lib/unictype/pr_non_break.h: Likewise.
45463         * lib/unictype/pr_not_a_character.h: Likewise.
45464         * lib/unictype/pr_numeric.h: Likewise.
45465         * lib/unictype/pr_other_alphabetic.h: Likewise.
45466         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45467         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45468         * lib/unictype/pr_other_id_continue.h: Likewise.
45469         * lib/unictype/pr_other_id_start.h: Likewise.
45470         * lib/unictype/pr_other_lowercase.h: Likewise.
45471         * lib/unictype/pr_other_math.h: Likewise.
45472         * lib/unictype/pr_other_uppercase.h: Likewise.
45473         * lib/unictype/pr_paired_punctuation.h: Likewise.
45474         * lib/unictype/pr_paragraph_separator.h: Likewise.
45475         * lib/unictype/pr_pattern_syntax.h: Likewise.
45476         * lib/unictype/pr_pattern_white_space.h: Likewise.
45477         * lib/unictype/pr_private_use.h: Likewise.
45478         * lib/unictype/pr_punctuation.h: Likewise.
45479         * lib/unictype/pr_quotation_mark.h: Likewise.
45480         * lib/unictype/pr_radical.h: Likewise.
45481         * lib/unictype/pr_sentence_terminal.h: Likewise.
45482         * lib/unictype/pr_soft_dotted.h: Likewise.
45483         * lib/unictype/pr_space.h: Likewise.
45484         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45485         * lib/unictype/pr_titlecase.h: Likewise.
45486         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45487         * lib/unictype/pr_unified_ideograph.h: Likewise.
45488         * lib/unictype/pr_uppercase.h: Likewise.
45489         * lib/unictype/pr_variation_selector.h: Likewise.
45490         * lib/unictype/pr_white_space.h: Likewise.
45491         * lib/unictype/pr_xid_continue.h: Likewise.
45492         * lib/unictype/pr_xid_start.h: Likewise.
45493         * lib/unictype/pr_zero_width.h: Likewise.
45494         * lib/unictype/scripts.h: Likewise.
45495         * lib/unictype/scripts_byname.gperf: Likewise.
45496         * lib/unictype/sy_c_ident.h: Likewise.
45497         * lib/unictype/sy_c_whitespace.h: Likewise.
45498         * lib/unictype/sy_java_ident.h: Likewise.
45499         * lib/unictype/sy_java_whitespace.h: Likewise.
45500
45501         * lib/unictype/Makefile: New file.
45502         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45503         glibc.
45504         * lib/unictype/3level.h: New file, copied from glibc.
45505         * lib/unictype/3levelbit.h: New file.
45506
45507 2007-11-11  Bruno Haible  <bruno@clisp.org>
45508
45509         * modules/gperf: New file.
45510         * modules/iconv_open (Depends-on): Add it.
45511         (Makefile.am): Remove the GPERF definition.
45512
45513 2007-11-11  Bruno Haible  <bruno@clisp.org>
45514
45515         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45516         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45517
45518 2007-11-11  Bruno Haible  <bruno@clisp.org>
45519
45520         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45521         (usage): Remove function.
45522
45523 2007-11-11  Bruno Haible  <bruno@clisp.org>
45524
45525         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45526         gl_FUNC_CEILF_LIBS.
45527         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45528         gl_FUNC_CEIL_LIBS.
45529         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45530         gl_FUNC_CEILL_LIBS.
45531         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45532         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45533         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45534
45535 2007-11-11  Bruno Haible  <bruno@clisp.org>
45536
45537         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45538         roundf were declared but do not exist on functions.
45539         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45540         roundl were declared but do not exist on functions.
45541         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45542         HAVE_FLOORL_AND_CEILL, respectively.
45543         Needed for Sun C on Solaris 10.
45544
45545 2007-11-11  Bruno Haible  <bruno@clisp.org>
45546
45547         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45548         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45549         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45550         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45551         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45552         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45553         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45554         HAVE_DECL_ROUNDF.
45555         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45556         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45558         of HAVE_DECL_ROUND*.
45559         * modules/math (Makefile.am): Update.
45560
45561 2007-11-10  Bruno Haible  <bruno@clisp.org>
45562
45563         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45564         ptrdiff_t as m4/intl.m4.
45565
45566 2007-11-10  Jim Meyering  <meyering@redhat.com>
45567
45568         Avoid link failure for the argmatch test.
45569         * tests/test-argmatch.c (usage): Define function to avoid a link
45570         failure: argmatch_die requires a usage function.
45571
45572 2007-11-09  Bruno Haible  <bruno@clisp.org>
45573
45574         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45575         * doc/functions/vsnprintf.texi: Likewise.
45576         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45577         with a size argument < 2.
45578
45579 2007-11-09  Bruno Haible  <bruno@clisp.org>
45580
45581         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45582         buffer. Fixes an inefficiency introduced on 2007-11-03.
45583
45584 2007-11-09  Bruno Haible  <bruno@clisp.org>
45585
45586         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45587         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45588
45589 2007-11-08  Jim Meyering  <meyering@redhat.com>
45590
45591         Change cache variable name prefix "jm_" to "gl_" everywhere.
45592         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45593         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45594         * m4/uptime.m4: s/gl_/jm_/
45595
45596 2007-11-07  Bruno Haible  <bruno@clisp.org>
45597
45598         Update to GNU gettext 0.17.
45599         * m4/intl.m4: Update to GNU gettext 0.17.
45600         * m4/po.m4: Likewise.
45601         * modules/gettext (Files): Remove m4/ulonglong.m4.
45602         (configure.ac): Require gettext infrastructure from version 0.17.
45603
45604 2007-11-06  Bruno Haible  <bruno@clisp.org>
45605
45606         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45607         symbolic values are not defined in a public header.
45608         * lib/freadable.c (freadable) [QNX]: Likewise.
45609         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45610         * lib/freading.c (freading) [QNX]: Likewise.
45611         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45612         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45613         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45614         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45615         Reported by Alain Magloire.
45616
45617         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45618
45619 2007-11-05  Bruno Haible  <bruno@clisp.org>
45620
45621         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45622         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45623         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45624         Reported by Eric Blake.
45625
45626 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45627             Bruno Haible  <bruno@clisp.org>
45628
45629         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45630         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45631         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45632         (malloc): Undefine also before including <stdlib.h>.
45633         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45634         Needed on OSF/1 4.0.
45635
45636 2007-11-05  Jim Meyering  <meyering@redhat.com>
45637
45638         git-version-gen: sync from coreutils.
45639         * build-aux/git-version-gen: Add comments.
45640         Change the first '-' to '.' in the snapshot version string,
45641         e.g., 6.9-377-08144 -> 6.9.377-08144
45642         Remove first parameter.
45643         Don't declare a version "-dirty" merely because a time
45644         stamp has changed.
45645
45646 2007-11-04  Bruno Haible  <bruno@clisp.org>
45647
45648         * lib/lock.h: Protect all macro definitions containing an 'if'
45649         statement through a "do { ... } while (0)".
45650         * lib/tls.h: Likewise.
45651
45652 2007-11-04  Bruno Haible  <bruno@clisp.org>
45653
45654         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45655
45656 2007-11-04  Bruno Haible  <bruno@clisp.org>
45657
45658         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45659         * modules/fprintf-posix (Depends-on): Add nocrash.
45660         * modules/snprintf-posix (Depends-on): Likewise.
45661         * modules/sprintf-posix (Depends-on): Likewise.
45662         * modules/vasnprintf-posix (Depends-on): Likewise.
45663         * modules/vasprintf-posix (Depends-on): Likewise.
45664         * modules/vfprintf-posix (Depends-on): Likewise.
45665         * modules/vsnprintf-posix (Depends-on): Likewise.
45666         * modules/vsprintf-posix (Depends-on): Likewise.
45667         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45668         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45669         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45670         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45671         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45672         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45673         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45674
45675 2007-11-04  Bruno Haible  <bruno@clisp.org>
45676
45677         * modules/nocrash: New file.
45678         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45679         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45680
45681 2007-11-04  Bruno Haible  <bruno@clisp.org>
45682
45683         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45684         precision handling.
45685         * tests/test-vasprintf-posix.c (test_function): Likewise.
45686         * tests/test-snprintf-posix.h (test_function): Likewise.
45687         * tests/test-sprintf-posix.h (test_function): Likewise.
45688
45689         Fix *printf behaviour for large precisions on mingw and BeOS.
45690         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45691         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45692         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45693         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45694         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45695         gl_PRINTF_PRECISION and test its result. Invoke
45696         gl_PREREQ_VASNPRINTF_PRECISION.
45697         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45698         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45700         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45701         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45702         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45703         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45704         * doc/functions/fprintf.texi: Update.
45705         * doc/functions/printf.texi: Update.
45706         * doc/functions/snprintf.texi: Update.
45707         * doc/functions/sprintf.texi: Update.
45708         * doc/functions/vfprintf.texi: Update.
45709         * doc/functions/vprintf.texi: Update.
45710         * doc/functions/vsnprintf.texi: Update.
45711         * doc/functions/vsprintf.texi: Update.
45712
45713 2007-11-04  Bruno Haible  <bruno@clisp.org>
45714
45715         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45716
45717 2007-11-04  Bruno Haible  <bruno@clisp.org>
45718
45719         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45720         Reported by Sylvain Beucler <beuc@gnu.org>.
45721
45722 2007-11-03  Bruno Haible  <bruno@clisp.org>
45723
45724         * tests/test-fprintf-posix2.sh: New file.
45725         * tests/test-fprintf-posix2.c: New file.
45726         * modules/fprintf-posix-tests (Files): Add them.
45727         (TESTS): Add test-fprintf-posix2.sh.
45728         (configure.ac): Check for getrlimit and setrlimit.
45729         (check_PROGRAMS): Add test-fprintf-posix2.
45730
45731         * tests/test-printf-posix2.sh: New file.
45732         * tests/test-printf-posix2.c: New file.
45733         * modules/printf-posix-tests (Files): Add them.
45734         (TESTS): Add test-printf-posix2.sh.
45735         (configure.ac): Check for getrlimit and setrlimit.
45736         (check_PROGRAMS): Add test-printf-posix2.
45737
45738         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45739         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45740         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45741         (decode_double): New function, copied from decode_long_double.
45742         (scale10_round_decimal_decoded): New function, extracted from
45743         scale10_round_decimal_long_double.
45744         (scale10_round_decimal_long_double): Use it.
45745         (scale10_round_decimal_double): New function.
45746         (floorlog10): New function.
45747         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45749         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45750         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45751         gl_PRINTF_ENOMEM and test its result. Invoke
45752         gl_PREREQ_VASNPRINTF_ENOMEM.
45753         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45754         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45755         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45756         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45757         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45758         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45759         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45760         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45761         * modules/snprintf-posix (Depends-on): Likewise.
45762         * modules/sprintf-posix (Depends-on): Likewise.
45763         * modules/vasnprintf-posix (Depends-on): Likewise.
45764         * modules/vasprintf-posix (Depends-on): Likewise.
45765         * modules/vfprintf-posix (Depends-on): Likewise.
45766         * modules/vsnprintf-posix (Depends-on): Likewise.
45767         * modules/vsprintf-posix (Depends-on): Likewise.
45768         * doc/functions/fprintf.texi: Update.
45769         * doc/functions/printf.texi: Update.
45770         * doc/functions/snprintf.texi: Update.
45771         * doc/functions/sprintf.texi: Update.
45772         * doc/functions/vfprintf.texi: Update.
45773         * doc/functions/vprintf.texi: Update.
45774         * doc/functions/vsnprintf.texi: Update.
45775         * doc/functions/vsprintf.texi: Update.
45776
45777 2007-11-03  Bruno Haible  <bruno@clisp.org>
45778
45779         * modules/frexp-nolibm-tests: New file.
45780
45781         * modules/frexp-nolibm: New file.
45782         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45783
45784 2007-11-03  Bruno Haible  <bruno@clisp.org>
45785
45786         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45787         value is C99 compliant.
45788         Needed for OSF/1 5.1.
45789
45790 2007-11-03  Bruno Haible  <bruno@clisp.org>
45791
45792         Fix out-of-memory handling of vasnprintf.
45793         * lib/printf-parse.c: Include <errno.h>.
45794         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45795         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45796         is already set.
45797
45798 2007-11-02  Eric Blake  <ebb9@byu.net>
45799
45800         Fix tests on cygwin.
45801         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45802
45803 2007-11-01  Bruno Haible  <bruno@clisp.org>
45804
45805         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45806         warning.
45807         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45808         needed for POSIX compatibility.
45809
45810 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45811
45812         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45813         for compatibility with GNU.
45814
45815 2007-11-01  Bruno Haible  <bruno@clisp.org>
45816
45817         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45818         (putenv): Renamed from rpl_putenv. Change argument type from
45819         'const char *' to 'char *'.
45820         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45821         of defining putenv in config.h, just set REPLACE_PUTENV.
45822         * modules/putenv (Depends-on): Add stdlib.
45823         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45824         (Include): Use <stdlib.h>.
45825         * lib/stdlib.in.h (putenv): New declaration.
45826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45827         REPLACE_PUTENV.
45828         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45829         REPLACE_PUTENV.
45830         Needed for MacOS X 10.5.0.
45831         Reported by Peter O'Gorman <peter@pogma.com>.
45832
45833 2007-11-01  Jim Meyering  <meyering@redhat.com>
45834
45835         Treat an empty date string exactly like "0".
45836         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45837         if the remaining date string (to be parsed) is empty, use "0".
45838         Reported by Mischa Molhoek and discussed in this thread:
45839         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45840
45841 2007-10-31  Bruno Haible  <bruno@clisp.org>
45842
45843         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45844         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45845         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45846         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45847         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45848         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45849
45850 2007-10-31  Bruno Haible  <bruno@clisp.org>
45851
45852         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45853         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45854         (AC_TYPE_LONG_LONG_INT): Use it.
45855         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45856         it as well.
45857         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45858         to m4/longlong.m4.
45859         * modules/stdint (Files): Remove m4/ulonglong.m4.
45860         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45861         m4/ulonglong.m4.
45862         * modules/strtoumax (Files): Likewise.
45863
45864 2007-10-30  Bruno Haible  <bruno@clisp.org>
45865
45866         * modules/xvasprintf-posix: New file.
45867         Suggested by Eric Blake.
45868
45869 2007-10-30  Bruno Haible  <bruno@clisp.org>
45870
45871         * modules/xprintf-posix-tests: New file.
45872         * tests/test-xprintf-posix.sh: New file.
45873         * tests/test-xprintf-posix.c: New file.
45874         * tests/test-xfprintf-posix.c: New file.
45875
45876         * modules/xprintf-posix: New file.
45877
45878 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45879
45880         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45881         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45882         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45883
45884 2007-10-29  Bruno Haible  <bruno@clisp.org>
45885
45886         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45887         contain the special marker '_cv_'.
45888         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45889         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45890         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45891         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45892         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45893         Reported by Ralf Wildenhues.
45894
45895 2007-10-29  Bruno Haible  <bruno@clisp.org>
45896
45897         * gnulib-tool (func_import): When --lgpl is not specified, set
45898         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45899         GPLv3.
45900         Reported by Simon Josefsson.
45901
45902 2007-10-28  Bruno Haible  <bruno@clisp.org>
45903
45904         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45905         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45906         HAVE_DECL_ISFINITE.
45907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45908         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45909         HAVE_DECL_ISFINITE.
45910
45911 2007-10-28  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45914         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45915
45916 2007-10-28  Bruno Haible  <bruno@clisp.org>
45917
45918         Fix link errors with Sun C 5.0 on Solaris 10.
45919         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45920         function is declared but not present in the compiler's libm.
45921         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45922         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45923         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45924         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45925         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45926         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45927         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45929         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45930         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45931         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45932         HAVE_DECL_FLOORL.
45933
45934 2007-10-28  Bruno Haible  <bruno@clisp.org>
45935
45936         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45937         gl_FUNC_FLOORL. Cache the result.
45938         (gl_FUNC_FLOORL): Use it.
45939         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45940         gl_FUNC_CEILL. Cache the result.
45941         (gl_FUNC_CEILL): Use it.
45942
45943         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45944         gl_FUNC_FLOOR. Cache the result.
45945         (gl_FUNC_FLOOR): Use it.
45946         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45947         gl_FUNC_CEIL. Cache the result.
45948         (gl_FUNC_CEIL): Use it.
45949
45950         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45951         gl_FUNC_FLOORF. Cache the result.
45952         (gl_FUNC_FLOORF): Use it.
45953         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45954         gl_FUNC_CEILF. Cache the result.
45955         (gl_FUNC_CEILF): Use it.
45956
45957 2007-10-28  Bruno Haible  <bruno@clisp.org>
45958
45959         * gnulib-tool: Allow specifying the LGPL version number through
45960         --lgpl=2 or --lgpl=3.
45961         (func_usage): Document --lgpl with argument.
45962         Handle --lgpl=... arguments.
45963         (func_import): Recognize also gl_LGPL calls with an argument. When
45964         --lgpl=2 is used and the module's license is just LGPL, report an
45965         error. Set sed_transform_lib_file according to the lgpl variable. In
45966         the generated files, use --lgpl or gl_LGPL invocations with argument,
45967         if necessary.
45968         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45969         an LGPv2+ license.
45970         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45971         gl_LGPL macro.
45972
45973 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45974             Bruno Haible  <bruno@clisp.org>
45975
45976         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45977         (u16_uctomb_aux): Likewise.
45978         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45979         !HAVE_INLINE.
45980         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45981
45982 2007-10-28  Bruno Haible  <bruno@clisp.org>
45983
45984         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45985         Invoke AM_GETTEXT_OPTION if it exists.
45986         * modules/vasprintf: Likewise.
45987         * modules/verror: Likewise.
45988         * modules/xprintf: Likewise.
45989         * modules/xvasprintf: Likewise.
45990
45991 2007-10-27  Ben Pfaff  <blp@gnu.org>
45992
45993         * lib/math.in.h: Define isfinite macro and prototypes for
45994         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45995         implementations.
45996         * m4/math_h.m4: New substitutions for isfinite module.
45997         * lib/isfinite.c: New file.
45998         * m4/isfinite.m4: New file.
45999         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46000         * modules/isfinite: New file.
46001         * modules/isfinite-tests: New file.
46002         * tests/tests-isfinite.c: New file.
46003         * doc/functions/isfinite.texi: Mention isfinite module.
46004         * MODULES.html.sh: Mention new module.
46005
46006 2007-10-27  Ben Pfaff  <blp@gnu.org>
46007
46008         Ralf Wildenhues reported that Tru64 4.0D declares the round
46009         functions but does not have definitions.
46010         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46011         cannot be found in any library, set the output variable to
46012         "missing" instead of "".
46013         * m4/round.m4: Also use our substitute if we cannot find round in
46014         any library, even if it is declared.
46015         * m4/roundf.m4: Likewise for roundf.
46016         * m4/roundl.m4: Likewise for roundl.
46017         * lib/math.in.h: Undefine roundf, round, roundl before defining
46018         their replacements, to allow for hypothetical systems where these
46019         may be defined as macros but not available in libraries.
46020
46021 2007-10-27  Bruno Haible  <bruno@clisp.org>
46022
46023         * doc/gnulib.texi: Invoke @firstparagraphindent.
46024         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46025         changes in gnulib.
46026         (Source changes): New section.
46027
46028 2007-10-26  Bruno Haible  <bruno@clisp.org>
46029
46030         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46031         borrowed from autoconf.
46032
46033 2007-10-26  Bruno Haible  <bruno@clisp.org>
46034
46035         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46036         strerror returned the empty string. Needed on HP-UX 11.00.
46037
46038 2007-10-24  Micah Cowan  <micah@cowan.name>
46039
46040         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46041         * build-aux/bootstrap: Remove support for now-unnecessary option,
46042         --cvs-user, and envvars CVS_USER, CVS_RSH.
46043
46044 2007-10-24  Jim Meyering  <meyering@redhat.com>
46045
46046         Avoid diagnostics from sha1sum when there is no cached checksum.
46047         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46048         if the po.s1 file hasn't been created yet.
46049
46050         * build-aux/bootstrap: Sync from coreutils:
46051         2007-10-24  Jim Meyering  <meyering@redhat.com>
46052         Get gnulib from the git repository, not from an obsolete cvs one.
46053         * build-aux/bootstrap: Suggestion from Micah Cowan.
46054         2007-10-04  Jim Meyering  <jim@meyering.net>
46055         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46056         (update_po_files): Work also when there are no .po files in po/.
46057
46058 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46059
46060         * README: Append ".git" to git and cg examples.
46061         Problem reported by Benoit Sigoure.
46062
46063 2007-10-23  Micah Cowan  <micah@cowan.name>
46064
46065         * users.txt: Add wget.
46066
46067 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46068
46069         Fix linking of some unistdio tests on FreeBSD.
46070         * modules/unistdio/u16-vsnprintf-tests
46071         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46072         * modules/unistdio/u16-vsprintf-tests
46073         (test_u16_vsnprintf1_LDADD): Likewise.
46074         * modules/unistdio/u32-vsnprintf-tests
46075         (test_u32_vsnprintf1_LDADD): Likewise.
46076         * modules/unistdio/u32-vsprintf-tests
46077         (test_u32_vsprintf1_LDADD): Likewise.
46078         * modules/unistdio/u8-vsnprintf-tests
46079         (test_u8_vsnprintf1_LDADD): Likewise.
46080         * modules/unistdio/u8-vsprintf-tests
46081         (test_u8_vsprintf1_LDADD): Likewise.
46082         * modules/unistdio/ulc-vsnprintf-tests
46083         (test_ulc_vsnprintf1_LDADD): Likewise.
46084         * modules/unistdio/ulc-vsprintf-tests
46085         (test_ulc_vsprintf1_LDADD): Likewise.
46086
46087         Fix linking of some uniconv tests on FreeBSD.
46088         * modules/uniconv/u16-conv-from-enc-tests
46089         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46090         * modules/uniconv/u16-conv-to-enc-tests
46091         (test_u16_conv_to_enc_LDADD): Likewise.
46092         * modules/uniconv/u16-strconv-from-enc-tests
46093         (test_u16_strconv_from_enc_LDADD): Likewise.
46094         * modules/uniconv/u16-strconv-to-enc-tests
46095         (test_u16_strconv_to_enc_LDADD): Likewise.
46096         * modules/uniconv/u32-conv-from-enc-tests
46097         (test_u32_conv_from_enc_LDADD): Likewise.
46098         * modules/uniconv/u32-conv-to-enc-tests
46099         (test_u32_conv_to_enc_LDADD): Likewise.
46100         * modules/uniconv/u32-strconv-from-enc-tests
46101         (test_u32_strconv_from_enc_LDADD): Likewise.
46102         * modules/uniconv/u32-strconv-to-enc-tests
46103         (test_u32_strconv_to_enc_LDADD): Likewise.
46104         * modules/uniconv/u8-conv-from-enc-tests
46105         (test_u8_conv_from_enc_LDADD): Likewise.
46106         * modules/uniconv/u8-conv-to-enc-tests
46107         (test_u8_conv_to_enc_LDADD): Likewise.
46108         * modules/uniconv/u8-strconv-from-enc-tests
46109         (test_u8_strconv_from_enc_LDADD): Likewise.
46110         * modules/uniconv/u8-strconv-to-enc-tests
46111         (test_u8_strconv_to_enc_LDADD): Likewise.
46112
46113 2007-10-22  Bruno Haible  <bruno@clisp.org>
46114
46115         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46116         size.
46117
46118 2007-10-22  Eric Blake  <ebb9@byu.net>
46119
46120         Tweak x*printf documentation.
46121         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46122         variable name and comments.
46123         Suggested by Bruno Haible.
46124
46125 2007-10-22  Bruno Haible  <bruno@clisp.org>
46126
46127         * lib/acl.c (copy_acl): Fix file name in comment.
46128
46129 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46130
46131         Fix Tru64 problem with stdbool.h.
46132         * lib/stdbool.in.h (false, true):
46133         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46134         Don't declare as an enum in this situation; it runs afoul of Tru64.
46135         Problem reported by Steven M. Schweda in
46136         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46137
46138 2007-10-22  Eric Blake  <ebb9@byu.net>
46139
46140         Also wrap vf?printf.
46141         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46142         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46143         (xvprintf, xvfprintf): New functions.
46144
46145 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46146
46147         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46148         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46149
46150         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46151         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46152
46153 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46154
46155         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46156         by Bruno Haible.
46157
46158 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46159
46160         * lib/getloadavg.c
46161         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46162         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46163
46164         * tests/test-i-ring.c: Work for C89.
46165
46166 2007-10-22  Bruno Haible  <bruno@clisp.org>
46167
46168         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46169         -1u, in preprocessor expression, so that we don't test for the bug
46170         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46171         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46172
46173 2007-10-22  Eric Blake  <ebb9@byu.net>
46174
46175         * tests/test-yesno.sh: Silence stderr during test.
46176
46177 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46178
46179         * modules/crypto/gc-camellia: New file.
46180
46181         * m4/gc-camellia.m4: New file.
46182
46183         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46184
46185         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46186
46187 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46188
46189         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46190         --help to stdout.  Reported by sms@antinode.org (Steven
46191         M. Schweda).
46192
46193 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46194
46195         * users.txt: Fix link to libksba.
46196
46197 2007-10-21  Ben Pfaff  <blp@gnu.org>
46198
46199         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
46200         round.c roundf implementation that depends on floorf and ceilf to
46201         be tested unconditionally.
46202
46203 2007-10-21  Ben Pfaff  <blp@gnu.org>
46204
46205         * m4/check-libm-func.m4: Removed.
46206         * m4/check-math-lib.m4: New file.
46207         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
46208         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
46209         definition and lack of AC_LIBOBJ([roundf]).
46210         * m4/roundl.m4: Ditto, and similarly for roundl.
46211         * modules/round: Reference new m4 file.
46212         * modules/roundf: Ditto.
46213         * modules/roundl: Ditto.
46214         * tests/test-round2.c (main): Use ROUND instead of round.
46215         Bug report from Bruno Haible.
46216
46217 2007-10-21  Bruno Haible  <bruno@clisp.org>
46218
46219         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
46220         context.
46221
46222 2007-10-21  Bruno Haible  <bruno@clisp.org>
46223
46224         * tests/test-wcwidth.c (main): Allow negative result for some control
46225         characters.
46226
46227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
46228         Needed on OSF/1 5.1.
46229
46230 2007-10-21  Bruno Haible  <bruno@clisp.org>
46231
46232         * tests/test-floorf1.c: Include isnanf.h.
46233         (main): Use isnanf() instead of isnan().
46234         * tests/test-ceilf1.c: Include isnanf.h.
46235         (main): Use isnanf() instead of isnan().
46236         * tests/test-truncf1.c: Include isnanf.h.
46237         (main): Use isnanf() instead of isnan().
46238         * tests/test-roundf1.c: Include isnanf.h.
46239         (main): Use isnanf() instead of isnan().
46240
46241 2007-10-21  Eric Blake  <ebb9@byu.net>
46242
46243         * users.txt: Update URL for m4.
46244
46245 2007-10-21  Bruno Haible  <bruno@clisp.org>
46246
46247         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
46248
46249 2007-10-21  Bruno Haible  <bruno@clisp.org>
46250
46251         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
46252         Git's management files if the CVS files are not present.
46253
46254 2007-10-20  Bruno Haible  <bruno@clisp.org>
46255
46256         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
46257         gcc-3.4.x.
46258
46259 2007-10-20  Ben Pfaff  <blp@gnu.org>
46260
46261         * lib/math.in.h: Declare round, roundf, roundl if we are providing
46262         implementations.
46263         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
46264         * lib/round.c: New file.
46265         * lib/roundf.c: New file.
46266         * lib/roundl.c: New file.
46267         * m4/round.m4: New file.
46268         * m4/roundf.m4: New file.
46269         * m4/roundl.m4: New file.
46270         * m4/check-libm-func-m4: New file.
46271         * modules/math: Replace round, roundf, roundl related @VARS@ in
46272         math.in.h.
46273         * modules/round: New file.
46274         * modules/round-tests: New file.
46275         * modules/roundf: New file.
46276         * modules/roundf-tests: New file.
46277         * modules/roundl: New file.
46278         * modules/roundl-tests: New file.
46279         * tests/test-round1.c: New file.
46280         * tests/test-round2.c: New file.
46281         * tests/test-roundf1.c: New file.
46282         * tests/test-roundf2.c: New file.
46283         * tests/test-roundl.c: New file.
46284         * doc/functions/round.texi: Mention round module.
46285         * doc/functions/roundf.texi: Mention roundf module.
46286         * doc/functions/roundl.texi: Mention roundl module.
46287         * MODULES.html.sh: Mention new modules.
46288         Thanks to Bruno Haible for suggestions.
46289
46290 2007-10-20  Jim Meyering  <meyering@redhat.com>
46291
46292         * lib/xprintf.c: Include <config.h> unconditionally.
46293
46294         Change xprintf's license to GPL.
46295         * modules/xprintf (License): s/LGPL/GPL/, since this module
46296         depends on modules (exit and exitfail) which are GPL.
46297         Suggestion from Bruno Haible.
46298
46299         xprintf fixes.
46300         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46301         Use a clearer diagnostic.
46302         Patch from Bruno Haible.
46303
46304 2007-10-20  Bruno Haible  <bruno@clisp.org>
46305
46306         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46307         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46308         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46309
46310 2007-10-20  Bruno Haible  <bruno@clisp.org>
46311
46312         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
46313         precision in the comparison result > x - 1 or similar.
46314         * tests/test-ceilf2.c (correct_result_p): Likewise.
46315         * tests/test-truncf2.c (correct_result_p): Likewise.
46316         * tests/test-trunc2.c (correct_result_p): Likewise.
46317         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46318
46319 2007-10-20  Bruno Haible  <bruno@clisp.org>
46320
46321         * modules/ceil: New file.
46322         * m4/ceil.m4: New file.
46323         * doc/functions/ceil.texi: Mention the 'ceil' module.
46324
46325 2007-10-20  Bruno Haible  <bruno@clisp.org>
46326
46327         * modules/floor: New file.
46328         * m4/floor.m4: New file.
46329         * doc/functions/floor.texi: Mention the 'floor' module.
46330
46331 2007-10-20  Bruno Haible  <bruno@clisp.org>
46332
46333         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
46334         of %a.
46335         * modules/floorf-tests (Depends-on): Likewise.
46336         * modules/truncf-tests (Depends-on): Likewise.
46337         * modules/trunc-tests (Depends-on): Likewise.
46338         Reported by Ben Pfaff.
46339
46340 2007-10-19  Jim Meyering  <meyering@redhat.com>
46341
46342         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
46343         Don't bother testing specific errno values.  Just test ferror.
46344
46345         New module: xprintf
46346         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
46347
46348 2007-10-19  Bruno Haible  <bruno@clisp.org>
46349
46350         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
46351         syntax.
46352         * modules/javaexec (Makefile.am): Likewise.
46353         * modules/relocatable-prog (Makefile.am): Likewise.
46354         Suggested by Jim Meyering.
46355
46356 2007-10-18  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
46359         Reported by Jim Meyering.
46360
46361 2007-10-18  Eric Blake  <ebb9@byu.net>
46362
46363         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
46364
46365 2007-10-18  Bruno Haible  <bruno@clisp.org>
46366
46367         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
46368         the format string into writable memory. Needed in Fortify conditions.
46369
46370 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
46371             Bruno Haible  <bruno@clisp.org>
46372
46373         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
46374         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
46375         * modules/trim (Depends-on): Add mbchar.
46376         (configure.ac): Add gl_FUNC_MBRTOWC.
46377         (Makefile.am): Augment lib_SOURCES.
46378
46379 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46380
46381         Modify glob.c to use fstatat and dirfd, to simplify it.
46382         Suggested by Eric Blake.
46383         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46384         Don't include <stdbool.h>; not used.
46385         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46386         (link_exists_p): Simplify implementation, since we can now assume
46387         dirfd and fstatat.
46388         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46389
46390 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46391
46392         * gnulib-tool (func_get_dependencies): Fix sed script to
46393         match only tests.
46394
46395 2007-10-17  Bruno Haible  <bruno@clisp.org>
46396
46397         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46398         allow locale names without encoding suffix.
46399         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46400         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46401
46402 2007-10-16  Bruno Haible  <bruno@clisp.org>
46403
46404         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46405         * lib/getgroups.c (getgroups): Likewise.
46406         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46407
46408 2007-10-16  Bruno Haible  <bruno@clisp.org>
46409
46410         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46411         * modules/malloc-posix (License): Likewise.
46412         * modules/realloc-posix (License): Likewise.
46413         * modules/calloc-posix (License): Likewise.
46414         * modules/intprops (License): Change from GPL to LGPL, with
46415         Paul Eggert's approval.
46416
46417 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46418
46419         Merge glibc changes into lib/glob.c.
46420
46421         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46422         2007-10-15 04:59:03 UTC.  Here are the changes:
46423
46424         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46425
46426         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46427
46428         * lib/glob.c: Add some branch prediction throughout.
46429
46430         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46431
46432         [BZ #5103]
46433         * lib/glob.c (glob): Recognize patterns starting \/.
46434
46435         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46436
46437         [BZ #3996]
46438         * lib/glob.c (attribute_hidden): Define if not defined.
46439         (glob): Unescape dirname, filename or username when needed and not
46440         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46441         is NULL.  Handle unescaped [ in pattern without closing ].
46442         Don't pass GLOB_CHECK down to recursive glob for directories.
46443         (__glob_pattern_type): New function.
46444         (__glob_pattern_p): Implement using __glob_pattern_type.
46445         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46446         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46447         Remove unreachable code.
46448
46449         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46450
46451         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46452         explain why there are no leaks.
46453
46454         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46455
46456         [BZ #3253]
46457         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46458         time, rather allocate increasingly bigger arrays of pointers, if
46459         possible with alloca, if too large with malloc.
46460
46461 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46462
46463         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46464         Problem reported by H.Merijn Brand in
46465         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46466         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46467         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46468
46469 2007-10-15  Bruno Haible  <bruno@clisp.org>
46470
46471         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46472         with explicit rpl_ prefix.
46473         * lib/fopen.c (fopen): Likewise.
46474         * lib/freopen.c (freopen): Likewise.
46475         * lib/iconv.c (iconv): Likewise.
46476         * lib/iconv_close.c (iconv_close): Likewise.
46477
46478 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46479
46480         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46481
46482 2007-10-15  Bruno Haible  <bruno@clisp.org>
46483
46484         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46485         <stddef.h> instead of <stdlib.h> since we only need NULL.
46486         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46487
46488 2007-10-15  Bruno Haible  <bruno@clisp.org>
46489
46490         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46491         Replace paragraph talking about LIBOBJS.
46492         Reported by Colin Watson <cjwatson@debian.org>.
46493
46494 2007-10-15  Bruno Haible  <bruno@clisp.org>
46495
46496         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46497         <stdlib.h> before using NULL.
46498
46499 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46500
46501         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46502         Reported by Albert Chin <china@thewrittenword.com>.
46503
46504 2007-10-14  Bruno Haible  <bruno@clisp.org>
46505
46506         * modules/iconv_open-utf-tests: New file.
46507         * tests/test-iconv-utf.c: New file.
46508
46509         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46510         * modules/iconv_open-utf: New file.
46511         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46512         (iconv, iconv_close): New declarations.
46513         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46514         be defined.
46515         (iconv_open): Add special handling of conversion between UTF-8 and
46516         UTF-{16,32}{BE,LE}.
46517         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46518         * lib/iconv_close.c: New file.
46519         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46520         gl_FUNC_ICONV_OPEN.
46521         (gl_FUNC_ICONV_OPEN): Use it.
46522         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46523         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46524         and REPLACE_ICONV_UTF.
46525         * modules/iconv_open (Depends-on): Add c-strcase.
46526         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46527         ICONV_CONST.
46528         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46529
46530 2007-10-13  Albert Chin  <china@thewrittenword.com>
46531             Bruno Haible  <bruno@clisp.org>
46532
46533         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46534         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46535
46536 2007-10-13  Bruno Haible  <bruno@clisp.org>
46537
46538         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46539         defined, use the ISO C99 inline semantics.
46540         * lib/argp.h (ARGP_EI): Likewise.
46541
46542 2007-10-13  Bruno Haible  <bruno@clisp.org>
46543
46544         Handle 'inline' change in gcc 4.3.0.
46545         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46546         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46547         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46548         argp_fmtstream_point): Disable 'extern' declaration if the function
46549         definition is going to be provided inline.
46550         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46551         semantics, not the ISO C99 inline semantics.
46552         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46553         'extern' declaration if the function definition is going to be provided
46554         inline.
46555         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46556         the GNU C inline semantics, not the ISO C99 inline semantics. With
46557         GCC 4.2, avoid a warning.
46558
46559 2007-10-13  Bruno Haible  <bruno@clisp.org>
46560
46561         * lib/freading.h (freading): Enable the use of __freading for
46562         glibc >= 2.7.
46563         * lib/freading.c (freading): Likewise.
46564
46565 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46566
46567         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46568         "warning: C99 inline functions are not supported; using GNU89".
46569
46570 2007-10-12  Bruno Haible  <bruno@clisp.org>
46571
46572         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46573         of 2.
46574         * tests/test-ceilf2.c: New file.
46575         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46576
46577         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46578         * modules/ceilf-tests: Update.
46579
46580 2007-10-12  Bruno Haible  <bruno@clisp.org>
46581
46582         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46583         of 2.
46584         * tests/test-floorf2.c: New file.
46585         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46586
46587         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46588         * modules/floorf-tests: Update.
46589
46590 2007-10-12  Bruno Haible  <bruno@clisp.org>
46591
46592         * tests/test-trunc2.c: New file.
46593         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46594
46595         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46596         * modules/trunc-tests: Update.
46597
46598 2007-10-12  Bruno Haible  <bruno@clisp.org>
46599
46600         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46601         of 2.
46602         * tests/test-truncf2.c: New file.
46603         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46604
46605         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46606         * modules/truncf-tests: Update.
46607
46608 2007-10-11  Eric Blake  <ebb9@byu.net>
46609
46610         Don't claim strerror is broken on Interix.
46611         * doc/functions/strerror.texi (strerror): Known broken systems are
46612         now Solaris 8, and not Interix.
46613         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46614         Interix on cross-compile.
46615         Reported by Martin Koeppe in
46616         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46617
46618 2007-10-11  Bruno Haible  <bruno@clisp.org>
46619
46620         * modules/i-ring-tests: New file.
46621         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46622         instead of assert.
46623
46624 2007-10-11  Bruno Haible  <bruno@clisp.org>
46625
46626         * modules/filenamecat-tests: New file.
46627         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46628         * lib/filenamecat.c: Remove test code.
46629
46630 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46631
46632         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46633
46634         * lib/strerror.c: Include <string.h> always, to test interface,
46635         and to remove the need for the dummy.
46636         Include intprops.h to compute width instead of doing it ourselves
46637         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46638         (strerror): Define it to return NULL if there's no system strerror.
46639         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46640         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46641         ancient pre-strerror Unix systems well any more.  Saying "unknown
46642         system error" is enough.
46643         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46644         simpler strerror.c implementation.
46645         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46646         Simplify the tests to reflect the simpler strerror implementation.
46647         * modules/strerror (Depends-on): Add intprops.
46648
46649 2007-10-09  Eric Blake  <ebb9@byu.net>
46650
46651         Silence test-fpending.
46652         * modules/fpending-tests (Files): Add wrapper script.
46653         * tests/test-fpending.sh: New file.
46654
46655 2007-10-09  Bruno Haible  <bruno@clisp.org>
46656
46657         * MODULES.html.sh (func_module): Don't create a hyperlink for
46658         function names like 'printf_frexp'.
46659         (Misc): Add crc, memxor.
46660         (Characteristics of floating types): New section.
46661         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46662         isnanf-nolibm, signbit, trunc, truncf, truncl.
46663         (Enhancements for ISO C 99 functions): New subsection Input/output.
46664         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46665         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46666         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46667         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46668         (Enhancements for POSIX:2001 functions): Add chdir-long.
46669         (File system functions): Add areadlink, chdir-safer, read-file.
46670         Remove cycle-check.
46671         (File system as inode set): New section.
46672         (Date and time): Add gethrxtime.
46673         (Multithreading): Add openmp.
46674         (Internationalization functions): Add localename.
46675         (Unicode string functions): Add unistr/u*-mbsnlen.
46676         (Support for maintaining and releasing projects): Add git-version-gen.
46677         (Lone files): Remove directories.
46678
46679 2007-10-08  Ben Pfaff  <blp@gnu.org>
46680
46681         * lib/xmalloca.h: Fix typo in comment.
46682
46683 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46684
46685         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46686         when avoiding problems with integer overflow.  Use a portable test
46687         instead.
46688
46689 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46690
46691         * modules/dummy (License): Change to LGPLv2+.
46692         * modules/float (License): Likewise
46693         * modules/realloc (License): Likewise
46694         * modules/stdlib (License): Likewise
46695
46696 2007-10-07  Bruno Haible  <bruno@clisp.org>
46697
46698         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46699         * floor.c (TWO_MANT_DIG): Likewise.
46700         * ceil.c (TWO_MANT_DIG): Likewise.
46701         Reported by Ben Pfaff.
46702
46703 2007-10-07  Bruno Haible  <bruno@clisp.org>
46704
46705         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46706         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46707         * lib/frexp.c (FUNC): Likewise.
46708         * lib/printf-frexp.h (printf_frexp): Likewise.
46709         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46710         * lib/printf-frexp.c (FUNC): Likewise.
46711         Suggested by Jim Meyering.
46712
46713 2007-10-07  Jim Meyering  <meyering@redhat.com>
46714
46715         Make xnanosleep's integer overflow test more robust.
46716         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46717         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46718
46719 2007-10-07  Bruno Haible  <bruno@clisp.org>
46720
46721         * NEWS: Mention the license change.
46722
46723         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46724         abbreviations in the modules files.
46725
46726         Change copyright notice from GPLv2+ to GPLv3+.
46727         * README: Change copyright notice.
46728         * MODULES.html.sh: Likewise.
46729         * build-aux/bootstrap.conf: Likewise.
46730         * build-aux/config.libpath: Likewise.
46731         * build-aux/csharpcomp.sh.in: Likewise.
46732         * build-aux/csharpexec.sh.in: Likewise.
46733         * build-aux/install-reloc: Likewise.
46734         * build-aux/javacomp.sh.in: Likewise.
46735         * build-aux/javaexec.sh.in: Likewise.
46736         * build-aux/ldd.sh.in: Likewise.
46737         * build-aux/reloc-ldflags: Likewise.
46738         * build-aux/relocatable.sh.in: Likewise.
46739         * build-aux/x-to-1.in: Likewise.
46740         * check-module: Likewise.
46741         * config/srclistvars.sh: Likewise.
46742         * gnulib-tool: Likewise.
46743         * lib/acl-internal.h: Likewise.
46744         * lib/acl.c: Likewise.
46745         * lib/acl.h: Likewise.
46746         * lib/acl_entries.c: Likewise.
46747         * lib/areadlink-with-size.c: Likewise.
46748         * lib/areadlink.c: Likewise.
46749         * lib/areadlink.h: Likewise.
46750         * lib/argmatch.c: Likewise.
46751         * lib/argmatch.h: Likewise.
46752         * lib/argp-ba.c: Likewise.
46753         * lib/argp-eexst.c: Likewise.
46754         * lib/argp-fmtstream.c: Likewise.
46755         * lib/argp-fmtstream.h: Likewise.
46756         * lib/argp-fs-xinl.c: Likewise.
46757         * lib/argp-help.c: Likewise.
46758         * lib/argp-namefrob.h: Likewise.
46759         * lib/argp-parse.c: Likewise.
46760         * lib/argp-pin.c: Likewise.
46761         * lib/argp-pv.c: Likewise.
46762         * lib/argp-pvh.c: Likewise.
46763         * lib/argp-xinl.c: Likewise.
46764         * lib/argp.h: Likewise.
46765         * lib/at-func.c: Likewise.
46766         * lib/atanl.c: Likewise.
46767         * lib/backupfile.c: Likewise.
46768         * lib/backupfile.h: Likewise.
46769         * lib/basename.c: Likewise.
46770         * lib/binary-io.h: Likewise.
46771         * lib/byteswap.in.h: Likewise.
46772         * lib/c-stack.c: Likewise.
46773         * lib/c-stack.h: Likewise.
46774         * lib/c-strcasestr.c: Likewise.
46775         * lib/c-strcasestr.h: Likewise.
46776         * lib/c-strstr.c: Likewise.
46777         * lib/c-strstr.h: Likewise.
46778         * lib/c-strtod.c: Likewise.
46779         * lib/calloc.c: Likewise.
46780         * lib/canon-host.c: Likewise.
46781         * lib/canon-host.h: Likewise.
46782         * lib/canonicalize-lgpl.c: Likewise.
46783         * lib/canonicalize.c: Likewise.
46784         * lib/canonicalize.h: Likewise.
46785         * lib/ceil.c: Likewise.
46786         * lib/ceilf.c: Likewise.
46787         * lib/ceill.c: Likewise.
46788         * lib/chdir-long.c: Likewise.
46789         * lib/chdir-long.h: Likewise.
46790         * lib/chdir-safer.c: Likewise.
46791         * lib/chdir-safer.h: Likewise.
46792         * lib/chown.c: Likewise.
46793         * lib/classpath.c: Likewise.
46794         * lib/classpath.h: Likewise.
46795         * lib/clean-temp.c: Likewise.
46796         * lib/clean-temp.h: Likewise.
46797         * lib/cloexec.c: Likewise.
46798         * lib/close-stream.c: Likewise.
46799         * lib/closein.c: Likewise.
46800         * lib/closein.h: Likewise.
46801         * lib/closeout.c: Likewise.
46802         * lib/closeout.h: Likewise.
46803         * lib/concat-filename.c: Likewise.
46804         * lib/copy-file.c: Likewise.
46805         * lib/copy-file.h: Likewise.
46806         * lib/count-one-bits.h: Likewise.
46807         * lib/crc.c: Likewise.
46808         * lib/crc.h: Likewise.
46809         * lib/creat-safer.c: Likewise.
46810         * lib/csharpcomp.c: Likewise.
46811         * lib/csharpcomp.h: Likewise.
46812         * lib/csharpexec.c: Likewise.
46813         * lib/csharpexec.h: Likewise.
46814         * lib/cycle-check.c: Likewise.
46815         * lib/cycle-check.h: Likewise.
46816         * lib/diacrit.c: Likewise.
46817         * lib/diacrit.h: Likewise.
46818         * lib/diffseq.h: Likewise.
46819         * lib/dirchownmod.c: Likewise.
46820         * lib/dirent.in.h: Likewise.
46821         * lib/dirfd.c: Likewise.
46822         * lib/dirfd.h: Likewise.
46823         * lib/dirname.c: Likewise.
46824         * lib/dirname.h: Likewise.
46825         * lib/dummy.c: Likewise.
46826         * lib/dup-safer.c: Likewise.
46827         * lib/dup2.c: Likewise.
46828         * lib/eealloc.h: Likewise.
46829         * lib/error.c: Likewise.
46830         * lib/error.h: Likewise.
46831         * lib/euidaccess.c: Likewise.
46832         * lib/exclude.c: Likewise.
46833         * lib/exclude.h: Likewise.
46834         * lib/execute.c: Likewise.
46835         * lib/execute.h: Likewise.
46836         * lib/exitfail.c: Likewise.
46837         * lib/exitfail.h: Likewise.
46838         * lib/expl.c: Likewise.
46839         * lib/fatal-signal.c: Likewise.
46840         * lib/fatal-signal.h: Likewise.
46841         * lib/fbufmode.c: Likewise.
46842         * lib/fbufmode.h: Likewise.
46843         * lib/fchdir.c: Likewise.
46844         * lib/fchmodat.c: Likewise.
46845         * lib/fchownat.c: Likewise.
46846         * lib/fcntl--.h: Likewise.
46847         * lib/fcntl-safer.h: Likewise.
46848         * lib/fcntl.in.h: Likewise.
46849         * lib/fd-safer.c: Likewise.
46850         * lib/fflush.c: Likewise.
46851         * lib/file-has-acl.c: Likewise.
46852         * lib/file-set.c: Likewise.
46853         * lib/file-type.c: Likewise.
46854         * lib/file-type.h: Likewise.
46855         * lib/fileblocks.c: Likewise.
46856         * lib/filemode.c: Likewise.
46857         * lib/filemode.h: Likewise.
46858         * lib/filename.h: Likewise.
46859         * lib/filenamecat.c: Likewise.
46860         * lib/filenamecat.h: Likewise.
46861         * lib/findprog.c: Likewise.
46862         * lib/findprog.h: Likewise.
46863         * lib/float.in.h: Likewise.
46864         * lib/floor.c: Likewise.
46865         * lib/floorf.c: Likewise.
46866         * lib/floorl.c: Likewise.
46867         * lib/fopen-safer.c: Likewise.
46868         * lib/fopen.c: Likewise.
46869         * lib/fpending.c: Likewise.
46870         * lib/fpending.h: Likewise.
46871         * lib/fprintf.c: Likewise.
46872         * lib/fprintftime.h: Likewise.
46873         * lib/fpucw.h: Likewise.
46874         * lib/fpurge.c: Likewise.
46875         * lib/fpurge.h: Likewise.
46876         * lib/freadable.c: Likewise.
46877         * lib/freadable.h: Likewise.
46878         * lib/freadahead.c: Likewise.
46879         * lib/freadahead.h: Likewise.
46880         * lib/freading.c: Likewise.
46881         * lib/freading.h: Likewise.
46882         * lib/free.c: Likewise.
46883         * lib/freopen.c: Likewise.
46884         * lib/frexp.c: Likewise.
46885         * lib/frexpl.c: Likewise.
46886         * lib/fseek.c: Likewise.
46887         * lib/fseterr.c: Likewise.
46888         * lib/fseterr.h: Likewise.
46889         * lib/fstatat.c: Likewise.
46890         * lib/fstrcmp.c: Likewise.
46891         * lib/fstrcmp.h: Likewise.
46892         * lib/fsusage.c: Likewise.
46893         * lib/fsusage.h: Likewise.
46894         * lib/ftell.c: Likewise.
46895         * lib/ftello.c: Likewise.
46896         * lib/fts-cycle.c: Likewise.
46897         * lib/fts.c: Likewise.
46898         * lib/fts_.h: Likewise.
46899         * lib/full-read.c: Likewise.
46900         * lib/full-read.h: Likewise.
46901         * lib/full-write.c: Likewise.
46902         * lib/full-write.h: Likewise.
46903         * lib/fwritable.c: Likewise.
46904         * lib/fwritable.h: Likewise.
46905         * lib/fwriteerror.c: Likewise.
46906         * lib/fwriteerror.h: Likewise.
46907         * lib/fwriting.c: Likewise.
46908         * lib/fwriting.h: Likewise.
46909         * lib/gcd.c: Likewise.
46910         * lib/gcd.h: Likewise.
46911         * lib/getcwd.c: Likewise.
46912         * lib/getdate.h: Likewise.
46913         * lib/getdate.y: Likewise.
46914         * lib/getdomainname.c: Likewise.
46915         * lib/getdomainname.h: Likewise.
46916         * lib/getgroups.c: Likewise.
46917         * lib/gethostname.c: Likewise.
46918         * lib/gethrxtime.c: Likewise.
46919         * lib/gethrxtime.h: Likewise.
46920         * lib/getloadavg.c: Likewise.
46921         * lib/getndelim2.c: Likewise.
46922         * lib/getndelim2.h: Likewise.
46923         * lib/getnline.c: Likewise.
46924         * lib/getnline.h: Likewise.
46925         * lib/getopt.c: Likewise.
46926         * lib/getopt.in.h: Likewise.
46927         * lib/getopt1.c: Likewise.
46928         * lib/getopt_int.h: Likewise.
46929         * lib/getpagesize.h: Likewise.
46930         * lib/getsubopt.c: Likewise.
46931         * lib/gettime.c: Likewise.
46932         * lib/getugroups.c: Likewise.
46933         * lib/getugroups.h: Likewise.
46934         * lib/getusershell.c: Likewise.
46935         * lib/gl_anyavltree_list1.h: Likewise.
46936         * lib/gl_anyavltree_list2.h: Likewise.
46937         * lib/gl_anyhash_list1.h: Likewise.
46938         * lib/gl_anyhash_list2.h: Likewise.
46939         * lib/gl_anylinked_list1.h: Likewise.
46940         * lib/gl_anylinked_list2.h: Likewise.
46941         * lib/gl_anyrbtree_list1.h: Likewise.
46942         * lib/gl_anyrbtree_list2.h: Likewise.
46943         * lib/gl_anytree_list1.h: Likewise.
46944         * lib/gl_anytree_list2.h: Likewise.
46945         * lib/gl_anytree_oset.h: Likewise.
46946         * lib/gl_anytreehash_list1.h: Likewise.
46947         * lib/gl_anytreehash_list2.h: Likewise.
46948         * lib/gl_array_list.c: Likewise.
46949         * lib/gl_array_list.h: Likewise.
46950         * lib/gl_array_oset.c: Likewise.
46951         * lib/gl_array_oset.h: Likewise.
46952         * lib/gl_avltree_list.c: Likewise.
46953         * lib/gl_avltree_list.h: Likewise.
46954         * lib/gl_avltree_oset.c: Likewise.
46955         * lib/gl_avltree_oset.h: Likewise.
46956         * lib/gl_avltreehash_list.c: Likewise.
46957         * lib/gl_avltreehash_list.h: Likewise.
46958         * lib/gl_carray_list.c: Likewise.
46959         * lib/gl_carray_list.h: Likewise.
46960         * lib/gl_linked_list.c: Likewise.
46961         * lib/gl_linked_list.h: Likewise.
46962         * lib/gl_linkedhash_list.c: Likewise.
46963         * lib/gl_linkedhash_list.h: Likewise.
46964         * lib/gl_list.c: Likewise.
46965         * lib/gl_list.h: Likewise.
46966         * lib/gl_oset.c: Likewise.
46967         * lib/gl_oset.h: Likewise.
46968         * lib/gl_rbtree_list.c: Likewise.
46969         * lib/gl_rbtree_list.h: Likewise.
46970         * lib/gl_rbtree_oset.c: Likewise.
46971         * lib/gl_rbtree_oset.h: Likewise.
46972         * lib/gl_rbtreehash_list.c: Likewise.
46973         * lib/gl_rbtreehash_list.h: Likewise.
46974         * lib/gl_sublist.c: Likewise.
46975         * lib/gl_sublist.h: Likewise.
46976         * lib/group-member.c: Likewise.
46977         * lib/group-member.h: Likewise.
46978         * lib/hard-locale.c: Likewise.
46979         * lib/hard-locale.h: Likewise.
46980         * lib/hash-pjw.c: Likewise.
46981         * lib/hash-pjw.h: Likewise.
46982         * lib/hash-triple.c: Likewise.
46983         * lib/hash.c: Likewise.
46984         * lib/hash.h: Likewise.
46985         * lib/human.c: Likewise.
46986         * lib/human.h: Likewise.
46987         * lib/i-ring.c: Likewise.
46988         * lib/i-ring.h: Likewise.
46989         * lib/idcache.c: Likewise.
46990         * lib/imaxabs.c: Likewise.
46991         * lib/imaxdiv.c: Likewise.
46992         * lib/inet_pton.c: Likewise.
46993         * lib/inet_pton.h: Likewise.
46994         * lib/intprops.h: Likewise.
46995         * lib/inttostr.c: Likewise.
46996         * lib/inttostr.h: Likewise.
46997         * lib/inttypes.in.h: Likewise.
46998         * lib/isapipe.c: Likewise.
46999         * lib/isdir.c: Likewise.
47000         * lib/isnan.c: Likewise.
47001         * lib/isnan.h: Likewise.
47002         * lib/isnanf.c: Likewise.
47003         * lib/isnanf.h: Likewise.
47004         * lib/isnanl-nolibm.h: Likewise.
47005         * lib/isnanl.c: Likewise.
47006         * lib/isnanl.h: Likewise.
47007         * lib/javacomp.c: Likewise.
47008         * lib/javacomp.h: Likewise.
47009         * lib/javaexec.c: Likewise.
47010         * lib/javaexec.h: Likewise.
47011         * lib/javaversion.c: Likewise.
47012         * lib/javaversion.h: Likewise.
47013         * lib/javaversion.java: Likewise.
47014         * lib/lbrkprop.h: Likewise.
47015         * lib/lchmod.h: Likewise.
47016         * lib/lchown.c: Likewise.
47017         * lib/ldexpl.c: Likewise.
47018         * lib/linebreak.c: Likewise.
47019         * lib/linebreak.h: Likewise.
47020         * lib/linebuffer.c: Likewise.
47021         * lib/linebuffer.h: Likewise.
47022         * lib/locale.in.h: Likewise.
47023         * lib/logl.c: Likewise.
47024         * lib/long-options.c: Likewise.
47025         * lib/long-options.h: Likewise.
47026         * lib/lstat.c: Likewise.
47027         * lib/lstat.h: Likewise.
47028         * lib/math.in.h: Likewise.
47029         * lib/mbchar.c: Likewise.
47030         * lib/mbchar.h: Likewise.
47031         * lib/mbfile.h: Likewise.
47032         * lib/mbiter.h: Likewise.
47033         * lib/mbscasecmp.c: Likewise.
47034         * lib/mbscasestr.c: Likewise.
47035         * lib/mbschr.c: Likewise.
47036         * lib/mbscspn.c: Likewise.
47037         * lib/mbslen.c: Likewise.
47038         * lib/mbsncasecmp.c: Likewise.
47039         * lib/mbsnlen.c: Likewise.
47040         * lib/mbspbrk.c: Likewise.
47041         * lib/mbspcasecmp.c: Likewise.
47042         * lib/mbsrchr.c: Likewise.
47043         * lib/mbssep.c: Likewise.
47044         * lib/mbsspn.c: Likewise.
47045         * lib/mbsstr.c: Likewise.
47046         * lib/mbstok_r.c: Likewise.
47047         * lib/mbswidth.c: Likewise.
47048         * lib/mbswidth.h: Likewise.
47049         * lib/mbuiter.h: Likewise.
47050         * lib/memcasecmp.c: Likewise.
47051         * lib/memcasecmp.h: Likewise.
47052         * lib/memchr.c: Likewise.
47053         * lib/memcmp.c: Likewise.
47054         * lib/memcoll.c: Likewise.
47055         * lib/memcoll.h: Likewise.
47056         * lib/memcpy.c: Likewise.
47057         * lib/memrchr.c: Likewise.
47058         * lib/mkancesdirs.c: Likewise.
47059         * lib/mkdir-p.c: Likewise.
47060         * lib/mkdir-p.h: Likewise.
47061         * lib/mkdir.c: Likewise.
47062         * lib/mkdirat.c: Likewise.
47063         * lib/mkdtemp.c: Likewise.
47064         * lib/mkstemp-safer.c: Likewise.
47065         * lib/mkstemp.c: Likewise.
47066         * lib/modechange.c: Likewise.
47067         * lib/modechange.h: Likewise.
47068         * lib/mountlist.c: Likewise.
47069         * lib/mountlist.h: Likewise.
47070         * lib/mpsort.c: Likewise.
47071         * lib/nanosleep.c: Likewise.
47072         * lib/obstack.c: Likewise.
47073         * lib/obstack.h: Likewise.
47074         * lib/open-safer.c: Likewise.
47075         * lib/open.c: Likewise.
47076         * lib/openat-die.c: Likewise.
47077         * lib/openat-priv.h: Likewise.
47078         * lib/openat-proc.c: Likewise.
47079         * lib/openat.c: Likewise.
47080         * lib/openat.h: Likewise.
47081         * lib/pagealign_alloc.c: Likewise.
47082         * lib/pagealign_alloc.h: Likewise.
47083         * lib/physmem.c: Likewise.
47084         * lib/physmem.h: Likewise.
47085         * lib/pipe-safer.c: Likewise.
47086         * lib/pipe.c: Likewise.
47087         * lib/pipe.h: Likewise.
47088         * lib/posixtm.c: Likewise.
47089         * lib/posixtm.h: Likewise.
47090         * lib/posixver.c: Likewise.
47091         * lib/printf-frexp.c: Likewise.
47092         * lib/printf-frexp.h: Likewise.
47093         * lib/printf-frexpl.c: Likewise.
47094         * lib/printf-frexpl.h: Likewise.
47095         * lib/printf.c: Likewise.
47096         * lib/progname.c: Likewise.
47097         * lib/progname.h: Likewise.
47098         * lib/progreloc.c: Likewise.
47099         * lib/putenv.c: Likewise.
47100         * lib/quote.c: Likewise.
47101         * lib/quote.h: Likewise.
47102         * lib/quotearg.c: Likewise.
47103         * lib/quotearg.h: Likewise.
47104         * lib/raise.c: Likewise.
47105         * lib/readline.c: Likewise.
47106         * lib/readline.h: Likewise.
47107         * lib/readlink.c: Likewise.
47108         * lib/readtokens.c: Likewise.
47109         * lib/readtokens.h: Likewise.
47110         * lib/readtokens0.c: Likewise.
47111         * lib/readtokens0.h: Likewise.
47112         * lib/readutmp.c: Likewise.
47113         * lib/readutmp.h: Likewise.
47114         * lib/realloc.c: Likewise.
47115         * lib/relocwrapper.c: Likewise.
47116         * lib/rename-dest-slash.c: Likewise.
47117         * lib/rename.c: Likewise.
47118         * lib/rmdir.c: Likewise.
47119         * lib/rpmatch.c: Likewise.
47120         * lib/safe-read.c: Likewise.
47121         * lib/safe-read.h: Likewise.
47122         * lib/safe-write.c: Likewise.
47123         * lib/safe-write.h: Likewise.
47124         * lib/same-inode.h: Likewise.
47125         * lib/same.c: Likewise.
47126         * lib/same.h: Likewise.
47127         * lib/save-cwd.c: Likewise.
47128         * lib/save-cwd.h: Likewise.
47129         * lib/savedir.c: Likewise.
47130         * lib/savedir.h: Likewise.
47131         * lib/savewd.c: Likewise.
47132         * lib/savewd.h: Likewise.
47133         * lib/search.in.h: Likewise.
47134         * lib/setenv.c: Likewise.
47135         * lib/setenv.h: Likewise.
47136         * lib/settime.c: Likewise.
47137         * lib/sh-quote.c: Likewise.
47138         * lib/sh-quote.h: Likewise.
47139         * lib/sig2str.c: Likewise.
47140         * lib/sig2str.h: Likewise.
47141         * lib/signal.in.h: Likewise.
47142         * lib/signbitd.c: Likewise.
47143         * lib/signbitf.c: Likewise.
47144         * lib/signbitl.c: Likewise.
47145         * lib/sigprocmask.c: Likewise.
47146         * lib/sincosl.c: Likewise.
47147         * lib/sleep.c: Likewise.
47148         * lib/sprintf.c: Likewise.
47149         * lib/sqrtl.c: Likewise.
47150         * lib/stat-time.h: Likewise.
47151         * lib/stdio--.h: Likewise.
47152         * lib/stdio-safer.h: Likewise.
47153         * lib/stdlib--.h: Likewise.
47154         * lib/stdlib-safer.h: Likewise.
47155         * lib/stdlib.in.h: Likewise.
47156         * lib/stpcpy.c: Likewise.
47157         * lib/stpncpy.c: Likewise.
47158         * lib/strchrnul.c: Likewise.
47159         * lib/strcspn.c: Likewise.
47160         * lib/strerror.c: Likewise.
47161         * lib/strftime.c: Likewise.
47162         * lib/strftime.h: Likewise.
47163         * lib/striconveh.c: Likewise.
47164         * lib/striconveh.h: Likewise.
47165         * lib/striconveha.c: Likewise.
47166         * lib/striconveha.h: Likewise.
47167         * lib/stripslash.c: Likewise.
47168         * lib/strnlen1.c: Likewise.
47169         * lib/strnlen1.h: Likewise.
47170         * lib/strtod.c: Likewise.
47171         * lib/strtoimax.c: Likewise.
47172         * lib/strtok_r.c: Likewise.
47173         * lib/strtol.c: Likewise.
47174         * lib/strtoll.c: Likewise.
47175         * lib/strtoul.c: Likewise.
47176         * lib/strtoull.c: Likewise.
47177         * lib/sysexits.in.h: Likewise.
47178         * lib/tempname.c: Likewise.
47179         * lib/tempname.h: Likewise.
47180         * lib/timespec.h: Likewise.
47181         * lib/tls.c: Likewise.
47182         * lib/tls.h: Likewise.
47183         * lib/tmpdir.c: Likewise.
47184         * lib/tmpdir.h: Likewise.
47185         * lib/tmpfile-safer.c: Likewise.
47186         * lib/tmpfile.c: Likewise.
47187         * lib/trigl.c: Likewise.
47188         * lib/trigl.h: Likewise.
47189         * lib/trim.c: Likewise.
47190         * lib/trim.h: Likewise.
47191         * lib/trunc.c: Likewise.
47192         * lib/truncf.c: Likewise.
47193         * lib/truncl.c: Likewise.
47194         * lib/tsearch.c: Likewise.
47195         * lib/unicodeio.c: Likewise.
47196         * lib/unicodeio.h: Likewise.
47197         * lib/unistd--.h: Likewise.
47198         * lib/unistd-safer.h: Likewise.
47199         * lib/unistdio/ulc-fprintf.c: Likewise.
47200         * lib/unistdio/ulc-vfprintf.c: Likewise.
47201         * lib/unlinkdir.c: Likewise.
47202         * lib/unlinkdir.h: Likewise.
47203         * lib/unlocked-io.h: Likewise.
47204         * lib/unsetenv.c: Likewise.
47205         * lib/userspec.c: Likewise.
47206         * lib/utime.c: Likewise.
47207         * lib/utimecmp.c: Likewise.
47208         * lib/utimecmp.h: Likewise.
47209         * lib/utimens.c: Likewise.
47210         * lib/verify.h: Likewise.
47211         * lib/verror.c: Likewise.
47212         * lib/verror.h: Likewise.
47213         * lib/version-etc-fsf.c: Likewise.
47214         * lib/version-etc.c: Likewise.
47215         * lib/version-etc.h: Likewise.
47216         * lib/vfprintf.c: Likewise.
47217         * lib/vprintf.c: Likewise.
47218         * lib/vsprintf.c: Likewise.
47219         * lib/w32spawn.h: Likewise.
47220         * lib/wait-process.c: Likewise.
47221         * lib/wait-process.h: Likewise.
47222         * lib/wcwidth.c: Likewise.
47223         * lib/write-any-file.c: Likewise.
47224         * lib/xalloc-die.c: Likewise.
47225         * lib/xalloc.h: Likewise.
47226         * lib/xasprintf.c: Likewise.
47227         * lib/xgetcwd.c: Likewise.
47228         * lib/xgetcwd.h: Likewise.
47229         * lib/xgetdomainname.c: Likewise.
47230         * lib/xgetdomainname.h: Likewise.
47231         * lib/xgethostname.c: Likewise.
47232         * lib/xmalloc.c: Likewise.
47233         * lib/xmalloca.c: Likewise.
47234         * lib/xmalloca.h: Likewise.
47235         * lib/xmemcoll.c: Likewise.
47236         * lib/xnanosleep.c: Likewise.
47237         * lib/xreadlink.c: Likewise.
47238         * lib/xreadlink.h: Likewise.
47239         * lib/xsetenv.c: Likewise.
47240         * lib/xsetenv.h: Likewise.
47241         * lib/xstriconv.c: Likewise.
47242         * lib/xstriconv.h: Likewise.
47243         * lib/xstrndup.c: Likewise.
47244         * lib/xstrndup.h: Likewise.
47245         * lib/xstrtod.c: Likewise.
47246         * lib/xstrtod.h: Likewise.
47247         * lib/xstrtol-error.c: Likewise.
47248         * lib/xstrtol.c: Likewise.
47249         * lib/xstrtol.h: Likewise.
47250         * lib/xtime.h: Likewise.
47251         * lib/xvasprintf.c: Likewise.
47252         * lib/xvasprintf.h: Likewise.
47253         * lib/yesno.c: Likewise.
47254         * lib/yesno.h: Likewise.
47255         * posix-modules: Likewise.
47256         * tests/test-alloca-opt.c: Likewise.
47257         * tests/test-arcfour.c: Likewise.
47258         * tests/test-arctwo.c: Likewise.
47259         * tests/test-argmatch.c: Likewise.
47260         * tests/test-argp-2.sh: Likewise.
47261         * tests/test-argp.c: Likewise.
47262         * tests/test-arpa_inet.c: Likewise.
47263         * tests/test-array_list.c: Likewise.
47264         * tests/test-array_oset.c: Likewise.
47265         * tests/test-atexit.c: Likewise.
47266         * tests/test-avltree_list.c: Likewise.
47267         * tests/test-avltree_oset.c: Likewise.
47268         * tests/test-avltreehash_list.c: Likewise.
47269         * tests/test-base64.c: Likewise.
47270         * tests/test-binary-io.c: Likewise.
47271         * tests/test-byteswap.c: Likewise.
47272         * tests/test-c-ctype.c: Likewise.
47273         * tests/test-c-strcasecmp.c: Likewise.
47274         * tests/test-c-strcasestr.c: Likewise.
47275         * tests/test-c-strncasecmp.c: Likewise.
47276         * tests/test-c-strstr.c: Likewise.
47277         * tests/test-canonicalize-lgpl.c: Likewise.
47278         * tests/test-canonicalize.c: Likewise.
47279         * tests/test-carray_list.c: Likewise.
47280         * tests/test-ceilf.c: Likewise.
47281         * tests/test-ceill.c: Likewise.
47282         * tests/test-count-one-bits.c: Likewise.
47283         * tests/test-crc.c: Likewise.
47284         * tests/test-dirname.c: Likewise.
47285         * tests/test-fbufmode.c: Likewise.
47286         * tests/test-fcntl.c: Likewise.
47287         * tests/test-fflush.c: Likewise.
47288         * tests/test-floorf.c: Likewise.
47289         * tests/test-floorl.c: Likewise.
47290         * tests/test-fopen.c: Likewise.
47291         * tests/test-fprintf-posix.c: Likewise.
47292         * tests/test-fprintf-posix.h: Likewise.
47293         * tests/test-fpurge.c: Likewise.
47294         * tests/test-freadable.c: Likewise.
47295         * tests/test-freadahead.c: Likewise.
47296         * tests/test-freading.c: Likewise.
47297         * tests/test-freopen.c: Likewise.
47298         * tests/test-frexp.c: Likewise.
47299         * tests/test-frexpl.c: Likewise.
47300         * tests/test-fseek.c: Likewise.
47301         * tests/test-fseeko.c: Likewise.
47302         * tests/test-fseterr.c: Likewise.
47303         * tests/test-fstrcmp.c: Likewise.
47304         * tests/test-ftell.c: Likewise.
47305         * tests/test-ftello.c: Likewise.
47306         * tests/test-fwritable.c: Likewise.
47307         * tests/test-fwriting.c: Likewise.
47308         * tests/test-getaddrinfo.c: Likewise.
47309         * tests/test-getpass.c: Likewise.
47310         * tests/test-gettimeofday.c: Likewise.
47311         * tests/test-hmac-md5.c: Likewise.
47312         * tests/test-hmac-sha1.c: Likewise.
47313         * tests/test-iconv.c: Likewise.
47314         * tests/test-iconvme.c: Likewise.
47315         * tests/test-inttypes.c: Likewise.
47316         * tests/test-isnan.c: Likewise.
47317         * tests/test-isnanf.c: Likewise.
47318         * tests/test-isnanl-nolibm.c: Likewise.
47319         * tests/test-isnanl.c: Likewise.
47320         * tests/test-isnanl.h: Likewise.
47321         * tests/test-ldexpl.c: Likewise.
47322         * tests/test-linked_list.c: Likewise.
47323         * tests/test-linkedhash_list.c: Likewise.
47324         * tests/test-locale.c: Likewise.
47325         * tests/test-localename.c: Likewise.
47326         * tests/test-lock.c: Likewise.
47327         * tests/test-lseek.c: Likewise.
47328         * tests/test-malloca.c: Likewise.
47329         * tests/test-math.c: Likewise.
47330         * tests/test-mbscasecmp.c: Likewise.
47331         * tests/test-mbscasestr1.c: Likewise.
47332         * tests/test-mbscasestr2.c: Likewise.
47333         * tests/test-mbscasestr3.c: Likewise.
47334         * tests/test-mbscasestr4.c: Likewise.
47335         * tests/test-mbschr.c: Likewise.
47336         * tests/test-mbscspn.c: Likewise.
47337         * tests/test-mbsncasecmp.c: Likewise.
47338         * tests/test-mbspbrk.c: Likewise.
47339         * tests/test-mbspcasecmp.c: Likewise.
47340         * tests/test-mbsrchr.c: Likewise.
47341         * tests/test-mbsspn.c: Likewise.
47342         * tests/test-mbsstr1.c: Likewise.
47343         * tests/test-mbsstr2.c: Likewise.
47344         * tests/test-mbsstr3.c: Likewise.
47345         * tests/test-md5.c: Likewise.
47346         * tests/test-memmem.c: Likewise.
47347         * tests/test-netinet_in.c: Likewise.
47348         * tests/test-open.c: Likewise.
47349         * tests/test-printf-frexp.c: Likewise.
47350         * tests/test-printf-frexpl.c: Likewise.
47351         * tests/test-printf-posix.c: Likewise.
47352         * tests/test-printf-posix.h: Likewise.
47353         * tests/test-rbtree_list.c: Likewise.
47354         * tests/test-rbtree_oset.c: Likewise.
47355         * tests/test-rbtreehash_list.c: Likewise.
47356         * tests/test-read-file.c: Likewise.
47357         * tests/test-rijndael.c: Likewise.
47358         * tests/test-search.c: Likewise.
47359         * tests/test-signbit.c: Likewise.
47360         * tests/test-sleep.c: Likewise.
47361         * tests/test-snprintf-posix.c: Likewise.
47362         * tests/test-snprintf-posix.h: Likewise.
47363         * tests/test-snprintf.c: Likewise.
47364         * tests/test-sprintf-posix.c: Likewise.
47365         * tests/test-sprintf-posix.h: Likewise.
47366         * tests/test-stat-time.c: Likewise.
47367         * tests/test-stdbool.c: Likewise.
47368         * tests/test-stdint.c: Likewise.
47369         * tests/test-stdio.c: Likewise.
47370         * tests/test-stdlib.c: Likewise.
47371         * tests/test-stpncpy.c: Likewise.
47372         * tests/test-strcasestr.c: Likewise.
47373         * tests/test-striconv.c: Likewise.
47374         * tests/test-striconveh.c: Likewise.
47375         * tests/test-striconveha.c: Likewise.
47376         * tests/test-string.c: Likewise.
47377         * tests/test-sys_select.c: Likewise.
47378         * tests/test-sys_socket.c: Likewise.
47379         * tests/test-sys_stat.c: Likewise.
47380         * tests/test-sys_time.c: Likewise.
47381         * tests/test-sysexits.c: Likewise.
47382         * tests/test-time.c: Likewise.
47383         * tests/test-tls.c: Likewise.
47384         * tests/test-trunc.c: Likewise.
47385         * tests/test-truncf.c: Likewise.
47386         * tests/test-truncl.c: Likewise.
47387         * tests/test-unistd.c: Likewise.
47388         * tests/test-vasnprintf-posix.c: Likewise.
47389         * tests/test-vasnprintf-posix2.c: Likewise.
47390         * tests/test-vasnprintf.c: Likewise.
47391         * tests/test-vasprintf-posix.c: Likewise.
47392         * tests/test-vasprintf.c: Likewise.
47393         * tests/test-verify.c: Likewise.
47394         * tests/test-vfprintf-posix.c: Likewise.
47395         * tests/test-vprintf-posix.c: Likewise.
47396         * tests/test-vsnprintf-posix.c: Likewise.
47397         * tests/test-vsnprintf.c: Likewise.
47398         * tests/test-vsprintf-posix.c: Likewise.
47399         * tests/test-wchar.c: Likewise.
47400         * tests/test-wctype.c: Likewise.
47401         * tests/test-wcwidth.c: Likewise.
47402         * tests/test-xstrtol.c: Likewise.
47403         * tests/test-xvasprintf.c: Likewise.
47404         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47405         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47406         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47407         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47408         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47409         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47410         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47411         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47412         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47413         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47414         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47415         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47416         * tests/uniname/test-uninames.c: Likewise.
47417         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47418         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47419         * tests/unistdio/test-u16-printf1.h: Likewise.
47420         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47421         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47422         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47423         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47424         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47425         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47426         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47427         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47428         * tests/unistdio/test-u32-printf1.h: Likewise.
47429         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47430         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47431         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47432         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47433         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47434         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47435         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47436         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47437         * tests/unistdio/test-u8-printf1.h: Likewise.
47438         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47439         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47440         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47441         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47442         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47443         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47444         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47445         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47446         * tests/unistdio/test-ulc-printf1.h: Likewise.
47447         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47448         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47449         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47450         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47451         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47452         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47453         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47454         * tests/uniwidth/test-u16-width.c: Likewise.
47455         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47456         * tests/uniwidth/test-u32-width.c: Likewise.
47457         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47458         * tests/uniwidth/test-u8-width.c: Likewise.
47459         * tests/uniwidth/test-uc_width.c: Likewise.
47460         * config/srclist-update: Likewise.
47461         (fixlicense): Update to GPLv3+.
47462
47463         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47464         * tests/test-tsearch.c: Change copyright notice.
47465
47466         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47467         * lib/c-strcaseeq.h: Change copyright notice.
47468         * lib/streq.h: Likewise.
47469         * lib/uniconv.h: Likewise.
47470         * lib/uniconv/u-conv-from-enc.h: Likewise.
47471         * lib/uniconv/u-conv-to-enc.h: Likewise.
47472         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47473         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47474         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47475         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47476         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47477         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47478         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47479         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47480         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47481         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47482         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47483         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47484         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47485         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47486         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47487         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47488         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47489         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47490         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47491         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47492         * lib/uniname.h: Likewise.
47493         * lib/uniname/uniname.c: Likewise.
47494         * lib/unistdio.h: Likewise.
47495         * lib/unistdio/u-asnprintf.h: Likewise.
47496         * lib/unistdio/u-asprintf.h: Likewise.
47497         * lib/unistdio/u-printf-args.c: Likewise.
47498         * lib/unistdio/u-printf-args.h: Likewise.
47499         * lib/unistdio/u-printf-parse.h: Likewise.
47500         * lib/unistdio/u-snprintf.h: Likewise.
47501         * lib/unistdio/u-sprintf.h: Likewise.
47502         * lib/unistdio/u-vasprintf.h: Likewise.
47503         * lib/unistdio/u-vsnprintf.h: Likewise.
47504         * lib/unistdio/u-vsprintf.h: Likewise.
47505         * lib/unistdio/u16-asnprintf.c: Likewise.
47506         * lib/unistdio/u16-asprintf.c: Likewise.
47507         * lib/unistdio/u16-printf-parse.c: Likewise.
47508         * lib/unistdio/u16-snprintf.c: Likewise.
47509         * lib/unistdio/u16-sprintf.c: Likewise.
47510         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47511         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47512         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47513         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47514         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47515         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47516         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47517         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47518         * lib/unistdio/u16-vasnprintf.c: Likewise.
47519         * lib/unistdio/u16-vasprintf.c: Likewise.
47520         * lib/unistdio/u16-vsnprintf.c: Likewise.
47521         * lib/unistdio/u16-vsprintf.c: Likewise.
47522         * lib/unistdio/u32-asnprintf.c: Likewise.
47523         * lib/unistdio/u32-asprintf.c: Likewise.
47524         * lib/unistdio/u32-printf-parse.c: Likewise.
47525         * lib/unistdio/u32-snprintf.c: Likewise.
47526         * lib/unistdio/u32-sprintf.c: Likewise.
47527         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47528         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47529         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47530         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47531         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47532         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47533         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47534         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47535         * lib/unistdio/u32-vasnprintf.c: Likewise.
47536         * lib/unistdio/u32-vasprintf.c: Likewise.
47537         * lib/unistdio/u32-vsnprintf.c: Likewise.
47538         * lib/unistdio/u32-vsprintf.c: Likewise.
47539         * lib/unistdio/u8-asnprintf.c: Likewise.
47540         * lib/unistdio/u8-asprintf.c: Likewise.
47541         * lib/unistdio/u8-printf-parse.c: Likewise.
47542         * lib/unistdio/u8-snprintf.c: Likewise.
47543         * lib/unistdio/u8-sprintf.c: Likewise.
47544         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47545         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47546         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47547         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47548         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47549         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47550         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47551         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47552         * lib/unistdio/u8-vasnprintf.c: Likewise.
47553         * lib/unistdio/u8-vasprintf.c: Likewise.
47554         * lib/unistdio/u8-vsnprintf.c: Likewise.
47555         * lib/unistdio/u8-vsprintf.c: Likewise.
47556         * lib/unistdio/ulc-asnprintf.c: Likewise.
47557         * lib/unistdio/ulc-asprintf.c: Likewise.
47558         * lib/unistdio/ulc-printf-parse.c: Likewise.
47559         * lib/unistdio/ulc-snprintf.c: Likewise.
47560         * lib/unistdio/ulc-sprintf.c: Likewise.
47561         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47562         * lib/unistdio/ulc-vasprintf.c: Likewise.
47563         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47564         * lib/unistdio/ulc-vsprintf.c: Likewise.
47565         * lib/unistr.h: Likewise.
47566         * lib/unistr/u-cpy-alloc.h: Likewise.
47567         * lib/unistr/u-cpy.h: Likewise.
47568         * lib/unistr/u-endswith.h: Likewise.
47569         * lib/unistr/u-move.h: Likewise.
47570         * lib/unistr/u-set.h: Likewise.
47571         * lib/unistr/u-startswith.h: Likewise.
47572         * lib/unistr/u-stpcpy.h: Likewise.
47573         * lib/unistr/u-stpncpy.h: Likewise.
47574         * lib/unistr/u-strcat.h: Likewise.
47575         * lib/unistr/u-strcpy.h: Likewise.
47576         * lib/unistr/u-strcspn.h: Likewise.
47577         * lib/unistr/u-strdup.h: Likewise.
47578         * lib/unistr/u-strlen.h: Likewise.
47579         * lib/unistr/u-strncat.h: Likewise.
47580         * lib/unistr/u-strncpy.h: Likewise.
47581         * lib/unistr/u-strnlen.h: Likewise.
47582         * lib/unistr/u-strpbrk.h: Likewise.
47583         * lib/unistr/u-strspn.h: Likewise.
47584         * lib/unistr/u-strstr.h: Likewise.
47585         * lib/unistr/u-strtok.h: Likewise.
47586         * lib/unistr/u16-check.c: Likewise.
47587         * lib/unistr/u16-chr.c: Likewise.
47588         * lib/unistr/u16-cmp.c: Likewise.
47589         * lib/unistr/u16-cpy-alloc.c: Likewise.
47590         * lib/unistr/u16-cpy.c: Likewise.
47591         * lib/unistr/u16-endswith.c: Likewise.
47592         * lib/unistr/u16-mblen.c: Likewise.
47593         * lib/unistr/u16-mbsnlen.c: Likewise.
47594         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47595         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47596         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47597         * lib/unistr/u16-mbtouc.c: Likewise.
47598         * lib/unistr/u16-mbtoucr.c: Likewise.
47599         * lib/unistr/u16-move.c: Likewise.
47600         * lib/unistr/u16-next.c: Likewise.
47601         * lib/unistr/u16-prev.c: Likewise.
47602         * lib/unistr/u16-set.c: Likewise.
47603         * lib/unistr/u16-startswith.c: Likewise.
47604         * lib/unistr/u16-stpcpy.c: Likewise.
47605         * lib/unistr/u16-stpncpy.c: Likewise.
47606         * lib/unistr/u16-strcat.c: Likewise.
47607         * lib/unistr/u16-strchr.c: Likewise.
47608         * lib/unistr/u16-strcmp.c: Likewise.
47609         * lib/unistr/u16-strcpy.c: Likewise.
47610         * lib/unistr/u16-strcspn.c: Likewise.
47611         * lib/unistr/u16-strdup.c: Likewise.
47612         * lib/unistr/u16-strlen.c: Likewise.
47613         * lib/unistr/u16-strmblen.c: Likewise.
47614         * lib/unistr/u16-strmbtouc.c: Likewise.
47615         * lib/unistr/u16-strncat.c: Likewise.
47616         * lib/unistr/u16-strncmp.c: Likewise.
47617         * lib/unistr/u16-strncpy.c: Likewise.
47618         * lib/unistr/u16-strnlen.c: Likewise.
47619         * lib/unistr/u16-strpbrk.c: Likewise.
47620         * lib/unistr/u16-strrchr.c: Likewise.
47621         * lib/unistr/u16-strspn.c: Likewise.
47622         * lib/unistr/u16-strstr.c: Likewise.
47623         * lib/unistr/u16-strtok.c: Likewise.
47624         * lib/unistr/u16-to-u32.c: Likewise.
47625         * lib/unistr/u16-to-u8.c: Likewise.
47626         * lib/unistr/u16-uctomb-aux.c: Likewise.
47627         * lib/unistr/u16-uctomb.c: Likewise.
47628         * lib/unistr/u32-check.c: Likewise.
47629         * lib/unistr/u32-chr.c: Likewise.
47630         * lib/unistr/u32-cmp.c: Likewise.
47631         * lib/unistr/u32-cpy-alloc.c: Likewise.
47632         * lib/unistr/u32-cpy.c: Likewise.
47633         * lib/unistr/u32-endswith.c: Likewise.
47634         * lib/unistr/u32-mblen.c: Likewise.
47635         * lib/unistr/u32-mbsnlen.c: Likewise.
47636         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47637         * lib/unistr/u32-mbtouc.c: Likewise.
47638         * lib/unistr/u32-mbtoucr.c: Likewise.
47639         * lib/unistr/u32-move.c: Likewise.
47640         * lib/unistr/u32-next.c: Likewise.
47641         * lib/unistr/u32-prev.c: Likewise.
47642         * lib/unistr/u32-set.c: Likewise.
47643         * lib/unistr/u32-startswith.c: Likewise.
47644         * lib/unistr/u32-stpcpy.c: Likewise.
47645         * lib/unistr/u32-stpncpy.c: Likewise.
47646         * lib/unistr/u32-strcat.c: Likewise.
47647         * lib/unistr/u32-strchr.c: Likewise.
47648         * lib/unistr/u32-strcmp.c: Likewise.
47649         * lib/unistr/u32-strcpy.c: Likewise.
47650         * lib/unistr/u32-strcspn.c: Likewise.
47651         * lib/unistr/u32-strdup.c: Likewise.
47652         * lib/unistr/u32-strlen.c: Likewise.
47653         * lib/unistr/u32-strmblen.c: Likewise.
47654         * lib/unistr/u32-strmbtouc.c: Likewise.
47655         * lib/unistr/u32-strncat.c: Likewise.
47656         * lib/unistr/u32-strncmp.c: Likewise.
47657         * lib/unistr/u32-strncpy.c: Likewise.
47658         * lib/unistr/u32-strnlen.c: Likewise.
47659         * lib/unistr/u32-strpbrk.c: Likewise.
47660         * lib/unistr/u32-strrchr.c: Likewise.
47661         * lib/unistr/u32-strspn.c: Likewise.
47662         * lib/unistr/u32-strstr.c: Likewise.
47663         * lib/unistr/u32-strtok.c: Likewise.
47664         * lib/unistr/u32-to-u16.c: Likewise.
47665         * lib/unistr/u32-to-u8.c: Likewise.
47666         * lib/unistr/u32-uctomb.c: Likewise.
47667         * lib/unistr/u8-check.c: Likewise.
47668         * lib/unistr/u8-chr.c: Likewise.
47669         * lib/unistr/u8-cmp.c: Likewise.
47670         * lib/unistr/u8-cpy-alloc.c: Likewise.
47671         * lib/unistr/u8-cpy.c: Likewise.
47672         * lib/unistr/u8-endswith.c: Likewise.
47673         * lib/unistr/u8-mblen.c: Likewise.
47674         * lib/unistr/u8-mbsnlen.c: Likewise.
47675         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47676         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47677         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47678         * lib/unistr/u8-mbtouc.c: Likewise.
47679         * lib/unistr/u8-mbtoucr.c: Likewise.
47680         * lib/unistr/u8-move.c: Likewise.
47681         * lib/unistr/u8-next.c: Likewise.
47682         * lib/unistr/u8-prev.c: Likewise.
47683         * lib/unistr/u8-set.c: Likewise.
47684         * lib/unistr/u8-startswith.c: Likewise.
47685         * lib/unistr/u8-stpcpy.c: Likewise.
47686         * lib/unistr/u8-stpncpy.c: Likewise.
47687         * lib/unistr/u8-strcat.c: Likewise.
47688         * lib/unistr/u8-strchr.c: Likewise.
47689         * lib/unistr/u8-strcmp.c: Likewise.
47690         * lib/unistr/u8-strcpy.c: Likewise.
47691         * lib/unistr/u8-strcspn.c: Likewise.
47692         * lib/unistr/u8-strdup.c: Likewise.
47693         * lib/unistr/u8-strlen.c: Likewise.
47694         * lib/unistr/u8-strmblen.c: Likewise.
47695         * lib/unistr/u8-strmbtouc.c: Likewise.
47696         * lib/unistr/u8-strncat.c: Likewise.
47697         * lib/unistr/u8-strncmp.c: Likewise.
47698         * lib/unistr/u8-strncpy.c: Likewise.
47699         * lib/unistr/u8-strnlen.c: Likewise.
47700         * lib/unistr/u8-strpbrk.c: Likewise.
47701         * lib/unistr/u8-strrchr.c: Likewise.
47702         * lib/unistr/u8-strspn.c: Likewise.
47703         * lib/unistr/u8-strstr.c: Likewise.
47704         * lib/unistr/u8-strtok.c: Likewise.
47705         * lib/unistr/u8-to-u16.c: Likewise.
47706         * lib/unistr/u8-to-u32.c: Likewise.
47707         * lib/unistr/u8-uctomb-aux.c: Likewise.
47708         * lib/unistr/u8-uctomb.c: Likewise.
47709         * lib/unitypes.h: Likewise.
47710         * lib/uniwidth.h: Likewise.
47711         * lib/uniwidth/cjk.h: Likewise.
47712         * lib/uniwidth/u16-strwidth.c: Likewise.
47713         * lib/uniwidth/u16-width.c: Likewise.
47714         * lib/uniwidth/u32-strwidth.c: Likewise.
47715         * lib/uniwidth/u32-width.c: Likewise.
47716         * lib/uniwidth/u8-strwidth.c: Likewise.
47717         * lib/uniwidth/u8-width.c: Likewise.
47718         * lib/uniwidth/width.c: Likewise.
47719
47720 2007-10-07  Bruno Haible  <bruno@clisp.org>
47721
47722         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47723         The file is still under LGPL (see modules/inttypes).
47724
47725 2007-10-06  Bruno Haible  <bruno@clisp.org>
47726
47727         * modules/trunc (Dependencies): Add 'extensions'.
47728         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47729         Reported by Ben Pfaff <blp@gnu.org>.
47730
47731 2007-10-06  Bruno Haible  <bruno@clisp.org>
47732
47733         * modules/freopen-tests: New file.
47734         * tests/test-freopen.c: New file.
47735
47736         * modules/fopen-tests: New file.
47737         * tests/test-fopen.c: New file.
47738
47739         * modules/fopen: New file.
47740         * lib/fopen.c: New file.
47741         * m4/fopen.m4: New file.
47742         * modules/freopen: New file.
47743         * lib/freopen.c: New file.
47744         * m4/freopen.m4: New file.
47745         * lib/stdio.in.h (fopen, freopen): New declarations.
47746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47747         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47748         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47749         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47750         * doc/functions/fopen.texi: Mention the 'fopen' module.
47751         * doc/functions/freopen.texi: Mention the 'freopen' module.
47752
47753 2007-10-06  Bruno Haible  <bruno@clisp.org>
47754
47755         * modules/open-tests: New file.
47756         * tests/test-open.c: New file.
47757
47758         * modules/open: New file.
47759         * lib/open.c: New file.
47760         * m4/open.m4: New file.
47761         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47762         lib/open.c does.
47763         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47764         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47765         macros.
47766         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47767         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47768         REPLACE_OPEN.
47769         * doc/functions/open.texi: Mention the 'open' module.
47770
47771 2007-10-04  Bruno Haible  <bruno@clisp.org>
47772
47773         * modules/ceill-tests: New file.
47774         * tests/test-ceill.c: New file.
47775
47776         * modules/ceill: New file.
47777         * lib/ceill.c: Replace entire file.
47778         * m4/ceill.m4: New file.
47779         * lib/math.in.h (ceill): Replace declaration.
47780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47781         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47782         * doc/functions/ceill.texi: Mention the 'ceill' module.
47783         * modules/mathl (Files): Remove lib/ceill.c.
47784         (Depends-on): Add ceill.
47785
47786 2007-10-04  Bruno Haible  <bruno@clisp.org>
47787
47788         * modules/ceilf-tests: New file.
47789         * tests/test-ceilf.c: New file.
47790
47791         * modules/ceilf: New file.
47792         * lib/ceil.c: New file.
47793         * lib/ceilf.c: New file.
47794         * m4/ceilf.m4: New file.
47795         * lib/math.in.h (ceilf): New declaration.
47796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47797         HAVE_DECL_CEILF.
47798         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47799         HAVE_DECL_CEILF.
47800         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47801
47802 2007-10-04  Bruno Haible  <bruno@clisp.org>
47803
47804         * modules/floorl-tests: New file.
47805         * tests/test-floorl.c: New file.
47806
47807         * modules/floorl: New file.
47808         * lib/floorl.c: Replace entire file.
47809         * m4/floorl.m4: New file.
47810         * lib/math.in.h (floorl): Replace declaration.
47811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47812         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47813         * doc/functions/floorl.texi: Mention the 'floorl' module.
47814         * modules/mathl (Files): Remove lib/floorl.c.
47815         (Depends-on): Add floorl.
47816
47817 2007-10-04  Bruno Haible  <bruno@clisp.org>
47818
47819         * modules/floorf-tests: New file.
47820         * tests/test-floorf.c: New file.
47821
47822         * modules/floorf: New file.
47823         * lib/floor.c: New file.
47824         * lib/floorf.c: New file.
47825         * m4/floorf.m4: New file.
47826         * lib/math.in.h (floorf): New declaration.
47827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47828         HAVE_DECL_FLOORF.
47829         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47830         HAVE_DECL_FLOORF.
47831         * doc/functions/floorf.texi: Mention the 'floorf' module.
47832
47833 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47834             Bruno Haible  <bruno@clisp.org>
47835
47836         Advertise for the Git server instead of the CVS server.
47837         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47838         repository instead of the CVS one.
47839         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47840         about all VCS systems generically.
47841         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47842
47843 2007-10-04  Bruno Haible  <bruno@clisp.org>
47844
47845         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47846         means.
47847         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47848
47849 2007-10-04  Bruno Haible  <bruno@clisp.org>
47850
47851         * modules/truncl-tests: New file.
47852         * tests/test-truncl.c: New file.
47853
47854         * modules/truncl: New file.
47855         * lib/truncl.c: New file.
47856         * m4/truncl.m4: New file.
47857         * lib/math.in.h (truncl): New declaration.
47858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47859         HAVE_DECL_TRUNCL.
47860         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47861         HAVE_DECL_TRUNCL.
47862         * doc/functions/truncl.texi: Mention the 'truncl' module.
47863
47864 2007-10-04  Bruno Haible  <bruno@clisp.org>
47865
47866         * modules/truncf-tests: New file.
47867         * tests/test-truncf.c: New file.
47868
47869         * modules/truncf: New file.
47870         * lib/trunc.c: Make paramerizable through USE_* macros.
47871         * lib/truncf.c: New file.
47872         * m4/truncf.m4: New file.
47873         * lib/math.in.h (truncf): New declaration.
47874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47875         HAVE_DECL_TRUNCF.
47876         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47877         HAVE_DECL_TRUNCF.
47878         * doc/functions/truncf.texi: Mention the 'truncf' module.
47879
47880 2007-10-03  Bruno Haible  <bruno@clisp.org>
47881
47882         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47883         augmentation also for tests modules.
47884         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47885         * modules/atexit-tests (Makefile.am): Likewise.
47886         * modules/binary-io-tests (Makefile.am): Likewise.
47887         * modules/c-strcase-tests (Makefile.am): Likewise.
47888         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47889         * modules/canonicalize-tests (Makefile.am): Likewise.
47890         * modules/closein-tests (Makefile.am): Likewise.
47891         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47892         * modules/freadahead-tests (Makefile.am): Likewise.
47893         * modules/fseek-tests (Makefile.am): Likewise.
47894         * modules/fseeko-tests (Makefile.am): Likewise.
47895         * modules/ftell-tests (Makefile.am): Likewise.
47896         * modules/ftello-tests (Makefile.am): Likewise.
47897         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47898         * modules/isnanl-tests (Makefile.am): Likewise.
47899         * modules/lseek-tests (Makefile.am): Likewise.
47900         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47901         * modules/mbscasestr-tests (Makefile.am): Likewise.
47902         * modules/mbschr-tests (Makefile.am): Likewise.
47903         * modules/mbscspn-tests (Makefile.am): Likewise.
47904         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47905         * modules/mbspbrk-tests (Makefile.am): Likewise.
47906         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47907         * modules/mbsrchr-tests (Makefile.am): Likewise.
47908         * modules/mbsspn-tests (Makefile.am): Likewise.
47909         * modules/mbsstr-tests (Makefile.am): Likewise.
47910         * modules/printf-posix-tests (Makefile.am): Likewise.
47911         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47912         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47913         * modules/tsearch-tests (Makefile.am): Likewise.
47914         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47915         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47916         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47917         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47918         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47919         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47920         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47921         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47922         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47923         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47924         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47925         * modules/xstrtol-tests (Makefile.am): Likewise.
47926         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47927         * modules/yesno-tests (Makefile.am): Likewise.
47928
47929 2007-10-03  Bruno Haible  <bruno@clisp.org>
47930
47931         * modules/trunc-tests: New file.
47932         * tests/test-trunc.c: New file.
47933
47934         * modules/trunc: New file.
47935         * lib/trunc.c: New file.
47936         * m4/trunc.m4: New file.
47937         * lib/math.in.h (trunc): New declaration.
47938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47939         HAVE_DECL_TRUNC.
47940         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47941         HAVE_DECL_TRUNC.
47942         * doc/functions/trunc.texi: Mention the 'trunc' module.
47943
47944 2007-10-03  Bruno Haible  <bruno@clisp.org>
47945
47946         * tests/test-fpending.c: New file, mostly copied
47947         from coreutils/lib/t-fpending.c.
47948         * modules/fpending-tests: New file.
47949
47950 2007-10-03  Bruno Haible  <bruno@clisp.org>
47951
47952         Port the stdio extensions to QNX (untested).
47953         * lib/fseterr.c (fseterr): Add support for QNX.
47954         * lib/fbufmode.c (fbufmode): Likewise.
47955         * lib/freadable.c (freadable): Likewise.
47956         * lib/fwritable.c (fwritable): Likewise.
47957         * lib/freading.c (freading): Likewise.
47958         * lib/fwriting.c (fwriting): Likewise.
47959         * lib/freadahead.c (freadahed): Likewise.
47960         * lib/fpurge.c (fpurge): Likewise.
47961         * lib/fseeko.c (rpl_fseeko): Likewise.
47962
47963 2007-10-03  Bruno Haible  <bruno@clisp.org>
47964             Jim Meyering  <jim@meyering.net>
47965             Eric Blake  <ebb9@byu.net>
47966
47967         * doc/relocatable.texi: Use @command instead of @program.
47968
47969 2007-10-02  Jim Meyering  <jim@meyering.net>
47970
47971         Perform one more "_.h" -> ".in.h" substitution.
47972         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47973         instead of unistd_.h here, too.
47974
47975 2007-10-01  Bruno Haible  <bruno@clisp.org>
47976
47977         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47978         Needed for the alloca-opt module.
47979
47980 2007-09-30  Bruno Haible  <bruno@clisp.org>
47981
47982         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47983         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47984         alloca_.h.
47985         * lib/argz.in.h: Renamed from lib/argz_.h.
47986         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47987         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47988         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47989         byteswap_.h.
47990         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47991         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47992         dirent_.h.
47993         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47994         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47995         fcntl_.h.
47996         * lib/float.in.h: Renamed from lib/float_.h.
47997         * modules/float (Files, Makefile.am): Use float.in.h instead of
47998         float_.h.
47999         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48000         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48001         fnmatch_.h.
48002         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48003         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48004         getopt_.h.
48005         * lib/glob.in.h: Renamed from lib/glob_.h.
48006         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48007         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48008         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48009         iconv_.h.
48010         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48011         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48012         inttypes_.h.
48013         * lib/locale.in.h: Renamed from lib/locale_.h.
48014         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48015         locale_.h.
48016         * lib/math.in.h: Renamed from lib/math_.h.
48017         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48018         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48019         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48020         of netinet_in_.h. Add dependency.
48021         * lib/poll.in.h: Renamed from lib/poll_.h.
48022         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48023         * lib/search.in.h: Renamed from lib/search_.h.
48024         * modules/search (Files, Makefile.am): Use search.in.h instead of
48025         search_.h.
48026         * lib/signal.in.h: Renamed from lib/signal_.h.
48027         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48028         _signal.h.
48029         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48030         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48031         stdbool_.h.
48032         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48033         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48034         stdint_.h.
48035         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48036         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48037         stdio_.h.
48038         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48039         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48040         stdlib_.h.
48041         * lib/string.in.h: Renamed from lib/string_.h.
48042         * modules/string (Files, Makefile.am): Use string.in.h instead of
48043         string_.h.
48044         * doc/gnulib-tool.texi (Initial import): Update.
48045         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48046         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48047         of sys_select_.h. Add dependency.
48048         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48049         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48050         of sys_socket_.h.
48051         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48052         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48053         sys_stat_.h.
48054         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48055         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48056         sys_time_.h.
48057         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48058         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48059         sysexits_.h.
48060         * lib/time.in.h: Renamed from lib/time_.h.
48061         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48062         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48063         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48064         unistd_.h.
48065         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48066         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48067         wchar_.h.
48068         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48069         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48070         wctype_.h.
48071         * build-aux/bootstrap (slurp): Update.
48072         * lib/.cppi-disable: Update.
48073
48074 2007-09-30  Bruno Haible  <bruno@clisp.org>
48075
48076         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48077         Needed on BeOS.
48078
48079 2007-09-30  Bruno Haible  <bruno@clisp.org>
48080
48081         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48082
48083 2007-09-29  Bruno Haible  <bruno@clisp.org>
48084
48085         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48086
48087 2007-09-29  Bruno Haible  <bruno@clisp.org>
48088
48089         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48090         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48091         * build-aux/install-reloc: Compile also areadlink.c.
48092         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48093
48094 2007-09-29  Bruno Haible  <bruno@clisp.org>
48095
48096         * gnulib-tool (func_emit_initmacro_done): Indentation.
48097
48098 2007-09-29  Bruno Haible  <bruno@clisp.org>
48099
48100         * README: Add CVS checkout update instructions.
48101         Info from Bob Proulx <bob@proulx.com>.
48102
48103 2007-09-28  Eric Blake  <ebb9@byu.net>
48104
48105         Provide move-if-change.
48106         * build-aux/move-if-change: New file, based on best practice
48107         rather than any canonical upstream location.
48108
48109 2007-09-28  Jim Meyering  <jim@meyering.net>
48110
48111         Fix canonicalize loop-detection corner case.
48112         Do not attempt to stat the symlink values stored via seen_triple.
48113         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48114         on linux-2.6.18, (but not 2.6.22).
48115         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48116         triple_compare.  The former compares dev,ino,filename, while the latter
48117         would actually stat dirname(filename) when dev and ino were equal.
48118         * lib/hash-triple.c: Install <string.h>.
48119         (STREQ): Define.
48120         (triple_compare_ino_str): New function.
48121         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48122
48123 2007-09-28  Eric Blake  <ebb9@byu.net>
48124
48125         Enforce that AC_REPLACE_FUNCS files exist.
48126         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48127         override check for typos.
48128
48129         Fix test-closein on Solaris 10.
48130         * tests/test-closein.c (main): Don't assume stdin can be inherited
48131         closed on all systems.
48132         * tests/test-closein.sh: Likewise.
48133         Reported by Piotr Tarnowski.
48134
48135 2007-09-28  Jim Meyering  <jim@meyering.net>
48136
48137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48138
48139 2007-09-27  Jim Meyering  <jim@meyering.net>
48140
48141         canonicalize: Avoid a false-positive cycle failure.
48142         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48143         Sort.  Remove cycle-check.
48144         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48145         not cycle-check.h.
48146         (seen_triple): New function.
48147         (canonicalize_filename_mode): Use it instead of cycle-check.
48148         * tests/test-canonicalize.c: Add a test for this bug.
48149         * tests/test-canonicalize.sh: Set up and run the test.
48150
48151         New module, file-set, from coreutils.
48152         * modules/file-set: Define it.
48153         * lib/file-set.c, lib/file-set.h: Implement.
48154
48155         New module, hash-triple, from coreutils.
48156         * modules/hash-triple: Define it.
48157         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48158
48159 2007-09-25  Eric Blake  <ebb9@byu.net>
48160
48161         Fix strerror on Interix.
48162         * lib/string_.h (strerror): Declare replacement.
48163         * doc/functions/strerror.texi (strerror): Document the Interix
48164         shortcoming.
48165         * modules/string (Makefile.am): Support new hooks.
48166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48167         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48168         gl_FUNC_STRERROR_SEPARATE.
48169         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48170         * lib/strerror.c (rpl_strerror): Provide replacement.
48171         * modules/strerror (Depends-on): Add string.
48172         (configure.ac): Detect use of module.
48173         * tests/test-strerror.c: New file.
48174         * modules/strerror-tests: New test module.
48175         * modules/argp (Depends-on): Add strerror.
48176         * modules/error (Depends-on): Likewise.
48177         Reported by Martin Koeppe.
48178
48179 2007-09-24  Bruno Haible  <bruno@clisp.org>
48180
48181         * README: Update git instructions.
48182
48183 2007-09-24  Eric Blake  <ebb9@byu.net>
48184
48185         Revert fpending breakage from 2007-09-08.
48186         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48187         __fpending.c.
48188
48189 2007-09-24  Jim Meyering  <jim@meyering.net>
48190
48191         filenamecat.c: Add a test.
48192         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48193         showing how the function works when DIR is the empty string.
48194
48195 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48196
48197         * tests/test-canonicalize.sh: Turn on executable bit.
48198
48199 2007-09-19  Eric Blake  <ebb9@byu.net>
48200
48201         * README: Update CVS instructions.
48202
48203 2007-09-18  Bruno Haible  <bruno@clisp.org>
48204
48205         * modules/areadlink: New file.
48206         * lib/areadlink.h (areadlink): New declaration.
48207         * lib/areadlink.c: New file, based on lib/xreadlink.c.
48208
48209 2007-09-17  Jim Meyering  <jim@meyering.net>
48210
48211         * lib/savewd.c (ESTALE) [!defined]: Define.
48212         Reported to be required on Interix by Martin Koeppe.
48213
48214 2007-09-17  Bruno Haible  <bruno@clisp.org>
48215
48216         * gnulib-tool (func_version): Use $version.
48217
48218 2007-09-16  Bruno Haible  <bruno@clisp.org>
48219
48220         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
48221         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
48222         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
48223         Reported by Greg Schafer <gschafer@zip.com.au>.
48224
48225 2007-09-15  Bruno Haible  <bruno@clisp.org>
48226
48227         * gnulib-tool (sed): Try a little harder to make bash understand the
48228         alias.
48229         Reported by Bruce Korb <bruce.korb@gmail.com>.
48230
48231 2007-09-13  Eric Blake  <ebb9@byu.net>
48232
48233         * ChangeLog: Remove conflict markers.
48234
48235 2007-09-13  Simon Josefsson  <simon@josefsson.org>
48236
48237         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
48238         Reported by Bruno Haible <bruno@clisp.org>.
48239
48240 2007-09-12  Bruno Haible  <bruno@clisp.org>
48241
48242         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
48243         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
48244         is not defined.
48245
48246 2007-09-12  Eric Blake  <ebb9@byu.net>
48247
48248         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
48249         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
48250         Autoconf definition.
48251         * modules/euidaccess (Depends-on): Add extensions, for
48252         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
48253         * modules/fnmatch (Depends-on): Likewise.
48254         * modules/getaddrinfo (Depends-on): Likewise.
48255         * modules/getdelim (Depends-on): Likewise.
48256         * modules/getline (Depends-on): Likewise.
48257         * modules/getsubopt (Depends-on): Likewise.
48258         * modules/gettext (Depends-on): Likewise.
48259         * modules/group-member (Depends-on): Likewise.
48260         * modules/mbchar (Depends-on): Likewise.
48261         * modules/memmem (Depends-on): Likewise.
48262         * modules/mempcpy (Depends-on): Likewise.
48263         * modules/memrchr (Depends-on): Likewise.
48264         * modules/pagealign_alloc (Depends-on): Likewise.
48265         * modules/readutmp (Depends-on): Likewise.
48266         * modules/stpcpy (Depends-on): Likewise.
48267         * modules/stpncpy (Depends-on): Likewise.
48268         * modules/strchrnul (Depends-on): Likewise.
48269         * modules/strndup (Depends-on): Likewise.
48270         * modules/strsep (Depends-on): Likewise.
48271         * modules/strverscmp (Depends-on): Likewise.
48272         * modules/vasprintf (Depends-on): Likewise.
48273         * modules/wcwidth (Depends-on): Likewise.
48274         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48275         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48276         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48277         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48278         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48279         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48280         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48281         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48282         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48283         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48284         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48285         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48286         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48287         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48288         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48289         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48290         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48291         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48292         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48293         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48294         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48295         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48296         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48297         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48298         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48300         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48301         so that lock.m4 can be used in gettext without extensions module.
48302
48303 2007-09-11  Bruno Haible  <bruno@clisp.org>
48304
48305         * m4/isc-posix.m4: Remove file.
48306         Suggested by Eric Blake.
48307
48308 2007-09-11  Eric Blake  <ebb9@byu.net>
48309
48310         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
48311
48312 2007-09-10  Bruno Haible  <bruno@clisp.org>
48313
48314         * posix-modules: Fix typo in error message.
48315         Reported by Matt <mkraai@beckman.com>.
48316
48317 2007-09-09  Bruno Haible  <bruno@clisp.org>
48318
48319         * doc/functions/getdelim.texi: Update list of platforms lacking the
48320         function.
48321         * doc/functions/getline.texi: Likewise.
48322
48323 2007-09-09  Jim Meyering  <jim@meyering.net>
48324
48325         * lib/hash.c (hash_initialize): Detect calloc failure.
48326         Reported by Bruno Haible.
48327
48328 2007-09-09  Bruno Haible  <bruno@clisp.org>
48329
48330         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
48331         malloc or realloc fails.
48332
48333 2007-09-09  Bruno Haible  <bruno@clisp.org>
48334
48335         * modules/getcwd (Depends-on): Add malloc-posix.
48336         * modules/glob (Depends-on): Likewise.
48337         * modules/putenv (Depends-on): Likewise.
48338         * modules/strdup (Depends-on): Likewise.
48339         * modules/getdelim (Depends-on): Add realloc-posix.
48340         * modules/read-file (Depends-on): Likewise.
48341
48342 2007-09-09  Bruno Haible  <bruno@clisp.org>
48343
48344         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
48345         (gl_FUNC_MALLOC_POSIX): Require it.
48346         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
48347         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
48348         * modules/realloc (Files): Add m4/malloc.m4.
48349         * modules/calloc (Files): Likewise.
48350
48351 2007-09-09  Bruno Haible  <bruno@clisp.org>
48352
48353         * modules/malloc-posix: New file.
48354         * modules/malloc (Depends-on): Add malloc-posix.
48355         * lib/malloc.c: Include errno.h.
48356         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
48357         and a POSIX-compatible malloc into a single function. Set ENOMEM
48358         when returning NULL.
48359         * m4/malloc.m4: New file.
48360         * doc/functions/malloc.texi: Mention the malloc-posix module.
48361         * lib/stdlib_.h (malloc): New declaration.
48362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48363         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
48364         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
48365         and HAVE_MALLOC_POSIX.
48366
48367 2007-09-09  Bruno Haible  <bruno@clisp.org>
48368
48369         * modules/realloc-posix: New file.
48370         * modules/realloc (Depends-on): Add realloc-posix.
48371         * lib/realloc.c: Include errno.h.
48372         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
48373         and a POSIX-compatible realloc into a single function. Set ENOMEM
48374         when returning NULL.
48375         * m4/realloc.m4: New file.
48376         * doc/functions/realloc.texi: Mention the realloc-posix module.
48377         * lib/stdlib_.h (realloc): New declaration.
48378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48379         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48380         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48381         and HAVE_REALLOC_POSIX.
48382
48383 2007-09-09  Bruno Haible  <bruno@clisp.org>
48384
48385         * modules/calloc-posix: New file.
48386         * modules/calloc (Depends-on): Add calloc-posix.
48387         * lib/calloc.c: Include errno.h.
48388         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48389         and a POSIX-compatible calloc into a single function. Set ENOMEM
48390         when returning NULL.
48391         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48392         * doc/functions/calloc.texi: Mention the calloc-posix module.
48393         * lib/stdlib_.h (calloc): New declaration.
48394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48395         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48396         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48397         and HAVE_CALLOC_POSIX.
48398
48399 2007-09-09  Bruno Haible  <bruno@clisp.org>
48400
48401         Allow for modules to show an arbitrary notice.
48402         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48403         * gnulib-tool: New option --extract-notice.
48404         (func_usage): Document it.
48405         (sed_extract_prog): Update.
48406         (func_get_notice): New function.
48407         (func_modules_notice): New function.
48408         (func_import, func_create_testdir): Invoke it.
48409         Suggested by Jim Meyering.
48410
48411 2007-09-09  Bruno Haible  <bruno@clisp.org>
48412
48413         * gnulib-tool: New options --verbose, --quiet.
48414         (func_usage): Document them.
48415         (verbose): New variable.
48416         (func_execute_command): New function.
48417         (func_import): Don't show the module list and the file list if
48418         $verbose < 0.
48419         (func_create_testdir): Likewise. Use func_execute_command.
48420         (func_create_megatestdir): Use func_execute_command.
48421
48422 2007-09-08  Bruno Haible  <bruno@clisp.org>
48423
48424         * gnulib-tool (func_import): Prefer rsync over wget when available,
48425         for fetching the PO files.
48426
48427 2007-09-08  Bruno Haible  <bruno@clisp.org>
48428
48429         * posix-modules: New file. Portions copied from gnulib-tool.
48430         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48431
48432 2007-09-08  Jim Meyering  <jim@meyering.net>
48433
48434         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48435         * lib/fpending.h: Rename from __fpending.h.
48436         * lib/fpending.c: Rename from __fpending.c.
48437         Include "fpending.h", not "__fpending.h".
48438         * lib/__fpending.h, lib/__fpending.c: Remove files.
48439         * modules/fpending (Files): Reflect new file names.
48440         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48441
48442 2007-09-08  Bruno Haible  <bruno@clisp.org>
48443
48444         * m4/inttypes-h.m4: Remove stub file.
48445
48446 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48447
48448         * doc/headers/stdint.texi: Discuss #include_next issue.
48449
48450 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48451
48452         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48453
48454 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48455
48456         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48457         in variable name.
48458
48459 2007-09-03  Jim Meyering  <jim@meyering.net>
48460
48461         New module: git-version-gen.
48462         * modules/git-version-gen: New file.
48463
48464         Import changes from coreutils for bootstrap script.
48465
48466         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48467
48468         bootstrap: uses rsync to download the .po files
48469         * build-aux/bootstrap (po_download_command_format): New global.
48470         (download_po_files): Use rsync.
48471         (update_po_files): Don't remove .po files after download,
48472         so future rsync runs can take advantage of the copies.
48473
48474         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48475
48476         Solve the unnecessary-.po-file-regeneration problem once and for all.
48477         * build-aux/bootstrap (download_po_files): New function, renamed from
48478         get_translations.  Now, downloads, but doesn't update LINGUAS.
48479         (update_po_files): New function.
48480
48481         bootstrap: Ignore more.
48482         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48483         uniwidth to e.g., lib/.gitignore.
48484         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48485
48486         * build-aux/bootstrap: New setting: vc_ignore.
48487         (insert_sorted_if_absent): Create $file if absent.
48488         Adapt to new, possibly empty, list: $vc_ignore.
48489
48490         bootstrap: generate more ignorable names
48491         * build-aux/bootstrap (slurp): When generating ignorable names,
48492         also map .sin to .sed, .gperf to .c, and .y to .c.
48493
48494 2007-09-03  Jim Meyering  <jim@meyering.net>
48495
48496         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48497         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48498
48499 2007-09-02  Bruno Haible  <bruno@clisp.org>
48500
48501         Fix mis-recognition of 'mcs' on QNX 6.
48502         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48503         output contains the string "Mono".
48504         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48505         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48506
48507 2007-09-01  Bruno Haible  <bruno@clisp.org>
48508
48509         Fix collision between uniwidth/* and linebreak modules.
48510         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48511         u32_width): Remove declarations.
48512         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48513         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48514         streq3, streq2, streq1, streq0): Remove functions.
48515         (STREQ): Remove macro.
48516         (is_cjk_encoding): Remove function.
48517         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48518         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48519         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48520         * NEWS: Document the change.
48521
48522 2007-09-01  Bruno Haible  <bruno@clisp.org>
48523
48524         * lib/streq.h: Add double-inclusion guard.
48525
48526 2007-09-01  Karl Berry  <karl@gnu.org>
48527
48528         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48529
48530 2007-08-28  Jim Meyering  <jim@meyering.net>
48531
48532         Rename mreadlink_with_size to areadlink_with_size.
48533         * NEWS: Document the change.
48534         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48535         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48536         * lib/mreadlink.h: Rename this to...
48537         * lib/areadlink.h: ...this.
48538         * modules/mreadlink-with-size: Rename this to...
48539         * modules/areadlink-with-size: ...this.
48540         * lib/canonicalize.c: Reflect the renaming.
48541         * modules/canonicalize: Likewise.
48542
48543 2007-08-26  Bruno Haible  <bruno@clisp.org>
48544
48545         * gnulib-tool (func_import): When deciding which files to remove,
48546         consider also dangling symbolic links.
48547         Reported by Eric Blake.
48548
48549 2007-08-26  Bruno Haible  <bruno@clisp.org>
48550
48551         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48552
48553 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48554
48555         * lib/readline.c: Don't include getline.h, the prototype is now
48556         found in stdio.h.
48557
48558 2007-08-23  Jim Meyering  <jim@meyering.net>
48559
48560         Getdelim touchup.
48561         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48562         around the funlockfile call, since funlockfile never sets errno.
48563         Don't set errno upon failed realloc.
48564
48565 2007-08-22  Eric Blake  <ebb9@byu.net>
48566
48567         Getline touchups.
48568         * lib/getdelim.c (getdelim): Revert regression that required *n to
48569         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48570         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48571         getdelim, rather than whether implementation is missing.
48572         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48573         * lib/stdio_.h (getline): Also declare if replacement is
48574         required.
48575         * doc/functions/getdelim.texi: New file.
48576         * doc/functions/getline.texi: Likewise.
48577         * doc/gnulib.texi (Function Substitutes): Add new files.
48578         Reported by Bruno Haible.
48579
48580 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48581
48582         * users.txt: Add Guile.
48583
48584 2007-08-22  Eric Blake  <ebb9@byu.net>
48585
48586         * tests/test-getdelim.c (main): Use remove, not unlink.
48587         * tests/test-getline.c (main): Likewise.
48588
48589         Move getline and getdelim into stdio.h, per POSIX 200x.
48590         * modules/getline (Files): Remove getline.h.
48591         (Depends-on): Add stdio.
48592         (configure.ac): Add module indicator.
48593         * modules/getdelim (Files): Remove getdelim.h.
48594         (Depends-on): Add stdio.
48595         (configure.ac): Add module indicator.
48596         * modules/stdio (Makefile.am): Work with new indicators.
48597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48598         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48599         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48600         * lib/getdelim.h: Delete.
48601         * lib/getline.h: Delete.
48602         * lib/stdio_.h (getdelim, getline): Declare.
48603         * modules/getdelim-tests: New module.
48604         * modules/getline-tests: Likewise.
48605         * tests/test-getdelim.c: New file.
48606         * tests/test-getline.c: Likewise.
48607         * NEWS: Document the change.
48608         * lib/getline.c: Update choice of header.
48609         * lib/csharpcomp.c: Likewise.
48610         * lib/getpass.c: Likewise.
48611         * lib/javacomp.c: Likewise.
48612         * lib/javaversion.c: Likewise.
48613         * lib/yesno.c: Likewise.
48614         * lib/getdelim.c: Likewise.
48615         (getdelim): Set errno on failure, and avoid memory leak.
48616
48617 2007-08-19  Bruno Haible  <bruno@clisp.org>
48618
48619         * modules/closein (Depends-on): Add freadahead.
48620         * lib/closein.c: Include freadahead.h.
48621         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48622         is zero.
48623
48624 2007-08-19  Bruno Haible  <bruno@clisp.org>
48625
48626         * modules/freadahead-tests: New file.
48627         * tests/test-freadahead.sh: New file.
48628         * tests/test-freadahead.c: New file.
48629
48630         * modules/freadahead: New file.
48631         * lib/freadahead.h: New file.
48632         * lib/freadahead.c: New file.
48633         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48634         fbufmode, fpurge, freadable, fwritable.
48635
48636 2007-08-19  Eric Blake  <ebb9@byu.net>
48637
48638         Test yesno in combination with closein.
48639         * lib/yesno.c (yesno): Document use of stdin.
48640         * modules/yesno-tests (Files): New module.
48641         * tests/test-yesno.c (main): New file.
48642         * tests/test-yesno.sh: Likewise.
48643
48644 2007-08-19  Bruno Haible  <bruno@clisp.org>
48645
48646         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48647         * lib/fseeko.c (rpl_fseeko): Likewise.
48648         * lib/fseterr.c (fseterr): Likewise.
48649
48650 2007-08-19  Bruno Haible  <bruno@clisp.org>
48651
48652         * tests/test-lseek.c (main): Disable a test for BeOS.
48653         * doc/functions/lseek.texi: Document the BeOS bug.
48654
48655 2007-08-19  Bruno Haible  <bruno@clisp.org>
48656             Eric Blake  <ebb9@byu.net>
48657
48658         * lib/lseek.c: Include <sys/stat.h>.
48659         (rpl_lseek): Add workaround code also for Unix platforms.
48660         Needed for BeOS.
48661         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48662         * doc/functions/lseek.texi: Document BeOS definiency.
48663
48664 2007-08-18  Bruno Haible  <bruno@clisp.org>
48665
48666         * modules/fstrcmp-tests: New file.
48667         * tests/test-fstrcmp.c: New file.
48668
48669 2007-08-18  Bruno Haible  <bruno@clisp.org>
48670
48671         * modules/fstrcmp: New file, from GNU gettext with modifications.
48672         * lib/fstrcmp.h: New file, from GNU gettext.
48673         * lib/fstrcmp.c: New file, from GNU gettext.
48674         * MODULES.html.sh (String handling): Add fstrcmp.
48675
48676 2007-08-18  Bruno Haible  <bruno@clisp.org>
48677
48678         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48679         'bool'.
48680         (diag, compareseq): Remove const from the ctxt argument.
48681         (USE_HEURISTIC): Undefine at the end.
48682
48683 2007-08-18  Jim Meyering  <jim@meyering.net>
48684
48685         New file: lib/idcache.h
48686         * NEWS: Mention the addition.
48687         * modules/idcache (Files): Add lib/idcache.h
48688         * lib/idcache.c: Include "idcache.h".
48689         Don't include <sys/types.h>.
48690         Add a FIXME comment.
48691         Move file-scoped "static" declarations to the top.
48692         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48693
48694 2007-08-17  Bruno Haible  <bruno@clisp.org>
48695         and Paul Eggert  <eggert@cs.ucla.edu>
48696
48697         * MODULES.html.sh: Add diffseq.
48698         * modules/diffseq: New file.
48699         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48700         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48701
48702 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48703
48704         Import changes from coreutils for bootstrap script.
48705
48706         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48707
48708         * build-aux/bootstrap (slurp): Work even in environments where
48709         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48710         current code does not slurp files whose names start with ".", and
48711         this looks like it might be a troublesome area.
48712
48713         2007-07-11  Jim Meyering  <jim@meyering.net>
48714
48715         If there's a GPL vN copyright comment, require that N == 3.
48716
48717         2007-07-08  Jim Meyering  <jim@meyering.net>
48718
48719         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48720         * build-aux/bootstrap (mam_template): Move definition out of loop.
48721
48722         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48723
48724         * build-aux/bootstrap (symlink_to_dir): Rename function from
48725         symlink_to_gnulib.  Add a directory parameter.  Update all
48726         callers.
48727         (cp_mark_as_generated): Also check for -- and link to -- files in
48728         gl/.
48729
48730         2007-07-08  Jim Meyering  <jim@meyering.net>
48731
48732         Adapt to deeper hierarchy in gnulib.
48733         * build-aux/bootstrap (symlink_to_dir): If the destination
48734         directory doesn't exist, create it. This is required at least for
48735         "lib/uniwidth/cjk.h".
48736
48737         2007-05-15  Jim Meyering  <jim@meyering.net>
48738
48739         * build-aux/bootstrap: Now that generated Makefile.am files
48740         are no longer under version control, they must be created at
48741         bootstrap time.
48742
48743 2007-08-14  Ben Pfaff  <blp@gnu.org>
48744
48745         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48746
48747 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48748
48749         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48750         given the changes below.
48751         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48752         even on hosts that have padding bits beyond the supported 64.
48753
48754 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48755
48756         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48757         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48758         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48759         depends on it.
48760         (xstrtol_error): Remove.
48761         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48762         but with a different signature.
48763         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48764         * lib/xstrtol-error.c: Include exitfail.h.
48765         (xstrtol_fatal): New function, with a different signature from the
48766         old xstrtol_error, so that the caller need not worry about passing
48767         in an exit status, or about storage management of the option argument.
48768         (xstrtol_error): Now a static function.  Redo signature to
48769         implement xstrtol_fatal.  Output the correct number of hyphens in
48770         front of the option so that the caller need not worry about
48771         storage management.
48772         (N_): New macro.
48773         (_): Remove; not used now.
48774         * modules/xstrtol: Depend on getopt.
48775         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48776         of old STRTOL_FATAL_ERROR macro.
48777         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48778         of test program.
48779         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48780         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48781
48782 2007-08-08  Eric Blake  <ebb9@byu.net>
48783
48784         * lib/xstrtol-error.c: Add missing include.
48785
48786         Move xstrtol messages into gnulib domain, when --pobase is used.
48787         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48788         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48789         * modules/xstrtol (Files): Distribute new file.
48790         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48791         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48792         * tests/test-xstrtol.c: ...into new file.
48793         * tests/test-xstrtoul.c: Also test xstrtoul.
48794         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48795         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48796         * tests/test-xstrtol.sh: Drive the tests.
48797         * tests/test-xstrtoimax.sh: Likewise.
48798         * tests/test-xstrtoumax.sh: Likewise.
48799         * modules/xstrtol-tests: New module.
48800         * modules/xstrtoimax-tests: Likewise.
48801         * modules/xstrtoumax-tests: Likewise.
48802
48803 2007-08-08  Jim Meyering  <jim@meyering.net>
48804
48805         New function: mfile_name_concat.
48806         * lib/filenamecat.c (mfile_name_concat): New function, just like
48807         file_name_concat, but return NULL upon failure rather than exiting
48808         with a diagnostic.
48809         * lib/filenamecat.h: Declare it.
48810
48811 2007-08-07  Bruno Haible  <bruno@clisp.org>
48812
48813         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48814         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48815         warning from gcc.
48816         Reported by Eric Blake.
48817
48818 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48819
48820         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48821         * modules/crypto/arcfour (License): Likewise.
48822         * modules/crypto/des-tests (License): Likewise.
48823         * modules/crypto/gc-arctwo-tests (License): Likewise.
48824         * modules/crypto/gc-des-tests (License): Likewise.
48825         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48826         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48827         * modules/crypto/gc-md2-tests (License): Likewise.
48828         * modules/crypto/gc-md4-tests (License): Likewise.
48829         * modules/crypto/gc-md5-tests (License): Likewise.
48830         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48831         * modules/crypto/gc-rijndael-tests (License): Likewise.
48832         * modules/crypto/gc-sha1-tests (License): Likewise.
48833         * modules/crypto/gc-tests (License): Likewise.
48834         * modules/crypto/hmac-md5 (License): Likewise.
48835         * modules/crypto/hmac-sha1 (License): Likewise.
48836         * modules/crypto/md2-tests (License): Likewise.
48837         * modules/crypto/md4-tests (License): Likewise.
48838         * modules/crypto/md5 (License): Likewise.
48839         * modules/crypto/rijndael (License): Likewise.
48840         * modules/crypto/sha1 (License): Likewise.
48841         * modules/memxor (License): Likewise.
48842
48843 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48844         and Bruno Haible  <bruno@clisp.org>
48845
48846         * NEWS: Describe interface changes to human, xstrtol.
48847         * lib/human.h: Include <xstrtol.h>.
48848         (human_options): Return enum strtol_error, not int.  Remove
48849         bool arg; take int * instead.
48850         * lib/human.c: Don't include "gettext.h".
48851         (_): Remove; no longer used.
48852         Don't include <xstrtol.h>, since human.h does it.
48853         (human_options): Adjust to abovementioned interface changes.
48854         Do not report error to stderr; that's now the caller's
48855         responsibility.
48856         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48857         interface change.
48858         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48859         Str, Argument_type_string.  All uses changed.  Put " argument"
48860         in diagnostics to make them clearer.  Change wording of suffix
48861         message for clarity.
48862         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48863         Argument_type_string.
48864         (STRTOL_FATAL_WARN): Remove; no longer used.
48865         * modules/human (Depends-on): Remove gettext-h.
48866
48867 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48868
48869         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48870
48871 2007-07-31  Bruno Haible  <bruno@clisp.org>
48872
48873         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48874         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48875         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48876
48877 2007-07-31  Bruno Haible  <bruno@clisp.org>
48878
48879         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48880         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48881
48882 2007-07-30  Bruno Haible  <bruno@clisp.org>
48883
48884         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48885         * modules/c-ctype (License): Likewise.
48886         * modules/c-strcase (License): Likewise.
48887         * modules/check-version (License): Likewise.
48888         * modules/iconv (License): Likewise.
48889         * modules/iconv_open (License): Likewise.
48890         * modules/read-file (License): Likewise.
48891         * modules/striconv (License): Likewise.
48892         * modules/strverscmp (License): Likewise.
48893         * modules/vasprintf (License): Likewise.
48894         * modules/crypto/des (License): Likewise.
48895         * modules/crypto/gc (License): Likewise.
48896         * modules/crypto/gc-arcfour (License): Likewise.
48897         * modules/crypto/gc-arctwo (License): Likewise.
48898         * modules/crypto/gc-des (License): Likewise.
48899         * modules/crypto/gc-hmac-md5 (License): Likewise.
48900         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48901         * modules/crypto/gc-md2 (License): Likewise.
48902         * modules/crypto/gc-md4 (License): Likewise.
48903         * modules/crypto/gc-md5 (License): Likewise.
48904         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48905         * modules/crypto/gc-random (License): Likewise.
48906         * modules/crypto/gc-rijndael (License): Likewise.
48907         * modules/crypto/gc-sha1 (License): Likewise.
48908         * modules/crypto/md2 (License): Likewise.
48909         * modules/crypto/md4 (License): Likewise.
48910
48911 2007-07-30  Jim Meyering  <jim@meyering.net>
48912
48913         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48914         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48915         it has valid stat data.  This bug would cause du not to count the
48916         sizes of inaccessible directories.
48917         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48918         in <http://bugzilla.redhat.com/250077>.
48919
48920 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48921             Bruno Haible  <bruno@clisp.org>
48922
48923         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48924         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48925         #include_next, gives a diagnostic about it, but reports no error in
48926         the exit code.
48927         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48928
48929 2007-07-24  Ben Pfaff  <blp@gnu.org>
48930
48931         Improve name: "count-one-bits" is better than "popcount".
48932         * MODULES.html.sh: Update name.
48933         * lib/popcount.h: Renamed lib/count-one-bits.h.
48934         (popcount): Renamed count_one_bits.
48935         (popcountl): Renamed count_one_bits_l.
48936         (popcountll): Renamed count_one_bits_ll.
48937         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48938         * modules/popcount: Renamed module/count-one-bits.
48939         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48940         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48941
48942 2007-07-23  Ben Pfaff  <blp@gnu.org>
48943
48944         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48945         better code generation, and add U to large constants to avoid
48946         warnings, in non-GCC case.
48947         Suggested by Bruno Haible.
48948
48949 2007-07-23  Ben Pfaff  <blp@gnu.org>
48950
48951         * lib/popcount.h: Use verify_true instead of if...abort.
48952         * modules/popcount: Depend on verify module.
48953         Suggested by Jim Meyering.
48954
48955 2007-07-23  Bruno Haible  <bruno@clisp.org>
48956
48957         * gnulib-tool (func_import): Create a .cvsignore file also when the
48958         directory is not yet in CVS but the toplevel directory is. When
48959         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48960         Reported by Karl Berry.
48961
48962 2007-07-22  Ben Pfaff  <blp@gnu.org>
48963
48964         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48965         case.
48966         Suggested by Eric Blake.
48967
48968 2007-07-22  Ben Pfaff  <blp@gnu.org>
48969
48970         New module: popcount.
48971         * MODULES.html.sh: Add popcount.
48972         * modules/popcount: New file.
48973         * modules/popcount-tests: New file.
48974         * tests/test-popcount.c: New file.
48975         * lib/popcount.h: New file.
48976         * m4/popcount.m4: New file.
48977
48978 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48979
48980         * build-aux/announce-gen: Update to GPLv3.
48981
48982         * build-aux/config.guess: Update from config.
48983
48984 2007-07-21  Bruno Haible  <bruno@clisp.org>
48985
48986         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48987         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48988
48989 2007-07-20  Jim Meyering  <jim@meyering.net>
48990
48991         * check-module: Diagnose a self-dependency.
48992
48993 2007-07-19  Bruno Haible  <bruno@clisp.org>
48994
48995         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48996         empty.
48997         Reported by Eric Blake.
48998
48999 2007-07-18  Bruno Haible  <bruno@clisp.org>
49000
49001         * gnulib-tool: New options --po-base, --po-domain.
49002         (func_usage): Document them.
49003         (pobase, po_domain): New variables.
49004         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49005         DEFAULT_TEXT_DOMAIN.
49006         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49007         (func_import): Consider pobase and po_domain. Create a po/ directory.
49008         (func_create_testdir): Set pobase and po_domain to empty.
49009         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49010         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49011
49012 2007-07-18  Bruno Haible  <bruno@clisp.org>
49013
49014         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49015         EXTRA_DIST augmentation for files in build-aux/.
49016
49017 2007-07-16  Bruno Haible  <bruno@clisp.org>
49018
49019         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49020         * modules/getdelim (License): Likewise.
49021
49022 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49023
49024         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49025         * modules/d-type (License): Likewise.
49026         * modules/extensions (License): Likewise.
49027         * modules/fnmatch (License): Likewise.
49028         * modules/fseeko (License): Likewise.
49029         * modules/getaddrinfo (License): Likewise.
49030         * modules/getline (License): Likewise.
49031         * modules/getlogin_r (License): Likewise.
49032         * modules/getpass (License): Likewise.
49033         * modules/gettimeofday (License): Likewise.
49034         * modules/glob (License): Likewise.
49035         * modules/inet_ntop (License): Likewise.
49036         * modules/malloc (License): Likewise.
49037         * modules/malloca (License): Likewise.
49038         * modules/memmem (License): Likewise.
49039         * modules/mempcpy (License): Likewise.
49040         * modules/memset (License): Likewise.
49041         * modules/minmax (License): Likewise.
49042         * modules/mktime (License): Likewise.
49043         * modules/netinet_in (License): Likewise.
49044         * modules/pathmax (License): Likewise.
49045         * modules/poll (License): Likewise.
49046         * modules/regex (License): Likewise.
49047         * modules/snprintf (License): Likewise.
49048         * modules/stdbool (License): Likewise.
49049         * modules/stdint (License): Likewise.
49050         * modules/stdio (License): Likewise.
49051         * modules/strcase (License): Likewise.
49052         * modules/strcasestr (License): Likewise.
49053         * modules/strdup (License): Likewise.
49054         * modules/string (License): Likewise.
49055         * modules/strndup (License): Likewise.
49056         * modules/strnlen (License): Likewise.
49057         * modules/strpbrk (License): Likewise.
49058         * modules/strptime (License): Likewise.
49059         * modules/strsep (License): Likewise.
49060         * modules/sys_select (License): Likewise.
49061         * modules/sys_socket (License): Likewise.
49062         * modules/sys_stat (License): Likewise.
49063         * modules/sys_time (License): Likewise.
49064         * modules/time (License): Likewise.
49065         * modules/time_r (License): Likewise.
49066         * modules/timegm (License): Likewise.
49067         * modules/unistd (License): Likewise.
49068         * modules/vsnprintf (License): Likewise.
49069         * modules/wctype (License): Likewise.
49070
49071 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49072
49073         * modules/argz (License): LGPLv2+.
49074
49075 2007-07-15  Karl Berry  <karl@gnu.org>
49076
49077         * doc/gnulib.texi: revise node structure per new fdl.texi.
49078
49079 2007-07-14  Bruno Haible  <bruno@clisp.org>
49080
49081         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49082         the output file.
49083         * lib/uniname/uninames.h: Regenerated.
49084
49085 2007-07-14  Karl Berry  <karl@gnu.org>
49086
49087         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49088         omitting sectioning and index commands.
49089
49090 2007-07-13  Bruno Haible  <bruno@clisp.org>
49091
49092         New gnulib-tool option --more-symlinks.
49093         * gnulib-tool (func_usage): Document --more-symlinks.
49094         (do_copyrights): New variable.
49095         Recognize option --more-symlinks.
49096         (func_import): Don't add a copyright notice transform to
49097         sed_transform_lib_file if do_copyrights is empty.
49098
49099 2007-07-13  Bruno Haible  <bruno@clisp.org>
49100
49101         * lib/vasnprintf.c (decimal_point_char): Define also if
49102         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49103         && !NEED_PRINTF_DIRECTIVE_A.
49104         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49105         Gary V. Vaughan <gary@gnu.org>.
49106
49107 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49108
49109         * lib/inttypes_.h: Undo previous change, since it was fixed
49110         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49111
49112 2007-07-13  Bruno Haible  <bruno@clisp.org>
49113
49114         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49115         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49116
49117 2007-07-13  Jim Meyering  <jim@meyering.net>
49118
49119         df: Don't fail for Tru64's "file-on-file mount".
49120         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49121         so we fall through and use statfs instead.  Details here:
49122         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49123         Reported by Albert Chin.
49124
49125 2007-07-13  Bruno Haible  <bruno@clisp.org>
49126
49127         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49128         * modules/configmake (License): Likewise.
49129         * modules/gettext (License): Likewise.
49130         * modules/gettext-h (License): Likewise.
49131         * modules/include_next (License): Likewise.
49132         * modules/link-warning (License): Likewise.
49133         * modules/localcharset (License): Likewise.
49134         * modules/localename (License): Likewise.
49135         * modules/lock (License): Likewise.
49136         * modules/relocatable-lib-lgpl (License): Likewise.
49137         * modules/size_max (License): Likewise.
49138         * modules/vasnprintf (License): Likewise.
49139         * modules/wchar (License): Likewise.
49140         * modules/xsize (License): Likewise.
49141
49142 2007-07-13  Bruno Haible  <bruno@clisp.org>
49143
49144         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49145         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49146
49147 2007-07-12  Bruno Haible  <bruno@clisp.org>
49148
49149         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49150         in the modules files.
49151
49152 2007-07-11  Karl Berry  <karl@gnu.org>
49153
49154         * MODULES.html.sh (func_module): use
49155          sed -e '\|^'"${includefile}"'$|d'
49156          instead of /.../d, to avoid errors on $includefile's containing /.
49157
49158 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49159
49160         * gnulib-tool (func_import): Avoid duplication of --avoid
49161         statements
49162         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49163         names to `_' in variable names.
49164
49165 2007-07-10  Eric Blake  <ebb9@byu.net>
49166
49167         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49168         * NEWS: Document this change.
49169
49170 2007-07-08  Bruno Haible  <bruno@clisp.org>
49171
49172         Update to Unicode 5.0.
49173         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49174         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49175         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49176         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49177         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49178         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49179         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49180         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49181         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49182         U+10A3F, U+1D242..U+1D244.
49183         (nonspacing_table_ind): Update.
49184         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49185         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49186
49187 2007-07-08  Bruno Haible  <bruno@clisp.org>
49188
49189         Update to Unicode 5.0.
49190         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49191         code transform. Extend the name index field of unicode_name_to_code and
49192         unicode_code_to_name from 16 to 24 bits.
49193         * lib/uniname/uniname.c (unicode_character_name,
49194         unicode_name_character): Add the range 0x12xxx to the code transform.
49195         * lib/uniname/uninames.h: Regenerated.
49196         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49197
49198 2007-07-07  Bruno Haible  <bruno@clisp.org>
49199
49200         * modules/wcwidth-tests: New file.
49201         * tests/test-wcwidth.c: New file.
49202
49203         Work around MacOS X wcwidth() bug.
49204         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
49205         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
49206         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
49207         original wcwidth in non-UTF-8 locales.
49208         * modules/wcwidth (Depends-on): Add localcharset, streq,
49209         uniwidth/width.
49210         * doc/functions/wcwidth.texi: Update.
49211
49212 2007-07-07  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
49215         (wcwidth): New declaration.
49216         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
49217         macros.
49218         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
49219         here. Prepare for creating <wchar.h> unconditionally.
49220         * modules/wchar (Depends-on): Add link-warning.
49221         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
49222         REPLACE_WCWIDTH, and GL_LINK_WARNING.
49223         * lib/wcwidth.h: Remove file.
49224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
49225         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
49226         * modules/wcwidth (Files): Remove lib/wcwidth.h.
49227         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
49228         (Include): Replace wcwidth.h with <wchar.h>.
49229         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
49230         * lib/mbchar.h: Don't include wcwidth.h.
49231         * lib/mbswidth.c: Likewise.
49232         * NEWS: Mention the change.
49233
49234 2007-07-07  Bruno Haible  <bruno@clisp.org>
49235
49236         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
49237         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
49238         definition with an external declaration.
49239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
49240         defined as a function. Remove AC_C_INLINE requirement.
49241         * modules/wcwidth (Files): Add lib/wcwidth.c.
49242         (Makefile.am): Remove redundant statement.
49243
49244 2007-07-07  Bruno Haible  <bruno@clisp.org>
49245
49246         * MODULES.html.sh (Unicode string functions): Add the new modules.
49247
49248         * tests/uniwidth/test-u32-strwidth.c: New file.
49249         * modules/uniwidth/u32-strwidth-tests: New file.
49250
49251         * lib/uniwidth/u32-strwidth.c: New file.
49252         * modules/uniwidth/u32-strwidth: New file.
49253
49254         * tests/uniwidth/test-u16-strwidth.c: New file.
49255         * modules/uniwidth/u16-strwidth-tests: New file.
49256
49257         * lib/uniwidth/u16-strwidth.c: New file.
49258         * modules/uniwidth/u16-strwidth: New file.
49259
49260         * tests/uniwidth/test-u8-strwidth.c: New file.
49261         * modules/uniwidth/u8-strwidth-tests: New file.
49262
49263         * lib/uniwidth/u8-strwidth.c: New file.
49264         * modules/uniwidth/u8-strwidth: New file.
49265
49266         * tests/uniwidth/test-u32-width.c: New file.
49267         * modules/uniwidth/u32-width-tests: New file.
49268
49269         * lib/uniwidth/u32-width.c: New file.
49270         * modules/uniwidth/u32-width: New file.
49271
49272         * tests/uniwidth/test-u16-width.c: New file.
49273         * modules/uniwidth/u16-width-tests: New file.
49274
49275         * lib/uniwidth/u16-width.c: New file.
49276         * modules/uniwidth/u16-width: New file.
49277
49278         * tests/uniwidth/test-u8-width.c: New file.
49279         * modules/uniwidth/u8-width-tests: New file.
49280
49281         * lib/uniwidth/u8-width.c: New file.
49282         * modules/uniwidth/u8-width: New file.
49283
49284         * tests/uniwidth/test-uc_width.c: New file.
49285         * modules/uniwidth/width-tests: New file.
49286
49287         * lib/uniwidth/width.c: New file, from GNU libiconv.
49288         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49289         * modules/uniwidth/width: New file.
49290
49291         * lib/uniwidth.h: New file, from GNU libiconv.
49292         * modules/uniwidth/base: New file.
49293
49294 2007-07-07  Bruno Haible  <bruno@clisp.org>
49295
49296         * lib/uniname.h: New file, from GNU gettext.
49297         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49298         * lib/uniname/uninames.h: New file, from GNU gettext.
49299         * lib/uniname/uniname.c: New file, from GNU gettext.
49300         * tests/uniname/test-uninames.sh: New file.
49301         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49302         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49303         * modules/uniname/base: New file.
49304         * modules/uniname/uniname: New file.
49305         * modules/uniname/uniname-tests: New file.
49306         * MODULES.html.sh (Unicode string functions): Add the new modules.
49307
49308 2007-07-06  Bruno Haible  <bruno@clisp.org>
49309
49310         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
49311
49312 2007-07-06  Bruno Haible  <bruno@clisp.org>
49313
49314         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49315         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49316         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49317         include <sys/time.h>.
49318         Reported by Eric Blake.
49319
49320 2007-07-06  Eric Blake  <ebb9@byu.net>
49321
49322         Fix testing canonicalize on cygwin.
49323         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49324         Revert patch from 2007-06-19.
49325         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
49326         canonicalize module is also in use.
49327         * tests/test-canonicalize.c: New file.
49328         * tests/test-canonicalize.sh: Likewise.
49329         * modules/canonicalize-tests: Likewise.
49330
49331 2007-07-06  Jim Meyering  <jim@meyering.net>
49332
49333         * lib/getugroups.c (getugroups): Detect getgrent failure.
49334         Adjust comment to reflect reality: this function may return -1.
49335
49336 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49337
49338         * build-aux/bootstrap (TP_URL,get_translations): Update to use
49339         the new TP address.
49340         (usage): Fix typo
49341         (gnulib_mk): New variable.
49342
49343 2007-07-05  Jim Meyering  <jim@meyering.net>
49344
49345         Don't let endgrent clobber errno, no matter how improbable.
49346         * lib/getugroups.c (getugroups): Save and restore errno around
49347         endgrent call.
49348
49349         Close the group DB even when failing with 2^31 or more members.
49350         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
49351
49352 2007-07-04  Jim Meyering  <jim@meyering.net>
49353
49354         * lib/getugroups.h: New file.
49355         * lib/getugroups.c: Include "getugroups.h".
49356         Remove uses of "register" keyword.
49357         Move local variable, "cp", down into scope where used.
49358         Give "username" parameter the "const" attribute.
49359         * modules/getugroups (Files): Add lib/getugroups.h
49360
49361 2007-07-04  Karl Berry  <karl@gnu.org>
49362
49363         * MODULES.html.sh (func_all_modules): Complete rename of
49364         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
49365
49366 2007-07-02  Bruno Haible  <bruno@clisp.org>
49367
49368         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
49369         mode, when inttypes.h comes from gnulib.
49370         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49371
49372 2007-07-02  Simon Josefsson  <simon@josefsson.org>
49373
49374         * NEWS: Mention lgpl module name change.
49375
49376         * modules/lgpl-2.1: Renamed from lgpl.
49377
49378         * NEWS: Mention gpl module name change.
49379
49380         * modules/gpl-3.0: New file, based on gpl-2.0.
49381
49382         * modules/gpl-2.0: Renamed from gpl.
49383
49384         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49385         doc/gpl-2.0.texi.
49386
49387 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49388
49389         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49390         #define __STDC_LIMIT_MACROS temporarily while including
49391         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49392         Problem reported by Joel E. Denny in
49393         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49394
49395 2007-07-01  Bruno Haible  <bruno@clisp.org>
49396
49397         * lib/unistdio.h: New file.
49398         * lib/unistdio/u-asnprintf.h: New file.
49399         * lib/unistdio/u-asprintf.h: New file.
49400         * lib/unistdio/u-printf-args.c: New file.
49401         * lib/unistdio/u-printf-args.h: New file.
49402         * lib/unistdio/u-printf-parse.h: New file.
49403         * lib/unistdio/u-snprintf.h: New file.
49404         * lib/unistdio/u-sprintf.h: New file.
49405         * lib/unistdio/u-vasprintf.h: New file.
49406         * lib/unistdio/u-vsnprintf.h: New file.
49407         * lib/unistdio/u-vsprintf.h: New file.
49408         * lib/unistdio/ulc-asnprintf.c: New file.
49409         * lib/unistdio/ulc-asprintf.c: New file.
49410         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49411         * lib/unistdio/ulc-printf-parse.c: New file.
49412         * lib/unistdio/ulc-snprintf.c: New file.
49413         * lib/unistdio/ulc-sprintf.c: New file.
49414         * lib/unistdio/ulc-vasnprintf.c: New file.
49415         * lib/unistdio/ulc-vasprintf.c: New file.
49416         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49417         * lib/unistdio/ulc-vsnprintf.c: New file.
49418         * lib/unistdio/ulc-vsprintf.c: New file.
49419         * lib/unistdio/u8-asnprintf.c: New file.
49420         * lib/unistdio/u8-asprintf.c: New file.
49421         * lib/unistdio/u8-printf-parse.c: New file.
49422         * lib/unistdio/u8-snprintf.c: New file.
49423         * lib/unistdio/u8-sprintf.c: New file.
49424         * lib/unistdio/u8-vasnprintf.c: New file.
49425         * lib/unistdio/u8-vasprintf.c: New file.
49426         * lib/unistdio/u8-vsnprintf.c: New file.
49427         * lib/unistdio/u8-vsprintf.c: New file.
49428         * lib/unistdio/u8-u8-asnprintf.c: New file.
49429         * lib/unistdio/u8-u8-asprintf.c: New file.
49430         * lib/unistdio/u8-u8-snprintf.c: New file.
49431         * lib/unistdio/u8-u8-sprintf.c: New file.
49432         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49433         * lib/unistdio/u8-u8-vasprintf.c: New file.
49434         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49435         * lib/unistdio/u8-u8-vsprintf.c: New file.
49436         * lib/unistdio/u16-asnprintf.c: New file.
49437         * lib/unistdio/u16-asprintf.c: New file.
49438         * lib/unistdio/u16-printf-parse.c: New file.
49439         * lib/unistdio/u16-snprintf.c: New file.
49440         * lib/unistdio/u16-sprintf.c: New file.
49441         * lib/unistdio/u16-vasnprintf.c: New file.
49442         * lib/unistdio/u16-vasprintf.c: New file.
49443         * lib/unistdio/u16-vsnprintf.c: New file.
49444         * lib/unistdio/u16-vsprintf.c: New file.
49445         * lib/unistdio/u16-u16-asnprintf.c: New file.
49446         * lib/unistdio/u16-u16-asprintf.c: New file.
49447         * lib/unistdio/u16-u16-snprintf.c: New file.
49448         * lib/unistdio/u16-u16-sprintf.c: New file.
49449         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49450         * lib/unistdio/u16-u16-vasprintf.c: New file.
49451         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49452         * lib/unistdio/u16-u16-vsprintf.c: New file.
49453         * lib/unistdio/u32-asnprintf.c: New file.
49454         * lib/unistdio/u32-asprintf.c: New file.
49455         * lib/unistdio/u32-printf-parse.c: New file.
49456         * lib/unistdio/u32-snprintf.c: New file.
49457         * lib/unistdio/u32-sprintf.c: New file.
49458         * lib/unistdio/u32-vasnprintf.c: New file.
49459         * lib/unistdio/u32-vasprintf.c: New file.
49460         * lib/unistdio/u32-vsnprintf.c: New file.
49461         * lib/unistdio/u32-vsprintf.c: New file.
49462         * lib/unistdio/u32-u32-asnprintf.c: New file.
49463         * lib/unistdio/u32-u32-asprintf.c: New file.
49464         * lib/unistdio/u32-u32-snprintf.c: New file.
49465         * lib/unistdio/u32-u32-sprintf.c: New file.
49466         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49467         * lib/unistdio/u32-u32-vasprintf.c: New file.
49468         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49469         * lib/unistdio/u32-u32-vsprintf.c: New file.
49470         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49471         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49472         * tests/unistdio/test-ulc-printf1.h: New file.
49473         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49474         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49475         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49476         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49477         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49478         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49479         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49480         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49481         * tests/unistdio/test-u8-asnprintf1.c: New file.
49482         * tests/unistdio/test-u8-asnprintf1.h: New file.
49483         * tests/unistdio/test-u8-printf1.h: New file.
49484         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49485         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49486         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49487         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49488         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49489         * tests/unistdio/test-u8-vasprintf1.c: New file.
49490         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49491         * tests/unistdio/test-u8-vsprintf1.c: New file.
49492         * tests/unistdio/test-u16-asnprintf1.c: New file.
49493         * tests/unistdio/test-u16-asnprintf1.h: New file.
49494         * tests/unistdio/test-u16-printf1.h: New file.
49495         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49496         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49497         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49498         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49499         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49500         * tests/unistdio/test-u16-vasprintf1.c: New file.
49501         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49502         * tests/unistdio/test-u16-vsprintf1.c: New file.
49503         * tests/unistdio/test-u32-asnprintf1.c: New file.
49504         * tests/unistdio/test-u32-asnprintf1.h: New file.
49505         * tests/unistdio/test-u32-printf1.h: New file.
49506         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49507         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49508         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49509         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49510         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49511         * tests/unistdio/test-u32-vasprintf1.c: New file.
49512         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49513         * tests/unistdio/test-u32-vsprintf1.c: New file.
49514         * modules/unistdio/base: New file.
49515         * modules/unistdio/u-printf-args: New file.
49516         * modules/unistdio/ulc-asnprintf: New file.
49517         * modules/unistdio/ulc-asprintf: New file.
49518         * modules/unistdio/ulc-fprintf: New file.
49519         * modules/unistdio/ulc-printf-parse: New file.
49520         * modules/unistdio/ulc-snprintf: New file.
49521         * modules/unistdio/ulc-sprintf: New file.
49522         * modules/unistdio/ulc-vasnprintf: New file.
49523         * modules/unistdio/ulc-vasprintf: New file.
49524         * modules/unistdio/ulc-vfprintf: New file.
49525         * modules/unistdio/ulc-vsnprintf: New file.
49526         * modules/unistdio/ulc-vsprintf: New file.
49527         * modules/unistdio/u8-asnprintf: New file.
49528         * modules/unistdio/u8-asprintf: New file.
49529         * modules/unistdio/u8-printf-parse: New file.
49530         * modules/unistdio/u8-snprintf: New file.
49531         * modules/unistdio/u8-sprintf: New file.
49532         * modules/unistdio/u8-vasnprintf: New file.
49533         * modules/unistdio/u8-vasprintf: New file.
49534         * modules/unistdio/u8-vsnprintf: New file.
49535         * modules/unistdio/u8-vsprintf: New file.
49536         * modules/unistdio/u8-u8-asnprintf: New file.
49537         * modules/unistdio/u8-u8-asprintf: New file.
49538         * modules/unistdio/u8-u8-snprintf: New file.
49539         * modules/unistdio/u8-u8-sprintf: New file.
49540         * modules/unistdio/u8-u8-vasnprintf: New file.
49541         * modules/unistdio/u8-u8-vasprintf: New file.
49542         * modules/unistdio/u8-u8-vsnprintf: New file.
49543         * modules/unistdio/u8-u8-vsprintf: New file.
49544         * modules/unistdio/u16-asnprintf: New file.
49545         * modules/unistdio/u16-asprintf: New file.
49546         * modules/unistdio/u16-printf-parse: New file.
49547         * modules/unistdio/u16-snprintf: New file.
49548         * modules/unistdio/u16-sprintf: New file.
49549         * modules/unistdio/u16-vasnprintf: New file.
49550         * modules/unistdio/u16-vasprintf: New file.
49551         * modules/unistdio/u16-vsnprintf: New file.
49552         * modules/unistdio/u16-vsprintf: New file.
49553         * modules/unistdio/u16-u16-asnprintf: New file.
49554         * modules/unistdio/u16-u16-asprintf: New file.
49555         * modules/unistdio/u16-u16-snprintf: New file.
49556         * modules/unistdio/u16-u16-sprintf: New file.
49557         * modules/unistdio/u16-u16-vasnprintf: New file.
49558         * modules/unistdio/u16-u16-vasprintf: New file.
49559         * modules/unistdio/u16-u16-vsnprintf: New file.
49560         * modules/unistdio/u16-u16-vsprintf: New file.
49561         * modules/unistdio/u32-asnprintf: New file.
49562         * modules/unistdio/u32-asprintf: New file.
49563         * modules/unistdio/u32-printf-parse: New file.
49564         * modules/unistdio/u32-snprintf: New file.
49565         * modules/unistdio/u32-sprintf: New file.
49566         * modules/unistdio/u32-vasnprintf: New file.
49567         * modules/unistdio/u32-vasprintf: New file.
49568         * modules/unistdio/u32-vsnprintf: New file.
49569         * modules/unistdio/u32-vsprintf: New file.
49570         * modules/unistdio/u32-u32-asnprintf: New file.
49571         * modules/unistdio/u32-u32-asprintf: New file.
49572         * modules/unistdio/u32-u32-snprintf: New file.
49573         * modules/unistdio/u32-u32-sprintf: New file.
49574         * modules/unistdio/u32-u32-vasnprintf: New file.
49575         * modules/unistdio/u32-u32-vasprintf: New file.
49576         * modules/unistdio/u32-u32-vsnprintf: New file.
49577         * modules/unistdio/u32-u32-vsprintf: New file.
49578         * modules/unistdio/ulc-asnprintf-tests: New file.
49579         * modules/unistdio/ulc-vasnprintf-tests: New file.
49580         * modules/unistdio/ulc-vasprintf-tests: New file.
49581         * modules/unistdio/ulc-vsnprintf-tests: New file.
49582         * modules/unistdio/ulc-vsprintf-tests: New file.
49583         * modules/unistdio/u8-asnprintf-tests: New file.
49584         * modules/unistdio/u8-vasnprintf-tests: New file.
49585         * modules/unistdio/u8-vasprintf-tests: New file.
49586         * modules/unistdio/u8-vsnprintf-tests: New file.
49587         * modules/unistdio/u8-vsprintf-tests: New file.
49588         * modules/unistdio/u16-asnprintf-tests: New file.
49589         * modules/unistdio/u16-vasnprintf-tests: New file.
49590         * modules/unistdio/u16-vasprintf-tests: New file.
49591         * modules/unistdio/u16-vsnprintf-tests: New file.
49592         * modules/unistdio/u16-vsprintf-tests: New file.
49593         * modules/unistdio/u32-asnprintf-tests: New file.
49594         * modules/unistdio/u32-vasnprintf-tests: New file.
49595         * modules/unistdio/u32-vasprintf-tests: New file.
49596         * modules/unistdio/u32-vsnprintf-tests: New file.
49597         * modules/unistdio/u32-vsprintf-tests: New file.
49598         * MODULES.html.sh (Unicode string functions): Add the new modules.
49599
49600 2007-07-01  Bruno Haible  <bruno@clisp.org>
49601
49602         * lib/sprintf.c (sprintf): Limit the available length estimation,
49603         to avoid address wraparound.
49604         * lib/vsprintf.c (vsprintf): Likewise.
49605         * modules/sprintf-posix (Dependencies): Add stdint.
49606         * modules/vsprintf-posix (Dependencies): Likewise.
49607
49608 2007-07-01  Bruno Haible  <bruno@clisp.org>
49609
49610         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49611         Windows PATH as well. Conservative double-quoting. Comments.
49612
49613 2007-07-01  Bruno Haible  <bruno@clisp.org>
49614             Eric Blake  <ebb9@byu.net>
49615             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49616
49617         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49618         empty components in $PATH, denoting '.'.
49619
49620 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49621
49622         * gnulib-tool: Fix indentation.
49623         (func_create_megatestdir): Likewise.
49624         Report by Bruno Haible.
49625
49626 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49627
49628         Sync from Automake.
49629         * build-aux/gnupload: Fix shell portability issues with for loops.
49630         Report by Karl Berry.
49631
49632 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49633
49634         * build-aux/maint.mk (POURL): Use translationproject.org.
49635
49636 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49637             Bruno Haible  <bruno@clisp.org>
49638
49639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49640         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49641         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49642         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49643         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49644
49645 2007-06-27  Bruno Haible  <bruno@clisp.org>
49646
49647         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49648         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49649
49650 2007-06-26  Karl Berry  <karl@gnu.org>
49651
49652         * MODULES.html.sh: remove xreadlink-with-size.
49653
49654 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49655
49656         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49657         method that I hope also handles the double-include problem noted
49658         by Bruno Haible in
49659         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49660
49661 2007-06-23  Bruno Haible  <bruno@clisp.org>
49662
49663         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49664         Don't let the 'mostlyclean' target fail if the last subdirectory could
49665         not be removed.
49666         Reported by Karl Berry.
49667
49668 2007-06-23  Bruno Haible  <bruno@clisp.org>
49669
49670         * gnulib-tool (echo): Add a speedier workaround for ksh.
49671         * tests/test-echo.sh: Likewise.
49672
49673 2007-06-23  Bruno Haible  <bruno@clisp.org>
49674
49675         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49676         * tests/test-echo.sh: Likewise.
49677
49678 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49679
49680         * gnulib-tool (IFS): Initialize early, so we don't set it to
49681         empty later.
49682         (self_abspathname): Rewrite algorithm to set it, reindent.
49683         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49684         (func_create_megatestdir): Merge some sed scripts.
49685
49686 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49687
49688         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49689         exposed by Sun Studio 11 cc on Solaris 8.
49690
49691 2007-06-22  Bruno Haible  <bruno@clisp.org>
49692
49693         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49694         backslashes.
49695         * tests/test-echo.sh: New file.
49696
49697 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49698
49699         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49700         simplify `sed_replace_build_aux' scripts, they are portable but
49701         echoing them with `echo' is not.
49702         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49703
49704 2007-06-21  Karl Berry  <karl@gnu.org>
49705
49706         * config/srclist.txt: guess we can't handle the licenses via
49707         srclist at the moment.
49708
49709 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49710
49711         * MODULES.html.sh: Add include_next.
49712         * modules/include_next: New file.
49713
49714 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49715
49716         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49717         INCLUDE_NEXT.
49718         (gl_CHECK_NEXT_HEADERS): New macro.
49719         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49720         the obsolescent gl_ABSOLUTE_HEADER.
49721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49722         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49723         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49724         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49725         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49726         * m4/math_h.m4 (gl_MATH_H): Likewise.
49727         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49728         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49729         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49730         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49731         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49732         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49733         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49734         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49735         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49737         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49738         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49739         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49740         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49741         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49742         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49743         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49744         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49745         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49746         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49747         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49748         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49749         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49750         * lib/float_.h: Likewise.
49751         * lib/inttypes_.h: Likewise.
49752         * lib/math_.h: Likewise.
49753         * lib/search_.h: Likewise.
49754         * lib/signal_.h: Likewise.
49755         * lib/stdint_.h: Likewise.
49756         * lib/stdio_.h: Likewise.
49757         * lib/stdlib_.h: Likewise.
49758         * lib/string_.h: Likewise.
49759         * lib/sys_stat_.h: Likewise.
49760         * lib/sys_time_.h: Likewise.
49761         * lib/time_.h: Likewise.
49762         * lib/unistd_.h: Likewise.
49763         * lib/wchar_.h: Likewise.
49764         * lib/wctype_.h: Likewise.
49765         * lib/dirent_.h: Likewise.
49766         * lib/iconv_.h: Likewise.
49767         * lib/locale_.h: Likewise.
49768         * lib/netinet_in_.h: Likewise.
49769         * lib/sys_select_.h: Likewise.
49770         * lib/sys_socket_.h: Likewise.
49771         * lib/sysexits_.h: Likewise.
49772         * modules/fcntl (Depends-on): Depend on include_next, not
49773         absolute_header.
49774         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49775         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49776         * modules/fchdir: Likewise.
49777         * modules/float: Likewise.
49778         * modules/iconv_open: Likewise.
49779         * modules/inttypes: Likewise.
49780         * modules/locale: Likewise.
49781         * modules/math: Likewise.
49782         * modules/netinet_in: Likewise.
49783         * modules/search: Likewise.
49784         * modules/signal: Likewise.
49785         * modules/stdint: Likewise.
49786         * modules/stdio: Likewise.
49787         * modules/stdlib: Likewise.
49788         * modules/string: Likewise.
49789         * modules/sys_select: Likewise.
49790         * modules/sys_socket: Likewise.
49791         * modules/sys_stat: Likewise.
49792         * modules/sys_time: Likewise.
49793         * modules/sysexits: Likewise.
49794         * modules/time: Likewise.
49795         * modules/unistd: Likewise.
49796         * modules/wchar: Likewise.
49797         * modules/wctype: Likewise.
49798         * modules/sys_stat: Change maintainer to "all".
49799         * modules/unistd: Likewise.
49800
49801 2007-06-20  Karl Berry  <karl@gnu.org>
49802
49803         * config/srclist.txt: track www changes in license files.
49804
49805 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49806
49807         * build-aux/bootstrap: Remove stray dot.
49808         Make sure build_aux settings are honored when linking
49809         gnulib_extra_files.
49810
49811 2007-06-19  Eric Blake  <ebb9@byu.net>
49812
49813         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49814         Allow compilation on cygwin.
49815
49816 2007-06-19  Jim Meyering  <jim@meyering.net>
49817
49818         xreadlink-with-size: Remove module.  No longer used.
49819         Ex-callers now use xreadlink or mreadlink-with-size.
49820         * modules/xreadlink-with-size: Remove module.
49821         * lib/xreadlink-with-size.c: Remove file.
49822         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49823         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49824         just before the function definition *is* accurate.
49825
49826         Eliminate one way canonicalize_filename_mode could exit.
49827         * lib/canonicalize.c (canonicalize_filename_mode):
49828         Use mreadlink_with_size, not xreadlink_with_size.
49829
49830 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49831
49832         Detect porting problems to FreeBSD/arm, which has time_t wider than
49833         long int.  Original problem reported for GNU diff by Xin Li in
49834         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49835         * modules/getdate (Depends-on): Add intprops, verify.
49836         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49837         is an integer type no wider than long int.
49838
49839 2007-06-18  Jim Meyering  <jim@meyering.net>
49840
49841         New module: mreadlink-with-size.
49842         * MODULES.html.sh: Add mreadlink-with-size.
49843         * modules/mreadlink-with-size: New module
49844         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49845         not xreadlink-with-size.
49846         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49847
49848 2007-06-16  Bruno Haible  <bruno@clisp.org>
49849
49850         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49851         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49852         Reported by Gary V. Vaughan <gary@gnu.org>.
49853
49854 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49855
49856         Revamp lchown so that it lives in unistd.h where it belongs.
49857         * lib/lchown.h: Remove.
49858         * lib/dirchownmod.c: Don't include lib/lchown.h.
49859         * lib/fchownat.c: Likewise.
49860         * lib/openat.c: Likewise.
49861         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49862         does not follow symlinks.
49863         (EOPNOTSUPP): Define if not defined.
49864         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49865         is defined to 0.
49866         (lchown): New decl.
49867         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49868         Do not check for lchown decl.
49869         Set REPLACE_LCHOWN.
49870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49871         REPLACE_LCHOWN.
49872         * modules/chown: Make it clear it follows symlinks.
49873         * modules/lchown: Make it clear it doesn't follow symlinks.
49874         (Files): Remove lib/lchown.h
49875         (Depends-on): Add unistd.
49876         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49877         (Include): Include <unistd.h>, not "lchown.h".
49878         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49879         REPLACE_LCHOWN.
49880
49881 2007-06-15  Jim Meyering  <jim@meyering.net>
49882
49883         Change license (GPL to LGPL) of fsusage and dependents.
49884         * modules/fsusage (License): Change to LGPL.
49885         * modules/full-read (License): Likewise.
49886         * modules/full-write (License): Likewise.
49887         * modules/safe-read (License): Likewise.
49888         * modules/safe-write (License): Likewise.
49889
49890 2007-06-14  Ben Pfaff  <blp@gnu.org>
49891
49892         Missing part of allocsa -> malloca transition.
49893         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49894         gl_MALLOCA.
49895
49896 2007-06-12  Bruno Haible  <bruno@clisp.org>
49897
49898         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49899         to ia64, x86_64, i386.
49900         Reported by Eric Blake.
49901
49902 2007-06-12  Bruno Haible  <bruno@clisp.org>
49903
49904         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49905         cross-compiling to x86_64.
49906
49907 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49908
49909         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49910         glitch reported by Ralf Wildenhues in
49911         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49912
49913         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49914         Vin Shelton.
49915
49916 2007-06-11  Bruno Haible  <bruno@clisp.org>
49917
49918         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49919         replacement string.
49920         Reported by Eric Blake.
49921
49922 2007-06-10  Bruno Haible  <bruno@clisp.org>
49923
49924         Prepare vasnprintf code for use with Unicode strings.
49925         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49926         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49927         TYPE_U32_STRING.
49928         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49929         a_u32_string variants.
49930         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49931         * lib/printf-args.c: Don't include config.h and the specification
49932         header if PRINTF_FETCHARGS is already defined.
49933         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49934         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49935         TYPE_U16_STRING, TYPE_U32_STRING.
49936         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49937         u16_directive, u16_directives, u32_directive, u32_directives): New
49938         types.
49939         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49940         New declarations.
49941         * lib/printf-parse.c: Don't include config.h and the specification
49942         header if PRINTF_PARSE is already defined. Eliminate the set of
49943         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49944         them now. Include c-ctype.h.
49945         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49946         directive and CHAR_T_ONLY_ASCII.
49947         * lib/vasnprintf.c: Don't include config.h and the specification header
49948         if VASNPRINTF is already defined.
49949         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49950         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49951         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49952         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49953         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49954         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49955         code accordingly.
49956         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49957         pad_ourselves also in this case, with the 'c' and 's' directives, and
49958         with a different notion of "width".
49959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49960
49961 2007-06-10  Bruno Haible  <bruno@clisp.org>
49962
49963         * modules/unistr/u32-mbsnlen: New file.
49964         * lib/unistr/u32-mbsnlen.c: New file.
49965
49966         * modules/unistr/u16-mbsnlen: New file.
49967         * lib/unistr/u16-mbsnlen.c: New file.
49968
49969         * modules/unistr/u8-mbsnlen: New file.
49970         * lib/unistr/u8-mbsnlen.c: New file.
49971
49972         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49973         declarations.
49974
49975 2007-06-10  Bruno Haible  <bruno@clisp.org>
49976
49977         * lib/string_.h (mbsnlen): New declaration.
49978         * lib/mbsnlen.c: New file.
49979         * m4/mbsnlen.m4: New file.
49980         * modules/mbsnlen: New file.
49981         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49982         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49983         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49984
49985 2007-06-10  Bruno Haible  <bruno@clisp.org>
49986
49987         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49988
49989 2007-06-10  Bruno Haible  <bruno@clisp.org>
49990
49991         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49992         * lib/mbuiter.h: Likewise.
49993
49994 2007-06-10  Bruno Haible  <bruno@clisp.org>
49995
49996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49997         declaration.
49998
49999 2007-06-10  Karl Berry  <karl@gnu.org>
50000
50001         * config/srclist.txt: remove gettext entries, Bruno prefers
50002         to update individually.
50003
50004 2007-06-10  Bruno Haible  <bruno@clisp.org>
50005
50006         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50007         'maxlen'. Ensure only length + width bytes are allocated, not
50008         length + 1 + width.
50009
50010 2007-06-09  Bruno Haible  <bruno@clisp.org>
50011
50012         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50013         (CHAR_T): Remove macro.
50014         (VASNPRINTF): Update.
50015
50016 2007-06-09  Bruno Haible  <bruno@clisp.org>
50017
50018         * MODULES.html.sh (Unicode string functions): Add the new modules.
50019
50020         * modules/uniconv/u32-conv-to-enc: New file.
50021         * lib/uniconv/u32-conv-to-enc.c: New file.
50022         * modules/uniconv/u32-conv-to-enc-tests: New file.
50023         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50024
50025         * modules/uniconv/u16-conv-to-enc: New file.
50026         * lib/uniconv/u16-conv-to-enc.c: New file.
50027         * lib/uniconv/u-conv-to-enc.h: New file.
50028         * modules/uniconv/u16-conv-to-enc-tests: New file.
50029         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50030
50031         * modules/uniconv/u8-conv-to-enc: New file.
50032         * lib/uniconv/u8-conv-to-enc.c: New file.
50033         * modules/uniconv/u8-conv-to-enc-tests: New file.
50034         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50035
50036         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50037         u32_conv_to_encoding): New declarations.
50038
50039 2007-06-09  Bruno Haible  <bruno@clisp.org>
50040
50041         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50042
50043 2007-06-09  Bruno Haible  <bruno@clisp.org>
50044
50045         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50046         * modules/malloca: Renamed from modules/allocsa, updated.
50047         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50048         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50049         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50050         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50051         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50052         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50053         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50054         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50055         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50056         * modules/c-strcasestr (Depends-on): Update.
50057         * lib/c-strcasestr.c: Update.
50058         * modules/c-strstr (Depends-on): Update.
50059         * lib/c-strstr.c: Update.
50060         * modules/canonicalize-lgpl (Depends-on): Update.
50061         * lib/canonicalize-lgpl.c: Update.
50062         * modules/clean-temp (Depends-on): Update.
50063         * lib/clean-temp.c: Update.
50064         * modules/csharpcomp (Depends-on): Update.
50065         * lib/csharpcomp.c: Update.
50066         * modules/csharpexec (Depends-on): Update.
50067         * lib/csharpexec.c: Update.
50068         * modules/javacomp (Depends-on): Update.
50069         * lib/javacomp.c: Update.
50070         * modules/javaexec (Depends-on): Update.
50071         * lib/javaexec.c: Update.
50072         * modules/mbscasestr (Depends-on): Update.
50073         * lib/mbscasestr.c: Update.
50074         * modules/mbsstr (Depends-on): Update.
50075         * lib/mbsstr.c: Update.
50076         * modules/setenv (Depends-on): Update.
50077         * lib/setenv.c: Update.
50078         * modules/strcasestr (Depends-on): Update.
50079         * lib/strcasestr.c: Update.
50080         * modules/striconveha (Depends-on): Update.
50081         * lib/striconveha.c: Update.
50082         * modules/relocatable-prog-wrapper (Files): Update.
50083         * lib/relocwrapper.c: Update.
50084         * build-aux/install-reloc: Update.
50085         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50086
50087 2007-06-08  Bruno Haible  <bruno@clisp.org>
50088
50089         Port to uClibc.
50090         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50091         * lib/fpurge.c (fpurge): Likewise.
50092         * lib/freading.c (freading): Likewise.
50093         * lib/fseeko.c (rpl_fseeko): Likewise.
50094         * lib/fseterr.c (fseterr): Likewise.
50095         * lib/fwriting.c (fwriting): Likewise.
50096         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50097
50098 2007-06-08  Bruno Haible  <bruno@clisp.org>
50099
50100         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50101         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50102         * modules/gettext (Files): Add m4/intlmacosx.m4.
50103
50104 2007-06-07  Bruno Haible  <bruno@clisp.org>
50105
50106         * modules/localename-tests: New file.
50107         * tests/test-localename.c: New file.
50108
50109         New module 'localename'.
50110         * lib/localename.h: New file.
50111         * lib/localename.c: New file, from GNU gettext.
50112         * m4/localename.m4: New file.
50113         * modules/localename: New file.
50114
50115 2007-06-07  Bruno Haible  <bruno@clisp.org>
50116
50117         Work around the lack of <wchar.h> on some builds of uClibc.
50118         * doc/headers/wchar.texi: Update.
50119         * lib/wchar_.h: Include <wchar.h> only if it exists.
50120         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50121         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50122         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50123         doesn't exist.
50124         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50125         * modules/mbfile (Depends-on): Add wchar.
50126         * modules/mbiter (Depends-on): Likewise.
50127         * modules/mbuiter (Depends-on): Likewise.
50128         Reported by Simon Josefsson.
50129
50130 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50131
50132         Work around problem reported by Steven M. Schweda in
50133         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50134         Tru64 5.1B with the Compaq compiler environment installed declares
50135         an 'isblank' function but does not define it in the C library.
50136         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50137         * lib/regex_internal.h (isblank): Likewise.
50138         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50139         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50140
50141 2007-06-05  Bruno Haible  <bruno@clisp.org>
50142
50143         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50144         ia64.
50145         * modules/printf-safe: New file.
50146         * modules/fprintf-posix (Depends-on): Add printf-safe.
50147         * modules/printf-posix (Depends-on): Likewise.
50148         * modules/snprintf-posix (Depends-on): Likewise.
50149         * modules/sprintf-posix (Depends-on): Likewise.
50150         * modules/vasnprintf-posix (Depends-on): Likewise.
50151         * modules/vasprintf-posix (Depends-on): Likewise.
50152         * modules/vfprintf-posix (Depends-on): Likewise.
50153         * modules/vprintf-posix (Depends-on): Likewise.
50154         * modules/vsnprintf-posix (Depends-on): Likewise.
50155         * modules/vsprintf-posix (Depends-on): Likewise.
50156         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50157         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50158         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50159         "no" on i386, x86_64, ia64.
50160         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50161         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50162         on i386, x86_64, ia64.
50163         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50164         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50165         on i386, x86_64, ia64.
50166         * tests/test-vasnprintf-posix.c: Include float.h.
50167         (LDBL80_WORDS): New macro.
50168         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50169         on i386, x86_64, ia64.
50170         * tests/test-vasprintf-posix.c: Include float.h.
50171         (LDBL80_WORDS): New macro.
50172         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50173         on i386, x86_64, ia64.
50174         * tests/test-snprintf-posix.c: Include float.h.
50175         * tests/test-sprintf-posix.c: Likewise.
50176         * tests/test-vsnprintf-posix.c: Likewise.
50177         * tests/test-vsprintf-posix.c: Likewise.
50178
50179 2007-06-05  Bruno Haible  <bruno@clisp.org>
50180
50181         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50182         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50183         non-IEEE numbers on i386, x86_64, ia64.
50184         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50185         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50186         * tests/test-isnanl.h: Include float.h.
50187         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50188
50189 2007-06-05  Bruno Haible  <bruno@clisp.org>
50190
50191         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50192         also the %a / %A. Handle the %a / %A code before this extra handling.
50193
50194 2007-06-05  Bruno Haible  <bruno@clisp.org>
50195
50196         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50197         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50198
50199 2007-06-05  Bruno Haible  <bruno@clisp.org>
50200
50201         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
50202         typo in variable name.
50203
50204 2007-06-05  Eric Blake  <ebb9@byu.net>
50205
50206         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
50207         Reported by Simon Josefsson.
50208
50209 2007-06-04  Bruno Haible  <bruno@clisp.org>
50210
50211         Avoid test failures on some PowerPC platforms.
50212         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
50213         Define differently for PowerPC.
50214         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
50215         Reported by Gary V. Vaughan <gary@gnu.org>.
50216
50217 2007-06-02  Bruno Haible  <bruno@clisp.org>
50218
50219         Fix test-stdint failure on FreeBSD/ia64.
50220         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
50221         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
50222         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
50223         * doc/headers/stdint.texi: Update.
50224
50225 2007-06-01  Bruno Haible  <bruno@clisp.org>
50226
50227         * tests/test-binary-io.c (main): Pass a third argument to open().
50228         Reported by Gary V. Vaughan <gary@gnu.org>.
50229
50230 2007-06-01  Bruno Haible  <bruno@clisp.org>
50231
50232         * doc/functions/frexpl.texi: Update for mingw.
50233
50234 2007-06-01  Bruno Haible  <bruno@clisp.org>
50235
50236         * tests/test-lseek.c (main): Disable test of errno for invalid third
50237         argument.
50238         * doc/functions/lseek.texi: Update.
50239         Reported by Gary V. Vaughan <gary@gnu.org>.
50240
50241 2007-05-28  Bruno Haible  <bruno@clisp.org>
50242
50243         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
50244
50245 2007-05-31  Eric Blake  <ebb9@byu.net>
50246
50247         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
50248         cross compiling.
50249
50250 2007-05-30  Eric Blake  <ebb9@byu.net>
50251         and Bruno Haible  <bruno@clisp.org>
50252
50253         Work around mingw test failures exposed by m4-1.4.9b.
50254         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
50255         * tests/test-unistd.c: Disable uid_t and git_t tests for the
50256         moment.
50257
50258 2007-05-30  Bruno Haible  <bruno@clisp.org>
50259
50260         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
50261         assuming that they are closed. Needed on HP-UX 11.
50262
50263 2007-05-29  Bruno Haible  <bruno@clisp.org>
50264
50265         Fix a problem with #include_next.
50266         * lib/dirent_.h: Split the double-inclusion guard.
50267         * lib/fcntl_.h: Likewise.
50268         * lib/float_.h: Likewise.
50269         * lib/iconv_.h: Likewise.
50270         * lib/inttypes_.h: Likewise.
50271         * lib/locale_.h: Likewise.
50272         * lib/math_.h: Likewise.
50273         * lib/netinet_in_.h: Likewise.
50274         * lib/search_.h: Likewise.
50275         * lib/signal_.h: Likewise.
50276         * lib/stdint_.h: Likewise.
50277         * lib/stdio_.h: Likewise.
50278         * lib/stdlib_.h: Likewise.
50279         * lib/string_.h: Likewise.
50280         * lib/sys_select_.h: Likewise.
50281         * lib/sys_socket_.h: Likewise.
50282         * lib/sys_stat_.h: Likewise.
50283         * lib/sys_time_.h: Likewise.
50284         * lib/sysexits_.h: Likewise.
50285         * lib/time_.h: Likewise.
50286         * lib/unistd_.h: Likewise.
50287         * lib/wchar_.h: Likewise.
50288         * lib/wctype_.h: Likewise.
50289
50290 2007-05-29  Bruno Haible  <bruno@clisp.org>
50291
50292         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50293         for the moment.
50294
50295 2007-05-29  Bruno Haible  <bruno@clisp.org>
50296
50297         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50298         invocation.
50299         Reported by Eric Blake.
50300
50301 2007-05-29  Bruno Haible  <bruno@clisp.org>
50302
50303         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50304         compiling case.
50305
50306 2007-05-29  Eric Blake  <ebb9@byu.net>
50307             Bruno Haible  <bruno@clisp.org>
50308
50309         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
50310         cross compiles.
50311
50312 2007-05-28  Eric Blake  <ebb9@byu.net>
50313
50314         * modules/closein-tests (test_closein_LDADD): Support test on
50315         cygwin with libtool.
50316
50317 2007-05-28  Bruno Haible  <bruno@clisp.org>
50318
50319         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
50320         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50321         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50322         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50323         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50324         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50325         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50326         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50327         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50328
50329 2007-05-28  Eric Blake  <ebb9@byu.net>
50330
50331         Unconditionally include <config.h> in unit tests.
50332         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
50333         * tests/test-allocsa.c, tests/test-arcfour.c,
50334         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
50335         tests/test-array_list.c, tests/test-array_oset.c,
50336         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
50337         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
50338         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
50339         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
50340         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
50341         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
50342         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
50343         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
50344         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
50345         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
50346         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
50347         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
50348         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
50349         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
50350         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
50351         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
50352         test-md5.c, test-memmem.c, test-printf-posix.c,
50353         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
50354         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
50355         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
50356         test-strcasestr.c, test-striconv.c, test-striconveh.c,
50357         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
50358         test-vasnprintf-posix2.c, test-vasnprintf.c,
50359         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
50360         test-vfprintf-posix.c, test-vprintf-posix.c,
50361         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
50362         test-xvasprintf.c: Likewise.
50363
50364 2007-05-28  Bruno Haible  <bruno@clisp.org>
50365
50366         * gnulib-tool (func_import): Remember the --with-tests command-line
50367         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
50368         Reported by Eric Blake.
50369
50370 2007-05-28  Bruno Haible  <bruno@clisp.org>
50371
50372         * modules/ftell-tests: New file.
50373         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
50374         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
50375
50376         * lib/ftell.c: New file.
50377         * modules/ftell: New file.
50378         * m4/ftell.m4: New file.
50379         * doc/functions/ftell.texi: Update.
50380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50381         REPLACE_FTELL.
50382         * lib/stdio_.h (rpl_ftell): New declaration.
50383         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50384         REPLACE_FTELL.
50385
50386 2007-05-28  Eric Blake  <ebb9@byu.net>
50387
50388         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50389
50390 2007-05-28  Bruno Haible  <bruno@clisp.org>
50391
50392         * modules/fseek-tests: New file.
50393         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50394         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50395
50396         * lib/fseek.c: New file.
50397         * modules/fseek: New file.
50398         * m4/fseek.m4: New file.
50399         * doc/functions/fseek.texi: Update.
50400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50401         REPLACE_FSEEK.
50402         * lib/stdio_.h (rpl_fseek): New declaration.
50403         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50404         REPLACE_FSEEK.
50405
50406 2007-05-28  Bruno Haible  <bruno@clisp.org>
50407
50408         * lib/stdio_.h (fflush): More comments.
50409
50410 2007-05-28  Bruno Haible  <bruno@clisp.org>
50411
50412         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50413         runtime test.
50414
50415 2007-05-28  Eric Blake  <ebb9@byu.net>
50416
50417         Improve lseek module.
50418         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50419         * lib/unistd_.h (lseek): Scale back link warning message.
50420         * tests/test-lseek.c: Beef up test.
50421         * tests/test-lseek.sh: Exercise more facets of lseek.
50422         Reported by Bruno Haible.
50423
50424 2007-05-28  Bruno Haible  <bruno@clisp.org>
50425
50426         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50427         to define.
50428
50429 2007-05-27  Bruno Haible  <bruno@clisp.org>
50430
50431         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50432
50433 2007-05-27  Bruno Haible  <bruno@clisp.org>
50434
50435         * modules/openmp: New file.
50436         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50437         Noah Misch.
50438
50439 2007-05-26  Bruno Haible  <bruno@clisp.org>
50440
50441         * modules/chdir-long (Depends-on): Add fchdir.
50442         * modules/chdir-safer (Depends-on): Likewise.
50443         * modules/fts (Depends-on): Likewise.
50444         * modules/fts-lgpl (Depends-on): Likewise.
50445         * modules/openat (Depends-on): Likewise.
50446         * modules/savewd (Depends-on): Likewise.
50447
50448 2007-05-24  Eric Blake  <ebb9@byu.net>
50449
50450         Fix lseek on mingw.
50451         * modules/lseek: New module.
50452         * m4/lseek.m4: New file.
50453         * lib/lseek.c: New file.
50454         * modules/lseek-tests: New file.
50455         * tests/test-lseek.c: New file.
50456         * tests/test-lseek.sh: New file.
50457         * MODULES.html.sh: Document lseek module.
50458         * modules/fflush (Depends-on): Add lseek, fseeko.
50459         * modules/fseeko (Depends-on): Likewise.
50460         * modules/ftello (Depends-on): Likewise.
50461         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50462         broken.
50463         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50464         broken.
50465         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50466         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50467         * lib/ftello.c (rpl_ftello): Likewise.
50468         * tests/test-fseeko.c (main): Test this.
50469         * tests/test-fseeko.sh: Likewise.
50470         * tests/test-ftello.c (main): Likewise.
50471         * tests/test-ftello.sh: Likewise.
50472         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50473         implies replacing fseek.
50474         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50475         HAVE_FTELLO.
50476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50477         * modules/unistd (Makefile.am): Likewise.
50478         * lib/unistd_.h (lseek): Declare a replacement.
50479         * doc/functions/lseek.texi (lseek): Document this fix.
50480         * doc/functions/fseek.texi (fseek): Likewise.
50481         * doc/functions/ftell.texi (ftell): Likewise.
50482
50483 2007-05-24  Bruno Haible  <bruno@clisp.org>
50484
50485         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50486         in the printed representation of a NaN.
50487         * tests/test-vasprintf-posix.c (test_function): Likewise.
50488         * tests/test-snprintf-posix.h (test_function): Likewise.
50489         * tests/test-sprintf-posix.h (test_function): Likewise.
50490         Reported by Eric Blake.
50491
50492 2007-05-23  Eric Blake  <ebb9@byu.net>
50493
50494         Fix fseeko/ftello on cygwin 1.5.24.
50495         * doc/functions/fseeko.texi (fseeko): Document the fix.
50496         * doc/functions/ftello.texi (ftello): Document the fix.
50497         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50498         * doc/functions/stdout.text (stdout): New file.
50499         * doc/functions/stderr.text (stderr): New file.
50500         * doc/gnulib.texi (Function Substitutes): Use new files.
50501         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50502         prior to 1.7.0.
50503         * tests/test-ftello.c (main): Likewise for ftello.
50504         * tests/test-fseeko.sh: New file.
50505         * tests/test-ftello.sh: New file.
50506         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50507         with seekable stdin.
50508         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50509         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50510         (gl_REPLACE_FSEEKO): New macro.
50511         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50512         * modules/fseeko (Files): Distribute fseeko.c.
50513         * modules/ftello (Files): Distribute ftello.c.
50514         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50515         mode.
50516         * lib/ftello.c (rpl_ftello): New file.
50517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50518         fseeko, ftello.
50519         (gl_STDIN_LARGE_OFFSET): New macro.
50520         * modules/stdio (Makefile.am): Perform the replacement.
50521         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50522
50523 2007-05-23  Bruno Haible  <bruno@clisp.org>
50524
50525         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50526         GNULIB_POSIXCHECK is defined.
50527
50528 2007-05-21  Bruno Haible  <bruno@clisp.org>
50529
50530         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50531         Check also the output for NaN arguments. When cross-compiling, guess
50532         no on IRIX.
50533         * lib/vasnprintf.c: Update comments.
50534         * tests/test-vasnprintf-posix.c (strisnan): New function.
50535         (test_function): Use it.
50536         * tests/test-vasprintf-posix.c (strisnan): New function.
50537         (test_function): Use it.
50538         * tests/test-snprintf-posix.h (strisnan): New function.
50539         (test_function): Use it.
50540         * tests/test-sprintf-posix.h (strisnan): New function.
50541         (test_function): Use it.
50542         Reported by Eric Blake.
50543
50544 2007-05-20  Bruno Haible  <bruno@clisp.org>
50545
50546         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50547         numbers that fails on BeOS.
50548         * doc/functions/frexpl.texi: Update.
50549
50550 2007-05-20  Jim Meyering  <jim@meyering.net>
50551
50552         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50553         forced upon us by glibc-2.6.
50554
50555 2007-05-20  Bruno Haible  <bruno@clisp.org>
50556
50557         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50558         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50559         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50560         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50561         NEED_PRINTF_INFINITE.
50562         (is_infinitel): New function.
50563         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50565         gl_PREREQ_VASNPRINTF_INFINITE.
50566         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50567         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50568         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50569         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50570         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50571         gl_PREREQ_VASNPRINTF_INFINITE.
50572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50576         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50579         * doc/functions/fprintf.texi: Update.
50580         * doc/functions/printf.texi: Update.
50581         * doc/functions/snprintf.texi: Update.
50582         * doc/functions/sprintf.texi: Update.
50583         * doc/functions/vfprintf.texi: Update.
50584         * doc/functions/vprintf.texi: Update.
50585         * doc/functions/vsnprintf.texi: Update.
50586         * doc/functions/vsprintf.texi: Update.
50587
50588 2007-05-20  Bruno Haible  <bruno@clisp.org>
50589
50590         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50591         was not found in libc.
50592         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50593
50594 2007-05-20  Bruno Haible  <bruno@clisp.org>
50595
50596         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50597         printed as "-nan" instead of "nan".
50598         * tests/test-vasprintf-posix.c (test_function): Likewise.
50599         * tests/test-snprintf-posix.h (test_function): Likewise.
50600         * tests/test-sprintf-posix.h (test_function): Likewise.
50601         Needed for HP-UX 11.
50602
50603 2007-05-20  Jim Meyering  <jim@meyering.net>
50604
50605         Fix buggy test for the fchownat-deref bug.
50606         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50607         symlink required for the run-test.  Without it, this test would
50608         always declare that fchownat doesn't work, and client code would
50609         unnecessarily use the replacement function with fixed libc.
50610         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50611         Reported by Greg Schafer.
50612
50613 2007-05-19  Bruno Haible  <bruno@clisp.org>
50614
50615         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50616         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50617         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50618         Needed for IRIX 6.5 and Solaris 2.5.1.
50619
50620 2007-05-19  Bruno Haible  <bruno@clisp.org>
50621
50622         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50623         (test_function): Skip tests involving -0.0 on platforms where
50624         -0.0 = 0.0.
50625         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50626         (test_function): Skip tests involving -0.0 on platforms where
50627         -0.0 = 0.0.
50628         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50629         (test_function): Skip tests involving -0.0 on platforms where
50630         -0.0 = 0.0.
50631         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50632         (test_function): Skip tests involving -0.0 on platforms where
50633         -0.0 = 0.0.
50634         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50635         tests.
50636         * tests/test-printf-posix.h (test_function): Likewise.
50637         * tests/test-printf-posix.output: Remove all -0.0 related results.
50638         Needed for IRIX 6.5.
50639
50640 2007-05-19  Bruno Haible  <bruno@clisp.org>
50641
50642         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50643         printed as "nan0x7fffffff" instead of "nan".
50644         * tests/test-vasprintf-posix.c (test_function): Likewise.
50645         * tests/test-snprintf-posix.h (test_function): Likewise.
50646         * tests/test-sprintf-posix.h (test_function): Likewise.
50647         * tests/test-fprintf-posix.h (NaN): Remove macro.
50648         (test_function): Remove all NaN related tests.
50649         * tests/test-printf-posix.h (NaN): Remove macro.
50650         (test_function): Remove all NaN related tests.
50651         * tests/test-printf-posix.output: Remove all NaN related results.
50652         Needed for IRIX 6.5.
50653
50654 2007-05-19  Bruno Haible  <bruno@clisp.org>
50655
50656         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50657         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50658
50659 2007-05-19  Bruno Haible  <bruno@clisp.org>
50660
50661         * lib/float_.h: New file.
50662         * m4/float_h.m4: New file.
50663         * modules/float: New file.
50664         * modules/isnanl (Dependencies): Add float.
50665         * modules/isnanl-nolibm (Dependencies): Likewise.
50666         * modules/mathl (Dependencies): Likewise.
50667         * modules/printf-frexpl (Dependencies): Likewise.
50668         * modules/signbit (Dependencies): Likewise.
50669         * modules/vasnprintf (Dependencies): Likewise.
50670         * doc/headers/float.texi: Update.
50671
50672 2007-05-19  Jim Meyering  <jim@meyering.net>
50673
50674         * lib/utimens.c (gl_futimens): Rename from futimens,
50675         now that glibc-2.6 declares futimens.
50676         * lib/utimens.h: Likewise.
50677
50678 2007-05-19  Bruno Haible  <bruno@clisp.org>
50679
50680         Avoid test failures on mingw.
50681         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50682         * tests/test-printf-posix.sh: Likewise.
50683         * tests/test-vfprintf-posix.sh: Likewise.
50684         * tests/test-vprintf-posix.sh: Likewise.
50685
50686 2007-05-19  Bruno Haible  <bruno@clisp.org>
50687
50688         Fix *printf result for NaN, Inf, -0.0 on mingw.
50689         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50690         * lib/vasnprintf.c: Include math.h and isnan.h.
50691         (is_infinite_or_zero): New function.
50692         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50693         values in the %f, %F, %e, %E, %g, %G directives.
50694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50695         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50696         gl_PRINTF_INFINITE and test its result. Invoke
50697         gl_PREREQ_VASNPRINTF_INFINITE.
50698         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50699         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50700         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50701         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50702         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50703         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50705         * doc/functions/fprintf.texi: Update.
50706         * doc/functions/printf.texi: Update.
50707         * doc/functions/snprintf.texi: Update.
50708         * doc/functions/sprintf.texi: Update.
50709         * doc/functions/vfprintf.texi: Update.
50710         * doc/functions/vprintf.texi: Update.
50711         * doc/functions/vsnprintf.texi: Update.
50712         * doc/functions/vsprintf.texi: Update.
50713
50714 2007-05-19  Bruno Haible  <bruno@clisp.org>
50715
50716         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50717         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50718         Instead of multiplying with 10^k, set extra_zeroes to k.
50719         (scale10_round_long_double): Remove function.
50720
50721 2007-05-18  Bruno Haible  <bruno@clisp.org>
50722
50723         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50724         introduced on 2007-05-06.
50725
50726 2007-05-18  Bruno Haible  <bruno@clisp.org>
50727
50728         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50729         %g directives.
50730         * tests/test-vasprintf-posix.c (test_function): Likewise.
50731         * tests/test-snprintf-posix.h (test_function): Likewise.
50732         * tests/test-sprintf-posix.h (test_function): Likewise.
50733
50734 2007-05-18  Bruno Haible  <bruno@clisp.org>
50735
50736         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50737         (strmatch): New function.
50738         (test_function): Test the %f directive on numbers of various exponents.
50739         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50740         (strmatch): New function.
50741         (test_function): Test the %f directive on numbers of various exponents.
50742         * tests/test-snprintf-posix.h (strmatch): New function.
50743         (test_function): Test the %f directive on numbers of various exponents.
50744         * tests/test-sprintf-posix.h (strmatch): New function.
50745         (test_function): Test the %f directive on numbers of various exponents.
50746         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50747         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50748         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50749         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50750
50751 2007-05-18  Bruno Haible  <bruno@clisp.org>
50752
50753         Add support for 'long double' number output.
50754         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50755         * lib/vasnprintf.c: Include math.h and float+.h.
50756         (mp_limb_t): New type.
50757         (GMP_LIMB_BITS): New macro.
50758         (mp_twolimb_t): New type.
50759         (GMP_TWOLIMB_BITS): New macro.
50760         (mpn_t): New type.
50761         (multiply, divide, convert_to_decimal, decode_long_double,
50762         scale10_round_long_double, scale10_round_decimal_long_double,
50763         floorlog10l): New functions.
50764         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50765         for the %f, %F, %e, %E, %g, %G directives.
50766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50767         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50768         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50769         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50770         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50772         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50773         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50774         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50775         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50776         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50777         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50778         * modules/snprintf-posix (Depends-on): Likewise.
50779         * modules/sprintf-posix (Depends-on): Likewise.
50780         * modules/vasnprintf-posix (Depends-on): Likewise.
50781         * modules/vasprintf-posix (Depends-on): Likewise.
50782         * modules/vfprintf-posix (Depends-on): Likewise.
50783         * modules/vsnprintf-posix (Depends-on): Likewise.
50784         * modules/vsprintf-posix (Depends-on): Likewise.
50785         * modules/vasnprintf (Files): Add lib/float+.h.
50786         * doc/functions/fprintf.texi: Update.
50787         * doc/functions/printf.texi: Update.
50788         * doc/functions/snprintf.texi: Update.
50789         * doc/functions/sprintf.texi: Update.
50790         * doc/functions/vfprintf.texi: Update.
50791         * doc/functions/vprintf.texi: Update.
50792         * doc/functions/vsnprintf.texi: Update.
50793         * doc/functions/vsprintf.texi: Update.
50794
50795 2007-05-18  Bruno Haible  <bruno@clisp.org>
50796
50797         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50798
50799 2007-05-18  Bruno Haible  <bruno@clisp.org>
50800
50801         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50802         for printing 64-bit integers. Needed for mingw.
50803
50804 2007-05-18  Bruno Haible  <bruno@clisp.org>
50805
50806         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50807         gl_FUNC_FREXPL_WORKS.
50808         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50809
50810 2007-05-18  Bruno Haible  <bruno@clisp.org>
50811
50812         * modules/frexpl-nolibm-tests: New file.
50813
50814         * modules/frexpl-nolibm: New file.
50815         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50816
50817 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50818
50819         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50820         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50821         GCC 4.2, which otherwise issues a lot of warnings.
50822         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50823         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50824         Likewise.
50825         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50826         * modules/iconv_open (iconv.h): Likewise.
50827         * modules/locale (locale.h): Likewise.
50828         * modules/netinet_in (netinet/in.h): Likewise.
50829         * modules/sys_select (sys_select.h): Likewise.
50830         * modules/sys_socket (sys/socket.h): Likewise.
50831         * modules/sys_stat (sys/stat.h): Likewise.
50832         * modules/sysexits (sysexits.h): Likewise.
50833         * modules/unistd (unistd.h): Likewise.
50834
50835 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50836
50837         * modules/closein-tests (Makefile.am): Distribute
50838         `test-closein.sh'.
50839
50840 2007-05-17  Bruno Haible  <bruno@clisp.org>
50841
50842         * tests/test-printf-posix.output: Renamed from
50843         tests/test-fprintf-posix.out.
50844         * modules/fprintf-posix-tests: Update.
50845         * modules/printf-posix-tests: Update.
50846         * modules/vfprintf-posix-tests: Update.
50847         * modules/vprintf-posix-tests: Update.
50848         * tests/test-fprintf-posix.sh: Update.
50849         * tests/test-printf-posix.sh: Update.
50850         * tests/test-vfprintf-posix.sh: Update.
50851         * tests/test-vprintf-posix.sh: Update.
50852         Reported by Ralf Wildenhues.
50853
50854 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50855
50856         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50857         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50858         GCC 4.2, which otherwise issues a lot of warnings.
50859         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50860         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50861         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50862         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50863         it should no longer be needed.
50864         * lib/string_.h: Likewise.
50865         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50866         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50867         * modules/inttypes (inttypes.h): Likewise.
50868         * modules/math (math.h): Likewise.
50869         * modules/search (search.h): Likewise.
50870         * modules/signal (signal.h): Likewise.
50871         * modules/stdint (stdint.h): Likewise.
50872         * modules/stdio (stdio.h): Likewise.
50873         * modules/stdlib (stdlib.h): Likewise.
50874         * modules/string (string.h): Likewise.
50875         * modules/sys_time (sys/time.h): Likewise.
50876         * modules/time (time.h): Likewise.
50877         * modules/wchar (wchar.h): Likewise.
50878         * modules/wctype (wtype.h): Likewise.
50879
50880 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50881
50882         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50883
50884 2007-05-13  Bruno Haible  <bruno@clisp.org>
50885
50886         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50887         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50888         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50889         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50890         (gl_PREREQ_STRTOK_R): Don't require it here.
50891
50892 2007-05-13  Bruno Haible  <bruno@clisp.org>
50893
50894         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50895         when used in C++ mode.
50896
50897 2007-05-12  Bruno Haible  <bruno@clisp.org>
50898
50899         * lib/linebuffer.h: Tweak doc.
50900         * lib/linebuffer.c: Likewise.
50901
50902 2007-05-12  James Youngman  <jay@gnu.org>
50903
50904         * lib/linebuffer.c (readlinebuffer_delim): New function,
50905         like readlinebuffer, but use a caller-specified delimiter.
50906         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50907         as the delimiter.
50908         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50909
50910 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50911
50912         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50913         * modules/openat (Files): Remove openat-die.c.
50914         (Depends-on): Add openat-die.
50915         * modules/openat-die: New module.
50916
50917 2007-05-06  Bruno Haible  <bruno@clisp.org>
50918
50919         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50920         Update with info about Cygwin.
50921         * doc/functions/fprintf.texi: Update.
50922         * doc/functions/printf.texi: Update.
50923         * doc/functions/snprintf.texi: Update.
50924         * doc/functions/sprintf.texi: Update.
50925         * doc/functions/vfprintf.texi: Update.
50926         * doc/functions/vprintf.texi: Update.
50927         * doc/functions/vsnprintf.texi: Update.
50928         * doc/functions/vsprintf.texi: Update.
50929         Reported by Eric Blake.
50930
50931 2007-05-06  Bruno Haible  <bruno@clisp.org>
50932
50933         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50934         padding ourselves for the floating-point directives.
50935         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50936         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50937         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50938         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50939         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50940         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50941         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50942         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50943         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50944         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50945         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50946         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50947         * tests/test-snprintf-posix.h (test_function): Also check the width
50948         and some flags in the %f directive.
50949         * tests/test-sprintf-posix.h (test_function): Likewise.
50950         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50951         * tests/test-vasprintf-posix.c (test_function): Likewise.
50952         * doc/functions/fprintf.texi: Update.
50953         * doc/functions/printf.texi: Update.
50954         * doc/functions/snprintf.texi: Update.
50955         * doc/functions/sprintf.texi: Update.
50956         * doc/functions/vfprintf.texi: Update.
50957         * doc/functions/vprintf.texi: Update.
50958         * doc/functions/vsnprintf.texi: Update.
50959         * doc/functions/vsprintf.texi: Update.
50960
50961 2007-05-06  Bruno Haible  <bruno@clisp.org>
50962
50963         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50964         pass the ' flag character to sprintf or snprintf.
50965         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50967         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50968         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50969         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50971         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50974         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50975         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50977         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50978         flag.
50979         * tests/test-sprintf-posix.h (test_function): Likewise.
50980         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50981         * tests/test-vasprintf-posix.c (test_function): Likewise.
50982         * doc/functions/fprintf.texi: Update.
50983         * doc/functions/printf.texi: Update.
50984         * doc/functions/snprintf.texi: Update.
50985         * doc/functions/sprintf.texi: Update.
50986         * doc/functions/vfprintf.texi: Update.
50987         * doc/functions/vprintf.texi: Update.
50988         * doc/functions/vsnprintf.texi: Update.
50989         * doc/functions/vsprintf.texi: Update.
50990
50991 2007-05-01  Bruno Haible  <bruno@clisp.org>
50992
50993         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50994
50995 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50996
50997         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50998         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50999
51000 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51001
51002         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51003         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51004         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51005
51006 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51007
51008         * lib/argp-help.c (struct hol_entry): New member `ord'.
51009         (HOL_ENTRY_PTRCMP): Use ord for comparison
51010         (hol_sort): Initialize ord.
51011
51012 2007-05-01  Bruno Haible  <bruno@clisp.org>
51013
51014         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51015         Reported by Eric Blake.
51016         * doc/gnulib.texi (Function Substitutes): Update.
51017
51018 2007-05-01  Bruno Haible  <bruno@clisp.org>
51019
51020         * doc/functions.texi: Remove file, now redundant through
51021         doc/functions/*.texi.
51022
51023 2007-05-01  Bruno Haible  <bruno@clisp.org>
51024
51025         * modules/argp (Depends-on): Add sleep.
51026
51027 2007-05-01  Bruno Haible  <bruno@clisp.org>
51028
51029         * modules/sleep-tests: New file.
51030         * tests/test-sleep.c: New file.
51031
51032         * modules/sleep: New file.
51033         * lib/sleep.c: New file.
51034         * m4/sleep.m4: New file.
51035         * lib/unistd_.h (sleep): New declaration.
51036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51037         HAVE_SLEEP.
51038         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51039         * doc/functions/sleep.texi: Document the sleep module.
51040
51041 2007-05-01  Bruno Haible  <bruno@clisp.org>
51042
51043         * lib/sigprocmask.h: Remove file.
51044         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51045         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51046         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51047         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51048         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51049         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51050         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51051         HAVE_SIGSET_T as a shell variable.
51052         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51053         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51054         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51055         (Depends-on): Add signal. Remove verify.
51056         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51057         (Include): Mention <signal.h> instead of sigprocmask.h.
51058         * NEWS: Mention the change.
51059         * lib/fatal-signal.c: Don't include sigprocmask.h.
51060
51061 2007-05-01  Bruno Haible  <bruno@clisp.org>
51062
51063         * modules/signal: New file.
51064         * lib/signal_.h: New file.
51065         * m4/signal_h.m4: New file.
51066
51067 2007-05-01  Bruno Haible  <bruno@clisp.org>
51068
51069         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51070         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51071         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51072         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51073
51074 2007-05-01  Bruno Haible  <bruno@clisp.org>
51075
51076         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51077         configure time.
51078         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51079         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51080         * modules/sys_stat (Makefile.am): Substitute their values into
51081         sys/stat.h.
51082
51083 2007-05-01  Bruno Haible  <bruno@clisp.org>
51084
51085         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51086         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51087         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51088
51089 2007-05-01  Bruno Haible  <bruno@clisp.org>
51090
51091         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51092         'assert' module here.
51093
51094 2007-05-01  Bruno Haible  <bruno@clisp.org>
51095
51096         * doc/functions/*.texi: New files.
51097         * doc/functions/google-ranking.txt: New file.
51098         * doc/gnulib.texi (Function Substitutes): New chapter.
51099         (ctime, inet_ntoa): Remove sections.
51100         * doc/ctime.texi: Remove file.
51101         * doc/inet_ntoa.texi: Remove file.
51102         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51103         dependencies.
51104         (%.info): New rule, specifying a --reference-limit.
51105
51106 2007-05-01  Bruno Haible  <bruno@clisp.org>
51107
51108         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51109
51110 2007-05-01  Bruno Haible  <bruno@clisp.org>
51111
51112         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51113         the portability of 'mkdir' to mingw systems.
51114
51115 2007-05-01  Bruno Haible  <bruno@clisp.org>
51116
51117         * doc/headers/google-ranking.txt: New file.
51118
51119 2007-04-30  Eric Blake  <ebb9@byu.net>
51120
51121         Prefer fseeko to fseek.
51122         * modules/getpass (Depends-on): Add fseeko.
51123         * lib/getpass.c (getpass): Use fseeko, not fseek.
51124
51125 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51126
51127         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51128         assumes the sorting is stable, while most qsort implementations
51129         are not.  Use argument addresses to ensure they never compare as
51130         equal.
51131
51132         * tests/test-argp-2.sh (usage-indent test): Fix output
51133         (func_compare): Restore diff options
51134         * tests/test-argp.c: Restore #include "progname.h"
51135
51136 2007-04-29  Bruno Haible  <bruno@clisp.org>
51137
51138         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51140         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51142         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51143         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51144         (TESTS, check_PROGRAMS): Add test-snprintf.
51145         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51146         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51147         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51148         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51149         assertions that fail on HP-UX, OSF/1, or IRIX.
51150         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51151
51152 2007-04-29  Bruno Haible  <bruno@clisp.org>
51153
51154         * MODULES.html.sh (posix_functions): Remove 'contents'.
51155
51156 2007-04-29  Karl Berry  <karl@gnu.org>
51157
51158         * config/srclist.txt (gendocs_template_min): new entry.
51159
51160 2007-04-29  Bruno Haible  <bruno@clisp.org>
51161
51162         Work around fpurge bug on BSD systems.
51163         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51164         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51165         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51166         fpurge to rpl_fpurge if the system already has this function.
51167         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51168         the case where the system already has this function. Correct invariants
51169         on BSD systems.
51170         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51171         BSD systems.
51172
51173 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51174
51175         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51176         proposed by Sven Verdoolaege.
51177
51178         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51179         options.
51180         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51181         (usage and help tests): Update
51182
51183 2007-04-29  Bruno Haible  <bruno@clisp.org>
51184
51185         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51186         Print more information in case of failure. Disable a test on BeOS.
51187
51188 2007-04-29  Bruno Haible  <bruno@clisp.org>
51189
51190         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51191         This helps debugging on systems on which no gdb is available.
51192
51193 2007-04-29  Bruno Haible  <bruno@clisp.org>
51194
51195         * lib/freading.h: Improve comments.
51196         * lib/fwriting.h: Likewise.
51197         * tests/test-freading.c (main): Don't check freading immediately after
51198         repositioning. Needed for glibc.
51199
51200 2007-04-29  Bruno Haible  <bruno@clisp.org>
51201
51202         * lib/freading.c (freading): Trivial simplification.
51203
51204 2007-04-28  Bruno Haible  <bruno@clisp.org>
51205
51206         * tests/test-fwriting.c (main): Also test the interaction between
51207         fflush and fwriting.
51208         * modules/fwriting-tests (Depends-on): Add fflush.
51209
51210         * tests/test-freading.c (main): Also test the interaction between
51211         fflush and freading.
51212         * modules/freading-tests (Depends-on): Add fflush.
51213
51214 2007-04-28  Bruno Haible  <bruno@clisp.org>
51215
51216         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
51217         fseeko and ftello.
51218         Suggested by Eric Blake.
51219
51220 2007-04-28  Jim Meyering  <jim@meyering.net>
51221
51222         Avoid false-negative in gl_STDINT_H's C99 conformance test.
51223         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
51224         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
51225
51226 2007-04-27  Eric Blake  <ebb9@byu.net>
51227
51228         * doc/headers/assert.texi (assert.h): Document assert module use.
51229
51230 2007-04-27  Bruno Haible  <bruno@clisp.org>
51231
51232         * doc/headers/*.texi: New files.
51233         * doc/gnulib.texi (Header File Substitutes): New chapter.
51234         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
51235         dependencies.
51236         (standards.info ,standards.html, standards.dvi): Update dependencies.
51237         (mostlyclean, clean): New targets.
51238
51239 2007-04-27  Bruno Haible  <bruno@clisp.org>
51240
51241         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
51242         * modules/sysexits (Files, Makefile.am): Update.
51243
51244         * lib/sys_socket_.h: Renamed from lib/socket_.h.
51245         * modules/sys_socket (Files, Makefile.am): Update.
51246
51247         * lib/sys_stat_.h: Renamed from lib/stat_.h.
51248         * modules/sys_stat (Files, Makefile.am): Update.
51249
51250 2007-04-27  Eric Blake  <ebb9@byu.net>
51251
51252         * lib/freading.h: Improve comments.
51253         * lib/fwriting.h: Likewise.
51254         * lib/fflush.c: Likewise.
51255
51256         Fix closein for mingw.
51257         * modules/closein-tests: Add tests for closein.
51258         * tests/test-closein.c: New file.
51259         * tests/test-closein.sh: Likewise.
51260         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
51261         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
51262
51263 2007-04-27  Bruno Haible  <bruno@clisp.org>
51264
51265         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
51266         version is < 6.
51267         * lib/math_.h [__DECC]: Likewise.
51268         * lib/stdio_.h [__DECC]: Likewise.
51269         * lib/stdlib_.h [__DECC]: Likewise.
51270         * lib/string_.h [__DECC]: Likewise.
51271         * lib/time_.h [__DECC]: Likewise.
51272         * lib/wchar_.h [__DECC]: Likewise.
51273         * lib/wctype_.h [__DECC]: Likewise.
51274
51275 2007-04-27  Bruno Haible  <bruno@clisp.org>
51276
51277         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51278
51279 2007-04-27  Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/fflush.c: Add comments.
51282         * modules/fpurge-tests (Depends-on): Add fflush.
51283         * modules/freadable-tests (Depends-on): Likewise.
51284         * modules/fwritable-tests (Depends-on): Likewise.
51285
51286 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51287
51288         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51289         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51290         Report by Bruno Haible <bruno@clisp.org>.
51291
51292 2007-04-26  Eric Blake  <ebb9@byu.net>
51293
51294         Fix fflush on mingw.
51295         * modules/fflush (Depends-on): Add freading.
51296         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51297         but unread data.
51298
51299 2007-04-26  Eric Blake  <ebb9@byu.net>
51300         and Bruno Haible  <bruno@clisp.org>
51301
51302         Implement freading and fwriting.
51303         * lib/freading.c: New file.
51304         * lib/freading.h: Likewise.
51305         * m4/freading.m4: Likewise.
51306         * modules/freading: Likewise.
51307         * modules/freading-tests: Likewise.
51308         * tests/test-freading.c: Likewise.
51309         * lib/fwriting.c: New file.
51310         * lib/fwriting.h: Likewise.
51311         * m4/fwriting.m4: Likewise.
51312         * modules/fwriting: Likewise.
51313         * modules/fwriting-tests: Likewise.
51314         * tests/test-fwriting.c: Likewise.
51315         * MODULES.html.sh (File stream based Input/Output): Mention them.
51316
51317 2007-04-26  Bruno Haible  <bruno@clisp.org>
51318
51319         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
51320         'long' when we assume it.
51321         Suggested by Eric Blake.
51322
51323 2007-04-26  Bruno Haible  <bruno@clisp.org>
51324
51325         Ensure fseeko, ftello are declared on glibc systems.
51326         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
51327         * modules/fseeko (configure.ac-early): Likewise.
51328         * modules/ftello (configure.ac-early): Likewise.
51329         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
51330         AC_FUNC_FSEEKO for this.
51331         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
51332         (gl_CHECK_FSEEKO): Remove macro.
51333
51334 2007-04-26  Bruno Haible  <bruno@clisp.org>
51335
51336         * tests/test-fflush.c (main): Also check the ftell result after
51337         fflush and fseek/fseeko.
51338         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
51339         file descriptor position cache in the stream.
51340         * lib/fseeko.c (rpl_fseeko): Likewise.
51341
51342 2007-04-26  Bruno Haible  <bruno@clisp.org>
51343
51344         * modules/fflush-tests (Depends-on): Add fseeko.
51345
51346 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
51347             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51348
51349         * lib/argz_.h: ensure error_t definition is obtained in same
51350         mechanism system argz.h would have.
51351         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
51352         argz facilities are known bad.  Err on the side of caution if
51353         cross-compiling.
51354
51355 2007-04-25  Eric Blake  <ebb9@byu.net>
51356
51357         * lib/fpurge.c (includes): Use stdlib.h for free.
51358         * tests/test-fflush.c (main): Also test fflush-fseeko.
51359
51360 2007-04-25  Bruno Haible  <bruno@clisp.org>
51361
51362         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
51363         * lib/fseeko.c: New file.
51364         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
51365         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
51366         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
51367         gl_FUNC_FSEEKO.
51368         (gl_FUNC_FSEEKO): Invoke it.
51369         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
51370         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
51371         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
51372
51373 2007-04-25  Bruno Haible  <bruno@clisp.org>
51374
51375         * modules/fflush (Depends-on): Add ftello.
51376
51377 2007-04-25  Bruno Haible  <bruno@clisp.org>
51378
51379         * modules/ftello-tests: New file.
51380         * tests/test-ftello.c: New file.
51381
51382         * modules/ftello: New file.
51383         * m4/ftello.m4: New file.
51384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51385         HAVE_FTELLO.
51386         * lib/stdio_.h (ftello): New declaration.
51387         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51388         HAVE_FTELLO.
51389
51390 2007-04-25  Bruno Haible  <bruno@clisp.org>
51391
51392         * modules/fseeko-tests: New file.
51393         * tests/test-fseeko.c: New file.
51394
51395         * modules/fseeko: New file.
51396         * m4/fseeko.m4: New file.
51397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51398         HAVE_FSEEKO.
51399         * lib/stdio_.h (fseeko): New declaration.
51400         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51401         HAVE_FSEEKO.
51402
51403 2007-04-25  Bruno Haible  <bruno@clisp.org>
51404
51405         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51406
51407 2007-04-25  Bruno Haible  <bruno@clisp.org>
51408
51409         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51410         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51411         * tests/test-unistd.c: Likewise.
51412         * tests/test-fcntl.c: Likewise.
51413
51414 2007-04-23  Eric Blake  <ebb9@byu.net>
51415
51416         * lib/fflush.c: Fix missing include.
51417         Reported by Bruno Haible.
51418
51419 2007-04-23  Bruno Haible  <bruno@clisp.org>
51420
51421         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51422         Reported by Eric Blake.
51423
51424 2007-04-23  Bruno Haible  <bruno@clisp.org>
51425
51426         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51427
51428 2007-04-23  Bruno Haible  <bruno@clisp.org>
51429
51430         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51431
51432 2007-04-23  Bruno Haible  <bruno@clisp.org>
51433
51434         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51435         Needed on HP-UX 11.
51436
51437 2007-04-16  Eric Blake  <ebb9@byu.net>
51438
51439         Make fflush rely on fpurge.
51440         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51441         open coding all variants.
51442         * modules/fflush (Depends-on): Add fpurge and unistd.
51443         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51444         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51445
51446         Fix --with-tests compilation on cygwin.
51447         * modules/argmatch-tests (Makefile.am): List gnulib library first
51448         in LDADD.
51449         * modules/argp-tests (Makefile.am): Likewise.
51450         * modules/array-list-tests (Makefile.am): Likewise.
51451         * modules/array-oset-tests (Makefile.am): Likewise.
51452         * modules/avltree-list-tests (Makefile.am): Likewise.
51453         * modules/avltree-oset-tests (Makefile.am): Likewise.
51454         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51455         * modules/carray-list-tests (Makefile.am): Likewise.
51456         * modules/dirname-tests (Makefile.am): Likewise.
51457         * modules/frexp-tests (Makefile.am): Likewise.
51458         * modules/isnanl-tests (Makefile.am): Likewise.
51459         * modules/linked-list-tests (Makefile.am): Likewise.
51460         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51461         * modules/lock-tests (Makefile.am): Likewise.
51462         * modules/rbtree-list-tests (Makefile.am): Likewise.
51463         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51464         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51465         * modules/tls-tests (Makefile.am): Likewise.
51466         * modules/tsearch-tests (Makefile.am): Likewise.
51467         * modules/xvasprintf-tests (Makefile.am): Likewise.
51468
51469         Fix fpurge for cygwin.
51470         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51471         value.
51472         * modules/fpurge-tests (Depends-on): Clean up trash.
51473
51474 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51475
51476         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51477
51478         * m4/autobuild.m4: Re-indent.
51479
51480 2007-04-13  Bruno Haible  <bruno@clisp.org>
51481
51482         * modules/fpurge-tests: New file.
51483         * tests/test-fpurge.c: New file.
51484
51485         * modules/fpurge: New file.
51486         * lib/fpurge.h: New file.
51487         * lib/fpurge.c: New file.
51488         * m4/fpurge.m4: New file.
51489
51490 2007-04-13  Bruno Haible  <bruno@clisp.org>
51491
51492         * modules/fbufmode-tests: New file.
51493         * tests/test-fbufmode.c: New file.
51494
51495         * modules/fbufmode: New file.
51496         * lib/fbufmode.h: New file.
51497         * lib/fbufmode.c: New file.
51498         * m4/fbufmode.m4: New file.
51499
51500 2007-04-13  Bruno Haible  <bruno@clisp.org>
51501
51502         * modules/fwritable-tests: New file.
51503         * tests/test-fwritable.c: New file.
51504
51505         * modules/fwritable: New file.
51506         * lib/fwritable.h: New file.
51507         * lib/fwritable.c: New file.
51508         * m4/fwritable.m4: New file.
51509
51510 2007-04-13  Bruno Haible  <bruno@clisp.org>
51511
51512         * modules/freadable-tests: New file.
51513         * tests/test-freadable.c: New file.
51514
51515         * modules/freadable: New file.
51516         * lib/freadable.h: New file.
51517         * lib/freadable.c: New file.
51518         * m4/freadable.m4: New file.
51519
51520 2007-04-13  Bruno Haible  <bruno@clisp.org>
51521
51522         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51523         MOSTLYCLEANFILES.
51524
51525 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51526
51527         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51528         gzip bootstrap.conf to avoid dragging in i18n machinery.
51529         (gnulib_tool_option): Use it.
51530
51531 2007-04-13  Bruno Haible  <bruno@clisp.org>
51532
51533         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51534         %F directives.
51535         * tests/test-vasprintf-posix.c (test_function): Likewise.
51536         * tests/test-snprintf-posix.h (test_function): Likewise.
51537         * tests/test-sprintf-posix.h (test_function): Likewise.
51538         * tests/test-fprintf-posix.h (test_function): Likewise.
51539         * tests/test-printf-posix.h (test_function): Likewise.
51540         * tests/test-fprintf-posix.out: Likewise.
51541
51542 2007-04-13  Bruno Haible  <bruno@clisp.org>
51543
51544         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51545         * modules/tls-tests (configure.ac): Likewise.
51546         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51547
51548 2007-04-13  Bruno Haible  <bruno@clisp.org>
51549
51550         * lib/tls.c (glthread_tls_get): Fix return type.
51551         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51552
51553 2007-04-12  Eric Blake  <ebb9@byu.net>
51554
51555         * modules/gettime (Depends-on): Remove gettime.
51556         Reported by Dmitry V. Levin.
51557
51558 2007-04-12  Bruno Haible  <bruno@clisp.org>
51559
51560         * modules/fflush (Include): Mention <stdio.h>.
51561         * modules/strtoimax (Include): Mention <inttypes.h>.
51562         * modules/strtoumax (Include): Likewise.
51563
51564 2007-04-12  Eric Blake  <ebb9@byu.net>
51565
51566         * .cvsignore: New file.
51567         * .gitignore: Likewise.
51568
51569 2007-04-12  Bruno Haible  <bruno@clisp.org>
51570
51571         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51572         not before, since $(LDADD) often contains libgnu.a.
51573         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51574         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51575         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51576         Needed on Cygwin.
51577
51578 2007-04-12  Eric Blake  <ebb9@byu.net>
51579
51580         Work around glibc's failure to flush stdin on fclose.
51581         * lib/closein.c (close_stdin): Flush stdin before closing.
51582
51583         Work around glibc's failure to reset seekable stdin on exit.
51584         * modules/closein: New module.
51585         * lib/closein.c: New file.
51586         * lib/closein.h: Likewise.
51587         * m4/closein.m4: Likewise.
51588         * MODULES.html.sh (File stream based Input/Output): Document it.
51589
51590 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51591
51592         * gnulib-tool: Rename generated 'autobuild' script to
51593         'do-autobuild' in --create-megatestdir output.
51594
51595         * doc/gnulib.texi (Build robot for gnulib): Fix.
51596
51597 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51598
51599         * modules/sysexits (Depends-on): Add absolute-header.
51600
51601 2007-04-12  Eric Blake  <ebb9@byu.net>
51602
51603         No need to preserve errno on success.
51604         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51605         Reported by Bruno Haible.
51606
51607 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51608
51609         * MODULES.html.sh (Support for maintaining and releasing
51610         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51611
51612 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51613
51614         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51615
51616 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51617
51618         * modules/autobuild: New module.
51619
51620         * m4/autobuild.m4: New file.
51621
51622 2007-04-11  Bruno Haible  <bruno@clisp.org>
51623
51624         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51625         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51626         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51629         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51630         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51632         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51633         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51634         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51635         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51636         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51638         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51639         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51640         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51641         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51642         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51643         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51644         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51645         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51646         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51647         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51648         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51650         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51651         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51652         Reported by Eric Blake.
51653
51654 2007-04-11  Bruno Haible  <bruno@clisp.org>
51655
51656         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51657
51658 2007-04-10  Bruno Haible  <bruno@clisp.org>
51659
51660         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51661         for NaN and Infinity. Needed on FreeBSD 6.1.
51662         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51663         regarding results for "%010a" of Infinity and NaN.
51664         * tests/test-vasprintf-posix.c (test_function): Likewise.
51665         * tests/test-snprintf-posix.h (test_function): Likewise.
51666         * tests/test-sprintf-posix.h (test_function): Likewise.
51667         * tests/test-fprintf-posix.h (test_function): Likewise.
51668         * tests/test-printf-posix.h (test_function): Likewise.
51669         * tests/test-fprintf-posix.out: Likewise.
51670
51671 2007-04-10  Bruno Haible  <bruno@clisp.org>
51672
51673         * modules/locale-tests: New file.
51674         * tests/test-locale.c: New file.
51675
51676         * modules/locale: New file.
51677         * lib/locale_.h: New file.
51678         * m4/locale_h.m4: New file.
51679
51680 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51681             Bruno Haible  <bruno@clisp.org>
51682
51683         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51684         be determined, test for availability of the copysignf, copysign,
51685         copysignl functions.
51686         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51687         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51688         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51689
51690 2007-04-09  Eric Blake  <ebb9@byu.net>
51691
51692         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51693         * modules/stdio (Makefile.am): Support fflush.
51694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51695         * modules/fflush: New file.
51696         * lib/fflush.c: Likewise.
51697         * m4/fflush.m4: Likewise.
51698         * modules/fflush-tests: New test.
51699         * tests/test-fflush.c: Likewise.
51700         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51701
51702 2007-04-06  Bruno Haible  <bruno@clisp.org>
51703
51704         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51705         (VASNPRINTF): Use signbit for faster determination whether to print a
51706         minus sign.
51707         * modules/vasnprintf (Files): Remove lib/float+.h.
51708         * modules/fprintf-posix (Depends-on): Add signbit.
51709         * modules/snprintf-posix (Depends-on): Likewise.
51710         * modules/sprintf-posix (Depends-on): Likewise.
51711         * modules/vasnprintf-posix (Depends-on): Likewise.
51712         * modules/vasprintf-posix (Depends-on): Likewise.
51713         * modules/vfprintf-posix (Depends-on): Likewise.
51714         * modules/vsnprintf-posix (Depends-on): Likewise.
51715         * modules/vsprintf-posix (Depends-on): Likewise.
51716
51717 2007-04-06  Bruno Haible  <bruno@clisp.org>
51718
51719         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51720         * tests/test-frexpl.c (main): Likewise.
51721         * tests/test-ldexpl.c (main): Likewise.
51722         * modules/frexp-tests (Depends-on): Add signbit.
51723         * modules/frexpl-tests (Depdends-on): Likewise.
51724         * modules/ldexpl-tests (Depdends-on): Likewise.
51725
51726 2007-04-06  Bruno Haible  <bruno@clisp.org>
51727
51728         * modules/signbit-tests: New file.
51729         * tests/test-signbit.c: New file.
51730
51731         * modules/signbit: New file.
51732         * lib/signbitf.c: New file.
51733         * lib/signbitd.c: New file.
51734         * lib/signbitl.c: New file.
51735         * m4/signbit.m4: New file.
51736         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51737         (signbit): New macro.
51738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51739         REPLACE_SIGNBIT.
51740         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51741         REPLACE_FREXPL into math.h.
51742
51743 2007-04-06  Bruno Haible  <bruno@clisp.org>
51744
51745         * modules/isnanf-nolibm-tests: New file.
51746         * tests/test-isnanf.c: New file.
51747
51748         * modules/isnanf-nolibm: New file.
51749         * lib/isnanf.h: New file.
51750         * lib/isnanf.c: New file.
51751         * lib/isnan.c: Consider the USE_FLOAT macro.
51752         * m4/isnanf.m4: New file.
51753
51754 2007-04-06  Bruno Haible  <bruno@clisp.org>
51755
51756         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51757         (Link): New section.
51758
51759         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51760
51761 2007-04-06  Bruno Haible  <bruno@clisp.org>
51762
51763         Assume the 'long double' type.
51764         * m4/longdouble.m4: Remove file.
51765         * config/srclist.txt: Don't mention longdouble.m4.
51766         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51767         * lib/float+.h: Likewise.
51768         * lib/frexp.c: Likewise.
51769         * lib/printf-args.h: Likewise.
51770         * lib/printf-args.c: Likewise.
51771         * lib/printf-frexp.c: Likewise.
51772         * lib/printf-parse.c: Likewise.
51773         * lib/vasnprintf.c: Likewise.
51774         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51775         * m4/intl.m4: Likewise.
51776         * m4/isnanl.m4: Likewise.
51777         * m4/printf.m4: Likewise.
51778         * m4/printf-frexpl.m4: Likewise.
51779         * m4/vasnprintf.m4: Likewise.
51780         * modules/allocsa (Files): Remove m4/longdouble.m4.
51781         * modules/gettext (Files): Likewise.
51782         * modules/relocatable-prog-wrapper (Files): Likewise.
51783         * modules/vasnprintf (Files): Likewise.
51784         * modules/isnanl (Files): Likewise.
51785         (Include): Simplify.
51786         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51787         (Include): Simplify.
51788         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51789         (Include): Simplify.
51790         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51791         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51792         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51793         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51794         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51795         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51796         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51797         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51798         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51799         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51800         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51801         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51802         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51803         * tests/test-isnanl.c: Likewise.
51804         * tests/test-snprintf-posix.h: Likewise.
51805         * tests/test-sprintf-posix.h: Likewise.
51806         * tests/test-vasnprintf-posix.c: Likewise.
51807         * tests/test-vasnprintf-posix2.c: Likewise.
51808         * tests/test-vasprintf-posix.c: Likewise.
51809
51810 2007-04-06  Bruno Haible  <bruno@clisp.org>
51811
51812         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51813         * lib/math_.h [__DECC]: Include the overridden include file through
51814         #include_next, outside the double-inclusion guard.
51815         * lib/stdio_.h [__DECC]: Likewise.
51816         * lib/stdlib_.h [__DECC]: Likewise.
51817         * lib/string_.h [__DECC]: Likewise.
51818         * lib/time_.h [__DECC]: Likewise.
51819         * lib/wchar_.h [__DECC]: Likewise.
51820         * lib/wctype_.h [__DECC]: Likewise.
51821         * lib/inttypes_.h [__DECC]: Likewise.
51822         Reported by Albert Chin <china@thewrittenword.com> in
51823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51824
51825 2007-04-04  Eric Blake  <ebb9@byu.net>
51826
51827         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51828         1.5.x.
51829
51830 2007-04-04  Bruno Haible  <bruno@clisp.org>
51831
51832         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51833         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51834
51835 2007-04-04  Bruno Haible  <bruno@clisp.org>
51836
51837         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51838         results for "%010a" of Infinity and NaN.
51839         * tests/test-vasprintf-posix.c (test_function): Likewise.
51840         * tests/test-snprintf-posix.h (test_function): Likewise.
51841         * tests/test-sprintf-posix.h (test_function): Likewise.
51842         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51843         * tests/test-printf-posix.h (test_function): Likewise.
51844         * tests/test-fprintf-posix.out: Update.
51845         Needed for FreeBSD 6.1.
51846
51847 2007-04-04  Bruno Haible  <bruno@clisp.org>
51848
51849         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51850         directly used by the gnulib modules nor by gnulib-tool.
51851
51852 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51853
51854         * DEPENDENCIES: Give overall description of version dependency
51855         desirability.  Use more-typical names for apps.
51856         Add shell, coreutils, diffutils, grep, tar, gzip.
51857
51858 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51859
51860         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51861
51862 2007-04-04  Karl Berry  <karl@gnu.org>
51863
51864         * MODULES.html.sh (func_module): missing '.
51865
51866 2007-04-03  Bruno Haible  <bruno@clisp.org>
51867
51868         * modules/argmatch-tests (Makefile.am): New variable
51869         test_argmatch_LDADD.
51870         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51871         * modules/array-list-tests (Makefile.am): New variable
51872         test_array_list_LDADD.
51873         * modules/array-oset-tests (Makefile.am): New variable
51874         test_array_oset_LDADD.
51875         * modules/avltree-list-tests (Makefile.am): New variable
51876         test_avltree_list_LDADD.
51877         * modules/avltree-oset-tests (Makefile.am): New variable
51878         test_avltree_oset_LDADD.
51879         * modules/avltreehash-list-tests (Makefile.am): New variable
51880         test_avltreehash_list_LDADD.
51881         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51882         test_canonicalize_lgpl_LDADD.
51883         * modules/carray-list-tests (Makefile.am): New variable
51884         test_carray_list_LDADD.
51885         * modules/dirname-tests (Makefile.am): New variable
51886         test_dirname_LDADD.
51887         * modules/linked-list-tests (Makefile.am): New variable
51888         test_linked_list_LDADD.
51889         * modules/linkedhash-list-tests (Makefile.am): New variable
51890         test_linkedhash_list_LDADD.
51891         * modules/rbtree-list-tests (Makefile.am): New variable
51892         test_rbtree_list_LDADD.
51893         * modules/rbtree-oset-tests (Makefile.am): New variable
51894         test_rbtree_oset_LDADD.
51895         * modules/rbtreehash-list-tests (Makefile.am): New variable
51896         test_rbtreehash_list_LDADD.
51897         * modules/xvasprintf-tests (Makefile.am): New variable
51898         test_xvasprintf_LDADD.
51899         Reported by Eric Blake.
51900
51901 2007-04-03  Eric Blake  <ebb9@byu.net>
51902
51903         * DEPENDENCIES: Weaken m4 requirements.
51904
51905 2007-04-03  Bruno Haible  <bruno@clisp.org>
51906
51907         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51908         * modules/isnanl-tests (configure.ac): Likewise.
51909
51910 2007-04-03  Ben Pfaff  <blp@gnu.org>
51911
51912         * modules/iconv_open: Add $(srcdir)/ to source directory
51913         references in Makefile fragments that call gperf, to fix VPATH
51914         builds.
51915
51916 2007-04-03  Bruno Haible  <bruno@clisp.org>
51917
51918         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51919         * lib/ldexpl.c: Undo last change.
51920
51921 2007-04-03  Bruno Haible  <bruno@clisp.org>
51922
51923         * modules/printf-frexpl (Depends-on): Undo last change.
51924         (Files): Add m4/ldexpl.m4.
51925
51926 2007-04-03  Bruno Haible  <bruno@clisp.org>
51927
51928         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51929         * modules/isnanl (Link): New section.
51930
51931         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51932         * modules/frexp (Link): New section.
51933
51934         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51935         * modules/frexpl (Link): New section.
51936
51937         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51938         * modules/ldexpl (Link): New section.
51939
51940 2007-04-03  Bruno Haible  <bruno@clisp.org>
51941
51942         * modules/TEMPLATE-EXTENDED: New file.
51943         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51944
51945 2007-04-03  Bruno Haible  <bruno@clisp.org>
51946
51947         * DEPENDENCIES: New file.
51948         Suggested by Simon Josefsson.
51949
51950 2007-04-03  Bruno Haible  <bruno@clisp.org>
51951
51952         * doc/gnulib.texi: Escape @.
51953
51954 2007-04-03  James Youngman  <jay@gnu.org>
51955         and Paul Eggert  <eggert@cs.ucla.edu>
51956
51957         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51958         birthtime on all systems that have birthtime, not just those which
51959         use st_birthtimensec rather than st_birthtim.  Putting zero in
51960         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51961         that the birth time is not available for files on an NFS mount.
51962
51963 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51964
51965         * modules/memxor: Move back from crypto/, suggested by Bruno.
51966         * modules/crypto/hmac-sha1: Fix memxor dependency.
51967
51968         * modules/crypto/gc: Moved from ../.
51969
51970 2007-04-02  Eric Blake  <ebb9@byu.net>
51971
51972         * lib/ldexpl.c (includes): Avoid libm.
51973
51974         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51975
51976 2007-04-02  Bruno Haible  <bruno@clisp.org>
51977
51978         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51979         on IRIX.
51980
51981 2007-04-02  Bruno Haible  <bruno@clisp.org>
51982
51983         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51984         x86 or x86_64 platforms running MacOS X.
51985         Reported by Ryan Schmidt <@ryandesign.com>.
51986
51987 2007-04-02  Bruno Haible  <bruno@clisp.org>
51988
51989         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51990         i386.
51991
51992 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51993
51994         * modules/crypto/arcfour: Moved from ../.
51995         * modules/crypto/arcfour-tests: Moved from ../.
51996         * modules/crypto/arctwo: Moved from ../.
51997         * modules/crypto/arctwo-tests: Moved from ../.
51998         * modules/crypto/des: Moved from ../.
51999         * modules/crypto/des-tests: Moved from ../.
52000         * modules/crypto/gc-arcfour: Moved from ../.
52001         * modules/crypto/gc-arcfour-tests: Moved from ../.
52002         * modules/crypto/gc-arctwo: Moved from ../.
52003         * modules/crypto/gc-arctwo-tests: Moved from ../.
52004         * modules/crypto/gc-des: Moved from ../.
52005         * modules/crypto/gc-des-tests: Moved from ../.
52006         * modules/crypto/gc-hmac-md5: Moved from ../.
52007         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52008         * modules/crypto/gc-hmac-sha1: Moved from ../.
52009         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52010         * modules/crypto/gc-md2: Moved from ../.
52011         * modules/crypto/gc-md2-tests: Moved from ../.
52012         * modules/crypto/gc-md4: Moved from ../.
52013         * modules/crypto/gc-md4-tests: Moved from ../.
52014         * modules/crypto/gc-md5: Moved from ../.
52015         * modules/crypto/gc-md5-tests: Moved from ../.
52016         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52017         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52018         * modules/crypto/gc-random: Moved from ../.
52019         * modules/crypto/gc-rijndael: Moved from ../.
52020         * modules/crypto/gc-rijndael-tests: Moved from ../.
52021         * modules/crypto/gc-sha1: Moved from ../.
52022         * modules/crypto/gc-sha1-tests: Moved from ../.
52023         * modules/crypto/gc-tests: Moved from ../.
52024         * modules/crypto/hmac-md5: Moved from ../.
52025         * modules/crypto/hmac-md5-tests: Moved from ../.
52026         * modules/crypto/hmac-sha1: Moved from ../.
52027         * modules/crypto/hmac-sha1-tests: Moved from ../.
52028         * modules/crypto/md2: Moved from ../.
52029         * modules/crypto/md2-tests: Moved from ../.
52030         * modules/crypto/md4: Moved from ../.
52031         * modules/crypto/md4-tests: Moved from ../.
52032         * modules/crypto/md5: Moved from ../.
52033         * modules/crypto/md5-tests: Moved from ../.
52034         * modules/crypto/memxor: Moved from ../.
52035         * modules/crypto/rijndael: Moved from ../.
52036         * modules/crypto/rijndael-tests: Moved from ../.
52037         * modules/crypto/sha1: Moved from ../.
52038
52039 2007-03-30  James Youngman  <jay@gnu.org>
52040
52041         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52042         rename() to change the ctime of a file (because ctime is unaffected
52043         by rename on jfs2 on AIX 5.1).
52044         (main): Start by doing cleanup, in case a previous run failed leaving
52045         test files behind.
52046
52047 2007-03-31  Bruno Haible  <bruno@clisp.org>
52048
52049         Support old proprietary implementations of iconv.
52050         * modules/iconv_open: New file.
52051         * lib/iconv_.h: New file.
52052         * m4/iconv_h.m4: New file.
52053         * lib/iconv_open.c: New file.
52054         * lib/iconv_open-aix.gperf: New file.
52055         * lib/iconv_open-hpux.gperf: New file.
52056         * lib/iconv_open-irix.gperf: New file.
52057         * lib/iconv_open-osf.gperf: New file.
52058         * m4/iconv_open.m4: New file.
52059         * modules/linebreak (Depends-on): Add iconv_open.
52060         * modules/striconv (Depends-on): Likewise.
52061         * modules/striconveh (Depends-on): Likewise.
52062         * modules/unicodeio (Depends-on): Likewise.
52063         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52064         (iconv_t)(-1).
52065         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52066         conversion if cd is (iconv_t)(-1).
52067         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52068         is not possible.
52069
52070 2007-03-31  Bruno Haible  <bruno@clisp.org>
52071
52072         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52073         work on Solaris either. Protect also second use of "autodetect_jp".
52074
52075 2007-03-31  Bruno Haible  <bruno@clisp.org>
52076
52077         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52078         the function is not present.
52079
52080 2007-03-31  Bruno Haible  <bruno@clisp.org>
52081
52082         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52083         the function is not present.
52084
52085 2007-03-31  Bruno Haible  <bruno@clisp.org>
52086
52087         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52088         a bug in HP-UX iconv_open().
52089
52090 2007-03-31  Bruno Haible  <bruno@clisp.org>
52091
52092         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52093         (Mathematics <math.h>): New section, add fpieee.
52094         (Input/output <stdio.h>): Add fseterr.
52095         (Mathematics <math.h>): New section, add printf-frexp.
52096         (Container data structures): Add sublist.
52097         (Core language properties): Add fpucw, inline.
52098         (Functions for greatest-width integer types <inttypes.h>): Add
52099         imaxabs, imaxdiv, inttypes.
52100         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52101         isnanl-nolibm, ldexp.
52102         (Mathematics <math.h>): New section, add printf-frexpl.
52103         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52104         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52105         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52106         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52107         (Unicode string functions): Add unistr/u*-mbtoucr.
52108         (Java): Add javacomp-script, javaexec-script.
52109         (C#): Add csharpcomp-script, csharpexec-script.
52110         (Support for building libraries and executables): Add havelib,
52111         relocatable-*.
52112         (Support for maintaining and releasing projects): Renamed from
52113         'Support for maintaining and release projects'. Add announce-gen.
52114
52115 2007-03-31  Bruno Haible  <bruno@clisp.org>
52116
52117         * README: Talk primarily about git.
52118         (git and CVS): Renamed from CVS.
52119         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52120         gnulib is available through git.
52121         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52122
52123 2007-03-30  Bruno Haible  <bruno@clisp.org>
52124
52125         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52126         * lib/poll_.h: Likewise.
52127         * lib/stat_.h: Likewise.
52128         * lib/sys_time_.h: Likewise.
52129         * lib/sysexit_.h: Likewise.
52130         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52131         * lib/stdbool_.h: Likewise.
52132         * lib/byteswap_.h: Add double-inclusion guard.
52133
52134 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52135
52136         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52137
52138 2007-03-30  Karl Berry  <karl@gnu.org>
52139
52140         * config/srclist-update: double space after USA in the license
52141         substitution, since that's how it's usually (?) written.
52142
52143 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52144
52145         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52146         reported by Bruno Haible.
52147
52148 2007-03-29  Bruno Haible  <bruno@clisp.org>
52149
52150         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52151         a bug in AIX iconv().
52152
52153 2007-03-29  Bruno Haible  <bruno@clisp.org>
52154
52155         * modules/ldexpl-tests: New file.
52156         * tests/test-ldexpl.c: New file.
52157
52158 2007-03-29  Bruno Haible  <bruno@clisp.org>
52159
52160         * lib/ldexpl.c: Include fpucw.h.
52161         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52162         multiplication.
52163         * modules/ldexpl (Depends-on): Add fpucw.
52164
52165 2007-03-29  Bruno Haible  <bruno@clisp.org>
52166
52167         * modules/ldexpl: New file.
52168         * m4/ldexpl.m4: New file.
52169         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52170         set.
52171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52172         REPLACE_LDEXPL.
52173         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52174         REPLACE_LDEXPL.
52175         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52176         gl_FUNC_LDEXPL_WORKS.
52177         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52178         * modules/mathl (Files): Remove lib/ldexpl.c.
52179         (Depends-on): Add ldexpl.
52180
52181 2007-03-29  Bruno Haible  <bruno@clisp.org>
52182
52183         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52184
52185 2007-03-29  Bruno Haible  <bruno@clisp.org>
52186
52187         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52188         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52189         and possibly also HP-UX.
52190         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52191         work on AIX, IRIX, HP-UX, OSF/1.
52192         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52193         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52194         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52195         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52196         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52197         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52198
52199 2007-03-29  Bruno Haible  <bruno@clisp.org>
52200
52201         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
52202
52203 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52204
52205         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
52206         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
52207
52208 2007-03-29  Eric Blake  <ebb9@byu.net>
52209
52210         * lib/acl-internal.h: Remove redundant include.
52211         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
52212         Cygwin when a file is locked.
52213
52214 2007-03-29  Bruno Haible  <bruno@clisp.org>
52215
52216         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
52217         file.
52218         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
52219
52220 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52221
52222         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
52223         try to remove a parent directory if the child couldn't be removed
52224         (except for the first rmdir, which could fail because the child
52225         doesn't exist).  Problem reported by Jeff Blaine in
52226         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
52227
52228 2007-03-28  Bruno Haible  <bruno@clisp.org>
52229
52230         * lib/striconveh.c (utf8conv_carefully): New function.
52231         (mem_cd_iconveh_internal): Invoke it.
52232
52233 2007-03-28  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
52236         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
52237         input.
52238         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
52239         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
52240         unistr/u8-uctomb.
52241
52242 2007-03-28  Bruno Haible  <bruno@clisp.org>
52243
52244         * modules/unistr/u8-mbtoucr: New file.
52245         * lib/unistr/u8-mbtoucr.c: New file.
52246         * modules/unistr/u16-mbtoucr: New file.
52247         * lib/unistr/u16-mbtoucr.c: New file.
52248         * modules/unistr/u16-mbtoucr: New file.
52249         * lib/unistr/u16-mbtoucr.c: New file.
52250         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
52251
52252 2007-03-27  Simon Josefsson  <simon@josefsson.org>
52253             Bruno Haible  <bruno@clisp.org>
52254
52255         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
52256         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
52257         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
52258
52259         * m4/stdio_h.m4: Add stubs for vasprintf too.
52260
52261         * modules/stdio: Support vasprintf in sed command.
52262
52263         * modules/vasprintf: Depend on stdio for prototypes.  Remove
52264         vasprintf.h.  Add stdio module indicator.
52265
52266         * lib/stdio_.h: Declare asprintf and vasprintf, based on
52267         vasprintf.h.
52268
52269         * lib/vasprintf.h: File removed.
52270
52271         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
52272         * lib/vasprintf.c: Ditto.
52273         * lib/xvasprintf.c: Ditto.
52274         * tests/test-vasprintf-posix.c: Ditto.
52275         * tests/test-vasprintf.c: Ditto.
52276
52277 2007-03-27  Bruno Haible  <bruno@clisp.org>
52278
52279         Make vasnprintf multithread-safe.
52280         * lib/vasnprintf.c (decimal_point_char): New function.
52281         (VASNPRINTF): Use it.
52282         Suggested by Simon Josefsson.
52283
52284 2007-03-27  Eric Blake  <ebb9@byu.net>
52285
52286         Support sub-second birthtime on cygwin.
52287         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52288         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52289         (get_stat_birthtime): Also work with st_birthtim.
52290
52291 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52292
52293         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52294         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52295         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52296         (get_stat_birthtime_ns): Simplify compile-time tests.
52297         (get_stat_birthtime): Change the API to look like
52298         get_stat_mtime etc., except return a negative tv_nsec on error.
52299         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52300         Don't check for "spare" fields.
52301         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52302         or for struct stat.st_birthtime, as these tests aren't used.
52303         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52304
52305 2007-03-27  Bruno Haible  <bruno@clisp.org>
52306
52307         * lib/stat-time.h: Include <sys/stat.h>.
52308
52309 2007-03-27  James Youngman  <jay@gnu.org>
52310
52311         * lib/stat-time.h (get_stat_birthtime): New function for
52312           retrieving st_birthtime as provided by UFS2 (hence *BSD).
52313         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52314           and its variants.
52315         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52316         * modules/stat-time-test: New file.
52317         * tests/test-stat-time.c: New test, devised by Bruno Haible.
52318
52319 2007-03-26  Bruno Haible  <bruno@clisp.org>
52320
52321         Better support of signalling NaNs.
52322         * lib/atanl.c: Include isnanl.h.
52323         (atanl): Perform test for NaN at the beginning of the function and
52324         through a call to isnanl.
52325         * lib/cosl.c: Include isnanl.h.
52326         (cosl): Perform test for NaN at the beginning of the function and
52327         through a call to isnanl.
52328         * lib/ldexpl.c: Include isnanl.h.
52329         (ldexpl): Perform test for NaN through a call to isnanl.
52330         * lib/logl.c: Include isnanl.h.
52331         (logl): Perform test for NaN at the beginning of the function and
52332         through a call to isnanl.
52333         * lib/sinl.c: Include isnanl.h.
52334         (sinl): Perform test for NaN at the beginning of the function and
52335         through a call to isnanl.
52336         * lib/sqrtl.c: Include isnanl.h.
52337         (sqrtl): Perform test for NaN at the beginning of the function and
52338         through a call to isnanl.
52339         * lib/tanl.c: Include isnanl.h.
52340         (tanl): Perform test for NaN at the beginning of the function and
52341         through a call to isnanl.
52342         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
52343         * modules/mathl (Depends-on): Add isnanl.
52344
52345 2007-03-26  Eric Blake  <ebb9@byu.net>
52346
52347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
52348         regression in logic sense of previous patch.
52349
52350 2007-03-26  Bruno Haible  <bruno@clisp.org>
52351
52352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
52353         unportable shell command "if ! ...".
52354         Reported by Ralf Wildenhues.
52355
52356 2007-03-25  Bruno Haible  <bruno@clisp.org>
52357
52358         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
52359         <sysexits.h> file, and only add EX_CONFIG.
52360         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
52361         absolute file name and whether it is sufficient. Substitute also
52362         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
52363         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
52364         ABSOLUTE_SYSEXITS_H into sysexits.h.
52365
52366 2007-03-25  Bruno Haible  <bruno@clisp.org>
52367
52368         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
52369         hints is NULL.
52370
52371 2007-03-25  Bruno Haible  <bruno@clisp.org>
52372
52373         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
52374         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
52375
52376 2007-03-25  Bruno Haible  <bruno@clisp.org>
52377
52378         * lib/vasnprintf.c: Include langinfo.h.
52379         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52380         multithread-safe.
52381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52382         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52383         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52384         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52385         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52386         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52387         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52389         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52390         Reported by Simon Josefsson.
52391
52392 2007-03-25  Bruno Haible  <bruno@clisp.org>
52393
52394         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52395         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52396         * modules/vasnprintf (Depends-on): Add stdint.
52397
52398 2007-03-25  Bruno Haible  <bruno@clisp.org>
52399
52400         * modules/fpieee: New file.
52401         * m4/fpieee.m4: New file.
52402         * modules/isnan-nolibm (Depends-on): Add fpieee.
52403         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52404         * modules/isnanl (Depends-on): Add fpieee.
52405
52406 2007-03-25  Bruno Haible  <bruno@clisp.org>
52407
52408         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52409
52410 2007-03-25  Bruno Haible  <bruno@clisp.org>
52411
52412         Avoid test failures on IRIX 6.5.
52413         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52414         (main): Use it.
52415         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52416         macros.
52417         (main): Use them.
52418
52419 2007-03-25  Bruno Haible  <bruno@clisp.org>
52420
52421         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52422         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52423         exists but doesn't work.
52424         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52425         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52427         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52428         math.h.
52429
52430 2007-03-25  Bruno Haible  <bruno@clisp.org>
52431
52432         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52433         returns inf. Needed on IRIX 6.5.
52434
52435 2007-03-25  Bruno Haible  <bruno@clisp.org>
52436
52437         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52438         (main): Use isnanl instead of x != x idiom.
52439         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52440
52441         * tests/test-frexp.c: Include isnan.h.
52442         (main): Use isnan instead of x != x idiom.
52443         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52444
52445 2007-03-25  Bruno Haible  <bruno@clisp.org>
52446
52447         * tests/test-frexp.c (NaN): New function/macro.
52448         (main): Use it instead of 0.0 / 0.0.
52449         * tests/test-isnan.c (NaN): New function/macro.
52450         (main): Use it instead of 0.0 / 0.0.
52451         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52452         (test_function): Use it instead of 0.0 / 0.0.
52453         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52454         (test_function): Use it instead of 0.0 / 0.0.
52455         * tests/test-snprintf-posix.h (NaN): New function/macro.
52456         (test_function): Use it instead of 0.0 / 0.0.
52457         * tests/test-sprintf-posix.h (NaN): New function/macro.
52458         (test_function): Use it instead of 0.0 / 0.0.
52459         * tests/test-fprintf-posix.h (NaN): New function/macro.
52460         (test_function): Use it instead of 0.0 / 0.0.
52461         * tests/test-printf-posix.h (NaN): New function/macro.
52462         (test_function): Use it instead of 0.0 / 0.0.
52463
52464         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52465
52466 2007-03-25  Bruno Haible  <bruno@clisp.org>
52467
52468         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52469
52470 2007-03-25  Bruno Haible  <bruno@clisp.org>
52471
52472         * lib/regexec.c (merge_state_with_log): Make static.
52473
52474 2007-03-25  Bruno Haible  <bruno@clisp.org>
52475
52476         * lib/trigl.c (kernel_rem_pio2): Make static.
52477
52478 2007-03-25  Bruno Haible  <bruno@clisp.org>
52479
52480         * lib/sincosl.c (sincosl_table): Make static.
52481
52482 2007-03-25  Bruno Haible  <bruno@clisp.org>
52483
52484         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52485         if the compiler does not support C99.
52486
52487 2007-03-25  Bruno Haible  <bruno@clisp.org>
52488
52489         * modules/time (Makefile.am): Ensure all rule action lines start with a
52490         tab.
52491
52492 2007-03-24  Bruno Haible  <bruno@clisp.org>
52493
52494         * modules/tsearch-tests: New file.
52495         * tests/test-tsearch.sh: New file.
52496         * tests/test-tsearch.c: New file, mostly copied from glibc.
52497
52498         * modules/search-tests: New file.
52499         * tests/test-search.c: New file.
52500
52501         * modules/search: New file.
52502         * lib/search_.h: New file, incorporating lib/tsearch.h.
52503         * m4/search_h.m4: New file.
52504         * lib/tsearch.h: Remove file.
52505         * lib/tsearch.c: Include search.h instead of tsearch.h.
52506         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52507         HAVE_TSEARCH.
52508         * modules/tsearch (Files): Remove lib/tsearch.h.
52509         (Depends-on): Add search.
52510         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52511         (Include): Change tsearch.h into search.h.
52512
52513 2007-03-24  Bruno Haible  <bruno@clisp.org>
52514
52515         * modules/fpucw: New file.
52516         * lib/fpucw.h: New file.
52517         * lib/frexp.c: Include fpucw.h.
52518         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52519         (FUNC): Use them.
52520         * lib/printf-frexp.c: Include fpucw.h.
52521         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52522         (FUNC): Use them.
52523         * lib/vasnprintf.c: Include fpucw.h.
52524         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52525         'long double' calculations.
52526         * tests/test-frexpl.c: Include fpucw.h.
52527         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52528         * tests/test-printf-frexpl.c: Include fpucw.h.
52529         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52530         * modules/frexpl (Depends-on): Add fpucw.
52531         * modules/printf-frexpl (Depends-on): Likewise.
52532         * modules/fprintf-posix (Depends-on): Likewise.
52533         * modules/snprintf-posix (Depends-on): Likewise.
52534         * modules/sprintf-posix (Depends-on): Likewise.
52535         * modules/vasnprintf-posix (Depends-on): Likewise.
52536         * modules/vasprintf-posix (Depends-on): Likewise.
52537         * modules/vfprintf-posix (Depends-on): Likewise.
52538         * modules/vsnprintf-posix (Depends-on): Likewise.
52539         * modules/vsprintf-posix (Depends-on): Likewise.
52540         * modules/frexpl-tests (Depends-on): Likewise.
52541         * modules/printf-frexpl-tests (Depends-on): Likewise.
52542
52543 2007-03-24  Bruno Haible  <bruno@clisp.org>
52544
52545         * lib/float+.h: New file.
52546         * lib/isnan.c: Include float+.h.
52547         (SIZE): New macro.
52548         (FUNC): Compare only SIZE bytes of the value.
52549         * lib/vasnprintf.c: Include float+.h.
52550         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52551         SIZEOF_LDBL or SIZEOF_DBL bytes.
52552         * modules/isnan-nolibm (Files): Add lib/float+.h.
52553         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52554         * modules/isnanl (Files): Add lib/float+.h.
52555         * modules/vasnprintf (Files): Add lib/float+.h.
52556
52557 2007-03-24  Bruno Haible  <bruno@clisp.org>
52558
52559         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52560         include isnanl-nolibm.h.
52561
52562 2007-03-24  Bruno Haible  <bruno@clisp.org>
52563
52564         * tests/test-read-file.c (main): Don't produce spurious output for
52565         expected situations. Make the test fail if it encountered unexpected
52566         results.
52567
52568 2007-03-24  Bruno Haible  <bruno@clisp.org>
52569
52570         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52571         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52572
52573 2007-03-24  Bruno Haible  <bruno@clisp.org>
52574
52575         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52576
52577 2007-03-24  Bruno Haible  <bruno@clisp.org>
52578
52579         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52580         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52581
52582         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52583         * modules/utf8-ucs4: Turn into a symbolic link to module
52584         unistr/u8-mbtouc.
52585
52586         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52587         utf8-ucs4-unsafe.
52588         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52589         unistr/u8-mbtouc-unsafe.
52590
52591         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52592         * modules/utf16-ucs4: Turn into a symbolic link to module
52593         unistr/u16-mbtouc.
52594
52595         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52596         utf16-ucs4-unsafe.
52597         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52598         unistr/u16-mbtouc-unsafe.
52599
52600         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52601         * modules/ucs4-utf8: Turn into a symbolic link to module
52602         unistr/u8-ubtomb.
52603
52604         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52605         * modules/ucs4-utf16: Turn into a symbolic link to module
52606         unistr/u16-ubtomb.
52607
52608 2007-03-24  Bruno Haible  <bruno@clisp.org>
52609
52610         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52611         Enable the function only if HAVE_INLINE.
52612         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52613         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52614         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52615         Enable the function only if HAVE_INLINE.
52616         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52617         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52618         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52619         Enable the function only if HAVE_INLINE.
52620         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52621         Enable the function only if HAVE_INLINE.
52622         * modules/utf8-ucs4: Update.
52623         * modules/utf8-ucs4-unsafe: Update.
52624         * modules/utf16-ucs4: Update.
52625         * modules/utf16-ucs4-unsafe: Update.
52626         * modules/ucs4-utf8: Update.
52627         * modules/ucs4-utf16: Update.
52628
52629 2007-03-24  Bruno Haible  <bruno@clisp.org>
52630
52631         * lib/utf8-ucs4.h: Remove file.
52632         * lib/utf8-ucs4-unsafe.h: Remove file.
52633         * lib/utf16-ucs4.h: Remove file.
52634         * lib/utf16-ucs4-unsafe.h: Remove file.
52635         * lib/ucs4-utf8.h: Remove file.
52636         * lib/ucs4-utf16.h: Remove file.
52637         * lib/unistr.h: Include their previous contents.
52638         * m4/utf-ucs4.m4: Remove file.
52639         * m4/ucs4-utf.m4: Remove file.
52640         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52641         (Depends-on): Add unistr/base.
52642         (configure.ac): Remove gl_UTF_UCS4.
52643         (Makefile.am): Update.
52644         (Include): Change to unistr.h.
52645         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52646         (Depends-on): Add unistr/base.
52647         (configure.ac): Remove gl_UTF_UCS4.
52648         (Makefile.am): Update.
52649         (Include): Change to unistr.h.
52650         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52651         (Depends-on): Add unistr/base.
52652         (configure.ac): Remove gl_UTF_UCS4.
52653         (Makefile.am): Update.
52654         (Include): Change to unistr.h.
52655         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52656         (Depends-on): Add unistr/base.
52657         (configure.ac): Remove gl_UTF_UCS4.
52658         (Makefile.am): Update.
52659         (Include): Change to unistr.h.
52660         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52661         (Depends-on): Add unistr/base.
52662         (configure.ac): Remove gl_UCS4_UTF.
52663         (Makefile.am): Update.
52664         (Include): Change to unistr.h.
52665         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52666         (Depends-on): Add unistr/base.
52667         (configure.ac): Remove gl_UCS4_UTF.
52668         (Makefile.am): Update.
52669         (Include): Change to unistr.h.
52670         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52671         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52672         utf8-ucs4-unsafe.h.
52673         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52674         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52675         utf16-ucs4-unsafe.h.
52676         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52677         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52678         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52679         * lib/unistr/u8-strchr.c: Likewise.
52680         * lib/unistr/u8-strrchr.c: Likewise.
52681         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52682         * lib/unistr/u16-strchr.c: Likewise.
52683         * lib/unistr/u16-strrchr.c: Likewise.
52684         * lib/striconveh.c: Update.
52685         * lib/linebreak.c: Update.
52686
52687 2007-03-24  Bruno Haible  <bruno@clisp.org>
52688
52689         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52690         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52691
52692 2007-03-22  Bruno Haible  <bruno@clisp.org>
52693
52694         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52695
52696 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52697
52698         * MODULES.html.sh (File system functions): New module write-any-file.
52699         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52700         * m4/write-any-file.m4: New files.
52701
52702 2007-03-23  Eric Blake  <ebb9@byu.net>
52703
52704         * gnulib-tool: Rearrange space-tab sequences, since some editors
52705         like to eat them.
52706
52707 2007-03-23  Eric Blake  <ebb9@byu.net>
52708
52709         * lib/version-etc.c (version_etc_va): Update license wording to
52710         be more concise.  Recommended by Richard Stallman.
52711
52712 2007-03-22  Bruno Haible  <bruno@clisp.org>
52713
52714         * lib/poll.c (MSG_PEEK): New fallback definition.
52715
52716 2007-03-22  Bruno Haible  <bruno@clisp.org>
52717
52718         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52719         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52720         (main): Update.
52721         Fixes a compilation error on BeOS.
52722
52723 2007-03-22  Bruno Haible  <bruno@clisp.org>
52724
52725         * modules/frexpl-tests: New file.
52726         * tests/test-frexpl.c: New file.
52727
52728         * modules/frexpl: New file.
52729         * m4/frexpl.m4: New file.
52730         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52731         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52733         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52734         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52735         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52736
52737 2007-03-22  Bruno Haible  <bruno@clisp.org>
52738
52739         * lib/frexpl.c: Share code with lib/frexp.c.
52740         * modules/mathl (Files): Add lib/frexp.c.
52741         (Depends-on): Add isnanl-nolibm.
52742
52743 2007-03-22  Bruno Haible  <bruno@clisp.org>
52744
52745         * modules/printf-frexp (Files): Add m4/frexp.m4.
52746         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52747         only if the found frexp function actually works.
52748
52749 2007-03-22  Bruno Haible  <bruno@clisp.org>
52750
52751         * lib/frexp.c: Remove older implementation that uses divisions.
52752
52753 2007-03-21  Bruno Haible  <bruno@clisp.org>
52754
52755         * modules/frexp-tests: New file.
52756         * tests/test-frexp.c: New file.
52757
52758         * modules/frexp: New file.
52759         * lib/frexp.c: New file.
52760         * m4/frexp.m4: New file.
52761         * lib/math_.h (frexp): New declaration.
52762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52763         REPLACE_FREXP.
52764         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52765
52766 2007-03-21  Bruno Haible  <bruno@clisp.org>
52767
52768         * modules/isnanl-tests: New file.
52769         * tests/test-isnanl.c: New file.
52770
52771         * modules/isnanl: New file.
52772         * lib/isnanl.h: New file.
52773         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52774         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52775         gl_FUNC_ISNANL_WORKS.
52776         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52777         New macros.
52778
52779 2007-03-21  Bruno Haible  <bruno@clisp.org>
52780
52781         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52782         lib/isnanl.h.
52783         (Include): Update.
52784         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52785         * lib/vasnprintf.c: Update.
52786         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52787         tests/test-isnanl.h, remove tests/test-isnanl.c.
52788         (Makefile.am): Update.
52789         * tests/test-isnanl-nolibm.c: New file.
52790         * tests/test-isnanl.h: New file.
52791         * tests/test-isnanl.c: Remove file.
52792
52793 2007-03-21  Jim Meyering  <jim@meyering.net>
52794
52795         When trying to open ".", treat ESTALE like EACCES.
52796         * lib/savewd.c (savewd_save): Resort to forking not just upon
52797         failure with EACCES, but also when errno is ESTALE.
52798
52799 2007-03-20  Bruno Haible  <bruno@clisp.org>
52800
52801         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52802         Needed on AIX 5.1. Reported by Matthew Woehlke.
52803
52804 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52805
52806         Suggestions by Bruno Haible:
52807         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52808         our own.
52809         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52810         * modules/acl (Depends-on): Add gettext.
52811
52812 2007-03-19  Bruno Haible  <bruno@clisp.org>
52813
52814         * modules/iconvme: Remove file.
52815         * lib/iconvme.h: Remove file.
52816         * lib/iconvme.c: Remove file.
52817         * m4/iconvme.m4: Remove file.
52818
52819 2007-03-19  Bruno Haible  <bruno@clisp.org>
52820
52821         * doc/relocatable-maint.texi: Break long shell script line.
52822         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52823
52824 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52825
52826         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52827         handle file_has_acl.
52828         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52829         * lib/acl.c: Move header inclusions and related macro defns into
52830         lib/acl-internal.h.
52831         (S_ISLNK): Remove defn, since that's now done for us.
52832         (file_has_acl): Move to lib/file-has-acl.c.
52833         Call acl_trivial if available.  This is the crucial part of the fix.
52834         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52835         shared within the library.  Rewrite a bit, partly to make it compatible
52836         with the GNU coding style.
52837         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52838         Remove unnecessary double-quotes.
52839         Don't test for acl_to_text; the build will catch that.
52840         Replace acl_entries if it doesn't exist and it is needed.
52841         Check for -lsec and acl_trivial (as used on Solaris 10).
52842         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52843         lib/file-has-acl.c.
52844         (Depends-on): Add sys_stat, for S_ISLNK.
52845
52846 2007-03-19  Ben Pfaff  <blp@gnu.org>
52847
52848         * doc/gnulib.texi: Fix typos.
52849         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52850
52851 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52852
52853         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52854         If size is zero here, buf must be zero.
52855
52856 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52857
52858         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52859         <bruno@clisp.org>.
52860
52861 2007-03-18  Bruno Haible  <bruno@clisp.org>
52862
52863         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52864         Suggested by Eric Blake.
52865
52866 2007-03-18  Ben Pfaff  <blp@gnu.org>
52867
52868         * doc/relocatable.texi: Recommend using as prefix a directory
52869         that does not exist and will never be created.  Based on
52870         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52871         and others.
52872
52873 2007-03-17  Bruno Haible  <bruno@clisp.org>
52874
52875         * lib/fchownat.c: Include lchown.h.
52876
52877 2007-03-17  Bruno Haible  <bruno@clisp.org>
52878
52879         Fix endless loop when the given allocated size was > INT_MAX.
52880         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52881         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52882         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52883         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52884         * lib/sprintf.c (sprintf): Likewise.
52885
52886 2007-03-17  Bruno Haible  <bruno@clisp.org>
52887
52888         * tests/test-argp-2.sh (func_compare): Output a context diff.
52889
52890 2007-03-17  Bruno Haible  <bruno@clisp.org>
52891
52892         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52893         locale's decimal-point character.
52894
52895 2007-03-17  Bruno Haible  <bruno@clisp.org>
52896
52897         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52898         before comparing it. Needed because on some platforms (e.g. x86) a
52899         'long double' occupies less bytes than sizeof (long double).
52900
52901 2007-03-17  Bruno Haible  <bruno@clisp.org>
52902
52903         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52904         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52905         * tests/test-getaddrinfo.c (simple): Likewise.
52906         * tests/test-read-file.c (main): Likewise.
52907
52908 2007-03-17  Bruno Haible  <bruno@clisp.org>
52909
52910         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52911
52912 2007-03-17  Bruno Haible  <bruno@clisp.org>
52913
52914         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52915         unused variable.
52916
52917 2007-03-17  Bruno Haible  <bruno@clisp.org>
52918
52919         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52920         * tests/test-c-strncasecmp.c: Likewise.
52921
52922 2007-03-17  Bruno Haible  <bruno@clisp.org>
52923
52924         * modules/stdlib (Depends-on): Add unistd.
52925         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52926         Needed for MacOS X 10.3.
52927
52928 2007-03-17  Bruno Haible  <bruno@clisp.org>
52929
52930         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52931
52932 2007-03-17  Bruno Haible  <bruno@clisp.org>
52933
52934         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52935
52936 2007-03-17  Bruno Haible  <bruno@clisp.org>
52937
52938         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52939         to reflect files copied from gnulib (with or without modifications).
52940         Suggested by Jim Meyering.
52941
52942 2007-03-17  Eric Blake  <ebb9@byu.net>
52943
52944         * NEWS: Document stdlib change from 2007-02-18.
52945
52946 2007-03-17  Jim Meyering  <jim@meyering.net>
52947
52948         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52949         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52950         someone uses a name containing shell meta-characters.
52951         Reported by Alfred M. Szmidt.
52952
52953         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52954
52955 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52956
52957         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52958         and copy gettext configuration files only if configure.ac contains
52959         a use of AM_GNU_GETTEXT_VERSION.
52960
52961 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52962
52963         * build-aux/bootstrap (gnulib_name): New variable.
52964         (gnulib_tool_options): Use it.
52965
52966 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52967
52968         * tests/test-des.c: Use new namespace.
52969
52970 2007-03-15  Bruno Haible  <bruno@clisp.org>
52971
52972         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52973         Reported by James Youngman <jay@gnu.org>.
52974
52975 2007-03-15  Bruno Haible  <bruno@clisp.org>
52976
52977         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52978         declared prototype. Needed with cc on OSF/1 5.1.
52979
52980 2007-03-15  Bruno Haible  <bruno@clisp.org>
52981
52982         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52983         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52984         (struct gl_list_implementation): Add dispose_fn argument to the
52985         'create_empty', 'create' methods.
52986         (struct gl_list_impl_base): Add field 'dispose_fn'.
52987         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52988         argument.
52989         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52990         dispose_fn argument.
52991         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52992         dispose_fn on the dropped values.
52993         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52994         dispose_fn argument.
52995         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52996         dropped values.
52997         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52998         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52999         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53000         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53001         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53002         argument.
53003         (gl_tree_list_free): Call dispose_fn on the dropped values.
53004         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53005         the dropped values.
53006         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53007         Add dispose_fn argument.
53008         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53009         Call dispose_fn on the dropped values.
53010         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53011         Add dispose_fn argument.
53012         (gl_sublist_create): Initialize the 'dispose_fn' field.
53013         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53014         * tests/test-array_list.c (main): Update.
53015         * tests/test-carray_list.c (main): Update.
53016         * tests/test-avltree_list.c (main): Update.
53017         * tests/test-rbtree_list.c (main): Update.
53018         * tests/test-avltreehash_list.c (main): Update.
53019         * tests/test-rbtreehash_list.c (main): Update.
53020         * tests/test-linked_list.c (main): Update.
53021         * tests/test-linkedhash_list.c (main): Update.
53022         * tests/test-array_oset.c (main): Update.
53023
53024 2007-03-15  Bruno Haible  <bruno@clisp.org>
53025
53026         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53027         (gl_oset_create_empty): Add dispose_fn argument.
53028         (struct gl_oset_implementation): Add dispose_fn argument to
53029         'create_empty' method.
53030         (struct gl_oset_impl_base): Add dispose_fn field.
53031         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53032         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53033         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53034         values.
53035         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53036         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53037         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53038         dropped value.
53039         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53040         dropped value.
53041         * tests/test-array_oset.c (main): Update.
53042         * tests/test-avltree_oset.c (main): Update.
53043         * tests/test-rbtree_oset.c (main): Update.
53044         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53045
53046 2007-03-13  Bruno Haible  <bruno@clisp.org>
53047
53048         * tests/test-stdbool.c (i): Update after last patch.
53049
53050 2007-03-12  Bruno Haible  <bruno@clisp.org>
53051
53052         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53053         the iswprint macro. Needed on Solaris 2.5.1.
53054
53055 2007-03-12  Bruno Haible  <bruno@clisp.org>
53056
53057         * tests/test-printf-frexp.c (main): Declare x as volatile.
53058
53059 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53060
53061         * doc/gnulib.texi (Build robot for gnulib): New section.
53062
53063 2007-03-12  Jim Meyering  <jim@meyering.net>
53064
53065         * build-aux/bootstrap: New file.
53066         * build-aux/bootstrap.conf: New file, from coreutils.
53067
53068 2007-03-11  Bruno Haible  <bruno@clisp.org>
53069
53070         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53071
53072 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53073
53074         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53075         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53076         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53077
53078 2007-03-11  Bruno Haible  <bruno@clisp.org>
53079
53080         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53081         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53082
53083 2007-03-11  Bruno Haible  <bruno@clisp.org>
53084
53085         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53086         formula. Needed for SunPRO C 5.0.
53087
53088 2007-03-11  Bruno Haible  <bruno@clisp.org>
53089
53090         * modules/long-options (Depends-on): Add getopt.
53091
53092 2007-03-11  Bruno Haible  <bruno@clisp.org>
53093
53094         * modules/modechange (Depends-on): Add stdbool.
53095
53096 2007-03-11  Bruno Haible  <bruno@clisp.org>
53097
53098         * modules/i-ring (Depends-on): Add stdbool.
53099
53100 2007-03-11  Bruno Haible  <bruno@clisp.org>
53101
53102         * modules/gc-des (Depends-on): Add stdbool.
53103
53104 2007-03-11  Bruno Haible  <bruno@clisp.org>
53105
53106         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53107
53108 2007-03-11  Bruno Haible  <bruno@clisp.org>
53109
53110         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53111
53112 2007-03-11  Bruno Haible  <bruno@clisp.org>
53113
53114         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53115
53116 2007-03-11  Bruno Haible  <bruno@clisp.org>
53117
53118         * lib/vasnprintf.c (sprintf): Undefine.
53119
53120 2007-03-11  Bruno Haible  <bruno@clisp.org>
53121
53122         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53123         initializers in SunPRO C and Compaq C compilers.
53124
53125 2007-03-11  Bruno Haible  <bruno@clisp.org>
53126
53127         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53128         decrementing code ANSI C compliant.
53129
53130 2007-03-11  Bruno Haible  <bruno@clisp.org>
53131
53132         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53133         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53134
53135 2007-03-11  Bruno Haible  <bruno@clisp.org>
53136
53137         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53138         <stdbool.h> substitute doesn't pass.
53139
53140 2007-03-11  Bruno Haible  <bruno@clisp.org>
53141
53142         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53143
53144 2007-03-11  Bruno Haible  <bruno@clisp.org>
53145
53146         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53147         script, for submission to autobuild.josefsson.org.
53148
53149 2007-03-10  Bruno Haible  <bruno@clisp.org>
53150
53151         * modules/canonicalize-lgpl-tests: New file.
53152         * tests/test-canonicalize-lgpl.sh: New file.
53153         * tests/test-canonicalize-lgpl.c: New file.
53154
53155         * modules/c-strcase-tests: New file.
53156         * tests/test-c-strcase.sh: New file.
53157         * tests/test-c-strcasecmp.c: New file.
53158         * tests/test-c-strncasecmp.c: New file.
53159
53160         * modules/atexit-tests: New file.
53161         * tests/test-atexit.sh: New file.
53162         * tests/test-atexit.c: New file.
53163
53164 2007-03-10  Bruno Haible  <bruno@clisp.org>
53165
53166         * tests/test-binary-io.sh: Use temporary filenames that are not so
53167         likely to clash with those of other tests (in a parallel make).
53168         * tests/test-binary-io.c: Likewise.
53169
53170 2007-03-10  Bruno Haible  <bruno@clisp.org>
53171
53172         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53173         fallback; use #error instead.
53174         Suggested by Simon Josefsson.
53175
53176 2007-03-10  Bruno Haible  <bruno@clisp.org>
53177
53178         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53179         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53180         first and the last.
53181
53182 2007-03-10  Bruno Haible  <bruno@clisp.org>
53183
53184         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53185
53186 2007-03-10  Bruno Haible  <bruno@clisp.org>
53187
53188         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53189         "make distcheck".
53190         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53191         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53192         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53193
53194 2007-03-10  Bruno Haible  <bruno@clisp.org>
53195
53196         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53197         variable.
53198         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
53199         variable.
53200
53201 2007-03-09  Eric Blake  <ebb9@byu.net>
53202         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
53203
53204         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
53205         types are not being provided by gnulib.
53206         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
53207         types are supported.
53208
53209 2007-03-10  Bruno Haible  <bruno@clisp.org>
53210
53211         * lib/stdio_.h (__attribute__): New macro.
53212         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
53213         vsprintf): Specify __attribute__ __format__ for GCC.
53214         Suggested by Eric Blake.
53215
53216 2007-03-09  Bruno Haible  <bruno@clisp.org>
53217
53218         * modules/printf-posix-tests: New file.
53219         * tests/test-printf-posix.sh: New file.
53220         * tests/test-printf-posix.c: New file.
53221
53222         * modules/printf-posix: New file.
53223         * lib/printf.c: New file.
53224         * m4/printf-posix-rpl.m4: New file.
53225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
53226         REPLACE_PRINTF.
53227         * lib/stdio_.h (printf): New declaration.
53228         (format, __format__, ____printf____, ____scanf____, ____strftime____,
53229         ____strfmon____): New macros.
53230         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
53231         REPLACE_PRINTF.
53232
53233 2007-03-09  Bruno Haible  <bruno@clisp.org>
53234
53235         * tests/test-vasnprintf-posix2.sh: New file.
53236         * tests/test-vasnprintf-posix2.c: New file.
53237         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
53238         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
53239         (Makefile.am): Activate test-vasnprintf-posix2.sh.
53240
53241         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
53242         a locale dependent decimal point, rather than always '.'.
53243
53244 2007-03-09  Eric Blake  <ebb9@byu.net>
53245
53246         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
53247         spite of platforms like Tandem/NSK that define it to -1.
53248
53249 2007-03-08  Bruno Haible  <bruno@clisp.org>
53250
53251         * modules/vprintf-posix-tests: New file.
53252         * tests/test-vprintf-posix.sh: New file.
53253         * tests/test-vprintf-posix.c: New file.
53254         * tests/test-printf-posix.h: New file.
53255
53256         * modules/vprintf-posix: New file.
53257         * lib/vprintf.c: New file.
53258         * m4/vprintf-posix.m4: New file.
53259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
53260         REPLACE_VPRINTF.
53261         * lib/stdio_.h (vprintf): New declaration.
53262         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
53263         REPLACE_VPRINTF.
53264
53265 2007-03-08  Bruno Haible  <bruno@clisp.org>
53266
53267         * modules/fprintf-posix-tests: New file.
53268         * tests/test-fprintf-posix.sh: New file.
53269         * tests/test-fprintf-posix.c: New file.
53270
53271         * modules/fprintf-posix: New file.
53272         * lib/fprintf.c: New file.
53273         * m4/fprintf-posix.m4: New file.
53274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53275         REPLACE_FPRINTF.
53276         * lib/stdio_.h (fprintf): New declaration.
53277         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53278         REPLACE_FPRINTF.
53279
53280 2007-03-08  Bruno Haible  <bruno@clisp.org>
53281
53282         * modules/vfprintf-posix-tests: New file.
53283         * tests/test-vfprintf-posix.sh: New file.
53284         * tests/test-vfprintf-posix.c: New file.
53285         * tests/test-fprintf-posix.h: New file.
53286         * tests/test-fprintf-posix.out: New file.
53287
53288         * modules/vfprintf-posix: New file.
53289         * lib/vfprintf.c: New file.
53290         * m4/vfprintf-posix.m4: New file.
53291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53292         REPLACE_VFPRINTF.
53293         * lib/stdio_.h (vfprintf): New declaration.
53294         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53295         REPLACE_VFPRINTF.
53296
53297 2007-03-08  Bruno Haible  <bruno@clisp.org>
53298
53299         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53300
53301 2007-03-08  Bruno Haible  <bruno@clisp.org>
53302
53303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53304         instead of 'expr' invocations.
53305         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53306         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53308         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53309         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53310         Suggested by Paul Eggert.
53311
53312 2007-03-08  Bruno Haible  <bruno@clisp.org>
53313
53314         * modules/fseterr-tests: New file.
53315         * tests/test-fseterr.c: New file.
53316
53317         * modules/fseterr: New file.
53318         * lib/fseterr.h: New file.
53319         * lib/fseterr.c: New file.
53320
53321 2007-03-08  Bruno Haible  <bruno@clisp.org>
53322
53323         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
53324         * lib/getopt_.h: Likewise.
53325         * lib/mbswidth.h: Likewise.
53326         * lib/setenv.h: Likewise.
53327         * lib/vasnprintf.h: Likewise.
53328         * lib/vasprintf.h: Likewise.
53329         * lib/verror.h: Likewise.
53330         * lib/xsetenv.h: Likewise.
53331         * lib/xvasprintf.h: Likewise.
53332
53333 2007-03-08  Jim Meyering  <jim@meyering.net>
53334
53335         * users.txt: Add parted.
53336
53337         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
53338
53339 2007-03-07  Bruno Haible  <bruno@clisp.org>
53340
53341         * m4/printf.m4: Make the shell script snippets copy&pastable.
53342
53343 2007-03-02  Bruno Haible  <bruno@clisp.org>
53344
53345         * lib/netinet_in_.h: New file.
53346         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
53347         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
53348         * modules/netinet_in (Files): Add lib/netinet_in_.h.
53349         (Depends-on): Add absolute-header.
53350         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
53351         into netinet/in.h.
53352
53353 2007-03-03  Bruno Haible  <bruno@clisp.org>
53354
53355         * lib/sys_select_.h: New file.
53356         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
53357         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
53358         * modules/sys_select (Files): Add lib/sys_select_.h.
53359         (Depends-on): Add absolute-header.
53360         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
53361         into sys/select.h.
53362
53363 2007-03-02  Bruno Haible  <bruno@clisp.org>
53364
53365         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
53366         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
53367         values.
53368         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
53369         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
53370         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
53371         * modules/sys_socket (Depends-on): Add absolute-header.
53372         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
53373         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
53374         (Include): Remove requirement of inclusion of <sys/types.h>.
53375
53376 2007-03-02  Bruno Haible  <bruno@clisp.org>
53377
53378         * lib/byteswap_.h (bswap_32): Fix formula.
53379
53380 2007-03-06  Bruno Haible  <bruno@clisp.org>
53381
53382         * modules/sprintf-posix-tests: New file.
53383         * tests/test-sprintf-posix.c: New file.
53384
53385         * modules/sprintf-posix: New file.
53386         * lib/sprintf.c: New file.
53387         * m4/sprintf-posix.m4: New file.
53388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53389         REPLACE_SPRINTF.
53390         * lib/stdio_.h (sprintf): New declaration.
53391         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53392         REPLACE_SPRINTF.
53393
53394 2007-03-06  Bruno Haible  <bruno@clisp.org>
53395
53396         * modules/vsprintf-posix-tests: New file.
53397         * tests/test-vsprintf-posix.c: New file.
53398         * tests/test-sprintf-posix.h: New file.
53399
53400         * modules/vsprintf-posix: New file.
53401         * lib/vsprintf.c: New file.
53402         * m4/vsprintf-posix.m4: New file.
53403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53404         REPLACE_VSPRINTF.
53405         * lib/stdio_.h (vsprintf): New declaration.
53406         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53407         REPLACE_VSPRINTF.
53408
53409 2007-03-06  Bruno Haible  <bruno@clisp.org>
53410
53411         * modules/vsnprintf (Depend-on): Remove minmax.
53412
53413 2007-03-06  Bruno Haible  <bruno@clisp.org>
53414
53415         * modules/snprintf-posix-tests: New file.
53416         * tests/test-snprintf-posix.c: New file.
53417
53418         * modules/snprintf-posix: New file.
53419         * m4/snprintf-posix.m4: New file.
53420         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53421         gl_FUNC_SNPRINTF.
53422         (gl_FUNC_SNPRINTF): Invoke it.
53423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53424         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53425         is set.
53426         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53427
53428 2007-03-06  Bruno Haible  <bruno@clisp.org>
53429
53430         * modules/vsnprintf-posix-tests: New file.
53431         * tests/test-vsnprintf-posix.c: New file.
53432         * tests/test-snprintf-posix.h: New file.
53433
53434         * modules/vsnprintf-posix: New file.
53435         * m4/vsnprintf-posix.m4: New file.
53436         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53437         gl_FUNC_VSNPRINTF.
53438         (gl_FUNC_VSNPRINTF): Invoke it.
53439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53440         * lib/stdio_.h (vsnprintf): Define as a replacement if
53441         REPLACE_VSNPRINTF is set.
53442         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53443
53444 2007-03-06  Bruno Haible  <bruno@clisp.org>
53445
53446         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53447         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53448
53449 2007-03-06  Bruno Haible  <bruno@clisp.org>
53450
53451         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53452         (asinl): Declare also if HAVE_DECL_ASINL is set.
53453         (atanl): Declare also if HAVE_DECL_ATANL is set.
53454         (ceill): Declare also if HAVE_DECL_CEILL is set.
53455         (cosl): Declare also if HAVE_DECL_COSL is set.
53456         (expl): Declare also if HAVE_DECL_EXPL is set.
53457         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53458         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53459         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53460         (logl): Declare also if HAVE_DECL_LOGL is set.
53461         (sinl): Declare also if HAVE_DECL_SINL is set.
53462         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53463         (tanl): Declare also if HAVE_DECL_TANL is set.
53464         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53466         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53467         declaration of frexpl, ldexpl.
53468         * modules/printf-frexpl (Depends-on): Add math.
53469         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53470
53471 2007-03-05  Bruno Haible  <bruno@clisp.org>
53472
53473         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53474         frexpl and ldexpl are declared.
53475         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53476
53477 2007-03-05  Bruno Haible  <bruno@clisp.org>
53478
53479         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53480         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53481
53482 2007-03-05  Bruno Haible  <bruno@clisp.org>
53483
53484         * lib/stdio_.h: Include <stddef.h>.
53485
53486 2007-03-05  Bruno Haible  <bruno@clisp.org>
53487
53488         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53489
53490 2007-03-05  Bruno Haible  <bruno@clisp.org>
53491
53492         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53493         NetBSD 4, from Ralf Wildenhues.
53494
53495 2007-03-04  Bruno Haible  <bruno@clisp.org>
53496
53497         * lib/vasprintf.h: Update #if logic for the case when the functions
53498         exist but are overridden.
53499
53500 2007-03-04  Bruno Haible  <bruno@clisp.org>
53501
53502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53503         implementations: glibc-2.4 and MacOS X 10.3.
53504         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53505         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53506         * tests/test-vasprintf-posix.c (test_function): Likewise.
53507
53508 2007-03-04  Bruno Haible  <bruno@clisp.org>
53509
53510         * modules/vasprintf-posix-tests: New file.
53511         * tests/test-vasprintf-posix.c: New file.
53512
53513         * modules/vasprintf-posix: New file.
53514         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53515         defined.
53516         * m4/vasprintf-posix.m4: New file.
53517         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53518         gl_FUNC_VASPRINTF.
53519         (gl_FUNC_VASPRINTF): Invoke it.
53520         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53521         here.
53522         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53523
53524 2007-03-04  Bruno Haible  <bruno@clisp.org>
53525
53526         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53527         REPLACE_GETTIMEOFDAY.
53528         * modules/sys_time (Makefile.am): Likewise.
53529         * m4/sys_time_h.m4: Likewise.
53530         * m4/gettimeofday.m4: Likewise.
53531
53532 2007-03-04  Bruno Haible  <bruno@clisp.org>
53533
53534         * modules/vasnprintf-posix-tests: New file.
53535         * tests/test-vasnprintf-posix.c: New file.
53536
53537         * modules/vasnprintf-posix: New file.
53538         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53539         printf-frexpl.h.
53540         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53541         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53542         REPLACE_VASNPRINTF is defined.
53543         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53544         gl_FUNC_VASNPRINTF.
53545         (gl_FUNC_VASNPRINTF): Invoke it.
53546         * m4/vasnprintf-posix.m4: New file.
53547         * m4/printf.m4: New file.
53548
53549 2007-03-04  Bruno Haible  <bruno@clisp.org>
53550
53551         Compile progreloc.c only if --enable-relocatable is specified.
53552         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53553         if --enable-relocatable was specified.
53554         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53555         lib_SOURCES.
53556
53557 2007-03-04  Jim Meyering  <jim@meyering.net>
53558
53559         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53560         Use it consistently, rather than enumerating errno constants.
53561
53562 2007-03-04  Bruno Haible  <bruno@clisp.org>
53563
53564         * modules/xvasprintf-tests: New file.
53565         * tests/test-xvasprintf.c: New file.
53566
53567         * modules/vasprintf-tests: New file.
53568         * tests/test-vasprintf.c: New file.
53569
53570         * modules/vasnprintf-tests: New file.
53571         * tests/test-vasnprintf.c: New file.
53572
53573         * modules/vsnprintf-tests: New file.
53574         * tests/test-vsnprintf.c: New file.
53575
53576         * modules/snprintf-tests: New file.
53577         * tests/test-snprintf.c: New file.
53578
53579 2007-03-04  Bruno Haible  <bruno@clisp.org>
53580
53581         Compile relocatable.c only if --enable-relocatable is specified.
53582         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53583         gl_RELOCATABLE_LIBRARY.
53584         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53585         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53586         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53587         gl_RELOCATABLE_LIBRARY.
53588         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53589         (Makefile.am): Remove lib_SOURCES.
53590         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53591         gl_RELOCATABLE_LIBRARY.
53592         (Makefile.am): Remove lib_SOURCES.
53593         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53594         always.
53595         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53596         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53597
53598 2007-03-04  Bruno Haible  <bruno@clisp.org>
53599
53600         * modules/argmatch-tests: New file.
53601         * tests/test-argmatch.c: New file.
53602
53603         * tests/test-allocsa.c (main): Halve the number of loop runs.
53604
53605         * modules/alloca-opt-tests: New file.
53606         * tests/test-alloca-opt.c: New file.
53607
53608 2007-03-04  Jim Meyering  <jim@meyering.net>
53609
53610         Work around difference between Linux ACLs and Solaris 10 ZFS.
53611         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53612         for EINVAL.
53613
53614 2007-03-03  Bruno Haible  <bruno@clisp.org>
53615
53616         * modules/relocatable-prog (Depends-on): Add back progreloc's
53617         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53618
53619 2007-03-03  Bruno Haible  <bruno@clisp.org>
53620
53621         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53622         * modules/relocatable-lib: New file.
53623
53624 2007-03-03  Bruno Haible  <bruno@clisp.org>
53625
53626         * modules/relocatable-prog: Renamed from modules/relocatable.
53627         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53628
53629 2007-03-03  Bruno Haible  <bruno@clisp.org>
53630
53631         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53632         m4/relocatable-lib.m4.
53633         (Depends-on): Remove 'relocatable'.
53634         (configure.ac): Add gl_RELOCATABLE_NOP.
53635
53636 2007-03-03  Bruno Haible  <bruno@clisp.org>
53637
53638         * modules/relocatable-prog-wrapper: New file.
53639         * modules/relocatable (Depends-on): Add it. Remove all other
53640         dependencies except progname.
53641         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53642
53643         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53644         (gl_FUNC_STRERROR): Nop.
53645         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53646
53647         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53648         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53649
53650         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53651         (gl_FUNC_READLINK): Update.
53652
53653         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53654
53655 2007-03-03  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53658         * modules/xreadlink (Depends-on): Add unistd.
53659         * modules/xreadlink-with-size (Depends-on): Likewise.
53660
53661 2007-03-03  Bruno Haible  <bruno@clisp.org>
53662
53663         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53664         extracted from gt_FUNC_SETENV.
53665         (gt_FUNC_SETENV): Remove macro.
53666         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53667         remove gt_FUNC_SETENV.
53668
53669 2007-03-03  Bruno Haible  <bruno@clisp.org>
53670
53671         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53672         ENABLE_RELOCATABLE here.
53673         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53674
53675 2007-03-03  Bruno Haible  <bruno@clisp.org>
53676
53677         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53678         * tests/test-rbtreehash_list.c: Include progname.h.
53679         (main): Call set_program_name.
53680
53681         * modules/rbtree-oset-tests (Depends-on): Add progname.
53682         * tests/test-rbtree_oset.c: Include progname.h.
53683         (main): Call set_program_name.
53684
53685         * modules/rbtree-list-tests (Depends-on): Add progname.
53686         * tests/test-rbtree_list.c: Include progname.h.
53687         (main): Call set_program_name.
53688
53689         * modules/linked-list-tests (Depends-on): Add progname.
53690         * tests/test-linked_list.c: Include progname.h.
53691         (main): Call set_program_name.
53692
53693 2007-03-03  Bruno Haible  <bruno@clisp.org>
53694
53695         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53696         All uses of __restrict changed to _Restrict_.
53697         * lib/glob_.h (__restrict): Remove macro.
53698
53699 2007-03-02  Bruno Haible  <bruno@clisp.org>
53700
53701         * modules/gettext (configure.ac): Require gettext infrastructure
53702         from version 0.16.1.
53703
53704 2007-03-02  Bruno Haible  <bruno@clisp.org>
53705
53706         * modules/linkedhash-list-tests (Depends-on): Add progname.
53707         * tests/test-linkedhash_list.c: Include progname.h.
53708         (main): Call set_program_name.
53709
53710         * modules/carray-list-tests (Depends-on): Add progname.
53711         * tests/test-carray_list.c: Include progname.h.
53712         (main): Call set_program_name.
53713
53714         * modules/avltreehash-list-tests (Depends-on): Add progname.
53715         * tests/test-avltreehash_list.c: Include progname.h.
53716         (main): Call set_program_name.
53717
53718         * modules/avltree-oset-tests (Depends-on): Add progname.
53719         * tests/test-avltree_oset.c: Include progname.h.
53720         (main): Call set_program_name.
53721
53722         * modules/avltree-list-tests (Depends-on): Add progname.
53723         * tests/test-avltree_list.c: Include progname.h.
53724         (main): Call set_program_name.
53725
53726         * modules/array-oset-tests (Depends-on): Add progname.
53727         * tests/test-array_oset.c: Include progname.h.
53728         (main): Call set_program_name.
53729
53730         * modules/array-list-tests (Depends-on): Add progname.
53731         * tests/test-array_list.c: Include progname.h.
53732         (main): Call set_program_name.
53733
53734         * modules/argp-tests (Depends-on): Add progname.
53735         * tests/test-argp.c: Include argp.h first. Include progname.h.
53736         (main): Call set_program_name.
53737
53738 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53739
53740         * doc/gnulib-tool.texi (Initial import): Reword description of
53741         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53742         limited effect even if defined after the first system include.
53743
53744 2007-03-01  Bruno Haible  <bruno@clisp.org>
53745
53746         * build-aux/config.libpath: Update to libtool-1.5.22.
53747         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53748
53749 2007-03-01  Bruno Haible  <bruno@clisp.org>
53750
53751         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53752         foo_CFLAGS.
53753         Reported by Ralf Wildenhues.
53754
53755 2007-03-01  Bruno Haible  <bruno@clisp.org>
53756
53757         * build-aux/install-reloc: Remove object files left over by some
53758         compilers.
53759         Reported by Ralf Wildenhues.
53760
53761 2007-03-01  Bruno Haible  <bruno@clisp.org>
53762
53763         * build-aux/install-reloc: Break long lines.
53764
53765 2007-03-01  Bruno Haible  <bruno@clisp.org>
53766
53767         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53768         Reported by Ralf Wildenhues.
53769
53770 2007-03-01  Bruno Haible  <bruno@clisp.org>
53771
53772         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53773         include ordering constraints.
53774
53775 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53776
53777         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53778         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53779         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53780         as another example.
53781         * lib/time_.h: Fix misspelling.
53782         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53783         Require gl_HEADER_TIME_H_DEFAULTS.
53784         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53785         * m4/time_r.m4 (gl_TIME_R): Likewise.
53786         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53787
53788 2007-03-01  Bruno Haible  <bruno@clisp.org>
53789
53790         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53791         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53792
53793 2007-03-01  Jim Meyering  <jim@meyering.net>
53794
53795         * modules/xreadlink (Maintainer): Add my name.
53796         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53797
53798 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53799             Bruno Haible  <bruno@clisp.org>
53800
53801         * build-aux/install-reloc: Compile also c-ctype.c.
53802         * build-aux/relocatable.sh.in: New file.
53803         * doc/relocatable.texi: New file.
53804         * doc/relocatable-maint.texi: New file.
53805         * doc/gnulib.texi: Include relocatable-maint.texi.
53806         * lib/progreloc.c: Include unistd.h unconditionally.
53807         * lib/relocwrapper.c: Include unistd.h unconditionally.
53808         Include c-ctype.h.
53809         (add_dotbin): Use c_tolower.
53810         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53811         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53812         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53813         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53814         to m4/relocatable-lib.m4.
53815         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53816         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53817         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53818         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53819         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53820         * modules/relocatable: New file.
53821         * modules/relocatable-lib: New file.
53822         * modules/relocatable-script: New file.
53823
53824 2007-02-28  Bruno Haible  <bruno@clisp.org>
53825
53826         Import --enable-relocatable infrastructure.
53827         * build-aux/config.libpath: New file, from GNU gettext.
53828         * build-aux/install-reloc: New file, from GNU gettext.
53829         * build-aux/reloc-ldflags: New file, from GNU gettext.
53830         * lib/relocatable.h: New file, from GNU gettext.
53831         * lib/relocatable.c: New file, from GNU gettext.
53832         * lib/relocwrapper.c: New file, from GNU gettext.
53833         * m4/relocatable.m4: New file, from GNU gettext.
53834
53835 2007-02-28  Bruno Haible  <bruno@clisp.org>
53836
53837         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53838
53839         * modules/xreadlink: New file, from GNU gettext with modifications.
53840         * lib/xreadlink.c: New file, from GNU gettext.
53841         * lib/xreadlink.h: Add comments.
53842         (xreadlink): New declaration.
53843
53844         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53845         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53846         lib/xreadlink-with-size.c.
53847         (configure.ac): Remove gl_XREADLINK invocation.
53848         (Makefile.am): Augment lib_SOURCES.
53849         * m4/xreadlink.m4: Remove file.
53850         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53851         (xreadlink_with_size): Renamed from xreadink.
53852         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53853         * modules/canonicalize (Depends-on): Replace xreadlink with
53854         xreadlink-with-size.
53855         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53856
53857 2007-02-25  Jim Meyering  <jim@meyering.net>
53858
53859         * build-aux/announce-gen: When complaining about excess arguments,
53860         list them.
53861
53862 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53863
53864         * README: Document signed integer overflow situation more
53865         accurately.
53866
53867 2007-02-25  Bruno Haible  <bruno@clisp.org>
53868
53869         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53870         'a' or 'A' conversion.
53871
53872 2007-02-25  Bruno Haible  <bruno@clisp.org>
53873
53874         * modules/filename: Renamed from modules/pathname.
53875         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53876         lib/concatpath.c with lib/concat-filename.c.
53877         (Makefile.am): Update.
53878         (Include): Replace pathname.h with filename.h.
53879         * lib/filename.h: Renamed from lib/pathname.h.
53880         (concatenated_filename): Renamed from concatenated_pathname.
53881         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53882         (concatenated_filename): Renamed from concatenated_pathname.
53883         * lib/findprog.c: Include filename.h instead of pathname.h.
53884         (find_in_path): Update.
53885         * lib/javacomp.c: Include filename.h instead of pathname.h.
53886         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53887         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53888         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53889         is_oldgcj_14_13_usable, is_javac_usable): Update.
53890         * lib/javaexec.c: Include filename.h instead of pathname.h.
53891         (execute_java_class): Update.
53892         * modules/findprog: Update.
53893         * modules/javacomp: Update.
53894         * modules/javaexec: Update.
53895         * MODULES.html.sh (File system functions): Add 'filename', remove
53896         'pathname'.
53897
53898 2007-02-25  Bruno Haible  <bruno@clisp.org>
53899
53900         * modules/printf-frexpl-tests: New file.
53901         * tests/test-printf-frexpl.c: New file.
53902
53903         * modules/printf-frexpl: New file.
53904         * lib/printf-frexpl.h: New file.
53905         * lib/printf-frexpl.c: New file.
53906         * m4/printf-frexpl.m4: New file.
53907
53908 2007-02-25  Bruno Haible  <bruno@clisp.org>
53909
53910         * modules/printf-frexp-tests: New file.
53911         * tests/test-printf-frexp.c: New file.
53912
53913         * modules/printf-frexp: New file.
53914         * lib/printf-frexp.h: New file.
53915         * lib/printf-frexp.c: New file.
53916         * m4/printf-frexp.m4: New file.
53917
53918 2007-02-25  Bruno Haible  <bruno@clisp.org>
53919
53920         Assume automake >= 1.10 for the tests.
53921         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53922         * modules/arctwo-tests: Likewise.
53923         * modules/argp-tests: Likewise.
53924         * modules/avltree-list-tests: Likewise.
53925         * modules/avltree-oset-tests: Likewise.
53926         * modules/avltreehash-list-tests: Likewise.
53927         * modules/carray-list-tests: Likewise.
53928         * modules/crc-tests: Likewise.
53929         * modules/des-tests: Likewise.
53930         * modules/gc-arcfour-tests: Likewise.
53931         * modules/gc-arctwo-tests: Likewise.
53932         * modules/gc-des-tests: Likewise.
53933         * modules/gc-hmac-md5-tests: Likewise.
53934         * modules/gc-hmac-sha1-tests: Likewise.
53935         * modules/gc-md2-tests: Likewise.
53936         * modules/gc-md4-tests: Likewise.
53937         * modules/gc-md5-tests: Likewise.
53938         * modules/gc-pbkdf2-sha1-tests: Likewise.
53939         * modules/gc-rijndael-tests: Likewise.
53940         * modules/gc-sha1-tests: Likewise.
53941         * modules/gc-tests: Likewise.
53942         * modules/getaddrinfo-tests: Likewise.
53943         * modules/hmac-md5-tests: Likewise.
53944         * modules/hmac-sha1-tests: Likewise.
53945         * modules/linked-list-tests: Likewise.
53946         * modules/linkedhash-list-tests: Likewise.
53947         * modules/lock-tests: Likewise.
53948         * modules/md2-tests: Likewise.
53949         * modules/md4-tests: Likewise.
53950         * modules/md5-tests: Likewise.
53951         * modules/rbtree-list-tests: Likewise.
53952         * modules/rbtree-oset-tests: Likewise.
53953         * modules/rbtreehash-list-tests: Likewise.
53954         * modules/read-file-tests: Likewise.
53955         * modules/rijndael-tests: Likewise.
53956         * modules/stdint-tests: Likewise.
53957         * modules/tls-tests: Likewise.
53958
53959 2007-02-24  Bruno Haible  <bruno@clisp.org>
53960
53961         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53962         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53963         function; instead check whether isnan with a double argument links.
53964         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53965         function; instead check whether isnan with a 'long double' argument
53966         links.
53967         Reported by Eric Blake <ebb9@byu.net>.
53968
53969 2007-02-24  Bruno Haible  <bruno@clisp.org>
53970
53971         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53972         defined.
53973         * lib/isnanl.c: Remove all code. Just include isnan.c.
53974         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53975
53976 2007-02-25  Jim Meyering  <jim@meyering.net>
53977
53978         Avoid conflicting types for 'unsetenv' on FreeBSD.
53979         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53980         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53981         in stdlib.h.
53982
53983 2007-02-24  Bruno Haible  <bruno@clisp.org>
53984
53985         * modules/isnanl-nolibm-tests: New file.
53986         * tests/test-isnanl.c: New file.
53987
53988         * modules/isnanl-nolibm: New file.
53989         * lib/isnanl.h: New file.
53990         * lib/isnanl.c: New file.
53991         * m4/isnanl.m4: New file.
53992
53993 2007-02-24  Bruno Haible  <bruno@clisp.org>
53994
53995         * modules/isnan-nolibm-tests: New file.
53996         * tests/test-isnan.c: New file.
53997
53998         * modules/isnan-nolibm: New file.
53999         * lib/isnan.h: New file.
54000         * lib/isnan.c: New file.
54001         * m4/isnan.m4: New file.
54002
54003 2007-02-24  Bruno Haible  <bruno@clisp.org>
54004
54005         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54006         assume that an exponent fits in 20 bits.
54007
54008 2007-02-24  Jim Meyering  <jim@meyering.net>
54009
54010         * m4/regex.m4: Update the description of the configure-time option,
54011         --without-included-regex, to state accurately what the defaults are,
54012         and perhaps to give people an idea why using this option is risky.
54013
54014 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54015
54016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54017         loops on small arguments.  This attempts to avoid the problem
54018         Bruno Haible reported for AIX 4.3.2 in
54019         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54020
54021 2007-02-23  Bruno Haible  <bruno@clisp.org>
54022
54023         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54024         Needed for help2man.
54025
54026 2007-02-23  Karl Berry  <karl@gnu.org>
54027
54028         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54029         exists, foo.h should be cvs-ignored, not committed.
54030
54031 2007-02-23  Eric Blake  <ebb9@byu.net>
54032
54033         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54034         * lib/stat-time.h (includes): Likewise.
54035         * lib/utimecmp.c (includes): Likewise.
54036         * lib/utimens.h (includes): Likewise.
54037         * lib/getdate.y (includes): Also include "timespec.h" for use
54038         internal to the module.
54039         * modules/utimens (Depends-on): Revert yesterday's patch.
54040         * modules/nanosleep (Depends-on): Add missing dependency.
54041
54042 2007-02-22  Bruno Haible  <bruno@clisp.org>
54043
54044         * lib/glob.c: Don't include getlogin_r.h.
54045
54046 2007-02-22  Jim Meyering  <jim@meyering.net>
54047
54048         * modules/utimens (Depends-on): Add timespec, required for
54049         utimens.h's inclusion of timespec.h.
54050
54051 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54052
54053         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54054         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54055         Schwab in
54056         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54057         I'll try to think of a better way to fix the Solaris problem.
54058
54059         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54060         like glibc; on Solaris 10, it fails with errno == EINVAL.
54061         POSIX says the behavior is unspecified if the first argument is NULL,
54062         so play it safe and never pass NULL to the system getcwd.
54063
54064 2007-02-21  Jim Meyering  <jim@meyering.net>
54065
54066         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54067         of gettimeofday.  It would conflict with the one now always
54068         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54069         an IRIX 6.5 build failure.
54070
54071 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54072
54073         Minor fixups to port to Solaris 10 with Sun C 5.8.
54074         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54075         * modules/getcwd (Depends-on): Add dirfd.
54076         * lib/putenv.c (putenv): #undef it.
54077         (rpl_putenv): New decl.
54078         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54079
54080 2007-02-20  Bruno Haible  <bruno@clisp.org>
54081
54082         * modules/stdio-tests: New file.
54083         * tests/test-stdio.c: New file.
54084
54085         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54086         (Depends-on): Add stdio.
54087         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54088         (Include): Use <stdio.h> instead of vsnprintf.h.
54089         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54090         HAVE_DECL_VSNPRINTF.
54091         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54092
54093         * modules/snprintf (Files): Remove lib/snprintf.h.
54094         (Depends-on): Add stdio.
54095         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54096         (Include): Use <stdio.h> instead of snprintf.h.
54097         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54098         HAVE_DECL_SNPRINTF.
54099         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54100         * lib/getaddrinfo.c: Likewise.
54101
54102         * modules/stdio: New file.
54103         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54104         * lib/snprintf.h: Remove file.
54105         * lib/vsnprintf.h: Remove file.
54106         * lib/.cppi-disable: Remove snprintf.h.
54107         * m4/stdio_h.m4: New file.
54108         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54109
54110 2007-02-20  Jim Meyering  <jim@meyering.net>
54111
54112         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54113         used by e.g., mingw.  From Bruno Haible.
54114
54115 2007-02-19  Bruno Haible  <bruno@clisp.org>
54116
54117         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54118         warnings.
54119         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54120
54121 2007-02-19  Bruno Haible  <bruno@clisp.org>
54122
54123         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54124         from mingw users.
54125
54126 2007-02-19  Bruno Haible  <bruno@clisp.org>
54127
54128         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54129         warnings.
54130         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54131
54132 2007-02-19  Jim Meyering  <jim@meyering.net>
54133
54134         Don't use FD after a successful "fdopendir (fd)".
54135         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54136         Reset it by calling dirfd on the just-obtained DIR*.
54137
54138         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54139         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54140
54141 2007-02-18  Bruno Haible  <bruno@clisp.org>
54142
54143         * lib/readlink.c: Include <unistd.h>.
54144         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54145         HAVE_READLINK.
54146         * modules/readlink (Depends-on): Add unistd.
54147         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54148         (Include): Add <unistd.h>.
54149
54150         * lib/getlogin_r.h: Remove file.
54151         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54152         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54153         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54154         HAVE_DECL_GETLOGIN_R.
54155         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54156         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54157         (Include): Use <unistd.h> instead of getlogin_r.h.
54158
54159         * lib/getcwd.h: Remove file.
54160         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54161         * lib/xgetcwd.c: Likewise.
54162         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54163         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54164         * modules/getcwd (Files): Remove lib/getcwd.h.
54165         (Depends-on): Add unistd.
54166         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54167         (Include): Use <unistd.h> instad of getcwd.h.
54168
54169         * lib/ftruncate.c: Include <unistd.h> first.
54170         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54171         Set HAVE_FTRUNCATE.
54172         * modules/ftruncate (Depends-on): Add unistd.
54173         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54174
54175         * lib/fchdir.c: Include <unistd.h> first.
54176         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54177         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54178         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54179         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54180         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54181
54182         * lib/dup2.c: Include <unistd.h> first.
54183         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54184         HAVE_DUP2.
54185         * modules/dup2 (Depends-on): Add unistd.
54186         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54187
54188         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54189         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54190         REPLACE_CHOWN. Don't define chown as a macro here.
54191         * modules/chown (Depends-on): Add unistd.
54192         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54193
54194         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54195         Add definition for GL_LINK_WARNING.
54196         (chown, dup2): New declarations.
54197         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54198         link warning.
54199         (ftruncate): New declaration.
54200         (getcwd): New declaration, taken from old getcwd.h.
54201         (getlogin_r): New declaration, taken from old getlogin_r.h.
54202         (readlink): New declaration.
54203         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
54204         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
54205         (gl_PREREQ_UNISTD): Remove macro.
54206         (gl_UNISTD_MODULE_INDICATOR): New macro.
54207         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
54208         many new variables. Don't set UNISTD_H.
54209         * modules/unistd (Description): Change.
54210         (Depends-on): Add link-warning.
54211         (configure.ac): Update.
54212         (Makefile.am): Create unistd.h always. Substitute many new variables
54213         into it.
54214
54215 2007-02-18  Bruno Haible  <bruno@clisp.org>
54216
54217         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
54218         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
54219         HAVE_GETSUBOPT.
54220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
54221         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
54222         * lib/getsubopt.h: Remove file.
54223         * modules/getsubopt (Files): Remove lib/getsubopt.h.
54224         (Depends-on): Add stdlib.
54225         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54226         (Includes): Use <stdlib.h> instead of getsubopt.h.
54227         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
54228         Set HAVE_GETSUBOPT.
54229         * lib/getsubopt.c: Don't include getsubopt.h.
54230
54231 2007-02-18  Bruno Haible  <bruno@clisp.org>
54232
54233         * modules/fchdir (Depends-on): Add dup2.
54234
54235 2007-02-18  Bruno Haible  <bruno@clisp.org>
54236
54237         * lib/stdlib_.h: Handle glibc's special invocation convention
54238         specially.
54239
54240 2007-02-18  Bruno Haible  <bruno@clisp.org>
54241
54242         * modules/stdlib-tests: New file.
54243         * tests/test-stdlib.c: New file.
54244
54245         * modules/mkstemp (Files): Remove lib/mkstemp.h.
54246         (Depends-on): Add stdlib.
54247         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54248         (Includes): Use <stdlib.h> instead of mkstemp.h.
54249         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54250         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
54251         * lib/mkstemp.c: Don't include mkstemp.h.
54252         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
54253         * lib/stdlib--.h: Don't include mkstemp.h.
54254
54255         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
54256         (Depends-on): Add stdlib.
54257         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54258         (Includes): Use <stdlib.h> instead of mkdtemp.h.
54259         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54260         HAVE_MKDTEMP.
54261         * lib/mkdtemp.c: Don't include mkdtemp.h.
54262         * lib/clean-temp.c: Don't include mkdtemp.h.
54263
54264         * modules/exit (Files): Remove lib/exit.h.
54265         (Depends-on): Add stdlib.
54266         (Makefile.am): Remove lib_SOURCES.
54267         (Include): Use <stdlib.h> instead of exit.h.
54268         * lib/argmatch.c: Don't include exit.h.
54269         * lib/execute.c: Likewise.
54270         * lib/pagealign_alloc.c: Likewise.
54271         * lib/pipe.c: Likewise.
54272         * lib/wait-process.c: Likewise.
54273         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54274         * lib/exitfail.c: Likewise.
54275         * lib/savewd.c: Likewise.
54276         * lib/xsetenv.c: Likewise.
54277
54278         * modules/stdlib: New file.
54279         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54280         and extra comments about mkstemp().
54281         * lib/exit.h: Remove file.
54282         * lib/mkdtemp.h: Remove file.
54283         * lib/mkstemp.h: Remove file.
54284         * m4/stdlib_h.m4: New file.
54285         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54286
54287 2007-02-18  Bruno Haible  <bruno@clisp.org>
54288
54289         * modules/math-tests: New file.
54290         * tests/test-math.c: New file.
54291
54292         * modules/math: New file.
54293         * modules/mathl (Files): Remove lib/mathl.h.
54294         (Depends-on): Add math.
54295         (Makefile.am): Don't mention mathl.h.
54296         (Include): Use <math.h> instead of mathl.h.
54297         * lib/math_.h: New file.
54298         * lib/mathl.h: Remove file.
54299         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54300         mathl.h.
54301         * lib/asinl.c: Likewise.
54302         * lib/atanl.c: Likewise.
54303         * lib/ceill.c: Likewise.
54304         * lib/cosl.c: Likewise.
54305         * lib/expl.c: Likewise.
54306         * lib/floorl.c: Likewise.
54307         * lib/frexpl.c: Likewise.
54308         * lib/ldexpl.c: Likewise.
54309         * lib/logl.c: Likewise.
54310         * lib/sincosl.c: Likewise.
54311         * lib/sinl.c: Likewise.
54312         * lib/sqrtl.c: Likewise.
54313         * lib/tanl.c: Likewise.
54314         * lib/trigl.c: Likewise.
54315         * m4/math_h.m4: New file.
54316         * MODULES.html.sh (Mathematics): Add math.
54317
54318 2007-02-17  Bruno Haible  <bruno@clisp.org>
54319
54320         * modules/wctype-tests: New file.
54321         * tests/test-wctype.c: New file.
54322
54323         * modules/wchar-tests: New file.
54324         * tests/test-wchar.c: New file.
54325
54326         * modules/unistd-tests: New file.
54327         * tests/test-unistd.c: New file.
54328
54329         * modules/time-tests: New file.
54330         * tests/test-time.c: New file.
54331
54332         * modules/sysexits-tests: New file.
54333         * tests/test-sysexits.c: New file.
54334
54335         * modules/sys_time-tests: New file.
54336         * tests/test-sys_time.c: New file.
54337
54338         * modules/sys_stat-tests: New file.
54339         * tests/test-sys_stat.c: New file.
54340
54341         * modules/sys_socket-tests: New file.
54342         * tests/test-sys_socket.c: New file.
54343
54344         * modules/sys_select-tests: New file.
54345         * tests/test-sys_select.c: New file.
54346
54347         * modules/string-tests: New file.
54348         * tests/test-string.c: New file.
54349
54350         * modules/stdbool-tests: New file.
54351         * tests/test-stdbool.c: New file.
54352
54353         * modules/netinet_in-tests: New file.
54354         * tests/test-netinet_in.c: New file.
54355
54356         * modules/inttypes-tests: New file.
54357         * tests/test-inttypes.c: New file.
54358
54359         * modules/fcntl-tests: New file.
54360         * tests/test-fcntl.c: New file.
54361
54362         * modules/byteswap-tests: New file.
54363         * tests/test-byteswap.c: New file.
54364
54365         * modules/arpa_inet-tests: New file.
54366         * tests/test-arpa_inet.c: New file.
54367
54368 2007-02-17  Bruno Haible  <bruno@clisp.org>
54369
54370         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
54371         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
54372         if the corresponding module is not enabled. Emit link warnings if
54373         the function is used nevertheless.
54374         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
54375         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
54376         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54377         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54378         * modules/inttypes (Depends-on): Add link-warning.
54379         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54380         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54381         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54382         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54383         * modules/imaxdiv (configure.ac): Likewise.
54384         * modules/strtoimax (configure.ac): Likewise.
54385         * modules/strtoumax (configure.ac): Likewise.
54386
54387 2007-02-17  Bruno Haible  <bruno@clisp.org>
54388
54389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54390         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54391         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54392         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54393
54394 2007-02-17  Bruno Haible  <bruno@clisp.org>
54395
54396         * modules/link-warning: New file.
54397         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54398         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54399         * modules/string (Depends-on): Add link-warning.
54400         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54401         string.h.
54402         * MODULES.html.sh (Support for building libraries and executables): Add
54403         link-warning.
54404
54405 2007-02-17  Bruno Haible  <bruno@clisp.org>
54406
54407         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54408         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54409         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54410         long lines.
54411
54412 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54413             Bruno Haible  <bruno@clisp.org>
54414
54415         * modules/tmpfile: New file.
54416         * lib/tmpfile.c: New file.
54417         * m4/tmpfile.m4: New file.
54418         * MODULES.html.sh (func_all_modules): New section "Input/output".
54419
54420 2007-02-15  Bruno Haible  <bruno@clisp.org>
54421
54422         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54423         (supports_delete_on_close): New function.
54424         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54425
54426 2007-02-14  Bruno Haible  <bruno@clisp.org>
54427
54428         * modules/mbspcasecmp-tests: New file.
54429         * tests/test-mbspcasecmp.sh: New file.
54430         * tests/test-mbspcasecmp.c: New file.
54431
54432         New module mbspcasecmp.
54433         * modules/mbspcasecmp: New file.
54434         * lib/mbspcasecmp.c: New file.
54435         * lib/string_.h (strncasecmp): Change warning message.
54436         (mbspcasecmp): New declaration.
54437         * m4/mbspcasecmp.m4: New file.
54438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54439         GNULIB_MBSPCASECMP.
54440         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54441         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54442
54443 2007-02-14  Bruno Haible  <bruno@clisp.org>
54444
54445         * modules/mbsncasecmp-tests: New file.
54446         * tests/test-mbsncasecmp.sh: New file.
54447         * tests/test-mbsncasecmp.c: New file.
54448
54449         New module mbsncasecmp.
54450         * modules/mbsncasecmp: New file.
54451         * lib/mbsncasecmp.c: New file.
54452         * lib/string_.h (mbsncasecmp): New declaration.
54453         * m4/mbsncasecmp.m4: New file.
54454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54455         GNULIB_MBSNCASECMP.
54456         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54457         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54458
54459 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54460
54461         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54462         Verify that it doesn't overlap with our flags.
54463         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54464         do not have the desired effect in multibyte locales; instead, use
54465         mbscasecmp.
54466         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54467         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54468         we don't require GNU fnmatch ourselves (if our users require it, they
54469         should do so explicitly).
54470
54471         Fix regex code so it doesn't rely on strcasecmp.
54472         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54473         Otherwise, include gnulib's langinfo.h.
54474         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54475         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54476         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54477         * modules/regex (FILES): Remove m4/codeset.m4.
54478         (Depends-on): Add localcharset.  Remove strcase.
54479
54480 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54481
54482         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54483         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54484
54485 2007-02-13  Bruno Haible  <bruno@clisp.org>
54486
54487         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54488         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54489
54490 2007-02-12  Bruno Haible  <bruno@clisp.org>
54491
54492         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54493         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54494         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54495         time warning rather than a link error.
54496
54497 2007-02-12  Bruno Haible  <bruno@clisp.org>
54498
54499         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54500         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54501         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54502
54503 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54504
54505         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54506         args, not 2.
54507
54508 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54509
54510         New module 'time', so that apps can include <time.h> as per
54511         POSIX and GNU instead of separate include files like time_r.h
54512         and timegm.h.  This implementation tries out a simpler approach
54513         for replacing decls in standard include files (as compared to
54514         the string module), somewhat as an experiment.
54515
54516         * config/srclist.txt: Comment out mktime.c for now.
54517         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54518         since it doesn't apply any more.  Use generic wording instead.
54519         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54520         'time'.
54521         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54522         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54523         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54524         Don't include <sys/types.h>; no longer needed since we assume C89.
54525         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54526         * lib/strftime.c: Likewise.
54527         * lib/time_r.c: Likewise.
54528         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54529         * lib/nanosleep.c: Include <time.h> first, to check interface.
54530         * lib/strptime.c: Likewise.
54531         * lib/time_r.c: Likewise.
54532         * lib/timegm.c: Likewise.
54533         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54534         needed.
54535         * lib/timegm.c: Don't include timegm.h; no longer needed.
54536         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54537         time.h now handles any problems in that area.
54538         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54539         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54540         that time.h defines struct timespec.
54541         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54542         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54543         handles that.
54544         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54545         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54546         needed.  Set REPLACE_LOCALTIME.
54547         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54548         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54549         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54550         nanosleep; time_h.m4 now does that.  Don't require
54551         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54552         module handles this now.
54553         * modules/getdate (Depends-on): Remove timespec.  Add time.
54554         * modules/nanosleep (Depends-on): Likewise.
54555         * modules/stat-time (Depends-on): Likewise.
54556         * modules/nanosleep (Include): Include time.h, not timespec.h.
54557         * modules/strptime (Files): Remove lib/strptime.h.
54558         (Depends-on): Add extensions, time.
54559         (Include): Include time.h, not strptime.h.
54560         * modules/time_r (Files): Remove lib/time_r.h.
54561         (Depends-on): Add time.
54562         (Include): Include time.h, not time_r.h.
54563         * modules/timegm: Likewise.
54564         * modules/timespec (Description): Now does timespec-related decls
54565         of our own, instead of struct timespec itself.
54566         (Depends-on): Add time; remove extensions.
54567         (Maintainer): Add self.
54568         * modules/utimecmp (Depends-on): Add time; remove timespec.
54569         * modules/utimens (Depends-on): Likewise.
54570         * modules/xnanosleep (Depends-on): Likewise.
54571
54572 2007-02-11  Bruno Haible  <bruno@clisp.org>
54573
54574         * lib/c-strstr.c: Include allocsa.h.
54575         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54576         * lib/c-strcasestr.c: Include allocsa.h.
54577         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54578         * lib/strcasestr.c: Include allocsa.h.
54579         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54580         * lib/mbsstr.c: Include allocsa.h.
54581         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54582         allocsa/freesa instead of malloc/free.
54583         * lib/mbscasestr.c: Include allocsa.h.
54584         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54585         allocsa/freesa instead of malloc/free.
54586         * modules/c-strstr (Depends-on): Add allocsa.
54587         * modules/c-strcasestr (Depends-on): Likewise.
54588         * modules/strcasestr (Depends-on): Likewise.
54589         * modules/mbsstr (Depends-on): Likewise.
54590         * modules/mbscasestr (Depends-on): Likewise.
54591
54592 2007-02-11  Bruno Haible  <bruno@clisp.org>
54593
54594         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54595
54596         * modules/mbsspn-tests: New file.
54597         * tests/test-mbsspn.sh: New file.
54598         * tests/test-mbsspn.c: New file.
54599
54600 2007-02-11  Bruno Haible  <bruno@clisp.org>
54601
54602         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54603
54604         * modules/mbspbrk-tests: New file.
54605         * tests/test-mbspbrk.sh: New file.
54606         * tests/test-mbspbrk.c: New file.
54607
54608 2007-02-11  Bruno Haible  <bruno@clisp.org>
54609
54610         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54611         unneeded cast.
54612
54613         * modules/mbscspn-tests: New file.
54614         * tests/test-mbscspn.sh: New file.
54615         * tests/test-mbscspn.c: New file.
54616
54617 2007-02-11  Bruno Haible  <bruno@clisp.org>
54618
54619         * modules/mbscasecmp-tests: New file.
54620         * tests/test-mbscasecmp.sh: New file.
54621         * tests/test-mbscasecmp.c: New file.
54622
54623 2007-02-11  Bruno Haible  <bruno@clisp.org>
54624
54625         Ensure O(n) worst-case complexity of mbscasestr.
54626         * lib/mbscasestr.c: Include stdbool.h.
54627         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54628         functions.
54629         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54630         the bookkeeping indicates that it's worth it.
54631         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54632
54633         * modules/mbscasestr-tests: New file.
54634         * tests/test-mbscasestr1.c: New file.
54635         * tests/test-mbscasestr2.sh: New file.
54636         * tests/test-mbscasestr2.c: New file.
54637         * tests/test-mbscasestr3.sh: New file.
54638         * tests/test-mbscasestr3.c: New file.
54639         * tests/test-mbscasestr4.sh: New file.
54640         * tests/test-mbscasestr4.c: New file.
54641         * m4/locale-tr.m4: New file.
54642
54643 2007-02-11  Bruno Haible  <bruno@clisp.org>
54644
54645         Ensure O(n) worst-case complexity of mbsstr.
54646         * lib/mbsstr.c: Include stdbool.h.
54647         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54648         functions.
54649         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54650         bookkeeping indicates that it's worth it.
54651         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54652
54653         * modules/mbsstr-tests: New file.
54654         * tests/test-mbsstr1.c: New file.
54655         * tests/test-mbsstr2.sh: New file.
54656         * tests/test-mbsstr2.c: New file.
54657         * tests/test-mbsstr3.sh: New file.
54658         * tests/test-mbsstr3.c: New file.
54659         * m4/locale-fr.m4: New file.
54660
54661 2007-02-11  Bruno Haible  <bruno@clisp.org>
54662
54663         * lib/mbsrchr.c (mbsrchr): Fix bug.
54664
54665         * modules/mbsrchr-tests: New file.
54666         * tests/test-mbsrchr.sh: New file.
54667         * tests/test-mbsrchr.c: New file.
54668
54669 2007-02-11  Bruno Haible  <bruno@clisp.org>
54670
54671         * lib/mbschr.c (mbschr): Fix bug.
54672
54673         * modules/mbschr-tests: New file.
54674         * tests/test-mbschr.sh: New file.
54675         * tests/test-mbschr.c: New file.
54676         * m4/locale-zh.m4: New file.
54677
54678 2007-02-11  Bruno Haible  <bruno@clisp.org>
54679
54680         Support for copying multibyte string iterators.
54681         * lib/mbiter.h: Include <string.h>.
54682         (mbiter_multi_copy): New function.
54683         (mbi_copy): New macro.
54684         * lib/mbuiter.h: Include <string.h>.
54685         (mbuiter_multi_copy): New function.
54686         (mbui_copy): New macro.
54687
54688 2007-02-11  Bruno Haible  <bruno@clisp.org>
54689
54690         New module mbslen.
54691         * modules/mbslen: New file.
54692         * lib/mbslen.c: New file.
54693         * lib/string_.h (mbslen): New declaration.
54694         * m4/mbslen.m4: New file.
54695         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54696         GNULIB_MBSLEN.
54697         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54698         * MODULES.html.sh (Internationalization functions): Add mbslen.
54699
54700 2007-02-11  Bruno Haible  <bruno@clisp.org>
54701
54702         Ensure O(n) worst-case complexity of strcasestr substitute.
54703         * lib/strcasestr.c: Include stdbool.h.
54704         (knuth_morris_pratt): New function.
54705         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54706         bookkeeping indicates that it's worth it.
54707         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54708
54709         * modules/strcasestr-tests: New file.
54710         * tests/test-strcasestr.c: New file.
54711
54712 2007-02-11  Bruno Haible  <bruno@clisp.org>
54713
54714         Ensure O(n) worst-case complexity of c_strcasestr.
54715         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54716         (knuth_morris_pratt): New function.
54717         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54718         the bookkeeping indicates that it's worth it.
54719         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54720
54721         * modules/c-strcasestr-tests: New file.
54722         * tests/test-c-strcasestr.c: New file.
54723
54724 2007-02-11  Bruno Haible  <bruno@clisp.org>
54725
54726         Ensure O(n) worst-case complexity of c_strstr.
54727         * lib/c-strstr.c: Include stdbool.h, string.h.
54728         (knuth_morris_pratt): New function.
54729         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54730         bookkeeping indicates that it's worth it.
54731         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54732
54733         * lib/c-strstr.c: Complete rewrite for maintainability.
54734
54735         * modules/c-strstr-tests: New file.
54736         * tests/test-c-strstr.c: New file.
54737
54738 2007-02-11  Bruno Haible  <bruno@clisp.org>
54739
54740         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54741         5.2.1 and earlier, whereby \055 was treated just like the range
54742         delimiter '-'.
54743         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54744
54745 2007-02-08  Bruno Haible  <bruno@clisp.org>
54746
54747         * modules/regex (Depends-on): Add stdbool.
54748         Reported by Dalibor Topic <robilad@kaffe.org>.
54749
54750 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54751
54752         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54753         Prefer returning from main to exiting from it.
54754         Remove unnecessary parens after sizeof.
54755
54756 2007-02-05  Bruno Haible  <bruno@clisp.org>
54757
54758         New module mbssep.
54759         * modules/mbssep: New file.
54760         * lib/mbssep.c: New file.
54761         * lib/string_.h (strsep): Add a conditional link warning.
54762         (mbssep): New declaration.
54763         * m4/mbssep.m4: New file.
54764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54765         GNULIB_MBSSEP.
54766         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54767         * MODULES.html.sh (Internationalization functions): Add mbssep.
54768
54769 2007-02-05  Bruno Haible  <bruno@clisp.org>
54770
54771         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54772         Optimize search in case of 1 delimiter.
54773
54774 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54775
54776         * lib/acl.h: Include sys/types.h before sys/acl.h.
54777
54778 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54779
54780         Merge upstream fix for glibc bugzilla #3957:
54781
54782         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54783
54784         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54785         bit for RE_HAT_LISTS_NOT_NEWLINE.
54786         (build_charclass_op): Remove bogus comment.
54787
54788 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54789
54790         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54791
54792 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54793
54794         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54795         * lib/memmem.c [!defined _LIBC]: Include config.h.
54796
54797 2007-02-04  Bruno Haible  <bruno@clisp.org>
54798
54799         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54800         warning message.
54801
54802 2007-02-04  Bruno Haible  <bruno@clisp.org>
54803
54804         New module mbstok_r.
54805         * modules/mbstok_r: New file.
54806         * lib/mbstok_r.c: New file.
54807         * lib/string_.h (strtok_r): Change argument names to match the
54808         comments. Add a conditional link warning.
54809         (mbstok_r): New declaration.
54810         * m4/mbstok_r.m4: New file.
54811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54812         GNULIB_MBSTOK_R.
54813         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54814         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54815
54816 2007-02-04  Bruno Haible  <bruno@clisp.org>
54817
54818         New module mbsspn.
54819         * modules/mbsspn: New file.
54820         * lib/mbsspn.c: New file.
54821         * lib/string_.h (strspn): Add a conditional link warning.
54822         (mbsspn): New declaration.
54823         * m4/mbsspn.m4: New file.
54824         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54825         GNULIB_MBSSPN.
54826         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54827         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54828
54829 2007-02-04  Bruno Haible  <bruno@clisp.org>
54830
54831         New module mbspbrk.
54832         * modules/mbspbrk: New file.
54833         * lib/mbspbrk.c: New file.
54834         * lib/string_.h (strpbrk): Add a conditional link warning.
54835         (mbspbrk): New declaration.
54836         * m4/mbspbrk.m4: New file.
54837         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54838         GNULIB_MBSPBRK.
54839         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54840         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54841
54842 2007-02-04  Bruno Haible  <bruno@clisp.org>
54843
54844         New module mbscspn.
54845         * modules/mbscspn: New file.
54846         * lib/mbscspn.c: New file.
54847         * lib/string_.h (strcspn): Add a conditional link warning.
54848         (mbscspn): New declaration.
54849         * m4/mbscspn.m4: New file.
54850         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54851         GNULIB_MBSCSPN.
54852         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54853         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54854
54855 2007-02-04  Bruno Haible  <bruno@clisp.org>
54856
54857         New module mbscasestr, reduced goal of strcasestr.
54858         * modules/mbscasestr: New file.
54859         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54860         (mbscasestr): Renamed from strcasestr.
54861         * lib/strcasestr.c: Don't include mbuiter.h.
54862         (strcasestr): Remove support for multibyte locales.
54863         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54864         Change the conditional link warning.
54865         (mbscasestr): New declaration.
54866         * m4/mbscasestr.m4: New file.
54867         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54868         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54869         REPLACE_STRCASESTR.
54870         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54872         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54873         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54874         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54875         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54876         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54877         (Depends-on): Remove mbuiter.
54878         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54879
54880 2007-02-04  Bruno Haible  <bruno@clisp.org>
54881
54882         Simplify handling of strncasecmp.
54883         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54884         the conditional link warning.
54885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54886         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54887         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54888         * modules/strcase (configure.ac): Don't invoke
54889         gl_STRING_MODULE_INDICATOR.
54890         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54891
54892 2007-02-04  Bruno Haible  <bruno@clisp.org>
54893
54894         New module mbscasecmp, reduced goal of strcasecmp.
54895         * modules/mbscasecmp: New file.
54896         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54897         (mbscasecmp): Renamed from strcasecmp.
54898         * lib/strcasecmp.c: Don't include mbuiter.h.
54899         (strcasecmp): Remove support for multibyte locales.
54900         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54901         Change the conditional link warning.
54902         (mbscasecmp): New declaration.
54903         * m4/mbscasecmp.m4: New file.
54904         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54905         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54906         REPLACE_STRCASECMP.
54907         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54909         GNULIB_MBSCASECMP.
54910         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54911         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54912         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54913         (Depends-on): Remove mbuiter.
54914         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54915
54916 2007-02-04  Bruno Haible  <bruno@clisp.org>
54917
54918         New module mbsstr. Remove module strstr.
54919         * modules/mbsstr: New file.
54920         * modules/strstr: Remove file.
54921         * lib/mbsstr.c: Renamed from lib/strstr.c.
54922         (mbsstr): Renamed from strstr.
54923         * lib/string_.h (strstr): Remove declaration. Change the conditional
54924         link warning.
54925         (mbsstr): New declaration.
54926         * m4/mbsstr.m4: New file.
54927         * m4/strstr.m4: Remove file.
54928         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54929         REPLACE_STRSTR.
54930         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54931         Don't initialize GNULIB_STRSTR.
54932         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54933         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54934         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54935         (Support for systems lacking ANSI C 89): Remove strstr.
54936
54937 2007-02-04  Bruno Haible  <bruno@clisp.org>
54938
54939         New module mbsrchr.
54940         * modules/mbsrchr: New file.
54941         * lib/mbsrchr.c: New file.
54942         * lib/string_.h (strrchr): Add a conditional link warning.
54943         (mbsrchr): New declaration.
54944         * m4/mbsrchr.m4: New file.
54945         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54946         GNULIB_MBSRCHR.
54947         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54948         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54949
54950 2007-02-04  Bruno Haible  <bruno@clisp.org>
54951
54952         New module mbschr.
54953         * modules/mbschr: New file.
54954         * lib/mbschr.c: New file.
54955         * lib/string_.h (strchr): Add a conditional link warning.
54956         (mbschr): New declaration.
54957         * m4/mbschr.m4: New file.
54958         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54959         GNULIB_MBSCHR.
54960         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54961         * MODULES.html.sh (Internationalization functions): Add mbschr.
54962
54963 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54964
54965         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54966
54967         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54968
54969 2007-02-04  Bruno Haible  <bruno@clisp.org>
54970
54971         New module description section 'configure.ac-early'.
54972         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54973         (func_get_autoconf_early_snippet): New function.
54974         (func_import, func_create_testdir): Use it. Remove special cases for
54975         modules 'extensions' and 'lock'.
54976         * modules/extensions (configure.ac-early): Require
54977         gl_USE_SYSTEM_EXTENSIONS.
54978         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54979
54980 2007-02-04  Bruno Haible  <bruno@clisp.org>
54981
54982         Make use of gcj-4.3's -fsource and -ftarget option.
54983         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54984         and if so try the options -fsource and -ftarget.
54985         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54986         source_version, ftarget_option, target_version arguments.
54987         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54988         (is_envjavac_oldgcj_14_14_usable): Renamed from
54989         is_envjavac_gcj_14_14_usable.
54990         (is_envjavac_oldgcj_14_13_usable): Renamed from
54991         is_envjavac_gcj_14_13_usable.
54992         (is_gcj_present): Update.
54993         (is_gcj_43, is_gcj43_usable): New functions.
54994         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54995         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54996         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54997         try the options -fsource and -ftarget.
54998
54999 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55000
55001         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55002         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55003         larger value.
55004
55005 2007-02-03  Jim Meyering  <jim@meyering.net>
55006
55007         Give tools a better chance to allocate space for very large buffers.
55008         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55009
55010         Make pwd and readlink work also when run with an unreadable parent dir
55011         on systems with openat support.
55012         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55013         provided getcwd function, even when we have openat support.
55014         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55015
55016 2007-02-02  Bruno Haible  <bruno@clisp.org>
55017
55018         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55019         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55020         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55021         portability problems if one of these functions is only used on specific
55022         platforms.
55023         Reported by Paul Eggert.
55024
55025 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55026
55027         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55028         is causing more trouble than it's curing.
55029         * lib/regex_internal.h (__mempcpy): Remove.
55030         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55031         (and make the code a tad smaller to boot).
55032         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55033
55034 2007-02-02  Jim Meyering  <jim@meyering.net>
55035
55036         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55037         section, not in the Makefile.am: one.
55038
55039 2007-02-02  Eric Blake  <ebb9@byu.net>
55040
55041         * lib/strchrnul.c: Always include config.h first.
55042
55043         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55044         gnulib strstr is not necessary here.
55045
55046 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55047
55048         * m4/socklen.m4: Fix typo.
55049
55050 2007-02-02  Eric Blake  <ebb9@byu.net>
55051
55052         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55053         * modules/netinet_in (Makefile.am): Likewise.
55054
55055 2007-02-01  Bruno Haible  <bruno@clisp.org>
55056
55057         * lib/string_.h (GL_LINK_WARNING): New macro.
55058         (strcasecmp, strstr, strcasestr): If provided by the system,
55059         conditionally define as a macro that leads to a warning instead of to
55060         an error.
55061         (strncasecmp): Conditionally define as a macro that leads to a warning.
55062
55063 2007-02-01  Karl Berry  <karl@gnu.org>
55064
55065         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55066
55067 2007-02-01  Bruno Haible  <bruno@clisp.org>
55068
55069         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55070         renamings.
55071
55072 2007-02-01  Eric Blake  <ebb9@byu.net>
55073
55074         * modules/regex (Depends-on): Revert dependence on mempcpy.
55075         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55076         module's definition of mempcpy.
55077         Reported by Paul Eggert.
55078
55079 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55080
55081         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55082         the symbol XYZ before redefining it.  This fixes a problem with
55083         programs that don't use XYZ, when compiled on systems that define
55084         XYZ to something else.
55085
55086 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55087
55088         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55089         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55090         writeable to group or other and (2) is intended to have a special
55091         mode bit that is set or cleared.  In such a case, the directory
55092         should be neither group- nor other-writeable until the special
55093         mode bits are right.
55094
55095 2007-01-31  Eric Blake  <ebb9@byu.net>
55096
55097         * modules/mountlist (Depends-on): Add strstr.
55098
55099         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55100         bug.
55101         * modules/string (Makefile.am): Remove redundant replacement.
55102         * modules/regex (Depends-on): Add mempcpy.
55103
55104 2007-01-31  Bruno Haible  <bruno@clisp.org>
55105
55106         New module description field 'Link'.
55107         * gnulib-tool (func_usage): Document --extract-link-directive.
55108         (sed_extract_prog): Recognize 'Link' directive.
55109         (func_get_link_directive): New function.
55110         (func_import): Show summary of link directives.
55111         Handle --extract-link-directive option.
55112         * modules/acl (Link): New section.
55113         * modules/clock-time (Link): New section.
55114         * modules/euidaccess (Link): New section.
55115         * modules/gettext (Link): New section.
55116         * modules/iconv (Link): New section.
55117         * modules/lock (Link): New section.
55118         * modules/nanosleep (Link): New section.
55119         * modules/readline (Link): New section.
55120
55121 2007-01-27  Bruno Haible  <bruno@clisp.org>
55122
55123         Enforce the use of gnulib modules for unportable <string.h> functions.
55124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55125         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55126         (gl_HEADER_STRING_H_BODY): Require it.
55127         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55128         the symbol XYZ to one that gives a link error.
55129         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55130         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55131         * modules/mempcpy (configure.ac): Likewise.
55132         * modules/memrchr (configure.ac): Likewise.
55133         * modules/stpcpy (configure.ac): Likewise.
55134         * modules/stpncpy (configure.ac): Likewise.
55135         * modules/strcase (configure.ac): Likewise.
55136         * modules/strcasestr (configure.ac): Likewise.
55137         * modules/strchrnul (configure.ac): Likewise.
55138         * modules/strdup (configure.ac): Likewise.
55139         * modules/strndup (configure.ac): Likewise.
55140         * modules/strnlen (configure.ac): Likewise.
55141         * modules/strpbrk (configure.ac): Likewise.
55142         * modules/strsep (configure.ac): Likewise.
55143         * modules/strstr (configure.ac): Likewise.
55144         * modules/strtok_r (configure.ac): Likewise.
55145
55146 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55147
55148         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55149
55150 2007-01-30  Jim Meyering  <jim@meyering.net>
55151
55152         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55153
55154 2007-01-29  Bruno Haible  <bruno@clisp.org>
55155
55156         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55157         * lib/execute.c: Likewise.
55158         * lib/pipe.c: Likewise.
55159         * lib/printf-args.h: Likewise.
55160         * lib/printf-args.c: Likewise.
55161         * lib/printf-parse.c: Likewise.
55162         * lib/vasnprintf.c: Likewise.
55163
55164 2007-01-29  Eric Blake  <ebb9@byu.net>
55165
55166         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55167         declaration.
55168
55169 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55170
55171         * lib/strptime.h (strptime): Use 'restrict' for args where
55172         POSIX requires this.
55173         * lib/strptime.c (strptime): Likewise.
55174         Change license notice from LGPL to GPL, since gnulib-tool will
55175         change this as needed.
55176         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55177         defined.
55178         Include "strptime.h" first, to check interface.
55179         Do not #undef _LIBC and _NL_CURRENT.
55180         Do not include <stdlib.h>; no longer needed.
55181         Include "time_r.h" and declare ptime_locale_status
55182         only if _LIBC is not defined.
55183         (__P): Remove unused macro.
55184         (match_string): Bring back glibc version, but use it only if _LIBC
55185         is defined.
55186         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55187         Remove unnecessary assertion and abort() call.
55188         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55189         * m4/strptime.m4: Fix serial number comment.
55190         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55191         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55192         (Depends-on): Add time_r.
55193
55194 2007-01-29  Bruno Haible  <bruno@clisp.org>
55195
55196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55197         strptime.
55198         * modules/strptime (Depends-on): Add stdbool.
55199         * lib/strptime.h: Include <time.h> always. Add comments.
55200
55201 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55202
55203         * modules/strptime: New file.
55204         * lib/strptime.h: New file.
55205         * lib/strptime.c: New file.
55206         * m4/strptime.m4: New file.
55207
55208 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55209
55210         * MODULES.html.sh: New module mpsort.
55211         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
55212
55213         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
55214         a circularity problem with HP-UX ia64 reported by Bob Proulx in
55215         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
55216         All uses changed.
55217         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
55218         All uses changed.
55219         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
55220         to _Restrict_.
55221         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
55222         the parameter matches the prototype.
55223
55224 2007-01-28  Jim Meyering  <jim@meyering.net>
55225
55226         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
55227         sys/time.h here, reverting that part of the previous patch:
55228         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
55229
55230 2007-01-28  Bruno Haible  <bruno@clisp.org>
55231
55232         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
55233         value of $(SYS_TIME_H).
55234         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
55235         remove it conditionally, too. [added by Jim Meyering]
55236         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
55237         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55238         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
55239         GETTIMEOFDAY_REPLACEMENT to 1.
55240
55241 2007-01-28  Bruno Haible  <bruno@clisp.org>
55242
55243         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
55244         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
55245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
55246         Set UNISTD_H instead of UNISTD_H2.
55247         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
55248
55249 2007-01-28  Bruno Haible  <bruno@clisp.org>
55250
55251         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
55252         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
55253
55254 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55255
55256         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
55257         (func_create_testdir): Ensure C locale for `grep' and `tr'
55258         character ranges.
55259         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
55260         ACLOCAL_AMFLAGS parsing state machine.
55261
55262 2007-01-27  Bruno Haible  <bruno@clisp.org>
55263
55264         * modules/unistr/base: Update.
55265
55266 2007-01-27  Bruno Haible  <bruno@clisp.org>
55267
55268         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
55269         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
55270         * modules/unistr/u32-mbtouc-unsafe: Renamed from
55271         modules/unistr/u32-mbtouc.
55272         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55273         * lib/unistr.h: Update.
55274         * lib/linebreak.c: Update.
55275         * modules/unistr/u32-mbtouc: Renamed from
55276         modules/unistr/u32-mbtouc-safe.
55277         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55278         * lib/unistr.h: Update.
55279         * lib/unistr/u32-to-u8.c: Update.
55280         * lib/unistr/u32-to-u16.c: Update.
55281
55282 2007-01-27  Bruno Haible  <bruno@clisp.org>
55283
55284         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55285         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55286         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55287         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55288         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55289         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55290         modules/unistr/u16-mbtouc.
55291         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55292         * lib/unistr.h: Update.
55293         * lib/linebreak.c: Update.
55294         * modules/linebreak: Update.
55295         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55296         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55297         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55298         * modules/unistr/u16-mbtouc: Renamed from
55299         modules/unistr/u16-mbtouc-safe.
55300         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55301         * lib/unistr.h: Update.
55302         * lib/unistr/u16-to-u8.c: Update.
55303         * modules/unistr/u16-to-u8: Update.
55304         * lib/unistr/u16-to-u32.c: Update.
55305         * modules/unistr/u16-to-u32: Update.
55306
55307 2007-01-27  Bruno Haible  <bruno@clisp.org>
55308
55309         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
55310         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
55311         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
55312         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
55313         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55314         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55315         modules/unistr/u8-mbtouc.
55316         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55317         * lib/unistr.h: Update.
55318         * lib/striconveh.c: Update.
55319         * modules/striconveh: Update.
55320         * lib/linebreak.c: Update.
55321         * modules/linebreak: Update.
55322         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
55323         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
55324         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
55325         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
55326         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
55327         * lib/unistr.h: Update.
55328         * lib/striconveh.c: Update.
55329         * modules/striconveh: Update.
55330         * lib/unistr/u8-to-u16.c: Update.
55331         * modules/unistr/u8-to-u16: Update.
55332         * lib/unistr/u8-to-u32.c: Update.
55333         * modules/unistr/u8-to-u32: Update.
55334
55335 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55336
55337         Sync from Libtool.
55338         * lib/argz.c: Do not include strings.h nor memory.h, include
55339         string.h unconditionally.  Patch by Simon Josefsson.
55340
55341 2007-01-27  Bruno Haible  <bruno@clisp.org>
55342
55343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
55344         from gl_HEADER_STRING_H_BODY.
55345         (gl_HEADER_STRING_H_BODY): Require it.
55346         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
55347         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55348         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55349         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55350         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55351         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
55352         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55353         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55354         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
55355         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55356         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55357         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
55358         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55359         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55360         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55361
55362 2007-01-27  Bruno Haible  <bruno@clisp.org>
55363
55364         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
55365         check_PROGRAMS into noinst_PROGRAMS.
55366         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
55367         check_PROGRAMS in this case.
55368         (func_import): Set for_test to false.
55369         (func_create_testdir): Set for_test to true.
55370
55371 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55372             Bruno Haible  <bruno@clisp.org>
55373
55374         * modules/strcasestr (Files): Remove lib/strcasestr.h.
55375         (Depends-on): Add string.
55376         (Includes): Use <string.h> instead of strcasestr.h.
55377         * modules/string (Makefile.am): Also substitute the value of
55378         REPLACE_STRCASESTR.
55379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55380         assume strcasestr is declared in <string.h> not <strings.h>. Also
55381         set REPLACE_STRCASESTR.
55382         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55383         REPLACE_STRCASESTR.
55384         * lib/strcasestr.h: Remove file.
55385         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55386         * lib/string_.h (strcasestr): New declaration.
55387
55388 2007-01-27  Bruno Haible  <bruno@clisp.org>
55389
55390         * lib/string_.h: Use 'extern'.
55391
55392 2007-01-27  Jim Meyering  <jim@meyering.net>
55393
55394         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55395         of set-but-not-used local, "q".
55396
55397         * lib/mempcpy.c: Include <config.h> before <string.h>.
55398         This fixes a compilation error on HP-UX, due to the system's
55399         "restrict"-using mempcpy prototype.
55400
55401 2007-01-26  Bruno Haible  <bruno@clisp.org>
55402
55403         Small optimization.
55404         * lib/javacomp.c: Include c-strstr.h.
55405          (is_envjavac_gcj): Use c_strstr instead of strstr.
55406         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55407
55408 2007-01-26  Bruno Haible  <bruno@clisp.org>
55409
55410         * MODULES.html.sh (Unicode string functions): Add the new modules.
55411
55412         * modules/uniconv/u32-strconv-to-locale: New file.
55413         * lib/uniconv/u32-strconv-to-locale.c: New file.
55414
55415         * modules/uniconv/u16-strconv-to-locale: New file.
55416         * lib/uniconv/u16-strconv-to-locale.c: New file.
55417
55418         * modules/uniconv/u8-strconv-to-locale: New file.
55419         * lib/uniconv/u8-strconv-to-locale.c: New file.
55420
55421         * modules/uniconv/u32-strconv-from-locale: New file.
55422         * lib/uniconv/u32-strconv-from-locale.c: New file.
55423
55424         * modules/uniconv/u16-strconv-from-locale: New file.
55425         * lib/uniconv/u16-strconv-from-locale.c: New file.
55426
55427         * modules/uniconv/u8-strconv-from-locale: New file.
55428         * lib/uniconv/u8-strconv-from-locale.c: New file.
55429
55430         * modules/uniconv/u32-strconv-to-enc: New file.
55431         * lib/uniconv/u32-strconv-to-enc.c: New file.
55432         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55433         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55434
55435         * modules/uniconv/u16-strconv-to-enc: New file.
55436         * lib/uniconv/u16-strconv-to-enc.c: New file.
55437         * lib/uniconv/u-strconv-to-enc.h: New file.
55438         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55439         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55440
55441         * modules/uniconv/u8-strconv-to-enc: New file.
55442         * lib/uniconv/u8-strconv-to-enc.c: New file.
55443         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55444         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55445
55446         * modules/uniconv/u32-strconv-from-enc: New file.
55447         * lib/uniconv/u32-strconv-from-enc.c: New file.
55448         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55449         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55450
55451         * modules/uniconv/u16-strconv-from-enc: New file.
55452         * lib/uniconv/u16-strconv-from-enc.c: New file.
55453         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55454         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55455
55456         * modules/uniconv/u8-strconv-from-enc: New file.
55457         * lib/uniconv/u8-strconv-from-enc.c: New file.
55458         * lib/uniconv/u-strconv-from-enc.h: New file.
55459         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55460         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55461
55462         * modules/uniconv/u32-conv-from-enc: New file.
55463         * lib/uniconv/u32-conv-from-enc.c: New file.
55464         * modules/uniconv/u32-conv-from-enc-tests: New file.
55465         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55466
55467         * modules/uniconv/u16-conv-from-enc: New file.
55468         * lib/uniconv/u16-conv-from-enc.c: New file.
55469         * lib/uniconv/u-conv-from-enc.h: New file.
55470         * modules/uniconv/u16-conv-from-enc-tests: New file.
55471         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55472
55473         * modules/uniconv/u8-conv-from-enc: New file.
55474         * lib/uniconv/u8-conv-from-enc.c: New file.
55475         * modules/uniconv/u8-conv-from-enc-tests: New file.
55476         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55477
55478         * modules/uniconv/base: New file.
55479         * lib/uniconv.h: New file.
55480
55481 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55482
55483         * doc/gnulib-tool.texi (Initial import): Update to match current
55484         behavior with strdup module.
55485         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55486         * lib/memmem.h: Remove; all uses removed.  This is now done
55487         by <string.h>.
55488         * lib/mempcpy.h: Likewise.
55489         * lib/memrchr.h: Likewise.
55490         * lib/stpcpy.h: Likewise.
55491         * lib/stpncpy.h: Likewise.
55492         * lib/strcase.h: Likewise.
55493         * lib/strchrnul.h: Likewise.
55494         * lib/strdup.h: Likewise.
55495         * lib/strndup.h: Likewise.
55496         * lib/strnlen.h: Likewise.
55497         * lib/strpbrk.h: Likewise.
55498         * lib/strsep.h: Likewise.
55499         * lib/strstr.h: Likewise.
55500         * lib/strtok_r.h: Likewise.
55501         * lib/string_.h: New file.
55502         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55503         Rely on <string.h> instead.
55504         * lib/canon-host.c: Likewise.
55505         * lib/chdir-long.c: Likewise.
55506         * lib/concatpath.c: Likewise.
55507         * lib/exclude.c: Likewise.
55508         * lib/fchdir.c: Likewise.
55509         * lib/getaddrinfo.c: Likewise.
55510         * lib/getcwd.c: Likewise.
55511         * lib/getsubopt.c: Likewise.
55512         * lib/glob.c: Likewise.
55513         * lib/hard-locale.c: Likewise.
55514         * lib/iconvme.c: Likewise.
55515         * lib/javacomp.c: Likewise.
55516         * lib/mempcpy.c: Likewise.
55517         * lib/memrchr.c: Likewise.
55518         * lib/regex_internal.h: Likewise.
55519         * lib/stpncpy.c: Likewise.
55520         * lib/strcasecmp.c: Likewise.
55521         * lib/strchrnul.c: Likewise.
55522         * lib/strdup.c: Likewise.
55523         * lib/striconv.c: Likewise.
55524         * lib/striconveh.c: Likewise.
55525         * lib/striconveha.c: Likewise.
55526         * lib/strncasecmp.c: Likewise.
55527         * lib/strndup.c: Likewise.
55528         * lib/strnlen.c: Likewise.
55529         * lib/strsep.c: Likewise.
55530         * lib/strstr.c: Likewise.
55531         * lib/strtok_r.c: Likewise.
55532         * lib/userspec.c: Likewise.
55533         * lib/w32spawn.h: Likewise.
55534         * lib/xstrndup.c: Likewise.
55535         * lib/mountlist.c (strstr): Remove decl.
55536         * m4/string_h.m4: New file.
55537         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55538         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55539         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55540         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55541         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55542         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55543         Set REPLACE_STRCASECMP if necessary.
55544         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55545         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55546         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55547         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55548         HAVE_DECL_STRDUP if necessary.
55549         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55550         since gl_FUNC_STRNDUP does that now.
55551         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55552         Check for decl here...
55553         (gl_PREREQ_STRNLEN): ... not here.
55554         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55555         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55556         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55557         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55558         necessary.
55559         * modules/string: New file.
55560         * modules/memmem (Files): Remove special-purpose include file.
55561         (Depends-on): Add string.
55562         (Include): Include <string.h>, not the removed file.
55563         * modules/mempcpy: Likewise.
55564         * modules/memrchr: Likewise.
55565         * modules/stpcpy: Likewise.
55566         * modules/stpncpy: Likewise.
55567         * modules/strcase: Likewise.
55568         * modules/strchrnul: Likewise.
55569         * modules/strdup: Likewise.
55570         * modules/strndup: Likewise.
55571         * modules/strnlen: Likewise.
55572         * modules/strpbrk: Likewise.
55573         * modules/strsep: Likewise.
55574         * modules/strstr: Likewise.
55575         * modules/strtok_r: Likewise.
55576         * tests/test-dirname.c: Don't include "strdup.h", since
55577         <string.h> now suffices.
55578         * tests/test-memmem.c: Don't include "memmem.h", since
55579         <string.h> now suffices.
55580
55581 2007-01-25  Bruno Haible  <bruno@clisp.org>
55582
55583         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55584         *resultp is 0.
55585
55586         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55587         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55588         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55589         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55590
55591         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55592         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55593         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55594         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55595         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55596         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55597
55598 2007-01-24  Bruno Haible  <bruno@clisp.org>
55599
55600         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55602         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55603         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55604         gl_FUNC_FTS_CORE.
55605         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55606         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55607         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55608         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55609         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55610         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55611         gl_FUNC_FCHOWNAT.
55612         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55613         gl_FUNC_STRFTIME.
55614         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55615         Reported by Ralf Wildenhues.
55616
55617 2007-01-24  Bruno Haible  <bruno@clisp.org>
55618
55619         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55620         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55621         gl_GETADDRINFO.
55622         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55623         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55624         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55625
55626 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55627
55628         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55629         Don't use 'exit'; just return from 'main'.
55630         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55631
55632         * lib/fnmatch_.h: Readjust white space and comments to match
55633         glibc, to avoid spurious diffs.
55634
55635 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55636
55637         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55638         2004-12-01 change by Jakub Jelinek, since this code won't compile
55639         if !LIBC.  Problem reported by Bob Proulx.
55640
55641 2007-01-23  Bruno Haible  <bruno@clisp.org>
55642
55643         * lib/striconveh.c: Include c-strcaseeq.h.
55644         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55645         * modules/striconveh (Depends-on): Add c-strcaseeq.
55646
55647 2007-01-23  Bruno Haible  <bruno@clisp.org>
55648
55649         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55650
55651         * modules/c-strcaseeq: New file.
55652         * lib/c-strcaseeq.h: New file.
55653
55654         * modules/streq: New file.
55655         * lib/streq.h: New file.
55656
55657 2007-01-23  Bruno Haible  <bruno@clisp.org>
55658
55659         * modules/striconveha-tests: New file.
55660         * tests/test-striconveha.c: New file.
55661
55662         * lib/striconveha.h: Include <stdbool.h>.
55663         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55664         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55665         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55666         (mem_iconveha): New function.
55667         (str_iconveha_notranslit): Renamed from str_iconveha.
55668         (str_iconveha): New function.
55669         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55670         c-strcase.
55671
55672 2007-01-23  Bruno Haible  <bruno@clisp.org>
55673
55674         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55675         encodings without forgiving before trying any encoding with handler.
55676         (str_iconveha): Try all encodings without forgiving before trying any
55677         encoding with handler.
55678
55679 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55680
55681         Import the following changes from libc.
55682
55683         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55684
55685         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55686
55687         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55688
55689         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55690         normal_bracket label.
55691
55692         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55693
55694         [BZ #361]
55695         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55696         to normal_bracket after fetching the next character.
55697
55698 2007-01-22  Bruno Haible  <bruno@clisp.org>
55699
55700         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55701         argument.
55702         * lib/striconveh.c (iconv_carefully_1): New function.
55703         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55704         argument.
55705         (str_cd_iconveh): Update.
55706         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55707         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55708         * tests/test-striconveh.c (MAGIC): New macro.
55709         (new_offsets): New function.
55710         (main): Test call with and without offsets.
55711
55712 2007-01-22  Bruno Haible  <bruno@clisp.org>
55713
55714         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55715         * modules/sys_select (Makefile.am): Likewise.
55716         * modules/sys_socket (Makefile.am): Likewise.
55717         * modules/sys_time (Makefile.am): Likewise.
55718
55719 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55720
55721         * modules/gettimeofday (License): Change from GPL to LGPL, since
55722         gettimeofday is a library function.
55723
55724 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55725
55726         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55727
55728 2007-01-21  Bruno Haible  <bruno@clisp.org>
55729
55730         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55731
55732 2007-01-21  Bruno Haible  <bruno@clisp.org>
55733
55734         * modules/striconveha: New file.
55735         * lib/striconveha.h: New file.
55736         * lib/striconveha.c: New file.
55737         * MODULES.html.sh (Internationalization functions): Add striconveha.
55738         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55739         string.
55740         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55741
55742 2007-01-21  Bruno Haible  <bruno@clisp.org>
55743
55744         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55745         * lib/striconveh.c (str_iconveh): Likewise.
55746
55747 2007-01-21  Bruno Haible  <bruno@clisp.org>
55748
55749         * lib/striconveh.h (mem_iconveh): New declaration.
55750         * lib/striconveh.c (mem_iconveh): New function.
55751         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55752
55753 2007-01-21  Bruno Haible  <bruno@clisp.org>
55754
55755         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55756
55757         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55758         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55759         original result buffer.
55760         (str_cd_iconveh): Update.
55761         * tests/test-striconveh.c (main): Update.
55762
55763         * lib/striconv.h (mem_cd_iconv): Change specification.
55764         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55765         result buffer.
55766         (str_cd_iconv): Update.
55767         * tests/test-striconv.c (main): Update.
55768
55769 2007-01-21  Bruno Haible  <bruno@clisp.org>
55770
55771         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55772
55773 2007-01-20  Jim Meyering  <jim@meyering.net>
55774
55775         * lib/userspec.c (parse_with_separator): If a user or group string
55776         starts with "+", skip the corresponding name-to-ID look-up, since
55777         such a look-up must fail: user and group names may not include "+".
55778
55779 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55780
55781         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55782         since we now assume the sys_time module.
55783         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55784         check for sys/time.h; no longer needed.
55785         * modules/poll (Depends-on): Depend on sys_time.
55786
55787 2007-01-18  Bruno Haible  <bruno@clisp.org>
55788
55789         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55790         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55791
55792         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55793         gettimeofday.
55794
55795         * tests/test-gettimeofday.c: Include <time.h>.
55796         (dummy): Remove variable.
55797
55798         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55799         gl_HEADER_SYS_TIME_H.
55800         (gl_HEADER_SYS_TIME_H): New macro.
55801
55802         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55803         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55804         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55805         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55806         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55807         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55808         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55809         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55810         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55811         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55812         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55813
55814         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55815         last change; it caused a compilation error when cross-compiling to
55816         Cygwin.
55817
55818 2007-01-18  Jim Meyering  <jim@meyering.net>
55819
55820         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55821         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55822         than the race-prone "test -d sys || mkdir sys".
55823         (configure.ac): Use AC_PROG_MKDIR_P.
55824         * modules/sys_select: Likewise.
55825         * modules/sys_socket: Likewise.
55826         * modules/sys_time: Likewise.
55827
55828 2007-01-18  Eric Blake  <ebb9@byu.net>
55829
55830         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55831         replace gettimeofday.
55832         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55833         name, to avoid infinite recursion.
55834
55835 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55836
55837         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55838         module sys_time.
55839         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55840         assume timespec.h defines struct timeval.
55841         * lib/settime.c: Likewise.
55842         * lib/utimens.c: Likewise.
55843         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55844         since we now assume the gettimeofday module.
55845         * lib/tempname.c (__gen_tempname): Likewise.
55846         * lib/gettimeofday.h: Remove.
55847         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55848         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55849         Include <time.h>, for 'time()'.
55850         (localtime_buffer_addr): Also use this workaround if
55851         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55852         to simplify the uses.  All uses changed.
55853         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55854         that #undef is inside {}, and 'const' follows type name consistently.
55855         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55856         (gettimeofday): Do not use the maximum possible value for
55857         tv->tv_usec, since that might break usages other than ls.c.
55858         Instead, we'll leave ls.c alone.  This undoes today's patch
55859         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55860         we've never observed the problem but might as well keep the
55861         canary.
55862         * lib/nanosleep.c: Include timespec.h first, for interface check.
55863         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55864         now assume the sys_time module.
55865         * lib/tempname.c: Likewise.
55866         * lib/timespec.h: Likewise.
55867         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55868         needed.
55869         * lib/strftime.c: Likewise.
55870         * lib/timespec.h: Likewise.
55871         * lib/posixtm.c: Include posixtm.h first, for interface check.
55872         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55873         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55874         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55875         * lib/sys_time_.h: New file.
55876         * lib/timespec.h (struct timespec): Use long int, not long.
55877         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55878         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55879         Remove obsolescent call to AC_HEADER_TIME.
55880         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55882         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55883         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55884         Likewise.
55885         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55886         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55887         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55888         into the sys_time module.  Check for gettimeofday just once.
55889         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55890         for gettimeofday signature to just check the signature.  Merely
55891         compile it, since linking doesn't test signature.  Improve test for
55892         whether gettimeofday.o is actually needed.
55893         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55894         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55895         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55896         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55897         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55898         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55899         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55900         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55901         than worrying about sys/time.h.
55902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55903         Don't bother worrying about TIME_WITH_SYS_TIME.
55904         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55905         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55906         * m4/sys_time_h.m4: New file.
55907         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55908         Don't include sys/time.h.  Return from main rather than exiting.
55909         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55910         all uses changed.
55911         * modules/gethrxtime (Depends-on): Add sys_time.
55912         * modules/gettime (Depends-on): Likewise.
55913         * modules/gettimeofday (Depends-on): Likewise.
55914         * modules/nanosleep (Depends-on): Likewise.
55915         * modules/settime (Depends-on): Likewise.
55916         * modules/tempname (Depends-on): Likewise.
55917         * modules/utimens (Depends-on): Likewise.
55918         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55919         (Include): Change back to <sys/time.h>.
55920         (Maintainer): Add self.
55921         * modules/sys_time: New file.
55922         * modules/tempname (Depends-on): Add gettimeofday.
55923         * tests/test-gettimeofday.c: Include <sys/time.h>
55924         rather than gettimeofday.h.
55925
55926 2007-01-17  Bruno Haible  <bruno@clisp.org>
55927
55928         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55929         the license default to GPL.
55930         (func_create_testdir): Don't complain if a module is LGPL and its
55931         tests module depends on GPLed modules.
55932
55933 2007-01-17  Bruno Haible  <bruno@clisp.org>
55934
55935         * lib/gettimeofday.c (gettimeofday): Add code for the case
55936         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55937         maximum possible value for tv->tv_usec, rather than the minimum one.
55938
55939 2005-10-08  Martin Lambers  <marlam@marlam.de>
55940 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55941 2007-01-16  Bruno Haible  <bruno@clisp.org>
55942
55943         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55944         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55945         gl_FUNC_GETTIMEOFDAY.
55946         (Include): Add gettimeofday.h.
55947         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55948         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55949         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55950         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55951         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55952         * lib/gettimeofday.h: New file.
55953         * lib/gettimeofday.c: Include <sys/timeb.h>.
55954         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55955         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55956         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55957         fall back on time().
55958
55959         * tests/test-gettimeofday.c: New file.
55960         * modules/gettimeofday-tests: New file.
55961
55962 2007-01-16  Eric Blake  <ebb9@byu.net>
55963
55964         * modules/fnmatch (Depends-on): Depend on wchar.
55965         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55966         * m4/fnmatch.m4: Likewise.
55967         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55968         * m4/mbchar.m4: Likewise.
55969         * modules/mbswidth (Depends-on): Depend on wchar.
55970         * lib/mbswidth.c: Assume <wchar.h>.
55971         * m4/mbswidth.m4: Likewise.
55972         * modules/quotearg (Depends-on): Depend on wchar.
55973         * lib/quotearg.c: Assume <wchar.h>.
55974         * m4/quotearg.m4: Likewise.
55975         * modules/regex (Depends-on): Depend on wchar.
55976         * lib/regex_internal.h: Assume <wchar.h>.
55977         * m4/regex.m4: Likewise.
55978         * modules/stdint (Depends-on): Depend on wchar.
55979         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55980         * m4/stdint.m4: Likewise.
55981         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55982         * modules/strftime (Depends-on): Depend on wchar.
55983         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55984         * modules/strtol (Depends-on): Depend on wchar.
55985         * lib/strtol.c: Assume <wchar.h>.
55986         * modules/wcwidth (Depends-on): Depend on wchar.
55987         * lib/wcwidth.h: Assume <wchar.h>.
55988         * m4/wcwidth.m4: Likewise.
55989
55990 2007-01-16  Bruno Haible  <bruno@clisp.org>
55991
55992         * modules/csharpexec-script: New, created from...
55993         * modules/csharpexec: ... this.
55994
55995 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55996
55997         * modules/javaexec-script: New, created from...
55998         * modules/javaexec: ... this.
55999
56000 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56001
56002         * modules/poll (Dependencies): Add sys_select.
56003
56004 2007-01-15  Jim Meyering  <jim@meyering.net>
56005
56006         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56007         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56008         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56009         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56010
56011 2007-01-15  Bruno Haible  <bruno@clisp.org>
56012
56013         * modules/striconveh: New file.
56014         * lib/striconveh.h: New file.
56015         * lib/striconveh.c: New file.
56016         * MODULES.html.sh (Internationalization functions): Add striconveh.
56017
56018         * modules/striconveh-tests: New file.
56019         * tests/test-striconveh.c: New file.
56020
56021 2007-01-15  Bruno Haible  <bruno@clisp.org>
56022
56023         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56024         not from GNU libiconv or GNU libc.
56025
56026 2007-01-15  Bruno Haible  <bruno@clisp.org>
56027
56028         * doc/gnulib-intro.texi (Copyright): Explain the different license
56029         terms for module descriptions, autoconf macros, tests, documentation.
56030
56031 2007-01-14  Bruno Haible  <bruno@clisp.org>
56032
56033         * modules/striconv-tests: New file.
56034         * tests/test-striconv.c: New file.
56035
56036 2007-01-14  Bruno Haible  <bruno@clisp.org>
56037
56038         * modules/iconv-tests: New file.
56039         * tests/test-iconv.c: New file.
56040
56041 2007-01-14  Bruno Haible  <bruno@clisp.org>
56042
56043         * gnulib-tool (func_get_license): For test modules, use the license of
56044         the main module.
56045
56046 2007-01-14  Bruno Haible  <bruno@clisp.org>
56047
56048         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56049         if iconv is found to exist.
56050
56051 2007-01-14  Bruno Haible  <bruno@clisp.org>
56052
56053         * modules/c-ctype-tests: New file.
56054         * tests/test-c-ctype.c: New file.
56055
56056 2007-01-14  Bruno Haible  <bruno@clisp.org>
56057
56058         * modules/binary-io-tests: New file.
56059         * tests/test-binary-io.sh: New file.
56060         * tests/test-binary-io.c: New file.
56061
56062 2007-01-14  Bruno Haible  <bruno@clisp.org>
56063
56064         * modules/array-oset-tests: New file.
56065         * tests/test-array_oset.c: New file.
56066
56067 2007-01-14  Bruno Haible  <bruno@clisp.org>
56068
56069         * modules/array-list-tests: New file.
56070         * tests/test-array_list.c: New file.
56071
56072 2007-01-14  Bruno Haible  <bruno@clisp.org>
56073
56074         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56075         and make.
56076         Reported by Simon Josefsson in
56077         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56078
56079 2007-01-14  Bruno Haible  <bruno@clisp.org>
56080
56081         * modules/allocsa-tests: New file.
56082         * tests/test-allocsa.c: New file.
56083
56084 2007-01-14  Bruno Haible  <bruno@clisp.org>
56085
56086         * modules/fchdir (Depends-on): Add absolute-header.
56087         * modules/unistd (Depends-on): Likewise.
56088
56089 2006-12-30  Bruno Haible  <bruno@clisp.org>
56090
56091         * modules/fchdir: New file.
56092         * modules/unistd (Files): Add lib/unistd_.h.
56093         (Makefile.am): Generate unistd.h from unistd_.h.
56094         * lib/fchdir.c: New file.
56095         * lib/dirent_.h: New file.
56096         * lib/unistd_.h: New file.
56097         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56098         * m4/fchdir.m4: New file.
56099         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56100         (gl_HEADER_UNISTD): Invoke it.
56101         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56102         function.
56103         * lib/backupfile.c (opendir, closedir): Undefine.
56104         * lib/chown.c (open, close): Undefine.
56105         * lib/clean-temp.c (open, close): Undefine.
56106         * lib/copy-file.c (open, close): Undefine.
56107         * lib/execute.c (open, close): Undefine.
56108         * lib/fsusage.c (open, close): Undefine.
56109         * lib/gc-gnulib.c (open, close): Undefine.
56110         * lib/getcwd.c (opendir, closedir): Undefine.
56111         * lib/glob.c (opendir, closedir): Undefine.
56112         * lib/javacomp.c (open, close): Undefine.
56113         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56114         * lib/openat-proc.c (open, close): Undefine.
56115         * lib/pagealign_alloc.c (open, close): Undefine.
56116         * lib/pipe.c (open, close): Undefine.
56117         * lib/progreloc.c (open, close): Undefine.
56118         * lib/savedir.c (opendir, closedir): Undefine.
56119         * lib/utime.c (open, close): Undefine.
56120         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56121
56122 2007-01-10  Bruno Haible  <bruno@clisp.org>
56123
56124         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56125
56126 2007-01-12  Eric Blake  <ebb9@byu.net>
56127
56128         Provide a robust <wchar.h>.  Further simplifications are now
56129         possible in other modules, but not included here.
56130         * modules/wchar: New module.
56131         * m4/wchar.m4: New file.
56132         * lib/wchar_.h: Likewise.
56133         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56134         of the new module.
56135         * MODULES.html.sh (Extended multibyte and wide character utilities):
56136         New section.
56137
56138 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56139
56140         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56141         to a reasonable default for memory allocation.
56142         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56143         file system that reports garbage st_size values for symlinks.
56144         Problem reported by Liyang Hu.
56145
56146 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56147
56148         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56149         Emacs .#* auto-save files).
56150
56151 2007-01-11  Bruno Haible  <bruno@clisp.org>
56152
56153         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56154         directory.
56155
56156 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56157
56158         Use @...@ consistently in lib/wctype_.h.
56159         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56160         on it being set to 1 or 0.
56161         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56162         go back to AC_SUBSTing it.
56163         * modules/wctype (Makefile.am): Undo previous change.
56164
56165 2007-01-10  Eric Blake  <ebb9@byu.net>
56166
56167         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56168         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56169         * modules/wctype (Makefile.am): Likewise.
56170         Reported by Chris McGuire.
56171
56172 2007-01-10  Jim Meyering  <jim@meyering.net>
56173
56174         fts.c: a small readability/maintainability improvement
56175         * lib/fts.c (fts_read): Make this code slightly more readable and
56176         maintainable by hoisting the "sp->fts_cur = p" assignments to
56177         immediately follow the statements that set P.  Derived from
56178         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56179
56180 2007-01-10  Eric Blake  <ebb9@byu.net>
56181
56182         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56183         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56184         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56185         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56186         Reported by Chris McGuire.
56187
56188 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56189
56190         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56191         in sed script.
56192
56193 2007-01-09  Bruno Haible  <bruno@clisp.org>
56194
56195         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56196         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56197         variables.
56198         (func_module): Use them.
56199
56200 2007-01-09  Bruno Haible  <bruno@clisp.org>
56201
56202         * modules/unistr/base: New file.
56203         * lib/unistr.h: New file.
56204
56205         * modules/unistr/u8-to-u16: New file.
56206         * lib/unistr/u8-to-u16.c: New file.
56207
56208         * modules/unistr/u8-to-u32: New file.
56209         * lib/unistr/u8-to-u32.c: New file.
56210
56211         * modules/unistr/u16-to-u8: New file.
56212         * lib/unistr/u16-to-u8.c: New file.
56213
56214         * modules/unistr/u16-to-u32: New file.
56215         * lib/unistr/u16-to-u32.c: New file.
56216
56217         * modules/unistr/u32-to-u8: New file.
56218         * lib/unistr/u32-to-u8.c: New file.
56219
56220         * modules/unistr/u32-to-u16: New file.
56221         * lib/unistr/u32-to-u16.c: New file.
56222
56223         * modules/unistr/u8-check: New file.
56224         * modules/unistr/u16-check: New file.
56225         * modules/unistr/u32-check: New file.
56226         * lib/unistr/u8-check.c: New file.
56227         * lib/unistr/u16-check.c: New file.
56228         * lib/unistr/u32-check.c: New file.
56229
56230         * modules/unistr/u8-chr: New file.
56231         * modules/unistr/u16-chr: New file.
56232         * modules/unistr/u32-chr: New file.
56233         * lib/unistr/u8-chr.c: New file.
56234         * lib/unistr/u16-chr.c: New file.
56235         * lib/unistr/u32-chr.c: New file.
56236
56237         * modules/unistr/u8-cmp: New file.
56238         * modules/unistr/u16-cmp: New file.
56239         * modules/unistr/u32-cmp: New file.
56240         * lib/unistr/u8-cmp.c: New file.
56241         * lib/unistr/u16-cmp.c: New file.
56242         * lib/unistr/u32-cmp.c: New file.
56243
56244         * modules/unistr/u8-cpy: New file.
56245         * modules/unistr/u16-cpy: New file.
56246         * modules/unistr/u32-cpy: New file.
56247         * lib/unistr/u8-cpy.c: New file.
56248         * lib/unistr/u16-cpy.c: New file.
56249         * lib/unistr/u32-cpy.c: New file.
56250         * lib/unistr/u-cpy.h: New file.
56251
56252         * modules/unistr/u8-cpy-alloc: New file.
56253         * modules/unistr/u16-cpy-alloc: New file.
56254         * modules/unistr/u32-cpy-alloc: New file.
56255         * lib/unistr/u8-cpy-alloc.c: New file.
56256         * lib/unistr/u16-cpy-alloc.c: New file.
56257         * lib/unistr/u32-cpy-alloc.c: New file.
56258         * lib/unistr/u-cpy-alloc.h: New file.
56259
56260         * modules/unistr/u8-endswith: New file.
56261         * modules/unistr/u16-endswith: New file.
56262         * modules/unistr/u32-endswith: New file.
56263         * lib/unistr/u8-endswith.c: New file.
56264         * lib/unistr/u16-endswith.c: New file.
56265         * lib/unistr/u32-endswith.c: New file.
56266         * lib/unistr/u-endswith.h: New file.
56267
56268         * modules/unistr/u8-mblen: New file.
56269         * modules/unistr/u16-mblen: New file.
56270         * modules/unistr/u32-mblen: New file.
56271         * lib/unistr/u8-mblen.c: New file.
56272         * lib/unistr/u16-mblen.c: New file.
56273         * lib/unistr/u32-mblen.c: New file.
56274
56275         * modules/unistr/u8-mbtouc: New file.
56276         * modules/unistr/u16-mbtouc: New file.
56277         * modules/unistr/u32-mbtouc: New file.
56278         * lib/unistr/u8-mbtouc.c: New file.
56279         * lib/unistr/u16-mbtouc.c: New file.
56280         * lib/unistr/u32-mbtouc.c: New file.
56281
56282         * modules/unistr/u8-mbtouc-safe: New file.
56283         * modules/unistr/u16-mbtouc-safe: New file.
56284         * modules/unistr/u32-mbtouc-safe: New file.
56285         * lib/unistr/u8-mbtouc-safe.c: New file.
56286         * lib/unistr/u16-mbtouc-safe.c: New file.
56287         * lib/unistr/u32-mbtouc-safe.c: New file.
56288
56289         * modules/unistr/u8-move: New file.
56290         * modules/unistr/u16-move: New file.
56291         * modules/unistr/u32-move: New file.
56292         * lib/unistr/u8-move.c: New file.
56293         * lib/unistr/u16-move.c: New file.
56294         * lib/unistr/u32-move.c: New file.
56295         * lib/unistr/u-move.h: New file.
56296
56297         * modules/unistr/u8-next: New file.
56298         * modules/unistr/u16-next: New file.
56299         * modules/unistr/u32-next: New file.
56300         * lib/unistr/u8-next.c: New file.
56301         * lib/unistr/u16-next.c: New file.
56302         * lib/unistr/u32-next.c: New file.
56303
56304         * modules/unistr/u8-prev: New file.
56305         * modules/unistr/u16-prev: New file.
56306         * modules/unistr/u32-prev: New file.
56307         * lib/unistr/u8-prev.c: New file.
56308         * lib/unistr/u16-prev.c: New file.
56309         * lib/unistr/u32-prev.c: New file.
56310
56311         * modules/unistr/u8-set: New file.
56312         * modules/unistr/u16-set: New file.
56313         * modules/unistr/u32-set: New file.
56314         * lib/unistr/u8-set.c: New file.
56315         * lib/unistr/u16-set.c: New file.
56316         * lib/unistr/u32-set.c: New file.
56317         * lib/unistr/u-set.h: New file.
56318
56319         * modules/unistr/u8-startswith: New file.
56320         * modules/unistr/u16-startswith: New file.
56321         * modules/unistr/u32-startswith: New file.
56322         * lib/unistr/u8-startswith.c: New file.
56323         * lib/unistr/u16-startswith.c: New file.
56324         * lib/unistr/u32-startswith.c: New file.
56325         * lib/unistr/u-startswith.h: New file.
56326
56327         * modules/unistr/u8-stpcpy: New file.
56328         * modules/unistr/u16-stpcpy: New file.
56329         * modules/unistr/u32-stpcpy: New file.
56330         * lib/unistr/u8-stpcpy.c: New file.
56331         * lib/unistr/u16-stpcpy.c: New file.
56332         * lib/unistr/u32-stpcpy.c: New file.
56333         * lib/unistr/u-stpcpy.h: New file.
56334
56335         * modules/unistr/u8-stpncpy: New file.
56336         * modules/unistr/u16-stpncpy: New file.
56337         * modules/unistr/u32-stpncpy: New file.
56338         * lib/unistr/u8-stpncpy.c: New file.
56339         * lib/unistr/u16-stpncpy.c: New file.
56340         * lib/unistr/u32-stpncpy.c: New file.
56341         * lib/unistr/u-stpncpy.h: New file.
56342
56343         * modules/unistr/u8-strcat: New file.
56344         * modules/unistr/u16-strcat: New file.
56345         * modules/unistr/u32-strcat: New file.
56346         * lib/unistr/u8-strcat.c: New file.
56347         * lib/unistr/u16-strcat.c: New file.
56348         * lib/unistr/u32-strcat.c: New file.
56349         * lib/unistr/u-strcat.h: New file.
56350
56351         * modules/unistr/u8-strchr: New file.
56352         * modules/unistr/u16-strchr: New file.
56353         * modules/unistr/u32-strchr: New file.
56354         * lib/unistr/u8-strchr.c: New file.
56355         * lib/unistr/u16-strchr.c: New file.
56356         * lib/unistr/u32-strchr.c: New file.
56357
56358         * modules/unistr/u8-strcmp: New file.
56359         * modules/unistr/u16-strcmp: New file.
56360         * modules/unistr/u32-strcmp: New file.
56361         * lib/unistr/u8-strcmp.c: New file.
56362         * lib/unistr/u16-strcmp.c: New file.
56363         * lib/unistr/u32-strcmp.c: New file.
56364
56365         * modules/unistr/u8-strcpy: New file.
56366         * modules/unistr/u16-strcpy: New file.
56367         * modules/unistr/u32-strcpy: New file.
56368         * lib/unistr/u8-strcpy.c: New file.
56369         * lib/unistr/u16-strcpy.c: New file.
56370         * lib/unistr/u32-strcpy.c: New file.
56371         * lib/unistr/u-strcpy.h: New file.
56372
56373         * modules/unistr/u8-strcspn: New file.
56374         * modules/unistr/u16-strcspn: New file.
56375         * modules/unistr/u32-strcspn: New file.
56376         * lib/unistr/u8-strcspn.c: New file.
56377         * lib/unistr/u16-strcspn.c: New file.
56378         * lib/unistr/u32-strcspn.c: New file.
56379         * lib/unistr/u-strcspn.h: New file.
56380
56381         * modules/unistr/u8-strdup: New file.
56382         * modules/unistr/u16-strdup: New file.
56383         * modules/unistr/u32-strdup: New file.
56384         * lib/unistr/u8-strdup.c: New file.
56385         * lib/unistr/u16-strdup.c: New file.
56386         * lib/unistr/u32-strdup.c: New file.
56387         * lib/unistr/u-strdup.h: New file.
56388
56389         * modules/unistr/u8-strlen: New file.
56390         * modules/unistr/u16-strlen: New file.
56391         * modules/unistr/u32-strlen: New file.
56392         * lib/unistr/u8-strlen.c: New file.
56393         * lib/unistr/u16-strlen.c: New file.
56394         * lib/unistr/u32-strlen.c: New file.
56395         * lib/unistr/u-strlen.h: New file.
56396
56397         * modules/unistr/u8-strmblen: New file.
56398         * modules/unistr/u16-strmblen: New file.
56399         * modules/unistr/u32-strmblen: New file.
56400         * lib/unistr/u8-strmblen.c: New file.
56401         * lib/unistr/u16-strmblen.c: New file.
56402         * lib/unistr/u32-strmblen.c: New file.
56403
56404         * modules/unistr/u8-strmbtouc: New file.
56405         * modules/unistr/u16-strmbtouc: New file.
56406         * modules/unistr/u32-strmbtouc: New file.
56407         * lib/unistr/u8-strmbtouc.c: New file.
56408         * lib/unistr/u16-strmbtouc.c: New file.
56409         * lib/unistr/u32-strmbtouc.c: New file.
56410
56411         * modules/unistr/u8-strncat: New file.
56412         * modules/unistr/u16-strncat: New file.
56413         * modules/unistr/u32-strncat: New file.
56414         * lib/unistr/u8-strncat.c: New file.
56415         * lib/unistr/u16-strncat.c: New file.
56416         * lib/unistr/u32-strncat.c: New file.
56417         * lib/unistr/u-strncat.h: New file.
56418
56419         * modules/unistr/u8-strncmp: New file.
56420         * modules/unistr/u16-strncmp: New file.
56421         * modules/unistr/u32-strncmp: New file.
56422         * lib/unistr/u8-strncmp.c: New file.
56423         * lib/unistr/u16-strncmp.c: New file.
56424         * lib/unistr/u32-strncmp.c: New file.
56425
56426         * modules/unistr/u8-strncpy: New file.
56427         * modules/unistr/u16-strncpy: New file.
56428         * modules/unistr/u32-strncpy: New file.
56429         * lib/unistr/u8-strncpy.c: New file.
56430         * lib/unistr/u16-strncpy.c: New file.
56431         * lib/unistr/u32-strncpy.c: New file.
56432         * lib/unistr/u-strncpy.h: New file.
56433
56434         * modules/unistr/u8-strnlen: New file.
56435         * modules/unistr/u16-strnlen: New file.
56436         * modules/unistr/u32-strnlen: New file.
56437         * lib/unistr/u8-strnlen.c: New file.
56438         * lib/unistr/u16-strnlen.c: New file.
56439         * lib/unistr/u32-strnlen.c: New file.
56440         * lib/unistr/u-strnlen.h: New file.
56441
56442         * modules/unistr/u8-strpbrk: New file.
56443         * modules/unistr/u16-strpbrk: New file.
56444         * modules/unistr/u32-strpbrk: New file.
56445         * lib/unistr/u8-strpbrk.c: New file.
56446         * lib/unistr/u16-strpbrk.c: New file.
56447         * lib/unistr/u32-strpbrk.c: New file.
56448         * lib/unistr/u-strpbrk.h: New file.
56449
56450         * modules/unistr/u8-strrchr: New file.
56451         * modules/unistr/u16-strrchr: New file.
56452         * modules/unistr/u32-strrchr: New file.
56453         * lib/unistr/u8-strrchr.c: New file.
56454         * lib/unistr/u16-strrchr.c: New file.
56455         * lib/unistr/u32-strrchr.c: New file.
56456
56457         * modules/unistr/u8-strspn: New file.
56458         * modules/unistr/u16-strspn: New file.
56459         * modules/unistr/u32-strspn: New file.
56460         * lib/unistr/u8-strspn.c: New file.
56461         * lib/unistr/u16-strspn.c: New file.
56462         * lib/unistr/u32-strspn.c: New file.
56463         * lib/unistr/u-strspn.h: New file.
56464
56465         * modules/unistr/u8-strstr: New file.
56466         * modules/unistr/u16-strstr: New file.
56467         * modules/unistr/u32-strstr: New file.
56468         * lib/unistr/u8-strstr.c: New file.
56469         * lib/unistr/u16-strstr.c: New file.
56470         * lib/unistr/u32-strstr.c: New file.
56471         * lib/unistr/u-strstr.h: New file.
56472
56473         * modules/unistr/u8-strtok: New file.
56474         * modules/unistr/u16-strtok: New file.
56475         * modules/unistr/u32-strtok: New file.
56476         * lib/unistr/u8-strtok.c: New file.
56477         * lib/unistr/u16-strtok.c: New file.
56478         * lib/unistr/u32-strtok.c: New file.
56479         * lib/unistr/u-strtok.h: New file.
56480
56481         * modules/unistr/u8-uctomb: New file.
56482         * modules/unistr/u16-uctomb: New file.
56483         * modules/unistr/u32-uctomb: New file.
56484         * lib/unistr/u8-uctomb.c: New file.
56485         * lib/unistr/u16-uctomb.c: New file.
56486         * lib/unistr/u32-uctomb.c: New file.
56487
56488         * MODULES.html.sh (Unicode string functions): Add the new modules.
56489
56490 2007-01-08  Bruno Haible  <bruno@clisp.org>
56491
56492         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56493         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56494         subdirectories.
56495
56496 2007-01-08  Karl Berry  <karl@gnu.org>
56497
56498         * doc/error.texi: mention that main() fns must set program_name
56499         when progname is used.
56500
56501 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56502
56503         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56504         WCTYPE_H is empty, for the benefit of builds from non-distclean
56505         directories.  Problem reported by Eric Blake in
56506         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56507
56508 2007-01-08  Bruno Haible  <bruno@clisp.org>
56509
56510         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56511         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56512         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56513         PROVIDE_CANONICALIZE_FILENAME_MODE.
56514         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56515
56516 2007-01-08  Bruno Haible  <bruno@clisp.org>
56517
56518         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56519         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56520         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56521         * lib/fts.c: Likewise.
56522         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56523
56524 2006-12-25  Bruno Haible  <bruno@clisp.org>
56525
56526         * modules/utf8-ucs4-safe: New file.
56527         * lib/utf8-ucs4-safe.h: New file.
56528         * lib/unistr/utf8-ucs4-safe.c: New file.
56529
56530         * modules/utf16-ucs4-safe: New file.
56531         * lib/utf16-ucs4-safe.h: New file.
56532         * lib/unistr/utf16-ucs4-safe.c: New file.
56533
56534         * MODULES.html.sh (Unicode string functions): Add the new modules.
56535
56536 2007-01-08  Bruno Haible  <bruno@clisp.org>
56537
56538         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56539         (Depends-on): Add unitypes.
56540         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56541         (u8_mbtouc_aux): Move out to separate file.
56542         (u8_mbtouc): Use ucs4_t, uint8_t types.
56543         * lib/unistr/utf8-ucs4.c: New file.
56544
56545         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56546         (Depends-on): Add unitypes.
56547         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56548         (u16_mbtouc_aux): Move out to separate file.
56549         (u16_mbtouc): Use ucs4_t, uint16_t types.
56550         * lib/unistr/utf16-ucs4.c: New file.
56551
56552         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56553         (Depends-on): Add unitypes.
56554         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56555         (u8_uctomb_aux): Move out to separate file.
56556         (u8_uctomb): Use ucs4_t, uint8_t types.
56557         * lib/unistr/ucs4-utf8.c: New file.
56558
56559         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56560         (Depends-on): Add unitypes.
56561         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56562         (u16_uctomb_aux): Move out to separate file.
56563         (u16_uctomb): Use ucs4_t, uint16_t types.
56564         * lib/unistr/ucs4-utf16.c: New file.
56565
56566 2006-12-25  Bruno Haible  <bruno@clisp.org>
56567
56568         * modules/unitypes: New file.
56569         * lib/unitypes.h: New file.
56570         * MODULES.html.sh (func_all_modules): New section "Unicode string
56571         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56572         this section. Add unitypes.
56573
56574 2007-01-08  Bruno Haible  <bruno@clisp.org>
56575
56576         Avoid variable names that conflict with those from libtool.
56577         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56578         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56579         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56580         library_names_spec to acl_library_names_spec, hardcode_* to
56581         acl_hardcode_*.
56582         Reported by Ralf Wildenhues.
56583
56584 2007-01-08  Bruno Haible  <bruno@clisp.org>
56585
56586         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56587         definition.
56588         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56589         definition.
56590         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56591         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56592         definition.
56593         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56594         definition.
56595         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56596         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56597         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56598         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56599         definition.
56600         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56601         definition.
56602         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56603         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56604         GC_USE_<algorithm>.
56605         * lib/gc-libgcrypt.c: Likewise.
56606         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56607         * modules/gc-arctwo (configure.ac): Likewise.
56608         * modules/gc-des (configure.ac): Likewise.
56609         * modules/gc-hmac-md5 (configure.ac): Likewise.
56610         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56611         * modules/gc-md2 (configure.ac): Likewise.
56612         * modules/gc-md4 (configure.ac): Likewise.
56613         * modules/gc-md5 (configure.ac): Likewise.
56614         * modules/gc-random (configure.ac): Likewise.
56615         * modules/gc-rijndael (configure.ac): Likewise.
56616         * modules/gc-sha1 (configure.ac): Likewise.
56617
56618 2007-01-08  Bruno Haible  <bruno@clisp.org>
56619
56620         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56621         macro definition.
56622         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56623         definition.
56624         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56625         definition.
56626         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56627         * modules/fcntl-safer (configure.ac): Likewise.
56628         * modules/fopen-safer (configure.ac): Likewise.
56629         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56630         GNULIB_FWRITEERROR macro definition.
56631
56632 2007-01-08  Bruno Haible  <bruno@clisp.org>
56633
56634         * m4/gnulib-common.m4: New file.
56635         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56636         (func_get_filelist): Add m4/gnulib-common.m4.
56637
56638 2007-01-08  Bruno Haible  <bruno@clisp.org>
56639
56640         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56641         command.
56642
56643 2007-01-08  Jim Meyering  <jim@meyering.net>
56644
56645         Use a more robust test for a "can't happen" condition.
56646         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56647         narrowed the st_size value.  Presuming the "can't happen" condition
56648         is true, that narrowing could conceivably convert an invalid st_size
56649         value into a valid one.  Instead, use a change based on Matthew
56650         Woehlke's original patch.
56651
56652         Slight readability improvement: use an assert-like macro
56653         in place of literal "abort ()" uses.
56654         * lib/fts.c (fts_assert): Define.
56655         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56656         Use this macro instead of a bare 'abort'.
56657
56658 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56659
56660         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56661         simply work around them.
56662         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56663         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56664         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56665         declaring.
56666         Don't bother to define as macros, since the standard doesn't require it.
56667         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56668         longer worry about IRIX 5.3.
56669         (HAVE_WCTYPE_CTMP_BUG): Remove.
56670
56671 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56672
56673         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56674         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56675         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56676         Problems reported by Georg Schwarz for IRIX 5.3.
56677
56678         * gnulib-tool (autoconf_minversion): Take the maximum version number
56679         found, not the minimum.  Problem reported by James Youngman.
56680
56681 2007-01-03  Karl Berry  <karl@gnu.org>
56682
56683         * doc/error.texi: new file, explaining interaction with progname.
56684         * doc/gnulib.texi: include it.  Update copyright.
56685
56686 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56687
56688         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56689         AC_CANONICAL_HOST, to improve autobuild outputs.
56690
56691 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56692             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56693
56694         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56695         sockets, server sockets, and other file descriptors.  Count errors
56696         to compute the return value.  Reorder the code a bit to be easier
56697         to follow.  Don't set event bits that were not requested (except
56698         POLLERR and POLLHUP).
56699
56700 2007-01-01  Bruno Haible  <bruno@clisp.org>
56701
56702         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56703
56704 2007-01-03  Jim Meyering  <jim@meyering.net>
56705
56706         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56707
56708 2007-01-02  Bruno Haible  <bruno@clisp.org>
56709
56710         * modules/settime (Include): Require timespec.h.
56711         * modules/nanosleep (Include): Likewise.
56712
56713 2007-01-01  Bruno Haible  <bruno@clisp.org>
56714
56715         * gnulib-tool (func_emit_copyright_notice): Bump year.
56716         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56717
56718 2007-01-01  Bruno Haible  <bruno@clisp.org>
56719
56720         Improve support for OpenBSD.
56721         * build-aux/config.rpath (libname_spec): Export.
56722         (library_names_spec): New variable. Export.
56723         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56724         library_names_spec from the config.rpath output. Locate shared library
56725         through the name pattern in library_names_spec.
56726
56727 2007-01-01  Eric Blake  <ebb9@byu.net>
56728
56729         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56730
56731 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56732
56733         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56734         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56735         assume the C locale, and avoid an "eval" that could cause trouble.
56736         Problem with SORT reported by Bob Proulx.
56737
56738         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56739         Define.  Trivial patch from Henning Nielsen Lund, originally
56740         sent to bug-grep@gnu.org today.
56741
56742 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56743
56744         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56745         struct stat.  Problem reported by Henning Nielsen Lund.
56746         * lib/acl.c: Include acl.h first, to check interface.  Don't
56747         bother to include sys/types.h and sys/stat.h again.
56748
56749 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56750
56751         Import the following change from libc; problem reported by
56752         Sven Verdoolaege.
56753
56754         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56755
56756         [BZ #1373]
56757         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56758
56759 2006-12-28  Jim Meyering  <jim@meyering.net>
56760
56761         * build-aux/announce-gen: Do not assume that the package
56762         builds any of tar.gz, tar.bz2, and .xdelta files.
56763         Suggestion from Simon Josefsson.
56764
56765 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56766
56767         * modules/announce-gen: New file.
56768
56769 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56770
56771         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56772         handles its gotchas now.
56773         * lib/mbswidth.c: Likewise.
56774         * lib/wcwidth.h: Likewise.
56775         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56776         and iswcntrl; the wctype module does this stuff now.
56777         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56778         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56779         * modules/mbchar (Depends-on): Add wctype.
56780         * modules/mbswidth (Depends-on): Likewise.
56781         * modules/wcwidth (Depends-on): Likewise.
56782
56783 2006-12-27  Eric Blake  <ebb9@byu.net>
56784
56785         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56786         module uses more than what <wctype.h> is required to provide.
56787
56788 2006-12-26  Eric Blake  <ebb9@byu.net>
56789
56790         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56791
56792 2006-12-26  Eric Blake  <ebb9@byu.net>
56793
56794         * modules/absolute-header: New module.
56795         * modules/fcntl (Depends-on): Depend on it.
56796         * modules/inttypes (Depends-on): Likewise.
56797         * modules/stdint (Depends-on): Likewise.
56798         * modules/sys_stat (Depends-on): Likewise.
56799         * modules/wctype (Depends-on): Likewise.
56800         * MODULES.html.sh (Support for building libraries and
56801         executables): Document it.
56802
56803 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56804
56805         * gnulib-tool (SED): Remove, undoing previous change.
56806         The problem was that it broke coreutils on Solaris, because
56807         "sed --posix" leaked into a makefile.
56808         (sed): New alias, if 'alias' and GNU sed.
56809
56810 2006-12-24  Jim Meyering  <jim@meyering.net>
56811
56812         Work around an fchownat bug in glibc-2.4:
56813         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56814         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56815         in spite of the -P option.
56816         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56817         New macros.
56818         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56819         * modules/openat (Files): Add lib/fchownat.c.
56820         * lib/openat.c (fchownat): Don't define here.  Move to...
56821         * lib/fchownat.c: ...this new file.
56822
56823 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56824
56825         Fix bug reported by Bruno Haible in
56826         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56827         where quotearg.c didn't compile on Mac OS X 10.2 because it
56828         lacks <wchar.h> and wint_t.
56829         * lib/wctype_.h (__wctype_wint_t): New type.
56830         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56831         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56832         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56833         Arg is now of type __wctype_wint_t, not wint_t.
56834         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56835         substitute HAVE_WINT_T.
56836         * modules/wctype (Files): Add m4/wint_t.m4.
56837         (wctype.h): Substitute HAVE_WINT_T.
56838
56839 2006-12-23  Bruno Haible  <bruno@clisp.org>
56840
56841         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56842
56843 2006-12-23  Bruno Haible  <bruno@clisp.org>
56844
56845         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56846         S_ISLNK.
56847         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56848         mingw.
56849
56850 2006-12-22  Bruno Haible  <bruno@clisp.org>
56851
56852         * lib/copy-file.c: Include acl.h.
56853         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56854         Close the file descriptors only after being done with copy_acl.
56855         * modules/copy-file (Depends-on): Add acl.
56856
56857 2006-12-22  Bruno Haible  <bruno@clisp.org>
56858
56859         * gnulib-tool (SED): New variable.
56860         Use $SED instead of sed everywhere.
56861
56862 2006-12-22  Bruno Haible  <bruno@clisp.org>
56863
56864         * modules/no-c++: New file.
56865         * m4/no-c++.m4: New file.
56866         * MODULES.html.sh (Support for building libraries and executables):
56867         Add no-c++.
56868
56869 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56870
56871         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56872         Include <limits.h>, and use its INT_MAX to rewrite the
56873         j loop so that it does not overflow 'int'.  Problem reported by
56874         Ralf Wildenhues in
56875         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56876         Play it safe by shifting left by 1 rather than multiplying by 2,
56877         as GCC is less likely to optimize this away when the value
56878         is signed (when it assumes overflow leads to undefined behavior).
56879         Also, don't assume time_t uses two's complement.
56880
56881 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56882
56883         * MODULES.html.sh: New module wctype.
56884         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56885         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56886         <wctype.h>, since the new wctype module should fix this.
56887         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56888         the wctype module should arrange for it.
56889         * lib/regex_internal.h: Likewise.
56890         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56891         since the wctype module should handle this now.
56892         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56893         * modules/fnmatch (Depends-on): Add wctype.
56894         * modules/quotearg (Depends-on): Likewise.
56895         * modules/regex (Depends-on): Likewise.
56896
56897 2006-12-19  Bruno Haible  <bruno@clisp.org>
56898
56899         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56900         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56901
56902 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56903
56904         * modules/savewd (Depends-on): Fix dependency on fcntl.
56905
56906 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56907
56908         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56909         conforms to C99, rather than relying on the user's environment
56910         setting of STDINT_H.
56911
56912 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56913         and Eric Blake  <ebb9@byu.net>
56914
56915         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56916         This is more consistent with the other defines here.
56917         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56918         Port to z/OS.  Problem reported by Paul Gilmartin.
56919         Change local vars to use gl_ prefix rather than ac_.
56920         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56921         with other defines.
56922         * modules/double-slash-root: New module.
56923         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56924         (Depends-on): Add double-slash-root.
56925         * MODULES.html.sh (File system functions): Mention new module.
56926
56927 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56928
56929         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56930         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56931         This is for the benefit of gzip, which doesn't do i18n.
56932
56933 2006-12-12  Jim Meyering  <jim@meyering.net>
56934
56935         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56936         Reported by Andreas Schwab <schwab@suse.de>.
56937
56938 2006-12-12  Bruno Haible  <bruno@clisp.org>
56939
56940         Merge these changes.
56941         2006-09-05  Bruno Haible  <bruno@clisp.org>
56942         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56943         iconv_alloc succeeded.
56944         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56945         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56946         test for " && dest " at the end - dest is always != NULL there. Call
56947         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56948         with 2xNULL arguments, also to flush the state storage. Handle the
56949         IRIX iconv behaviour. Realloc the final result, to throw away unused
56950         memory.
56951
56952 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56953
56954         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56955         and fchmodat unconditionally, since glibc 2.4 has them.
56956         Problem reported by Arkadiusz Miskiewicz.
56957
56958 2006-12-10  Bruno Haible  <bruno@clisp.org>
56959
56960         * gnulib-tool (func_import): Show the include files only for those
56961         modules that are copied and specified.
56962         Reported by Karl Berry.
56963
56964 2006-12-08  Jim Meyering  <jim@meyering.net>
56965
56966         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56967         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56968
56969         * build-aux/announce-gen: Add two new options, both optional:
56970         --bootstrap-tools=TOOL_LIST
56971               a comma-separated list of tools, e.g.,
56972               autoconf,automake,bison,gnulib
56973         --gnulib-snapshot-date=DATE
56974               if gnulib is in the bootstrap tool list,
56975               then report this as the snapshot date.
56976               If not specified, use the current date/time.
56977               If you specify a date here, be sure it's UTC.
56978
56979 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56980
56981         * tests/test-argp-2.sh: Fix test to match actual output.
56982         (func_compare): Fix sed script to be portable.
56983
56984 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56985
56986         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56987         workaround for this case.  It is not autoconfigured now; offhand
56988         it's hard to see how to autoconfigure it.
56989
56990 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56991
56992         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56993         a directory that is about to be chowned.  Such a directory's
56994         initial file permissions should permit the owner only and this
56995         should not be changed until after the chown, since the group and
56996         other bits would be incorrect if they granted permission before
56997         the chown.
56998
56999         Fix porting problem for iswctype reported by Georg Schwarz in:
57000         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57001         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57002         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57003         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57004         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57005
57006 2006-12-03  Jim Meyering  <jim@meyering.net>
57007
57008         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57009         p->fts_statp may not yet be defined.
57010         (fts_read): Instead, set it in the caller, once p->fts_statp is
57011         sure to be defined, and corresponds to a top-level directory.
57012         This bug made du -x fail.  Here's the coreutils test case:
57013         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57014         Reported by Mike Frysinger.
57015
57016 2006-12-01  Jim Meyering  <jim@meyering.net>
57017
57018         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57019         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57020         Reported by Simon Josefsson.
57021
57022 2006-11-30  Jim Meyering  <jim@meyering.net>
57023
57024         * m4/warning.m4: Use the all-permissive copyright notice
57025         recommended by RMS (rather than LGPL).
57026         * m4/vararrays.m4: Likewise.
57027         * m4/flexmember.m4: Likewise.
57028
57029 2006-11-29  Bruno Haible  <bruno@clisp.org>
57030
57031         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57032         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57033         using +=.
57034         Reported by Simon Josefsson <simon@josefsson.org>.
57035
57036 2006-11-28  James Youngman <jay@gnu.org>
57037
57038         * README: Advise users that they might find the bug-gnulib@gnu.org
57039         and autotools-announce@gnu.org mailing lists useful.
57040
57041 2006-11-28  Bruno Haible  <bruno@clisp.org>
57042
57043         * m4/ptrdiff_max.m4: Remove file.
57044
57045 2006-11-21  Bruno Haible  <bruno@clisp.org>
57046
57047         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57048         _AC_COMPUTE_INT.
57049         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57050         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57051         _AC_COMPUTE_INT.
57052         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57053         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57054         _AC_COMPUTE_INT.
57055         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57056
57057 2006-11-28  Jim Meyering  <jim@meyering.net>
57058
57059         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57060         warning from "gcc -Wshadow" about shadowing the builtin.
57061
57062 2006-11-27  Bruno Haible  <bruno@clisp.org>
57063
57064         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57065         _AC_COMPUTE_INT.
57066         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57067
57068 2006-11-27  Bruno Haible  <bruno@clisp.org>
57069             Paul Eggert  <eggert@cs.ucla.edu>
57070
57071         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57072
57073 2006-11-26  Bruno Haible  <bruno@clisp.org>
57074
57075         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57076         noinst_LTLIBRARIES.
57077
57078 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57079             Bruno Haible  <bruno@clisp.org>
57080
57081         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57082         if compiling with "gcc -ansi".
57083
57084 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57085
57086         Fix some incompatibilities with gcc -ansi -pedantic.
57087         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57088         if compiling pedantically with GCC, unless it's C99 or later.
57089         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57090         it mishandles gcc -ansi -pedantic as well.
57091         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57092         if gcc -pedantic.
57093         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57094         initializers for struct if -pedantic, unless it's C99 or later.
57095
57096 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57097
57098         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57099         Don't close an fd more than once. Identical atimes indicate
57100         success, not failure.
57101
57102 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57103
57104         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57105
57106 2006-11-23  Jim Meyering  <jim@meyering.net>
57107
57108         * build-aux/announce-gen: New file.  From coreutils.
57109
57110 2006-11-22  Jim Meyering  <jim@meyering.net>
57111
57112         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57113         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57114         (fts_read): Use a temporary to narrow the overused st_size member
57115         before using it in a switch statement.  Reported by Matthew Woehlke.
57116
57117         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57118         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57119
57120 2006-11-20  Bruno Haible  <bruno@clisp.org>
57121
57122         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57123         changequote instead of pairs of brackets.
57124         Reported by Andreas Schwab <schwab@suse.de>.
57125
57126 2006-11-21  Jim Meyering  <jim@meyering.net>
57127
57128         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57129         so as to remain compatible with older compilers.
57130         Patch from Michael Deutschmann.
57131
57132 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         * MODULES.html.sh (File system functions): Add openat.
57135
57136         * lib/openat.h (rpl_fstatat): New macro, if
57137         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57138         (fstatat): Define to rpl_fstatat under the same conditions,
57139         unless COMPILING_FSTATAT.
57140         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57141         seems to have the bug.
57142         * lib/fstatat.c: New file.
57143         * modules/openat (Files): Add it.
57144
57145 2006-11-20  Bruno Haible  <bruno@clisp.org>
57146
57147         * Makefile: New file.
57148
57149 2006-11-20  Jim Meyering  <jim@meyering.net>
57150
57151         The beginnings of syntax-related checks for gnulib.
57152         * lib/Makefile: New file.
57153         * lib/t-idcache: New script.  Ensure that the two halves of
57154         idcache.c stay in sync.
57155
57156         * lib/idcache.c: Adjust comments in user- and group- portions to
57157         be more accurate, and to be consistent with one another.
57158
57159 2006-11-20  Jim Meyering  <jim@meyering.net>
57160
57161         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57162         continue using the flexible array member (thus, this module performs
57163         half as many malloc calls), with the addition that...
57164         (getgroup, getuser): Consistently record a non-match via an empty
57165         "name" string, and map an empty string match to a NULL return value.
57166         * modules/idcache (Depends-on): Re-add flexmember.
57167
57168         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57169         (getuidbyname, getgroup, getgidbyname): Likewise.
57170
57171         Use cleaner syntax: NULL rather than 0.
57172         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57173
57174 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57175
57176         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57177         It mishandled the case where the group was missing.
57178         Problem reported by Greg Schafer.
57179         * modules/idcache: Likewise.
57180
57181 2006-11-18  Jim Meyering  <jim@meyering.net>
57182
57183         * check-module (%exempt_header): Add exception for some
57184         conditionally-included headers.
57185
57186         * modules/i-ring (Depends-on): Add verify.
57187         (License): Change to LGPL.
57188
57189 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57190
57191         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57192         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57193         and inttostr.h.  Use snprintf rather than uinttostr, so that
57194         LGPLed code doesn't depend on GPLed.
57195
57196 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57197
57198         * modules/inline (License): Change from GPL to LGPL.
57199
57200 2006-11-17  Jim Meyering  <jim@meyering.net>
57201
57202         * modules/d-type (License): Switch to LGPL.
57203
57204 2006-11-15  Bruno Haible  <bruno@clisp.org>
57205
57206         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
57207
57208 2006-11-15  Eric Blake  <ebb9@byu.net>
57209
57210         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
57211         the module dependency.
57212
57213 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57214             Bruno Haible  <bruno@clisp.org>
57215
57216         * gnulib-tool (func_create_testdir): Add license consistency check.
57217
57218 2006-11-15  Eric Blake  <ebb9@byu.net>
57219
57220         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
57221         random "(cached)" in configure output.
57222
57223 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57224
57225         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
57226         test for conforming inttypes.h is both announced and cached.
57227
57228         * MODULES.html.sh (seen_modules, seen_files): New variables.
57229         (func_module): Rewrite to use a few less gnulib-tool and sed
57230         invocations.  Avoid a couple of quadratic algorithms for ...
57231         (missed_modules, missed_files): ... these, with ...
57232         (func_append, func_tmpdir): ... these new functions, from
57233         gnulib-tool.  Analogously, install traps for cleanup.
57234
57235         * tests/test-gc.c (main): Remove unused variables.
57236         * tests/test-read-file.c: Include stdlib.h, for 'free'.
57237
57238 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         * modules/inttostr (License): Change to LGPL.
57241
57242 2006-11-14  Eric Blake  <ebb9@byu.net>
57243
57244         * modules/tempname (License): Change to LGPL.
57245
57246 2006-11-14  Eric Blake  <ebb9@byu.net>
57247
57248         * doc/functions.texi (Function Portability): *printf functions on
57249         Cygwin now understand all POSIX size specifiers.
57250
57251 2006-11-14  Bruno Haible  <bruno@clisp.org>
57252
57253         * modules/c-ctype (License): Change to LGPL.
57254
57255 2006-11-12  Bruno Haible  <bruno@clisp.org>
57256
57257         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57258         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
57259         for GNOME libraries, for which the include files are installed in
57260         subdirectories of $prefix/include.
57261
57262 2006-11-12  Bruno Haible  <bruno@clisp.org>
57263
57264         * m4/lib-link.m4: Require at least autoconf-2.54.
57265         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
57266         name to underscores for the --with option.
57267
57268 2006-11-13  Bruno Haible  <bruno@clisp.org>
57269
57270         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
57271         the tests directory.
57272         Reported by Ralf Wildenhues.
57273
57274 2006-11-13  Bruno Haible  <bruno@clisp.org>
57275
57276         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57277         (func_emit_initmacro_end): Undo the override here.
57278         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57279         Works around the famous automake error in coreutils.
57280
57281 2006-11-13  Eric Blake  <ebb9@byu.net>
57282
57283         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57284         element, not its node.
57285
57286 2006-11-12  Bruno Haible  <bruno@clisp.org>
57287
57288         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57289         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57290
57291 2006-11-12  Bruno Haible  <bruno@clisp.org>
57292
57293         * gnulib-tool: New option --local-symlink.
57294         (func_usage): Document it.
57295         (lsymbolic): New variable.
57296         (func_import, func_create_testdir): If --symlink was not specified,
57297         test whether --local-symlink was specified and the file comes from
57298         the local_gnulib_dir.
57299
57300 2006-11-12  Bruno Haible  <bruno@clisp.org>
57301
57302         * gnulib-tool (func_ln): New function.
57303         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57304
57305 2006-11-12  Bruno Haible  <bruno@clisp.org>
57306
57307         Finish support for source files in subdirectories.
57308         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57309         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
57310         AUTOMAKE_OPTIONS.
57311         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
57312
57313 2006-11-12  Bruno Haible  <bruno@clisp.org>
57314
57315         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57316         EXTRA_lib_SOURCES augmentation.
57317         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
57318
57319 2006-11-12  Jim Meyering  <jim@meyering.net>
57320
57321         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
57322         file descriptors.  This also averts a failure on systems with
57323         native openat support when a traversed directory lacks "x" access.
57324         * lib/fts_.h: Include "i-ring.h"
57325         (struct FTS) [fts_fd_ring]: New member.
57326         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
57327         (FCHDIR): Add parentheses.
57328         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
57329         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
57330         When descending, rather than simply closing the previous
57331         fts_cwd_fd value, push that file descriptor onto the ring.
57332         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
57333         (fts_open): Initialize the new fd_ring member.
57334         (fts_close): Clear the ring.
57335         (fts_safe_changedir): When possible, use our new fd_ring to skip
57336         the diropen and fstat and dev/ino comparison that would normally
57337         accompany a virtual `chdir ("..")'.
57338
57339         * modules/fts (Depends-on): Add i-ring.
57340         * modules/i-ring: New module.
57341         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
57342         * m4/i-ring.m4: New file.
57343
57344 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57345
57346         * gnulib-tool (func_create_testdir): Fix replacement of
57347         `build-aux' in configure.ac.  Run autotools in gltests
57348         subdirectory.
57349         (func_create_testdir, func_create_megatestdir, test): There is
57350         no need for '--force' in most autotool invocations in a new
57351         tree.  Actually fail the whole test if any of the tools, or the
57352         configure or make stages fail.
57353
57354         Sync from Automake.
57355         * build-aux/gnupload: Revert last change.  Add pointer to upload
57356         instructions of the GNU Maintenance Instructions.
57357         Suggestion by Karl Berry.
57358
57359 2006-11-10  Jim Meyering  <jim@meyering.net>
57360
57361         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
57362
57363 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57364
57365         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
57366         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
57367         (bind_textdomain_codeset) [! ENABLE_NLS]:
57368         Evaluate all the arguments.  That way, callers get compatible behavior
57369         if the arguments have side effects.  Also, it avoids some GCC
57370         diagnostics in some cases; Joel E. Denny reported problems when Bison
57371         was configured with --enable-gcc-warnigs.
57372
57373 2006-11-10  Jim Meyering  <jim@meyering.net>
57374
57375         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
57376         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57377         account.
57378
57379 2006-11-10  Jim Meyering  <jim@meyering.net>
57380
57381         * modules/inline: New file/module.
57382         * modules/xalloc (Files): Remove m4/inline.m4.
57383         (Depends-on): Add inline, instead.
57384         * modules/oset: Likewise.
57385         * modules/list: Likewise.
57386
57387 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57388
57389         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57390         Problem reported by Matthew Woehlke.
57391
57392 2006-11-09  Bruno Haible  <bruno@clisp.org>
57393
57394         * lib/tempname.c (gen_tempname): Remove variant that invokes
57395         __gen_tempname.
57396         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57397         __gen_tempname.
57398
57399 2006-11-08  Bruno Haible  <bruno@clisp.org>
57400
57401         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57402         to 'yes' instead of 'cross-compiling'.
57403
57404 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57405
57406         * lib/quotearg.h (quotearg_free): New decl.
57407         * lib/quotearg.c (quotearg_free): New function.
57408         (slot0, nslots, slotvec0, slotvec):
57409         Now file-scope so that quotearg_free can get at them.
57410
57411 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57412
57413         Sync from Automake.
57414         * build-aux/gnupload: Add missing 'gnu' to example URL.
57415         Report by Karl Berry.
57416
57417 2006-11-08  Bruno Haible  <bruno@clisp.org>
57418
57419         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57420         Suggested by Paul Eggert.
57421
57422 2006-11-08  Jim Meyering  <jim@meyering.net>
57423
57424         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57425         It's already included if !_LIBC.
57426         (fts_safe_changedir): Add a comment.
57427
57428 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57429
57430         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57431         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57432         Matthew Woehlke.
57433
57434         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57435         definitions up, to avoid colliding with change below.
57436         (static_inline) [HAVE_INLINE]: New macro.
57437         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57438         Provide extern decls when !HAVE_INLINE.  Do not define unless
57439         static_inline is defined, either by us or by xmalloc.c.  Use
57440         static_inline rather than static inline.
57441         (XCALLOC): Optimize sizeof(T) = 1 case.
57442         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57443
57444 2006-11-07  Bruno Haible  <bruno@clisp.org>
57445
57446         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57447         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57448         AC_C_INLINE.
57449         * modules/xalloc (Files): Add m4/inline.m4.
57450
57451 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57452
57453         * README: Fix typo.
57454         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57455         (Miscellanous Notes): ...from this.
57456
57457 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57458
57459         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57460         Mention that offsetof should be used instead of sizeof.
57461         From Bruno Haible.
57462
57463 2006-11-07  Bruno Haible  <bruno@clisp.org>
57464
57465         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57466
57467 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57468
57469         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57470         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57471         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57472         (gl_tree_add_before, gl_tree_add_after):
57473         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57474         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57475         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57476         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57477         (gl_linked_add_after, gl_linked_add_at): Likewise.
57478         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57479         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57480         (gl_tree_add_before, gl_tree_add_after): Likewise.
57481         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57482         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57483         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57484
57485 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57486
57487         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57488
57489 2006-11-06  Bruno Haible  <bruno@clisp.org>
57490
57491         * m4/inline.m4: New file.
57492         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57493         * modules/list (Files): Add m4/inline.m4.
57494         * modules/oset (Files): Likewise.
57495
57496 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57497
57498         * lib/idcache.c: Include <stddef.h>, for offsetof.
57499         (struct userid.name): Change from char * to a flexible array member.
57500         All uses changed.
57501         * modules/idcache (Depends-on): Add flexmember.
57502
57503         * MODULES.html.sh (Core language properties): New module flexmember.
57504         * modules/flexmember, m4/flexmember.m4: New files.
57505
57506         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57507         inline functions that are identical with the old xnmalloc_inline,
57508         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57509         that we can avoid some unnecessary integer multiplications and
57510         divisions in the common case where the element size is known at
57511         compile time.
57512         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57513         needed.
57514         (xnboundedmalloc): Remove.
57515         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57516         arguments, for consistency with rest of this header.
57517         (xcharalloc): Rewrite using XNMALLOC.
57518         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57519         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57520         versions have been moved to lib/xalloc.h and renamed to be the
57521         non-*_inline versions.
57522         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57523         and xnrealloc functions, since those functions are now inline and
57524         now call us.
57525         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57526         renaming described above.
57527         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57528         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57529         captures the dependency in AC_C_INLINE.
57530
57531         New module canonicalize-lgpl, proposed by Charles Wilson in
57532         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57533         with a few small changes afterwards.
57534         * MODULES.html.sh (File system functions): New module
57535         canonicalize-lgpl.
57536         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57537         and canonicalize_file_name.
57538         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57539         * modules/canonicalize-lgpl: New files.
57540
57541 2006-11-05  Bruno Haible  <bruno@clisp.org>
57542
57543         * gnulib-tool (func_import, func_create_testdir): Create directories
57544         also for files in subdirectories of lib/.
57545
57546 2006-11-05  Bruno Haible  <bruno@clisp.org>
57547
57548         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57549         ANSI C compliant.
57550
57551 2006-11-03  Bruno Haible  <bruno@clisp.org>
57552
57553         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57554         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57555         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57556         (xnboundedmalloc): New inline function.
57557         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57558         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57559         xmalloc.
57560         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57561         xmalloc.
57562         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57563         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57564         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57565         xmalloc.
57566         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57567         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57568         xmalloc.
57569         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57570         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57571         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57572         xmalloc.
57573         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57574         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57575         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57576         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57577         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57578         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57579         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57580
57581 2006-11-03  Bruno Haible  <bruno@clisp.org>
57582
57583         * lib/c-ctype.h [C++]: Define functions without name mangling.
57584         * lib/fwriteerror.h [C++]: Likewise.
57585         * lib/gcd.h [C++]: Likewise.
57586         * lib/linebreak.h [C++]: Likewise.
57587
57588 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57589
57590         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57591         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57592         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57593         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57594         Check for functions and headers just once.
57595         Check for declaration of canonicalize_file_name.
57596         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57597
57598 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57599
57600         * gnulib-tool (func_import): Fix typo in actioncmd.
57601
57602 2006-11-02  Bruno Haible  <bruno@clisp.org>
57603
57604         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57605         newline sequence in the Makefile.am snippet as a space, like "make"
57606         does.
57607         Reported by Roger Persson <perrog@gmail.com>.
57608
57609 2006-11-01  Bruno Haible  <bruno@clisp.org>
57610
57611         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57612         already declared in <string.h>.
57613         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57614
57615 2006-11-01  Bruno Haible  <bruno@clisp.org>
57616
57617         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57618         * lib/strcase.h: Include <string.h>.
57619         (strcasecmp): Define to rpl_strcasecmp here.
57620
57621 2006-11-01  Bruno Haible  <bruno@clisp.org>
57622
57623         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57624
57625 2006-11-01  Eric Blake  <ebb9@byu.net>
57626
57627         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57628
57629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57630
57631 2006-10-29  Bruno Haible  <bruno@clisp.org>
57632
57633         Make it compile in C++ mode.
57634         * lib/full-write.c (full_rw): Add a cast.
57635
57636 2006-11-01  Bruno Haible  <bruno@clisp.org>
57637
57638         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57639         be POSIX compliant.
57640         Reported by Roger Persson <perrog@gmail.com>.
57641
57642 2006-11-01  Eric Blake  <ebb9@byu.net>
57643
57644         * lib/getopt_.h: Fix comments.
57645
57646 2006-10-31  Eric Blake  <ebb9@byu.net>
57647
57648         * modules/tmpdir (Depends-on): Add sys_stat.
57649         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57650         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57651         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57652         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57653         tempname.
57654
57655 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57656
57657         Avoid some C++ diagnostics reported by Bruno Haible.
57658         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57659         xmalloc.
57660         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57661         (struct slotvec): Move to top level.
57662         (quotearg_n_options): Rewrite to avoid xmalloc.
57663         * lib/xalloc.h (xcharalloc): New function.
57664         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57665         [defined __cplusplus]: Add function template that provides result
57666         type propagation.  This part of the change is from Bruno Haible.
57667
57668 2006-10-29  Bruno Haible  <bruno@clisp.org>
57669
57670         Make it compile in C++ mode.
57671         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57672         * lib/strnlen1.c (strnlen1): Cast memchr result.
57673         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57674         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57675         (create_temp_dir): Rename local variable 'template'.
57676         (compile_csharp_using_sscli): Add cast.
57677         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57678         * lib/findprog.c (find_in_path): Likewise.
57679         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57680         * lib/wait-process.c (register_slave_subprocess): Likewise.
57681
57682 2006-10-22  Bruno Haible  <bruno@clisp.org>
57683
57684         * modules/tsearch: New file.
57685         * lib/tsearch.h: New file.
57686         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57687         * m4/tsearch.m4: New file.
57688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57689
57690 2006-10-29  Eric Blake  <ebb9@byu.net>
57691
57692         * lib/arcfour.c: Assume config.h.
57693         * lib/arctwo.c: Likewise.
57694         * lib/base64.c: Likewise.
57695         * lib/check-version.c: Likewise.
57696         * lib/crc.c: Likewise.
57697         * lib/des.c: Likewise.
57698         * lib/gc-gnulib.c: Likewise.
57699         * lib/gc-libgcrypt.c: Likewise.
57700         * lib/gc-pbkdf2-sha1.c: Likewise.
57701         * lib/getaddrinfo.c: Likewise.
57702         * lib/getdelim.c: Likewise.
57703         * lib/getline.c: Likewise.
57704         * lib/hmac-md5.c: Likewise.
57705         * lib/hmac-sha1.c: Likewise.
57706         * lib/iconvme.c: Likewise.
57707         * lib/md2.c: Likewise.
57708         * lib/md4.c: Likewise.
57709         * lib/memxor.c: Likewise.
57710         * lib/read-file.c: Likewise.
57711         * lib/readline.c: Likewise.
57712         * lib/rijndael-alg-fst.c: Likewise.
57713         * lib/rijndael-api-fst.c: Likewise.
57714         * lib/xgetdomainname.c: Likewise.
57715
57716 2006-10-28  Eric Blake  <ebb9@byu.net>
57717
57718         * lib/xstrndup.c: Assume config.h.
57719
57720 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57721
57722         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57723         stat-macros.h is now for our own macros, whereas stat_h is for
57724         macros in the <sys/stat.h> name space.
57725         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57726         (STAT_MACROS_H): Remove.
57727         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57728         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57729         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57730         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57731         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57732         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57733         Move these macros to ...
57734         * lib/stat_.h: here.  Don't include stat-macros.h.
57735         * lib/canonicalize.c: Don't include stat-macros.h.
57736         * lib/chown.c: Likewise.
57737         * lib/euidaccess.c: Likewise.
57738         * lib/file-type.c: Likewise.
57739         * lib/filemode.c: Likewise.
57740         * lib/glob.c: Likewise.
57741         * lib/isapipe.c: Likewise.
57742         * lib/lchown.c: Likewise.
57743         * lib/lstat.c: Likewise.
57744         * lib/mkdir-p.c: Likewise.
57745         * lib/rmdir.c: Likewise.
57746         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57747         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57748         unless mkdir isn't declared, to speed up 'configure'.
57749         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57750         would define all the S_* symbols.
57751         * modules/canonicalize (Depends-on):
57752         Depend on sys_stat, not stat-macros.
57753         * modules/chown: Likewise.
57754         * modules/euidaccess: Likewise.
57755         * modules/filemode: Likewise.
57756         * modules/file-type: Likewise.
57757         * modules/glob: Likewise.
57758         * modules/isapipe: Likewise.
57759         * modules/lchown: Likewise.
57760         * modules/lstat: Likewise.
57761         * modules/mkancesdirs: Likewise.
57762         * modules/rmdir: Likewise.
57763         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57764         * modules/modechange: Likewise.
57765         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57766         (configure.ac): Remove gl_STAT_MACROS.
57767         * modules/sys_stat (Depends-on): Remove stat-macros.
57768
57769 2006-10-27  Bruno Haible  <bruno@clisp.org>
57770
57771         * m4/signed.m4: Remove file.
57772         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57773         invocation.
57774         * modules/vasnprintf (Files): Remove m4/signed.m4.
57775
57776 2006-10-27  Bruno Haible  <bruno@clisp.org>
57777
57778         Update to GNU gettext 0.16.
57779         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57780         m4/inttypes-h.m4, m4/signed.m4.
57781         * m4/gettext.m4: Update to GNU gettext 0.16.
57782         * m4/intl.m4: New file, from GNU gettext.
57783         * m4/intldir.m4: New file, from GNU gettext.
57784         * config/srclist.txt: Update
57785
57786 2006-10-27  Eric Blake  <ebb9@byu.net>
57787
57788         * MODULES.html.sh: Document tempname.
57789         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57790         dependencies.
57791         (Files): Move lib/tempname.c...
57792         * modules/tempname: ...to this new module.
57793         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57794         (gl_PREREQ_TEMPNAME): Move...
57795         * m4/tempname.m4: ...to this new file.
57796         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57797         * modules/sys_stat (Depends-on): Add stat-macros.
57798         * lib/stat_.h (includes): Pick up stat macros.
57799         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57800         if stat macros are broken.
57801         * lib/tempname.c (includes): No need to include "stat-macros.h".
57802         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57803         (direxists, __path_search) [!_LIBC]: Don't compile these in
57804         gnulib; the tmpdir module covers that.
57805         * lib/tempname.h: New file.
57806
57807 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57808
57809         * COPYING: Explain how gnulib-tool converts licence headers.
57810         Almost all wording by Eric Blake.
57811
57812 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57813
57814         * lib/mbchar.h (is_basic_table): Make read-only.
57815         * lib/mbchar.c (is_basic_table): Likewise.
57816         Reported by John Darrington.
57817
57818 2006-10-25  Bruno Haible  <bruno@clisp.org>
57819
57820         * lib/progname.h (set_program_name): Undefine before defining.
57821
57822 2006-10-25  Bruno Haible  <bruno@clisp.org>
57823
57824         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57825         false for non-gcc C++ compilers.
57826         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57827
57828 2006-10-24  Bruno Haible  <bruno@clisp.org>
57829
57830         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57831         iconv implementations like Irix iconv.
57832
57833 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57834
57835         * modules/vararrays: New file.
57836         * m4/vararrays.m4: New file, taken from diffutils.
57837         * MODULES.html.sh: New module vararrays.
57838
57839 2006-10-24  Karl Berry  <karl@gnu.org>
57840
57841         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57842         Don't call GNU Unix.
57843
57844 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57845
57846         * users.txt: Add Libtool.
57847
57848         Sync from Libtool:
57849
57850         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57851
57852         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57853         to gnulib's policy of including config.h unconditionally.
57854
57855 2006-10-24  Bruno Haible  <bruno@clisp.org>
57856
57857         * modules/wcwidth (Files): Add m4/wint_t.m4.
57858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57859         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57860
57861 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57862
57863         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57864         to pacify GCC with some -W flags enabled.  Problem reported by
57865         Bruno Haible.
57866
57867 2006-10-24  Jim Meyering  <jim@meyering.net>
57868
57869         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57870         Reported by Karl Berry.
57871
57872 2006-10-23  Bruno Haible  <bruno@clisp.org>
57873
57874         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57875
57876 2006-10-24  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/gl_list.h: Use C comment style, not C++ comment style.
57879
57880 2006-10-23  Eric Blake  <ebb9@byu.net>
57881
57882         * lib/getaddrinfo.c (includes): Add missing include.
57883
57884 2006-10-23  Bruno Haible  <bruno@clisp.org>
57885             Paul Eggert  <eggert@cs.ucla.edu>
57886
57887         Ability to rename obstack_free.
57888         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57889         obstack_free.
57890         (obstack_free): Invoke the __obstack_free macro.
57891         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57892
57893 2006-10-23  Bruno Haible  <bruno@clisp.org>
57894             Paul Eggert  <eggert@cs.ucla.edu>
57895
57896         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57897         __argc, __argv from the declaration. (They are defined as macros on
57898         mingw.)
57899
57900 2006-10-22  Bruno Haible  <bruno@clisp.org>
57901
57902         * doc/gnulib-intro.texi: New file.
57903         * doc/gnulib.texi: Include it.
57904
57905 2006-10-21  Bruno Haible  <bruno@clisp.org>
57906
57907         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57908         "Introduction", "Miscellanous Notes", "Particular Modules".
57909
57910 2006-10-21  Bruno Haible  <bruno@clisp.org>
57911
57912         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57913         Change mostlyclean-local rule to avoid sh syntax error from bash
57914         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57915
57916 2006-10-23  Jim Meyering  <jim@meyering.net>
57917
57918         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57919         in place of snprintf.
57920
57921         * modules/inttostr (Files): Add lib/uinttostr.c.
57922         * lib/uinttostr.c (inttostr): New file/function.
57923         * lib/inttostr.h (uinttostr): Declare.
57924         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57925         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57926         Add uinttostr.
57927         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57928
57929 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57930
57931         * lib/canonicalize.c (ELOOP): Define if not already defined.
57932         Problem reported by Bruno Haible in
57933         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57934
57935 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57936
57937         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57938         Problem reported by Perry Smith and Ville Laurikari.
57939
57940         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57941         uses.
57942
57943 2006-10-19  Bruno Haible  <bruno@clisp.org>
57944
57945         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57946         for mingw.
57947
57948 2006-10-19  Bruno Haible  <bruno@clisp.org>
57949
57950         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57951         Needed for mingw.
57952
57953 2006-10-19  Bruno Haible  <bruno@clisp.org>
57954
57955         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57956
57957 2006-10-19  Bruno Haible  <bruno@clisp.org>
57958
57959         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57960         it.
57961
57962 2006-10-19  Bruno Haible  <bruno@clisp.org>
57963
57964         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57965         invocation.
57966
57967 2006-10-19  Bruno Haible  <bruno@clisp.org>
57968
57969         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57970         mountlist by default.
57971
57972 2006-10-16  Bruno Haible  <bruno@clisp.org>
57973
57974         * lib/c-strstr.c: Include c-strstr.h.
57975
57976 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57977
57978         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57979         in a slash.
57980
57981 2006-10-18  Bruno Haible  <bruno@clisp.org>
57982
57983         * lib/lock.h [C++]: Wrap definitions in extern "C".
57984
57985 2006-10-18  Bruno Haible  <bruno@clisp.org>
57986
57987         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57988         gl_LIBOBJS list.
57989
57990 2006-10-18  Bruno Haible  <bruno@clisp.org>
57991
57992         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57993
57994 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57995
57996         * lib/xstrtol.h: Include gettext.h.
57997         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57998         Problem reported by Eric Blake.
57999         * modules/xstrtol (Depends-on): Add gettext-h.
58000
58001 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58002
58003         * lib/strftime.c (advance): New macro.
58004         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58005         incomplete type, so you can't add 0 to it.  Problem and patch
58006         reported by Eelco Dolstra for dietlibc.
58007
58008 2006-10-18  Jim Meyering  <jim@meyering.net>
58009
58010         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58011         type for a local, and rename it: s/up/user_proc/.
58012
58013 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58014
58015         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58016         READ_UTMP_USER_PROCESS.
58017         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58018
58019 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58020
58021         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58022         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58023
58024 2006-10-17  Eric Blake  <ebb9@byu.net>
58025
58026         * lib/sigprocmask.c (sigprocmask): Fix typo.
58027
58028         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58029
58030         * modules/clean-temp (Makefile.am): Don't add to make output...
58031         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58032         config.h.
58033
58034 2006-10-17  Bruno Haible  <bruno@clisp.org>
58035
58036         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58037         differently if DEFAULT_TEXT_DOMAIN is set.
58038
58039 2006-10-16  Bruno Haible  <bruno@clisp.org>
58040
58041         * lib/clean-temp.c: Include fwriteerror.h.
58042
58043 2006-10-16  Bruno Haible  <bruno@clisp.org>
58044
58045         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58046
58047 2006-10-16  Bruno Haible  <bruno@clisp.org>
58048
58049         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58050         * lib/sigprocmask.h: Include <sys/types.h>.
58051         (sigset_t): Use the system's definition if present.
58052
58053 2006-10-17  Eric Blake  <ebb9@byu.net>
58054
58055         * lib/xvasprintf.c (includes): Assume config.h.
58056         * lib/xasprintf.c (includes): Likewise.
58057
58058 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58059
58060         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58061         at least as wide as intmax_t.
58062
58063 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58064
58065         (Imported from Automake.)
58066         * build-aux/gnupload: Update to version 1.1 of directive file.
58067
58068 2006-10-16  Eric Blake  <ebb9@byu.net>
58069
58070         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58071         match Automake 1.10a.
58072
58073 2006-10-14  Bruno Haible  <bruno@clisp.org>
58074
58075         * modules/sigprocmask: New file.
58076         * lib/sigprocmask.h: New file.
58077         * lib/sigprocmask.c: New file.
58078         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58079         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58080         request sigprocmask.o.
58081         (gl_PREREQ_SIGPROCMASK): New macro.
58082         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58083         (Depends-on): Add sigprocmask.
58084         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58085         gt_SIGNALBLOCKING. Test for 'raise' only once.
58086         * lib/fatal-signal.c: Include sigprocmask.h.
58087         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58088         unblock_fatal_signals): Define always.
58089         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58090         sigprocmask.
58091
58092 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58093
58094         Sync from Automake.
58095         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58096         which incorrectly sets the mode of an existing destination
58097         directory.  In some cases the unpatched install-sh could do the
58098         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58099         system.  We hope this is rare in practice, but it's clearly worth
58100         fixing.  Problem reported by Alex Unleashed in
58101         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58102         Also, don't bother to check for -m bugs unless we're using -m;
58103         suggested by Stepan Kasal.
58104
58105 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58106
58107         Sync from Automake.
58108         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58109         `-c' flag, so they appear at the same position as in %FASTDEP%
58110         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58111         which ignores unknown options only after the first non-option.
58112         Bug report against M4 by Nelson H. F. Beebe.
58113
58114 2006-10-13  Jim Meyering  <jim@meyering.net>
58115
58116         Fix a bug in yesterday's change.
58117         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58118         p->fts_statp->st_dev would be used uninitialized.
58119         Ensures that we always call fts_stat on the very first entry.
58120         Miklos Szeredi reported that find -xdev stopped working.
58121
58122 2006-10-12  Bruno Haible  <bruno@clisp.org>
58123
58124         * gnulib-tool (func_get_automake_snippet): Append an automatically
58125         computed EXTRA_DIST augmentation.
58126         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58127         * modules/alloca-opt (Makefile.am): Likewise.
58128         * modules/allocsa (Makefile.am): Likewise.
58129         * modules/arcfour (Makefile.am): Likewise.
58130         * modules/arctwo (Makefile.am): Likewise.
58131         * modules/argmatch (Makefile.am): Likewise.
58132         * modules/argz (Makefile.am): Likewise.
58133         * modules/atexit (Makefile.am): Likewise.
58134         * modules/backupfile (Makefile.am): Likewise.
58135         * modules/byteswap (Makefile.am): Likewise.
58136         * modules/c-strtod (Makefile.am): Likewise.
58137         * modules/c-strtold (Makefile.am): Likewise.
58138         * modules/calloc (Makefile.am): Likewise.
58139         * modules/canon-host (Makefile.am): Likewise.
58140         * modules/canonicalize (Makefile.am): Likewise.
58141         * modules/chdir-long (Makefile.am): Likewise.
58142         * modules/chdir-safer (Makefile.am): Likewise.
58143         * modules/check-version (Makefile.am): Likewise.
58144         * modules/chown (Makefile.am): Likewise.
58145         * modules/cloexec (Makefile.am): Likewise.
58146         * modules/close-stream (Makefile.am): Likewise.
58147         * modules/closeout (Makefile.am): Likewise.
58148         * modules/crc (Makefile.am): Likewise.
58149         * modules/csharpexec (Makefile.am): Likewise.
58150         * modules/cycle-check (Makefile.am): Likewise.
58151         * modules/des (Makefile.am): Likewise.
58152         * modules/dev-ino (Makefile.am): Likewise.
58153         * modules/dirfd (Makefile.am): Likewise.
58154         * modules/dirname (Makefile.am): Likewise.
58155         * modules/dup2 (Makefile.am): Likewise.
58156         * modules/eealloc (Makefile.am): Likewise.
58157         * modules/error (Makefile.am): Likewise.
58158         * modules/euidaccess (Makefile.am): Likewise.
58159         * modules/exclude (Makefile.am): Likewise.
58160         * modules/exitfail (Makefile.am): Likewise.
58161         * modules/fcntl-safer (Makefile.am): Likewise.
58162         * modules/fcntl (Makefile.am): Likewise.
58163         * modules/file-type (Makefile.am): Likewise.
58164         * modules/fileblocks (Makefile.am): Likewise.
58165         * modules/filemode (Makefile.am): Likewise.
58166         * modules/filenamecat (Makefile.am): Likewise.
58167         * modules/fnmatch (Makefile.am): Likewise.
58168         * modules/fopen-safer (Makefile.am): Likewise.
58169         * modules/fpending (Makefile.am): Likewise.
58170         * modules/fprintftime (Makefile.am): Likewise.
58171         * modules/free (Makefile.am): Likewise.
58172         * modules/fsusage (Makefile.am): Likewise.
58173         * modules/ftruncate (Makefile.am): Likewise.
58174         * modules/fts (Makefile.am): Likewise.
58175         * modules/gc-arcfour (Makefile.am): Likewise.
58176         * modules/gc-des (Makefile.am): Likewise.
58177         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58178         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58179         * modules/gc-md4 (Makefile.am): Likewise.
58180         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58181         * modules/gc-sha1 (Makefile.am): Likewise.
58182         * modules/gc (Makefile.am): Likewise.
58183         * modules/getaddrinfo (Makefile.am): Likewise.
58184         * modules/getcwd (Makefile.am): Likewise.
58185         * modules/getdelim (Makefile.am): Likewise.
58186         * modules/getdomainname (Makefile.am): Likewise.
58187         * modules/getgroups (Makefile.am): Likewise.
58188         * modules/gethostname (Makefile.am): Likewise.
58189         * modules/gethrxtime (Makefile.am): Likewise.
58190         * modules/getline (Makefile.am): Likewise.
58191         * modules/getloadavg (Makefile.am): Likewise.
58192         * modules/getlogin_r (Makefile.am): Likewise.
58193         * modules/getndelim2 (Makefile.am): Likewise.
58194         * modules/getopt (Makefile.am): Likewise.
58195         * modules/getpagesize (Makefile.am): Likewise.
58196         * modules/getpass-gnu (Makefile.am): Likewise.
58197         * modules/getpass (Makefile.am): Likewise.
58198         * modules/getsubopt (Makefile.am): Likewise.
58199         * modules/gettime (Makefile.am): Likewise.
58200         * modules/gettimeofday (Makefile.am): Likewise.
58201         * modules/getugroups (Makefile.am): Likewise.
58202         * modules/getusershell (Makefile.am): Likewise.
58203         * modules/glob (Makefile.am): Likewise.
58204         * modules/group-member (Makefile.am): Likewise.
58205         * modules/hard-locale (Makefile.am): Likewise.
58206         * modules/hash (Makefile.am): Likewise.
58207         * modules/hmac-md5 (Makefile.am): Likewise.
58208         * modules/hmac-sha1 (Makefile.am): Likewise.
58209         * modules/human (Makefile.am): Likewise.
58210         * modules/idcache (Makefile.am): Likewise.
58211         * modules/imaxabs (Makefile.am): Likewise.
58212         * modules/imaxdiv (Makefile.am): Likewise.
58213         * modules/inet_ntop (Makefile.am): Likewise.
58214         * modules/inet_pton (Makefile.am): Likewise.
58215         * modules/intprops (Makefile.am): Likewise.
58216         * modules/inttostr (Makefile.am): Likewise.
58217         * modules/inttypes (Makefile.am): Likewise.
58218         * modules/isapipe (Makefile.am): Likewise.
58219         * modules/javaversion (Makefile.am): Likewise.
58220         * modules/lchmod (Makefile.am): Likewise.
58221         * modules/lchown (Makefile.am): Likewise.
58222         * modules/localcharset (Makefile.am): Likewise.
58223         * modules/long-options (Makefile.am): Likewise.
58224         * modules/lstat (Makefile.am): Likewise.
58225         * modules/malloc (Makefile.am): Likewise.
58226         * modules/mathl (Makefile.am): Likewise.
58227         * modules/mbchar (Makefile.am): Likewise.
58228         * modules/md2 (Makefile.am): Likewise.
58229         * modules/md4 (Makefile.am): Likewise.
58230         * modules/md5 (Makefile.am): Likewise.
58231         * modules/memcasecmp (Makefile.am): Likewise.
58232         * modules/memchr (Makefile.am): Likewise.
58233         * modules/memcmp (Makefile.am): Likewise.
58234         * modules/memcoll (Makefile.am): Likewise.
58235         * modules/memcpy (Makefile.am): Likewise.
58236         * modules/memmem (Makefile.am): Likewise.
58237         * modules/memmove (Makefile.am): Likewise.
58238         * modules/mempcpy (Makefile.am): Likewise.
58239         * modules/memrchr (Makefile.am): Likewise.
58240         * modules/memset (Makefile.am): Likewise.
58241         * modules/memxor (Makefile.am): Likewise.
58242         * modules/mkancesdirs (Makefile.am): Likewise.
58243         * modules/mkdir-p (Makefile.am): Likewise.
58244         * modules/mkdir (Makefile.am): Likewise.
58245         * modules/mkdtemp (Makefile.am): Likewise.
58246         * modules/mkstemp (Makefile.am): Likewise.
58247         * modules/mktime (Makefile.am): Likewise.
58248         * modules/modechange (Makefile.am): Likewise.
58249         * modules/mountlist (Makefile.am): Likewise.
58250         * modules/nanosleep (Makefile.am): Likewise.
58251         * modules/obstack (Makefile.am): Likewise.
58252         * modules/openat (Makefile.am): Likewise.
58253         * modules/pagealign_alloc (Makefile.am): Likewise.
58254         * modules/pathmax (Makefile.am): Likewise.
58255         * modules/physmem (Makefile.am): Likewise.
58256         * modules/poll (Makefile.am): Likewise.
58257         * modules/posixtm (Makefile.am): Likewise.
58258         * modules/posixver (Makefile.am): Likewise.
58259         * modules/putenv (Makefile.am): Likewise.
58260         * modules/quote (Makefile.am): Likewise.
58261         * modules/quotearg (Makefile.am): Likewise.
58262         * modules/raise (Makefile.am): Likewise.
58263         * modules/read-file (Makefile.am): Likewise.
58264         * modules/readline (Makefile.am): Likewise.
58265         * modules/readlink (Makefile.am): Likewise.
58266         * modules/readtokens (Makefile.am): Likewise.
58267         * modules/readutmp (Makefile.am): Likewise.
58268         * modules/realloc (Makefile.am): Likewise.
58269         * modules/regex (Makefile.am): Likewise.
58270         * modules/rename-dest-slash (Makefile.am): Likewise.
58271         * modules/rename (Makefile.am): Likewise.
58272         * modules/rijndael (Makefile.am): Likewise.
58273         * modules/rmdir (Makefile.am): Likewise.
58274         * modules/rpmatch (Makefile.am): Likewise.
58275         * modules/safe-read (Makefile.am): Likewise.
58276         * modules/safe-write (Makefile.am): Likewise.
58277         * modules/same-inode (Makefile.am): Likewise.
58278         * modules/same (Makefile.am): Likewise.
58279         * modules/save-cwd (Makefile.am): Likewise.
58280         * modules/savedir (Makefile.am): Likewise.
58281         * modules/setenv (Makefile.am): Likewise.
58282         * modules/settime (Makefile.am): Likewise.
58283         * modules/sha1 (Makefile.am): Likewise.
58284         * modules/sig2str (Makefile.am): Likewise.
58285         * modules/snprintf (Makefile.am): Likewise.
58286         * modules/stat-macros (Makefile.am): Likewise.
58287         * modules/stat-time (Makefile.am): Likewise.
58288         * modules/stdbool (Makefile.am): Likewise.
58289         * modules/stdint (Makefile.am): Likewise.
58290         * modules/stdlib-safer (Makefile.am): Likewise.
58291         * modules/stpcpy (Makefile.am): Likewise.
58292         * modules/stpncpy (Makefile.am): Likewise.
58293         * modules/strcase (Makefile.am): Likewise.
58294         * modules/strcasestr (Makefile.am): Likewise.
58295         * modules/strchrnul (Makefile.am): Likewise.
58296         * modules/strcspn (Makefile.am): Likewise.
58297         * modules/strdup (Makefile.am): Likewise.
58298         * modules/strerror (Makefile.am): Likewise.
58299         * modules/strftime (Makefile.am): Likewise.
58300         * modules/strndup (Makefile.am): Likewise.
58301         * modules/strnlen (Makefile.am): Likewise.
58302         * modules/strpbrk (Makefile.am): Likewise.
58303         * modules/strsep (Makefile.am): Likewise.
58304         * modules/strstr (Makefile.am): Likewise.
58305         * modules/strtod (Makefile.am): Likewise.
58306         * modules/strtoimax (Makefile.am): Likewise.
58307         * modules/strtok_r (Makefile.am): Likewise.
58308         * modules/strtol (Makefile.am): Likewise.
58309         * modules/strtoll (Makefile.am): Likewise.
58310         * modules/strtoul (Makefile.am): Likewise.
58311         * modules/strtoull (Makefile.am): Likewise.
58312         * modules/strtoumax (Makefile.am): Likewise.
58313         * modules/strverscmp (Makefile.am): Likewise.
58314         * modules/sys_socket (Makefile.am): Likewise.
58315         * modules/sys_stat (Makefile.am): Likewise.
58316         * modules/sysexits (Makefile.am): Likewise.
58317         * modules/time_r (Makefile.am): Likewise.
58318         * modules/timegm (Makefile.am): Likewise.
58319         * modules/timespec (Makefile.am): Likewise.
58320         * modules/tmpfile-safer (Makefile.am): Likewise.
58321         * modules/trim (Makefile.am): Likewise.
58322         * modules/unistd-safer (Makefile.am): Likewise.
58323         * modules/unlinkdir (Makefile.am): Likewise.
58324         * modules/unlocked-io (Makefile.am): Likewise.
58325         * modules/userspec (Makefile.am): Likewise.
58326         * modules/utime (Makefile.am): Likewise.
58327         * modules/utimecmp (Makefile.am): Likewise.
58328         * modules/utimens (Makefile.am): Likewise.
58329         * modules/vasnprintf (Makefile.am): Likewise.
58330         * modules/vasprintf (Makefile.am): Likewise.
58331         * modules/vsnprintf (Makefile.am): Likewise.
58332         * modules/xalloc (Makefile.am): Likewise.
58333         * modules/xgetcwd (Makefile.am): Likewise.
58334         * modules/xnanosleep (Makefile.am): Likewise.
58335         * modules/xreadlink (Makefile.am): Likewise.
58336         * modules/xstrtod (Makefile.am): Likewise.
58337         * modules/xstrtol (Makefile.am): Likewise.
58338         * modules/xstrtold (Makefile.am): Likewise.
58339         * modules/yesno (Makefile.am): Likewise.
58340         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
58341
58342 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58343
58344         * modules/error (Makefile.am): Distribute files through
58345         EXTRA_DIST, not lib_SOURCES.
58346
58347 2006-10-12  Eric Blake  <ebb9@byu.net>
58348
58349         * modules/error (Makefile.am): Distribute files in /lib.
58350         * modules/obstack (Makefile.am): Likewise.
58351
58352 2006-10-12  Bruno Haible  <bruno@clisp.org>
58353
58354         * modules/acl (Makefile.am): Distribute all files in lib/ through
58355         EXTRA_DIST.
58356         * modules/arcfour (Makefile.am): Likewise.
58357         * modules/arctwo (Makefile.am): Likewise.
58358         * modules/argmatch (Makefile.am): Likewise.
58359         * modules/argz (Makefile.am): Likewise.
58360         * modules/atexit (Makefile.am): Likewise.
58361         * modules/backupfile (Makefile.am): Likewise.
58362         * modules/c-strtod (Makefile.am): Likewise.
58363         * modules/c-strtold (Makefile.am): Likewise.
58364         * modules/calloc (Makefile.am): Likewise.
58365         * modules/canon-host (Makefile.am): Likewise.
58366         * modules/canonicalize (Makefile.am): Likewise.
58367         * modules/chdir-long (Makefile.am): Likewise.
58368         * modules/chdir-safer (Makefile.am): Likewise.
58369         * modules/check-version (Makefile.am): Likewise.
58370         * modules/chown (Makefile.am): Likewise.
58371         * modules/cloexec (Makefile.am): Likewise.
58372         * modules/close-stream (Makefile.am): Likewise.
58373         * modules/closeout (Makefile.am): Likewise.
58374         * modules/crc (Makefile.am): Likewise.
58375         * modules/cycle-check (Makefile.am): Likewise.
58376         * modules/des (Makefile.am): Likewise.
58377         * modules/dirfd (Makefile.am): Likewise.
58378         * modules/dirname (Makefile.am): Likewise.
58379         * modules/dup2 (Makefile.am): Likewise.
58380         * modules/euidaccess (Makefile.am): Likewise.
58381         * modules/exclude (Makefile.am): Likewise.
58382         * modules/exitfail (Makefile.am): Likewise.
58383         * modules/fcntl-safer (Makefile.am): Likewise.
58384         * modules/file-type (Makefile.am): Likewise.
58385         * modules/fileblocks (Makefile.am): Likewise.
58386         * modules/filemode (Makefile.am): Likewise.
58387         * modules/filenamecat (Makefile.am): Likewise.
58388         * modules/fnmatch (Makefile.am): Likewise.
58389         * modules/fopen-safer (Makefile.am): Likewise.
58390         * modules/fpending (Makefile.am): Likewise.
58391         * modules/fprintftime (Makefile.am): Likewise.
58392         * modules/free (Makefile.am): Likewise.
58393         * modules/fsusage (Makefile.am): Likewise.
58394         * modules/ftruncate (Makefile.am): Likewise.
58395         * modules/fts (Makefile.am): Likewise.
58396         * modules/gc (Makefile.am): Likewise.
58397         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58398         * modules/getaddrinfo (Makefile.am): Likewise.
58399         * modules/getcwd (Makefile.am): Likewise.
58400         * modules/getdelim (Makefile.am): Likewise.
58401         * modules/getdomainname (Makefile.am): Likewise.
58402         * modules/getgroups (Makefile.am): Likewise.
58403         * modules/gethostname (Makefile.am): Likewise.
58404         * modules/gethrxtime (Makefile.am): Likewise.
58405         * modules/getline (Makefile.am): Likewise.
58406         * modules/getloadavg (Makefile.am): Likewise.
58407         * modules/getlogin_r (Makefile.am): Likewise.
58408         * modules/getopt (Makefile.am): Likewise.
58409         * modules/getpass (Makefile.am): Likewise.
58410         * modules/getpass-gnu (Makefile.am): Likewise.
58411         * modules/getsubopt (Makefile.am): Likewise.
58412         * modules/gettime (Makefile.am): Likewise.
58413         * modules/gettimeofday (Makefile.am): Likewise.
58414         * modules/getugroups (Makefile.am): Likewise.
58415         * modules/getusershell (Makefile.am): Likewise.
58416         * modules/glob (Makefile.am): Likewise.
58417         * modules/group-member (Makefile.am): Likewise.
58418         * modules/hard-locale (Makefile.am): Likewise.
58419         * modules/hash (Makefile.am): Likewise.
58420         * modules/hmac-md5 (Makefile.am): Likewise.
58421         * modules/hmac-sha1 (Makefile.am): Likewise.
58422         * modules/human (Makefile.am): Likewise.
58423         * modules/idcache (Makefile.am): Likewise.
58424         * modules/imaxabs (Makefile.am): Likewise.
58425         * modules/imaxdiv (Makefile.am): Likewise.
58426         * modules/inet_ntop (Makefile.am): Likewise.
58427         * modules/inet_pton (Makefile.am): Likewise.
58428         * modules/inttostr (Makefile.am): Likewise.
58429         * modules/isapipe (Makefile.am): Likewise.
58430         * modules/lchown (Makefile.am): Likewise.
58431         * modules/long-options (Makefile.am): Likewise.
58432         * modules/lstat (Makefile.am): Likewise.
58433         * modules/malloc (Makefile.am): Likewise.
58434         * modules/mathl (Makefile.am): Likewise.
58435         * modules/mbchar (Makefile.am): Likewise.
58436         * modules/md2 (Makefile.am): Likewise.
58437         * modules/md4 (Makefile.am): Likewise.
58438         * modules/md5 (Makefile.am): Likewise.
58439         * modules/memcasecmp (Makefile.am): Likewise.
58440         * modules/memchr (Makefile.am): Likewise.
58441         * modules/memcmp (Makefile.am): Likewise.
58442         * modules/memcoll (Makefile.am): Likewise.
58443         * modules/memcpy (Makefile.am): Likewise.
58444         * modules/memmem (Makefile.am): Likewise.
58445         * modules/memmove (Makefile.am): Likewise.
58446         * modules/mempcpy (Makefile.am): Likewise.
58447         * modules/memrchr (Makefile.am): Likewise.
58448         * modules/memset (Makefile.am): Likewise.
58449         * modules/memxor (Makefile.am): Likewise.
58450         * modules/mkancesdirs (Makefile.am): Likewise.
58451         * modules/mkdir (Makefile.am): Likewise.
58452         * modules/mkdir-p (Makefile.am): Likewise.
58453         * modules/mkdtemp (Makefile.am): Likewise.
58454         * modules/mkstemp (Makefile.am): Likewise.
58455         * modules/mktime (Makefile.am): Likewise.
58456         * modules/modechange (Makefile.am): Likewise.
58457         * modules/mountlist (Makefile.am): Likewise.
58458         * modules/nanosleep (Makefile.am): Likewise.
58459         * modules/openat (Makefile.am): Likewise.
58460         * modules/pagealign_alloc (Makefile.am): Likewise.
58461         * modules/physmem (Makefile.am): Likewise.
58462         * modules/poll (Makefile.am): Likewise.
58463         * modules/posixtm (Makefile.am): Likewise.
58464         * modules/posixver (Makefile.am): Likewise.
58465         * modules/putenv (Makefile.am): Likewise.
58466         * modules/quote (Makefile.am): Likewise.
58467         * modules/quotearg (Makefile.am): Likewise.
58468         * modules/raise (Makefile.am): Likewise.
58469         * modules/read-file (Makefile.am): Likewise.
58470         * modules/readline (Makefile.am): Likewise.
58471         * modules/readlink (Makefile.am): Likewise.
58472         * modules/readtokens (Makefile.am): Likewise.
58473         * modules/readutmp (Makefile.am): Likewise.
58474         * modules/realloc (Makefile.am): Likewise.
58475         * modules/regex (Makefile.am): Likewise.
58476         * modules/rename (Makefile.am): Likewise.
58477         * modules/rename-dest-slash (Makefile.am): Likewise.
58478         * modules/rijndael (Makefile.am): Likewise.
58479         * modules/rmdir (Makefile.am): Likewise.
58480         * modules/rpmatch (Makefile.am): Likewise.
58481         * modules/safe-read (Makefile.am): Likewise.
58482         * modules/safe-write (Makefile.am): Likewise.
58483         * modules/same (Makefile.am): Likewise.
58484         * modules/save-cwd (Makefile.am): Likewise.
58485         * modules/savedir (Makefile.am): Likewise.
58486         * modules/setenv (Makefile.am): Likewise.
58487         * modules/settime (Makefile.am): Likewise.
58488         * modules/sha1 (Makefile.am): Likewise.
58489         * modules/sig2str (Makefile.am): Likewise.
58490         * modules/snprintf (Makefile.am): Likewise.
58491         * modules/stdlib-safer (Makefile.am): Likewise.
58492         * modules/stpcpy (Makefile.am): Likewise.
58493         * modules/stpncpy (Makefile.am): Likewise.
58494         * modules/strcase (Makefile.am): Likewise.
58495         * modules/strcasestr (Makefile.am): Likewise.
58496         * modules/strchrnul (Makefile.am): Likewise.
58497         * modules/strcspn (Makefile.am): Likewise.
58498         * modules/strdup (Makefile.am): Likewise.
58499         * modules/strerror (Makefile.am): Likewise.
58500         * modules/strftime (Makefile.am): Likewise.
58501         * modules/strndup (Makefile.am): Likewise.
58502         * modules/strnlen (Makefile.am): Likewise.
58503         * modules/strpbrk (Makefile.am): Likewise.
58504         * modules/strsep (Makefile.am): Likewise.
58505         * modules/strstr (Makefile.am): Likewise.
58506         * modules/strtod (Makefile.am): Likewise.
58507         * modules/strtoimax (Makefile.am): Likewise.
58508         * modules/strtok_r (Makefile.am): Likewise.
58509         * modules/strtol (Makefile.am): Likewise.
58510         * modules/strtoll (Makefile.am): Likewise.
58511         * modules/strtoul (Makefile.am): Likewise.
58512         * modules/strtoull (Makefile.am): Likewise.
58513         * modules/strtoumax (Makefile.am): Likewise.
58514         * modules/strverscmp (Makefile.am): Likewise.
58515         * modules/time_r (Makefile.am): Likewise.
58516         * modules/timegm (Makefile.am): Likewise.
58517         * modules/tmpfile-safer (Makefile.am): Likewise.
58518         * modules/unistd-safer (Makefile.am): Likewise.
58519         * modules/unlinkdir (Makefile.am): Likewise.
58520         * modules/userspec (Makefile.am): Likewise.
58521         * modules/utime (Makefile.am): Likewise.
58522         * modules/utimecmp (Makefile.am): Likewise.
58523         * modules/utimens (Makefile.am): Likewise.
58524         * modules/vasnprintf (Makefile.am): Likewise.
58525         * modules/vasprintf (Makefile.am): Likewise.
58526         * modules/vsnprintf (Makefile.am): Likewise.
58527         * modules/xalloc (Makefile.am): Likewise.
58528         * modules/xgetcwd (Makefile.am): Likewise.
58529         * modules/xnanosleep (Makefile.am): Likewise.
58530         * modules/xreadlink (Makefile.am): Likewise.
58531         * modules/xstrtod (Makefile.am): Likewise.
58532         * modules/xstrtol (Makefile.am): Likewise.
58533         * modules/xstrtold (Makefile.am): Likewise.
58534         * modules/yesno (Makefile.am): Likewise.
58535
58536 2006-10-12  Jim Meyering  <jim@meyering.net>
58537
58538         * m4/getloadavg.m4: Revert the change below.
58539
58540         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58541         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58542         fail with a symlink, which is what coreutils' ./bootstrap now
58543         creates by default.
58544
58545 2006-10-12  Bruno Haible  <bruno@clisp.org>
58546
58547         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58548         mingw.
58549         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58550         MSVC and mingw explicitly.
58551
58552 2006-10-11  Simon Josefsson  <jas@extundo.com>
58553             Bruno Haible  <bruno@clisp.org>
58554
58555         Add support for multiple gnulib-tool invocations in the scope of a
58556         single configure.ac file.
58557         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58558         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58559         with the same contents as the _LIBADD variable.
58560         (func_emit_initmacro_start, func_emit_initmacro_end,
58561         func_emit_initmacro_done): New functions.
58562         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58563         gl_LIBOBJS and gl_LTLIBOBJS.
58564
58565 2006-10-11  Bruno Haible  <bruno@clisp.org>
58566
58567         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58568         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58569         autoreconf. Instead, invoke autopoint explicitly but move back the
58570         *.m4 files from gnulib.
58571
58572 2006-10-11  Bruno Haible  <bruno@clisp.org>
58573
58574         * gnulib-tool (func_usage): Make module names after --create-testdir
58575         optional.
58576         (func_create_testdir): If no module was specified, use nearly all
58577         modules.
58578
58579 2006-10-12  Jim Meyering  <jim@meyering.net>
58580
58581         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58582         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58583         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58584         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58585         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58586         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58587         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58588         (fts_set_stat_required): New function.
58589         (fts_open): Defer the calls to fts_stat, if possible or requested.
58590         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58591         into fts_stat itself.
58592         (fts_read): Perform any required (deferred) fts_stat call.
58593         (fts_build): Likewise, for the directory we're about to open and read.
58594         In the readdir loop, carefully decide whether each entry will require
58595         an eventual call to fts_stat, using dirent.d_type info if available.
58596         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58597         a command line argument into this function.  Update all callers.
58598         Map a return value of FTS_DOT to FTS_D for a command line argument.
58599         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58600         Thanks to Miklos Szeredi for his tenacity and for the initial
58601         bug report about "find" failing on a FUSE-based file system.
58602
58603         * lib/fts.c (fts_open): Use consistent indentation.
58604
58605 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58606
58607         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58608         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58609         reported by Jim Meyering.  All uses of cache variables renamed
58610         to match Autoconf's.
58611         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58612         the other one.
58613
58614         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58615         Fix misspelling in diagnostic.
58616
58617 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58618
58619         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58620         defined.  Problem reported by Matthew Woehlke.
58621
58622         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58623         Add support for Tandem NonStop R series.
58624         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58625         Use new macro.
58626
58627         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58628         (has_trailing_slash): Omit size arg; all callers changed.
58629         Omit 'inline', since it doesn't help performance and we'd
58630         need to configure it.
58631         Don't count //, ///, etc. as having a trailing slash.
58632         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58633         (rpl_rename_dest_slash): On failure, use rename's errno rather
58634         than (in some cases) an incorrect or junk errno.
58635         Simplify code by removing need to compute length; this does
58636         cause it to make two passes instead of one over the file name,
58637         but it's worth it.
58638
58639         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58640         change, since Autoconf's version may no longer be appropriate now
58641         that we are using CVS Autoconf's version.  Add support for Tandem.
58642
58643 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58644             Bruno Haible  <bruno@clisp.org>
58645
58646         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58647         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58648         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58649         gl_AC_TYPE_LONG_LONG.
58650
58651         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58652         instead of HAVE_LONG_LONG.
58653         * lib/printf-args.c (printf_fetchargs): Likewise.
58654         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58655         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58656         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58657         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58658         gl_AC_TYPE_LONG_LONG.
58659
58660 2006-10-11  Bruno Haible  <bruno@clisp.org>
58661
58662         * m4/longlong.m4: Add comments.
58663         * m4/ulonglong.m4: Likewise.
58664
58665 2006-10-10  Bruno Haible  <bruno@clisp.org>
58666
58667         Make it possible to #define stpcpy, strdup to aliases.
58668         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58669         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58670
58671 2006-10-10  Bruno Haible  <bruno@clisp.org>
58672
58673         Make it possible to #define gcd to an alias.
58674         * lib/gcd.c: Include config.h.
58675
58676 2006-10-10  Bruno Haible  <bruno@clisp.org>
58677
58678         Make it possible to #define c_isascii to an alias.
58679         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58680         defined. Undefine the macros before defining them, to avoid gcc
58681         warnings.
58682         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58683         define NO_C_CTYPE_MACROS early.
58684
58685 2006-10-10  Bruno Haible  <bruno@clisp.org>
58686
58687         Make it possible to #define set_program_name to an alias.
58688         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58689         ENABLE_RELOCATABLE early.
58690
58691 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58692
58693         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58694         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58695         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58696         More generally, don't assume that 64-bit signed int is available
58697         if unsigned int is, and vice versa.
58698         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58699         unsigned symbols, not on their signed counterparts.
58700         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58701         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58702         (UINT64_C, UINTMAX_C):
58703         Likewise.
58704         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58705         unsigned counterparts.
58706         (Have_long_long, Unsigned): New macros.
58707         (Int): Renamed from INT.
58708         (strtoimax): Use the new macros.
58709         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58710         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58711         * modules/inttypes (inttypes.h): Substitute
58712         HAVE_UNSIGNED_LONG_LONG_INT.
58713         * modules/stdint (stdint.h): Likewise.
58714         (Files): Add m4/ulonglong.m4.
58715
58716 2006-10-10  Bruno Haible  <bruno@clisp.org>
58717
58718         Fix a gcc -Wshadow warning.
58719         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58720         to 'bucket'.
58721         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58722         gl_linked_indexof_from_to): Likewise.
58723         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58724         Likewise.
58725         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58726         Likewise.
58727         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58728         Reported by Eric Blake.
58729
58730 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58733         for NetBSD.  Problem reported by Bruno Haible.
58734
58735 2006-10-09  Jim Meyering  <jim@meyering.net>
58736
58737         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58738         Patch from Bruno Haible.
58739
58740 2006-10-09  Jim Meyering  <jim@meyering.net>
58741
58742         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58743         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58744         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58745
58746 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58747
58748         Don't include <config.h> twice; this doesn't work in some cases,
58749         e.g., when config.h has "#define intmax_t long long int" and
58750         we include <config.h>, <inttypes.h>, <config.h> in that order.
58751         Problem reported by Matthew Woehlke in:
58752         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58753         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58754         * lib/fts-cycle.c: Don't include config.h.
58755         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58756         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58757         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58758         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58759         inttypes.h.
58760         * lib/xstrtoumax.c: Likewise.
58761         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58762         __strtol and the like, so that this module is more like its siblings.
58763         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58764         Remove; no longer needed now that we assume gnulib inttypes.h.
58765
58766 2006-10-08  Bruno Haible  <bruno@clisp.org>
58767
58768         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58769         option.
58770
58771 2006-10-07  Jim Meyering  <jim@meyering.net>
58772
58773         * modules/inttypes (inttypes.h): Revert what seems to have been
58774         an inadvertent part of today's change: use "|", not "/" in the
58775         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58776
58777 2006-10-07  Bruno Haible  <bruno@clisp.org>
58778
58779         * modules/sublist: New file.
58780
58781 2006-10-07  Bruno Haible  <bruno@clisp.org>
58782
58783         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58784         * modules/argz (argz.h): Likewise.
58785         * modules/arpa_inet (arpa/inet.h): Likewise.
58786         * modules/byteswap (byteswap.h): Likewise.
58787         * modules/configmake (configmake.h): Likewise.
58788         * modules/fcntl (fcntl.h): Likewise.
58789         * modules/fnmatch (fnmatch.h): Likewise.
58790         * modules/getopt (getopt.h): Likewise.
58791         * modules/glob (glob.h): Likewise.
58792         * modules/inttypes (inttypes.h): Likewise.
58793         * modules/netinet_in (netinet/in.h): Likewise.
58794         * modules/poll (poll.h): Likewise.
58795         * modules/stdbool (stdbool.h): Likewise.
58796         * modules/stdint (stdint.h): Likewise.
58797         * modules/sys_select (sys/select.h): Likewise.
58798         * modules/sys_socket (sys/socket.h): Likewise.
58799         * modules/sys_stat (sys/stat.h): Likewise.
58800         * modules/sysexits (sysexits.h): Likewise.
58801         * modules/unistd (unistd.h): Likewise.
58802         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58803         Add a "DO NOT EDIT" comment to the generated file.
58804         (func_import): Likewise for gnulib-comp.m4.
58805
58806 2006-10-07  Bruno Haible  <bruno@clisp.org>
58807
58808         * lib/gl_sublist.h: New file.
58809         * lib/gl_sublist.c: New file.
58810
58811 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58812
58813         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58814         name (relative to the original working directory) and the file
58815         name component (relative to the temporary working directory).  All
58816         callers changed.
58817         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58818         * lib/mkdir-p.c (make_dir_parents): Likewise.
58819         * lib/mkdir-p.h (make_dir_parents): Likewise.
58820
58821 2006-10-06  Eric Blake  <ebb9@byu.net>
58822
58823         Define several macros for use by the clean-temp module.
58824         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58825         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58826         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58827
58828         * lib/clean-temp.h (close_stream_temp): New declaration.
58829         * lib/clean-temp.c (includes): Pull in headers according to what
58830         other modules are in use.
58831         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58832
58833 2006-10-06  Bruno Haible  <bruno@clisp.org>
58834
58835         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58836         instead of fopen, fwriteerror.
58837
58838 2006-10-06  Bruno Haible  <bruno@clisp.org>
58839
58840         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58841         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58842         int.
58843         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58844         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58845         Return an error indicator.
58846         Suggested by Eric Blake.
58847
58848 2006-10-06  Bruno Haible  <bruno@clisp.org>
58849
58850         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58851         Reported by Eric Blake.
58852
58853 2006-10-06  Bruno Haible  <bruno@clisp.org>
58854
58855         * modules/closeout (Description): Mention stderr too.
58856
58857 2006-10-06  Bruno Haible  <bruno@clisp.org>
58858         and Paul Eggert  <eggert@cs.ucla.edu>
58859
58860         * lib/closeout.c (close_stdout): Also close stderr.
58861         * lib/closeout.h: Update comment.
58862
58863 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58864
58865         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58866         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58867         * lib/dirchownmod.c: Include lchown.h.
58868         * lib/lchown.c: Don't include files that lchown.h now includes.
58869         Don't declare chown, since lchown.h now does that.
58870         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58871         (lchown): Define to rpl_chown if lchown is declared but
58872         does not exist.  Declare using a prototype if lchown is not
58873         declared.  Add a copyright notice.
58874         * lib/mkstemp.h: Include <unistd.h>.
58875         * lib/openat.c: Include lchown.h.
58876
58877         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58878         we now test for that separately.
58879         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58880         rather than O_NOFOLLOW, when testing whether it's possible to
58881         avoid a race condition reliably.
58882         * lib/savewd.c (savewd_chdir): Likewise.
58883
58884         Remove macros that are no longer needed now that stdint.h is
58885         reliable.
58886         * lib/fsusage.c (UINTMAX_MAX): Remove.
58887         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58888         * lib/utimecmp.c (SIZE_MAX): Remove.
58889
58890         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58891
58892         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58893         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58894         O_NOATIME works.
58895
58896 2006-10-05  Bruno Haible  <bruno@clisp.org>
58897
58898         * lib/gl_list.h (gl_sortedlist_search_from_to,
58899         gl_sortedlist_indexof_from_to): New declarations.
58900         (gl_list_implementation): New fields sortedlist_search_from_to,
58901         sortedlist_indexof_from_to.
58902         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58903         inline functions.
58904         * lib/gl_list.c (gl_sortedlist_search_from_to,
58905         gl_sortedlist_indexof_from_to): New functions.
58906         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58907         function.
58908         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58909         (gl_array_sortedlist_search_from_to): New function.
58910         (gl_array_list_implementation): Update.
58911         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58912         function.
58913         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58914         (gl_carray_sortedlist_search_from_to): New function.
58915         (gl_carray_list_implementation): Update.
58916         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58917         gl_linked_sortedlist_indexof_from_to): New functions.
58918         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58919         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58920         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58921         gl_tree_sortedlist_indexof_from_to): New functions.
58922         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58923         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58924         Update.
58925         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58926         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58927         Update.
58928
58929 2006-10-05  Bruno Haible  <bruno@clisp.org>
58930
58931         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58932         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58933         (struct gl_list_implementation): Add fields search_from_to,
58934         indexof_from_to. Remove fields search, indexof.
58935         (gl_list_search): Use the search_from_to method.
58936         (gl_list_search_from, gl_list_search_from_to): New functions.
58937         (gl_list_indexof): Use the indexof_from_to method.
58938         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58939         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58940         (gl_list_search_from, gl_list_search_from_to): New functions.
58941         (gl_list_indexof): Use the indexof_from_to method.
58942         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58943         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58944         gl_array_indexof. Add start_index, end_index arguments.
58945         (gl_array_search_from_to): Renamed from gl_array_search. Add
58946         start_index, end_index arguments.
58947         (gl_array_remove, gl_array_list_implementation): Update.
58948         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58949         gl_carray_indexof. Add start_index, end_index arguments.
58950         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58951         start_index, end_index arguments.
58952         (gl_carray_remove, gl_carray_list_implementation): Update.
58953         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58954         gl_linked_search. Add start_index, end_index arguments.
58955         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58956         start_index, end_index arguments.
58957         (gl_linked_remove): Update.
58958         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58959         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58960         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58961         field to 'size_t'.
58962         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58963         gl_tree_search. Add start_index, end_index arguments.
58964         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58965         start_index, end_index arguments.
58966         (gl_tree_remove): Update.
58967         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58968         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58969         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58970         function.
58971         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58972         gl_tree_search. Add start_index, end_index arguments.
58973         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58974         start_index, end_index arguments.
58975         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58976         Update.
58977         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58978
58979 2006-10-05  Bruno Haible  <bruno@clisp.org>
58980
58981         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58982
58983         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58984         fwriteerror_temp): New declarations.
58985         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58986         (descriptors): New variable.
58987         (cleanup): First, close the descriptors.
58988         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58989         fclose_temp, fwriteerror_temp): New functions.
58990
58991 2006-10-04  Jim Meyering  <jim@meyering.net>
58992
58993         * lib/fts.c (fts_open): Tiny comment change.
58994
58995 2006-10-04  Bruno Haible  <bruno@clisp.org>
58996
58997         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58998         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58999         gl_LOCK_BODY.
59000         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59001         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59002         gl_LOCK_EARLY_BODY.
59003         (gl_LOCK): Require gl_LOCK_BODY.
59004
59005 2006-10-04  Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59008         (gl_oset_search_atleast): New declaration.
59009         (struct gl_oset_implementation): Add field 'search_atleast'.
59010         (gl_oset_search_atleast): New inline function.
59011         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59012         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59013         (gl_array_oset_implementation): Update.
59014         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59015         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59016         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59017
59018 2006-10-04  Bruno Haible  <bruno@clisp.org>
59019
59020         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59021
59022 2006-10-03  Bruno Haible  <bruno@clisp.org>
59023
59024         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59025         from gl_avltreehash_list_implementation.
59026
59027 2006-10-03  Bruno Haible  <bruno@clisp.org>
59028
59029         * lib/gl_oset.c (gl_oset_add): Fix return type.
59030
59031 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59032
59033         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59034
59035 2006-10-02  Eric Blake  <ebb9@byu.net>
59036
59037         * modules/strnlen (Depends-on): Add extensions.
59038
59039 2006-10-02  Eric Blake  <ebb9@byu.net>
59040
59041         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59042         definition in 2.60+.
59043
59044 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59045
59046         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59047         checks.
59048
59049 2006-10-02  Bruno Haible  <bruno@clisp.org>
59050
59051         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59052         to the AUTOMAKE_OPTIONS.
59053         Reported by Jim Meyering.
59054
59055 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59056
59057         Work around bug in Solaris 10 /proc file system:
59058         /proc/self/fd/NNN/.. isn't the parent directory of
59059         the directory whose file descriptor is NNN.  This needs to
59060         be worked around at run time, not compile time, since a
59061         program might be built on Solaris 8, where things work, and
59062         run on Solaris 10.
59063         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59064         to use the following interface instead:
59065         (OPENAT_BUFFER_SIZE): New macro.
59066         (openat_proc_name): New function.
59067         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59068         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59069         Likewise.
59070         * lib/openat-proc.c: New file.
59071         * modules/openat (Files): Add lib/openat-proc.c.
59072         (Depends-on): Add same-inode, stdbool.
59073         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59074
59075 2006-09-29  Bruno Haible  <bruno@clisp.org>
59076
59077         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59078         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59079         argument. Set stdout_closed before testing for ferror, not after.
59080         (fwriteerror, fwriteerror_no_ebadf): New functions.
59081
59082 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59083
59084         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59085
59086 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59087
59088         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59089         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59090
59091 2006-09-28  Jim Meyering  <jim@meyering.net>
59092
59093         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59094         Include <unistd.h>.
59095
59096 2006-09-28  Bruno Haible  <bruno@clisp.org>
59097
59098         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59099         * modules/linkedhash-list (Depends-on): Likewise.
59100         * modules/rbtreehash-list (Depends-on): Likewise.
59101
59102 2006-09-28  Bruno Haible  <bruno@clisp.org>
59103
59104         * lib/strndup.h: Simplify the redefinition of strndup.
59105         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59106         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59107
59108 2006-09-28  Bruno Haible  <bruno@clisp.org>
59109
59110         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59111         * lib/gl_linkedhash_list.c: Likewise.
59112         * lib/gl_rbtreehash_list.c: Likewise.
59113
59114 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59117         getaddrinfo.
59118
59119         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59120         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59121         it causes <stdio_ext.h> to cause a compile-time error.
59122         Problem reported by Nelson H. F. Beebe.
59123         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59124         of HAVE_DECL___PENDING.
59125
59126         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59127         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59128         declaration.
59129
59130 2006-09-27  Jim Meyering  <jim@meyering.net>
59131
59132         This file could end up with a definition for a function
59133         named __strndup, rather than rpl_strndup on a system with
59134         incomplete weak_alias support.
59135         * lib/strndup.c (strndup): Rename from __strndup.
59136         Remove #defines that used to map __strndup to strndup.
59137         Don't use K&R prototypes.
59138         Remove LIBC-related code, since this file is not sync'd with glibc.
59139         * lib/strndup.h: Revamp, accordingly.
59140         * m4/strndup.m4: Modernize.
59141
59142 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59143
59144         * modules/savewd (Depends-on): Add 'raise'.
59145         * lib/savewd.c: Include <signal.h>, for 'raise'.
59146
59147 2006-09-26  Jim Meyering  <jim@meyering.net>
59148
59149         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59150         when we detect Darwin 8.7.0's acl_get_file bug.
59151         Rearrange to perform the new (below) run-test while $LIBS
59152         contains any acl-related library.  Set USE_ACL at the end.
59153         (gl_ACL_GET_FILE): New function.
59154
59155 2006-09-26  Eric Blake  <ebb9@byu.net>
59156
59157         * lib/verror.c: Include <config.h> unconditionally.
59158
59159 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59160
59161         * modules/clock-time (Maintainer): Add self.
59162         * modules/getlogin_r (Depends-on): Add extensions.
59163
59164 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59165
59166         * modules/clock-time: New module.
59167         * modules/nanosleep (Depends-on): Add clock-time.
59168         * modules/gethrxtime (Depends-on): Likewise.
59169         * modules/gettime (Depends-on): Likewise.
59170         * modules/settime (Depends-on): Likewise.
59171
59172         * modules/fts-lgpl: Depend on openat.
59173         * modules/mkancesdirs: Depend on savewd.
59174         * modules/mkdir-p: Likewise.
59175
59176 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59177
59178         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59179
59180         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59181         `gl_have_arbitrary_file_name_length_limit' to
59182         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59183         actually works between configure runs.
59184
59185 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59186             Bruno Haible  <bruno@clisp.org>
59187
59188         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59189
59190 2006-09-25  Jim Meyering  <jim@meyering.net>
59191
59192         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59193         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59194
59195 2006-09-25  Eric Blake  <ebb9@byu.net>
59196
59197         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59198         exec's in 2006-09-18 patch when shuffling fds.
59199
59200 2006-09-25  Bruno Haible  <bruno@clisp.org>
59201
59202         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
59203         Reported by Jim Meyering.
59204
59205 2006-09-24  Jim Meyering  <jim@meyering.net>
59206
59207         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
59208         compare a pointer against a literal "0".  That caused failures with
59209         at least HP-UX's hpcc.
59210
59211 2006-09-22  Simon Josefsson  <jas@extundo.com>
59212
59213         * modules/gc-sha1:
59214         * modules/gc-md4:
59215         * modules/gc-hmac-sha1:
59216         * modules/gc-hmac-md5:
59217         * modules/gc-des:
59218         * modules/gc-arcfour: Distribute more files.
59219
59220 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59221
59222         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
59223         (gl_linked_iterator_from_to): Initialize struct completely.
59224         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
59225         (gl_tree_iterator_from_to): Likewise
59226         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
59227         * lib/gl_array_list.c [lint] (gl_array_iterator)
59228         (gl_array_iterator_from_to): Likewise.
59229         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
59230         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
59231         (gl_carray_iterator_from_to): Likewise.
59232
59233         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
59234         * lib/md4.c (md4_process_block): Remove unused variable.
59235         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
59236         parentheses for clarity.
59237
59238 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59239
59240         * modules/bison-i18n (Depends-on): Add gettext.
59241
59242 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59243
59244         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
59245         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59246         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
59247         also add missing comma that caused broken test.
59248         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
59249         stdlib.h, for `abort'.
59250         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
59251         variables.
59252         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
59253         include unistd.h if present, for `rmdir'.
59254         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
59255         variables.
59256         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
59257         in the process include standard headers for prototypes.
59258         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
59259         gets declared on GNU/Linux.
59260         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
59261         unistd.h, for `rmdir'.
59262         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
59263
59264         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
59265         always true.
59266         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
59267
59268         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
59269
59270 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59271
59272         * gnulib-tool (func_version): Create output all at once.  This
59273         may help avoid triggering unnecessary SIGPIPEs, and at any
59274         rate it doesn't hurt.
59275
59276 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59277             Bruno Haible  <bruno@clisp.org>
59278
59279         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59280         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59281         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59282
59283         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59284         (gl_FUNC_VASPRINTF): Invoke it.
59285
59286 2006-09-22  Bruno Haible  <bruno@clisp.org>
59287
59288         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59289         getloadavg.c as first argument.
59290
59291 2006-09-22  Bruno Haible  <bruno@clisp.org>
59292
59293         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59294         at the beginning of the gl_INIT macro.
59295         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59296         gl_GETLOADAVG.
59297
59298 2006-09-22  Bruno Haible  <bruno@clisp.org>
59299
59300         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59301         module.
59302         Suggested by Ralf Wildenhues.
59303
59304 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59305
59306         Import this patch from libc:
59307
59308         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59309
59310         * lib/regex_internal.c (re_string_reconstruct): Handle
59311         offset < pstr->valid_raw_len && pstr->offsets_needed case.
59312         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
59313         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59314         re_string_context_at.
59315
59316         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59317         now requires it.
59318         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
59319         gl_REGEX now does it for us.
59320         (gl_REGEX): Add test taken from
59321         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
59322
59323         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
59324         Check that large offsets work.  Modernize Autoconf usages.
59325         Prefer "yes" to mean a good thing rather than a bad.
59326         Don't put "#define mkstemp" in config.h, as this might interfere
59327         with standard system headers that "#define mkstemp mkstemp64".
59328
59329         * modules/mkstemp (Depends-on): Add extensions, so that
59330         mkstemp is visible on some platforms.
59331         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
59332         (Include): Change to "mkstemp.h" from <stdlib.h>.
59333         (Files): Add mkstemp.h.
59334
59335         * lib/mkstemp.h: New file, since some standard headers
59336         #define mkstemp.
59337         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
59338         Include "mkstemp.h".
59339         Make the _LIBC code resemble glibc original more,
59340         e.g., use K&R style.
59341         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
59342         (mkstemp): Remove, since mkstemp.h does this for us.
59343         * lib/stdlib--.h: Include mkstemp.h.
59344
59345         Import this patch from libc:
59346
59347         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59348
59349         * lib/tempname.c (__gen_tempname): Change attempts_min
59350         into a macro.  Use preprocessor to decide how to initialize
59351         attempts [Coverity CID 67].
59352
59353 2006-09-20  Bruno Haible  <bruno@clisp.org>
59354
59355         * lib/mkdtemp.c: Import from libc.
59356         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59357                 * sysdeps/posix/tempname.c (__gen_tempname): Change
59358                 attempts_min into a macro.  Use preprocessor to decide how to
59359                 initialize attempts [Coverity CID 67].
59360         2001-11-27  Paul Eggert  <eggert@twinsun.com>
59361                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
59362                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
59363
59364 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59365
59366         * gnulib-tool (func_exit): New function, to allow to pass the
59367         exit status portably through the trap.  Use everywhere.
59368         (--help, --version): Signal a write error.
59369         (trap): catch SIGPIPE, for write errors.
59370         Exit at the end of the trap, with the correct exit status.
59371
59372 2006-09-19  Karl Berry  <karl@gnu.org>
59373
59374         * doc/gnulib.texi: note about the license texinfo files.
59375
59376 2006-09-19  Eric Blake  <ebb9@byu.net>
59377
59378         * gnulib-tool: Avoid space-tab.
59379
59380 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59381
59382         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59383         that prevented coreutils 6.1 from building.  Problem reported
59384         by Petter Reinholdtsen.
59385
59386 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59387
59388         * gnulib-tool (avoidlist): Fix typo that broke options like
59389         --avoid=lock that are used by coreutils bootstrap.
59390
59391 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59392
59393         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59394         more systematically.
59395
59396 2006-09-18  Jim Meyering  <jim@meyering.net>
59397
59398         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59399
59400 2006-09-18  Bruno Haible  <bruno@clisp.org>
59401
59402         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59403
59404 2006-09-18  Bruno Haible  <bruno@clisp.org>
59405
59406         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59407         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59408         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59409         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59410         * m4/gettext.m4: Require autoconf >= 2.52.
59411         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59412         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59413         of gl_cv_header_inttypes_h.
59414
59415 2006-09-18  Bruno Haible  <bruno@clisp.org>
59416
59417         * lib/javaversion.c: Include configmake.h.
59418
59419 2006-09-18  Bruno Haible  <bruno@clisp.org>
59420
59421         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59422         avoid that the while loops be executed in a subshell.
59423
59424 2006-09-18  Bruno Haible  <bruno@clisp.org>
59425
59426         * MODULES.html.sh (func_module): Break long lines.
59427         Suggested by Bruce Korb <bkorb@gnu.org>.
59428
59429 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59430
59431         Speed up by a factor of 1.12.
59432         * gnulib-tool (nl): New variable.
59433         (func_import): Rewrite include directive extraction to only read each
59434         directive once.
59435
59436 2006-09-17  Bruno Haible  <bruno@clisp.org>
59437
59438         * modules/javaversion (Makefile.am): Remove DEFS setting.
59439         (Depends-on): Add configmake, for PKGDATADIR definition.
59440
59441 2006-09-17  Bruno Haible  <bruno@clisp.org>
59442
59443         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59444
59445 2006-09-17  Bruno Haible  <bruno@clisp.org>
59446
59447         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59448         (func_modules_transitive_closure, func_modules_add_dummy,
59449         func_modules_to_filelist, func_import, func_create_testdir,
59450         func_create_megatestdir, ...): Use it wherever possible.
59451         Suggested by Ralf Wildenhues.
59452
59453 2006-09-16  Karl Berry  <karl@gnu.org>
59454
59455         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59456         to avoid sectioning errors.
59457         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59458         [ifinfo]: blank line after @center-ed titles.
59459         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59460         Spell FSF address consistently with others.
59461         (These changes approved by rms.)
59462
59463 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59464
59465         Speed up by a factor of 1.61.
59466         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59467         already checked module names again.
59468
59469 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59470
59471         Speed up by a factor of 1.13.
59472         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59473         for new_files, and the input to func_add_or_update.
59474
59475 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59476
59477         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59478         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59479
59480 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59481
59482         * modules/mkancesdirs (Depends-on): Add fcntl.
59483         * modules/savewd: New file.
59484         * MODULES.html.sh (File system functions): Add savewd.
59485
59486         * modules/configmake (Makefile.am): Add support for the
59487         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59488
59489 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59490
59491         * m4/savewd.m4: New file.
59492
59493 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59494
59495         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59496         (dirchownmod): New arg FD.  All callers changed.
59497         Use FD rather than opening the directory ourself, as opening is
59498         now the caller's responsibility.
59499         * lib/dirchownmod.h: Likewise.
59500         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59501         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59502         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59503         (test_dir): Remove.
59504         (mkancesdirs): Return length of prefix of FILE that has already
59505         been made, or -2 if there is a child doing the work.  Redo
59506         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59507         ".", and treat ".." specially since it might stray back into
59508         already-created areas.  Use a subprocess if necessary.  New arg
59509         WD; all users changed.  MAKE_DIR function should now return 1
59510         if it creates a directory that is not readable.  Return -2 if
59511         a child process is spun off.
59512         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59513         Adjust signature to match code.
59514         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59515         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59516         all users changed.
59517         * lib/savewd.c, lib/savewd.h: New files.
59518
59519 2006-09-15  Jim Meyering  <jim@meyering.net>
59520
59521         * modules/rename-dest-slash: New module.
59522         * MODULES.html.sh (posix_compat): Add it here.
59523
59524         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59525
59526 2006-09-15  Jim Meyering  <jim@meyering.net>
59527
59528         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59529         file.
59530
59531         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59532
59533 2006-09-15  Jim Meyering  <jim@meyering.net>
59534
59535         * lib/rename-dest-slash.c (has_trailing_slash): Use
59536         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59537         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59538         test before testing whether SRC is a directory.
59539         Suggestions from Bruno Haible.
59540
59541         Avoid a warning about an unused variable.
59542         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59543         into the #ifdef block where it's used.
59544
59545         * lib/rename-dest-slash.c: New file.
59546
59547 2006-09-14  Bruno Haible  <bruno@clisp.org>
59548
59549         * lib/allocsa.c: Include <config.h> unconditionally.
59550         * lib/asnprintf.c: Likewise.
59551         * lib/asprintf.c: Likewise.
59552         * lib/c-strcasecmp.c: Likewise.
59553         * lib/c-strcasestr.c: Likewise.
59554         * lib/c-strncasecmp.c: Likewise.
59555         * lib/c-strstr.c: Likewise.
59556         * lib/classpath.c: Likewise.
59557         * lib/clean-temp.c: Likewise.
59558         * lib/concatpath.c: Likewise.
59559         * lib/copy-file.c: Likewise.
59560         * lib/csharpcomp.c: Likewise.
59561         * lib/csharpexec.c: Likewise.
59562         * lib/execute.c: Likewise.
59563         * lib/fatal-signal.c: Likewise.
59564         * lib/findprog.c: Likewise.
59565         * lib/fwriteerror.c: Likewise.
59566         * lib/gl_array_list.c: Likewise.
59567         * lib/gl_array_oset.c: Likewise.
59568         * lib/gl_avltree_list.c: Likewise.
59569         * lib/gl_avltree_oset.c: Likewise.
59570         * lib/gl_avltreehash_list.c: Likewise.
59571         * lib/gl_carray_list.c: Likewise.
59572         * lib/gl_linked_list.c: Likewise.
59573         * lib/gl_linkedhash_list.c: Likewise.
59574         * lib/gl_list.c: Likewise.
59575         * lib/gl_oset.c: Likewise.
59576         * lib/gl_rbtree_list.c: Likewise.
59577         * lib/gl_rbtree_oset.c: Likewise.
59578         * lib/gl_rbtreehash_list.c: Likewise.
59579         * lib/imaxabs.c: Likewise.
59580         * lib/imaxdiv.c: Likewise.
59581         * lib/javacomp.c: Likewise.
59582         * lib/javaexec.c: Likewise.
59583         * lib/javaversion.c: Likewise.
59584         * lib/linebreak.c: Likewise.
59585         * lib/localcharset.c: Likewise.
59586         * lib/lock.c: Likewise.
59587         * lib/mbchar.c: Likewise.
59588         * lib/mbswidth.c: Likewise.
59589         * lib/mkdtemp.c: Likewise.
59590         * lib/pipe.c: Likewise.
59591         * lib/printf-args.c: Likewise.
59592         * lib/printf-parse.c: Likewise.
59593         * lib/progname.c: Likewise.
59594         * lib/progreloc.c: Likewise.
59595         * lib/readlink.c: Likewise.
59596         * lib/sh-quote.c: Likewise.
59597         * lib/stpcpy.c: Likewise.
59598         * lib/stpncpy.c: Likewise.
59599         * lib/strcasecmp.c: Likewise.
59600         * lib/strcasestr.c: Likewise.
59601         * lib/strcspn.c: Likewise.
59602         * lib/striconv.c: Likewise.
59603         * lib/strncasecmp.c: Likewise.
59604         * lib/strnlen1.c: Likewise.
59605         * lib/strstr.c: Likewise.
59606         * lib/strtok_r.c: Likewise.
59607         * lib/tls.c: Likewise.
59608         * lib/tmpdir.c: Likewise.
59609         * lib/unicodeio.c: Likewise.
59610         * lib/unsetenv.c: Likewise.
59611         * lib/vasnprintf.c: Likewise.
59612         * lib/vasprintf.c: Likewise.
59613         * lib/wait-process.c: Likewise.
59614         * lib/xallocsa.c: Likewise.
59615         * lib/xsetenv.c: Likewise.
59616         * lib/xstriconv.c: Likewise.
59617
59618 2006-09-13  Simon Josefsson  <jas@extundo.com>
59619
59620         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59621         that internally, suggested by Ralf Wildenhues
59622         <Ralf.Wildenhues@gmx.de>.
59623
59624 2006-09-13  Simon Josefsson  <jas@extundo.com>
59625
59626         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59627         @LIBOBJS@.
59628         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59629
59630 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59633         longer worry about uses that don't define HAVE_CONFIG_H.
59634         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59635         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59636         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59637         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59638         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59639         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59640         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59641         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59642         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59643         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59644         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59645         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59646         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59647         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59648         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59649         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59650         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59651         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59652         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59653         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59654         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59655         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59656         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59657         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59658         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59659         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59660         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59661         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59662         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59663         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59664         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59665         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59666         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59667         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59668         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59669         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59670         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59671         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59672         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59673         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59674         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59675         Likewise.
59676
59677 2006-09-13  Eric Blake  <ebb9@byu.net>
59678
59679         * lib/getopt.c: Fix typo in last commit.
59680
59681 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59682
59683         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59684         dgettext.
59685
59686 2006-09-12  Jim Meyering  <jim@meyering.net>
59687
59688         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59689         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59690         Reported by Nelson H. F. Beebe.
59691
59692 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59693
59694         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59695         program_invocation_name and program_invocation_short_name are
59696         initialized.
59697         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59698         and program_invocation_short_name to argp.h, so they are visible
59699         to user programs.
59700         * lib/argp.h: Likewise
59701
59702 2006-09-10  Bruno Haible  <bruno@clisp.org>
59703
59704         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59705         m4/inttypes_h.m4, m4/uintmax_t.m4.
59706
59707 2006-09-10  Bruno Haible  <bruno@clisp.org>
59708
59709         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59710         gl_AC_TYPE_UINTMAX_T.
59711
59712 2006-09-10  Bruno Haible  <bruno@clisp.org>
59713
59714         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59715
59716 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59717
59718         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59719         convention.  Text proposed by Bruno Haible.
59720         (struct argp_option): Document the use of N_() wrappers.
59721
59722         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59723         '\v', and translate the two parts separately, instead of feeding
59724         the whole string to gettext.  This allows to exclude
59725         '\v' from the strings visible to the translator by writing doc
59726         strings as N_("..") "\v" N_("..").
59727
59728 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59729
59730         * config/srclist.txt: Undo latest change; the bug was fixed.
59731
59732 2006-09-09  Bruno Haible  <bruno@clisp.org>
59733
59734         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59735         assignments if building a library without libtool.
59736         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59737         in func_emit_lib_Makefile_am.
59738         (func_import): When building a static library libfoo.a, arrange to
59739         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59740         (func_create_testdir): Likewise.
59741         * modules/gc (configure.ac, Makefile.am): If building statically,
59742         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59743         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59744         * modules/striconv (configure.ac, Makefile.am): Likewise.
59745         Based on a suggestion by Ralf Wildenhues.
59746
59747 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59748
59749         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59750         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59751         Also:
59752
59753         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59754         Add year_2050_test to catch glibc bug 2821
59755         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59756
59757         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59758         Prefer #ifdef to #if.
59759
59760         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59761         Return from 'main' instead of calling 'exit'.
59762
59763 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59764
59765         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59766         returned the maximum time_t value rather than (time_t) -1.
59767         Problem originally reported by William Bardwell
59768         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59769
59770         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59771         Moved to here ...
59772         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59773         ... from here.
59774
59775 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59776
59777         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59778         2821 is fixed.
59779
59780 2006-09-08  Jim Meyering  <jim@meyering.net>
59781
59782         Don't make generated files read-only.  That would bother too many
59783         people.  However, do retain the ability to work when targets are
59784         read-only: remove the destination and temporary files before writing
59785         them (when generated via sed or echo), or by using the -f option for
59786         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59787         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59788         * modules/byteswap, modules/configmake, modules/fcntl:
59789         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59790         * modules/localcharset, modules/netinet_in, modules/poll:
59791         * modules/stdbool, modules/stdint, modules/sys_select:
59792         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59793
59794 2006-09-08  Jim Meyering  <jim@meyering.net>
59795
59796         Avoid new build failure on FreeBSD 6.0.
59797         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59798         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59799         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59800
59801 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59802
59803         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59804
59805 2006-09-07  Jim Meyering  <jim@meyering.net>
59806
59807         Fix global typo in last change: use chmod u-w, not chmod u-x.
59808         Spotted by Paul Eggert and Bruce Korb.
59809         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59810         * modules/byteswap, modules/configmake, modules/fcntl:
59811         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59812         * modules/localcharset, modules/netinet_in, modules/poll:
59813         * modules/stdbool, modules/stdint, modules/sys_select:
59814         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59815
59816 2006-09-06  Jim Meyering  <jim@meyering.net>
59817
59818         Make generated files be read-only.
59819         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59820         Ensure that each generated file is now read-only.
59821         * modules/argz: Likewise.
59822         * modules/arpa_inet: Likewise.
59823         * modules/byteswap: Likewise.
59824         * modules/configmake: Likewise.
59825         * modules/fcntl: Likewise.
59826         * modules/fnmatch: Likewise.
59827         * modules/getopt: Likewise.
59828         * modules/glob: Likewise.
59829         * modules/inttypes: Likewise.
59830         * modules/netinet_in: Likewise.
59831         * modules/poll: Likewise.
59832         * modules/stdbool: Likewise.
59833         * modules/stdint: Likewise.
59834         * modules/sys_select: Likewise.
59835         * modules/sys_socket: Likewise.
59836         * modules/sys_stat: Likewise.
59837         * modules/sysexits: Likewise.
59838         * modules/localcharset: Same as above, but continue using temporary
59839         file named "t-$@" (why different?) rather than the "$@-t" used
59840         everywhere else.
59841
59842         * modules/sysexits (Makefile.am): Replace literal occurrences
59843         of "sysexit.h" more readable, and more consistent, "$@".
59844
59845 2006-09-06  Bruno Haible  <bruno@clisp.org>
59846
59847         * modules/striconv: New file.
59848         * modules/xstriconv: New file.
59849         * MODULES.html.sh (Internationalization functions): Add striconv,
59850         xstriconv.
59851
59852 2006-09-06  Bruno Haible  <bruno@clisp.org>
59853
59854         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59855         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59856         not using libtool correctly.
59857
59858 2006-09-06  Bruno Haible  <bruno@clisp.org>
59859
59860         * lib/striconv.h: New file.
59861         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59862         iconvstring.c.
59863         * lib/xstriconv.h: New file.
59864         * lib/xstriconv.c: New file.
59865
59866 2006-09-06  Bruno Haible  <bruno@clisp.org>
59867
59868         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59869         lib_..._LDFLAGS.
59870
59871 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59872
59873         * lib/argz_.h: Sync from Libtool.
59874
59875         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59876                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59877
59878         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59879
59880 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59881
59882         * modules/trim: New file.
59883
59884 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59885
59886         * lib/trim.h: New file.
59887         * lib/trim.c: New file.
59888
59889 2006-09-05  Bruno Haible  <bruno@clisp.org>
59890
59891         * MODULES.html.sh (String handling): Add trim.
59892
59893 2006-09-04  Karl Berry  <karl@gnu.org>
59894
59895         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59896         until next release.
59897
59898 2006-09-03  Bruno Haible  <bruno@clisp.org>
59899
59900         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59901         correctly.
59902
59903 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59904
59905         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59906         not gl_GETLOADAVG.  Omit unneeded semicolons.
59907         Problems reported by Ralf Wildenhues in
59908         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59909         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59910         at the end, which is the usual gnulib style.
59911
59912         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59913         of doing all the work ourselves.
59914         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59915         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59916
59917 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59918
59919         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59920         Problem reported by Ralf Wildenhues in
59921         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59922
59923         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59924         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59925
59926 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59927
59928         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59929         yesterday's patch by changing test -n to test -z.
59930
59931 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59932
59933         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59934         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59935         the former is now obsolescent.
59936
59937         * modules/chdir-long (Depends-on): Add fcntl.
59938
59939 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59940
59941         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59942         obsolescent, and programs should use gnulib instead.
59943         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59944         but with prefixes changed.
59945
59946 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59949         or stdbool.h, because they might not exist while configuring.
59950
59951         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59952         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59953         does that for us.
59954         (O_DIRECTORY): Remove.
59955
59956 2006-08-31  Eric Blake  <ebb9@byu.net>
59957
59958         * gnulib-tool: Don't let emacs change spaces to TAB.
59959
59960 2006-08-31  Bruno Haible  <bruno@clisp.org>
59961
59962         * gnulib-tool: When calling func_import more than once, do it in a
59963         subshell.
59964         Reported by Eric Blake <ebb9@byu.net>.
59965
59966 2006-08-31  Bruno Haible  <bruno@clisp.org>
59967
59968         * gnulib-tool (nl): Remove variable.
59969         (sed_transform_lib_file): Use more robust test for config-h module.
59970         (func_import): Fix typo in 2006-08-25 patch.
59971
59972 2006-08-31  Bruno Haible  <bruno@clisp.org>
59973
59974         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59975         specified, augment Makefile.am variables instead of assigning them.
59976
59977 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59978
59979         Work around a bug in both the Linux and SunOS 64-bit kernels:
59980         nanosleep mishandles sleeps for longer than 2**31 seconds.
59981         Problem reported by Frank v Waveren in
59982         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59983         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59984         Check for nanosleep bug.
59985         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59986
59987 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59988
59989         Work around a bug in both the Linux and SunOS 64-bit kernels:
59990         nanosleep mishandles sleeps for longer than 2**31 seconds.
59991         Problem reported by Frank v Waveren in
59992         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59993         * lib/nanosleep.c (BILLION): New constant.
59994         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59995         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59996         implementation.
59997
59998 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59999
60000         * modules/nanosleep (Depends-on): Add gettime.
60001
60002 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60003         and Simon Josefsson  <jas@extundo.com>
60004         and Oskar Liljeblad  <oskar@osk.mine.nu>
60005
60006         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60007         * gnulib-tool (func_import): New license type 'unmodifiable license
60008         text'.
60009         * modules/fdl: Use it.  Longer description.
60010         * module/gpl, module/lgpl: New files.
60011
60012 2006-08-30  Jim Meyering  <jim@meyering.net>
60013
60014         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60015         shadowing the parameter.
60016
60017 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60018
60019         Sync from Libtool:
60020
60021         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60022
60023         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60024         sharing with gnulib.  Report by Eric Blake.
60025
60026 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60027
60028         * modules/isapipe: New file.
60029         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60030
60031 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60032
60033         * modules/configmake (Makefile.am): Add a comment, and omit
60034         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60035         by Bruno Haible.
60036
60037 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60038
60039         * m4/isapipe.m4: New file.
60040
60041 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60042
60043         * lib/isapipe.c, lib/isapipe.h: New files.
60044
60045 2006-08-29  Jim Meyering  <jim@meyering.net>
60046
60047         * modules/configmake (Makefile.am): Make configmake.h depend on
60048         Makefile.  Otherwise, a stale configmake.h could hang around.
60049
60050 2006-08-29  Eric Blake  <ebb9@byu.net>
60051
60052         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60053         resolution of upstream bug 3044.
60054
60055 2006-08-29  Bruno Haible  <bruno@clisp.org>
60056
60057         * modules/localcharset (Depends-on): Add configmake.
60058         (Makefile.am): Remove setting of LIBDIR through DEFS.
60059
60060 2006-08-29  Bruno Haible  <bruno@clisp.org>
60061
60062         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60063         defined.
60064
60065 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60066
60067         * modules/fcntl: New file.
60068         * modules/chdir-safer (Depends-on): Add fcntl.
60069         * modules/fts: Likewise.
60070         * modules/mkdir-p: Likewise.
60071
60072         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60073         This undoes the most recent change, since we're now addressing the
60074         problem in a different way.
60075
60076         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60077         into output, since the output might be called Makefile.am even
60078         if $makefile_name is something different.
60079         (func_import): Use $makefile_am rather than
60080         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60081         empty.
60082
60083         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60084
60085 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60086
60087         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60088         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60089         recent change to stdint.m4, since we're now addressing the problem in a
60090         different way.
60091
60092 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60093
60094         * m4/fcntl_h.m4: New file.
60095
60096 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60097
60098         * lib/fcntl_.h: New file.
60099         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60100         the fcntl module.
60101         * lib/dirchownmod.c: Likewise.
60102         * lib/fts.c: Likewise.
60103
60104         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60105         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60106         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60107         just before including <inttypes.h>, to avoid circular inclusion.
60108
60109 2006-08-28  Jim Meyering  <jim@meyering.net>
60110
60111         * doc/visibility.texi: Actually read and correct the grammar of the
60112         sentence affected by yesterday's change.
60113
60114 2006-08-28  Eric Blake  <ebb9@byu.net>
60115
60116         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60117         needs wrapper.
60118
60119 2006-08-28  Eric Blake  <ebb9@byu.net>
60120
60121         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60122
60123 2006-08-28  Eric Blake  <ebb9@byu.net>
60124
60125         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60126
60127 2006-08-28  Bruno Haible  <bruno@clisp.org>
60128
60129         * modules/c-strstr: New file, from GNU gettext.
60130         * MODULES.html.sh (String handling): Add c-strstr.
60131
60132 2006-08-28  Bruno Haible  <bruno@clisp.org>
60133
60134         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60135         macros.
60136         Reported by Eric Blake.
60137
60138 2006-08-28  Bruno Haible  <bruno@clisp.org>
60139
60140         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60141         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60142         * lib/vasprintf.c: Include errno.h, limits.h.
60143         (EOVERFLOW): New fallback definition.
60144         (vasprintf): Test here whether the string length is > INT_MAX.
60145         * lib/vsnprintf.c: Include errno.h, limits.h.
60146         (EOVERFLOW): New fallback definition.
60147         (vsnprintf): Fix bug when generated string was too long for the buffer.
60148         Test here whether the string length is > INT_MAX.
60149
60150 2006-08-28  Bruno Haible  <bruno@clisp.org>
60151
60152         * lib/inttypes_.h (SCNX*): Remove definitions.
60153         Reported by Eric Blake.
60154
60155 2006-08-28  Bruno Haible  <bruno@clisp.org>
60156
60157         * lib/c-strstr.h: New file, from GNU gettext.
60158         * lib/c-strstr.c: New file, from GNU gettext.
60159
60160 2006-08-28  Bruno Haible  <bruno@clisp.org>
60161
60162         * gnulib-tool: Reorder some statements.
60163
60164 2006-08-28  Bruno Haible  <bruno@clisp.org>
60165
60166         * gnulib-tool: New option --makefile-name.
60167         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60168         $makefile_name.
60169         (func_import): Write $makefile_name to the cache file, and read it from
60170         there unless explicitly specified. Use $makefile_name as file name
60171         instead of Makefile.am. Adjust the recommendations accordingly.
60172
60173 2006-08-28  Bruno Haible  <bruno@clisp.org>
60174
60175         * gnulib-tool (func_verify_module): Check against misapplying patch.
60176
60177 2006-08-28  Bruno Haible  <bruno@clisp.org>
60178
60179         * gnulib-tool (func_relativize, func_relconcat): New functions.
60180         Give an error if --local-dir is given with --update.
60181         Remove trailing slashes from $local_gnulib_dir.
60182         (func_import): Store the relativized $local_gnulib_dir in
60183         gnulib-cache.m4, and read it from there if not specified explicitly.
60184
60185 2006-08-28  Bruno Haible  <bruno@clisp.org>
60186
60187         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60188         is the current directory. Respect also $local_gnulib_dir.
60189
60190 2006-08-28  Bruno Haible  <bruno@clisp.org>
60191             Simon Josefsson  <jas@extundo.com>
60192
60193         BeOS portability.
60194         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60195
60196 2006-08-27  Jim Meyering  <jim@meyering.net>
60197
60198         * doc/visibility.texi: Remove duplicate word: "pointer".
60199
60200 2006-08-26  Bruno Haible  <bruno@clisp.org>
60201
60202         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
60203         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
60204         (Makefile.am): Create inttypes.h from inttypes_.h.
60205         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
60206
60207         * modules/imaxabs: New file.
60208
60209         * modules/imaxdiv: New file.
60210
60211 2006-08-26  Bruno Haible  <bruno@clisp.org>
60212
60213         * m4/inttypes.m4: New file.
60214         * m4/_inttypes_h.m4: Remove file.
60215         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
60216         PRI_MACROS_BROKEN.
60217         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
60218
60219         * m4/imaxabs.m4: New file.
60220
60221         * m4/imaxdiv.m4: New file.
60222
60223 2006-08-26  Bruno Haible  <bruno@clisp.org>
60224
60225         * lib/inttypes_.h: New file.
60226         * lib/inttypes.h: Remove file.
60227         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
60228
60229         * lib/imaxabs.c: New file.
60230
60231         * lib/imaxdiv.c: New file.
60232
60233 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60234
60235         New config-h module, so that "make" output needn't be cluttered
60236         by -DHAVE_CONFIG_H.
60237         * MODULES.html.sh (Support for building libraries and executables):
60238         Add config-h.
60239         * modules/config-h: New file.
60240         * gnulib-tool (nl, sed_transform_lib_file): New vars.
60241         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
60242         the config-h module is used.
60243
60244         New configmake module, so that "make" output needn't be cluttered
60245         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
60246         * MODULES.html.sh (Support for building libraries and executables):
60247         Add configmake.
60248         * modules/configmake: New file.
60249
60250 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60251
60252         * m4/config-h.m4: New file.
60253
60254 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60255
60256         * config/srclist.txt: Add elisp-comp.
60257
60258 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60259
60260         * MODULES.html.sh (Support for building libraries and executables):
60261         Add elisp-comp.
60262         * build-aux/elisp-comp: New file.
60263         * modules/elisp-comp: New file.
60264
60265 2006-08-24  Bruno Haible  <bruno@clisp.org>
60266
60267         * gnulib-tool (func_create_testdir): Use non-default values of
60268         sourcebase and m4base.
60269
60270 2006-08-24  Bruno Haible  <bruno@clisp.org>
60271
60272         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60273         HTML structure.
60274
60275 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60276
60277         * modules/openat (Depends-on): Add lchown.
60278
60279 2006-08-23  Bruno Haible  <bruno@clisp.org>
60280
60281         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60282         of gl_LOCK_EARLY instead of gl_LOCK.
60283
60284 2006-08-23  Bruno Haible  <bruno@clisp.org>
60285
60286         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60287         on OSF/1 to no.
60288         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60289
60290 2006-08-23  Bruno Haible  <bruno@clisp.org>
60291
60292         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60293         as unusable.
60294
60295         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60296         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60297         (gl_LOCK): New macro.
60298
60299 2006-08-22  Simon Josefsson  <jas@extundo.com>
60300
60301         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60302         to md5 module.
60303
60304 2006-08-22  Simon Josefsson  <jas@extundo.com>
60305
60306         * MODULES.html.sh: Add "Support for maintaining and release
60307         projects".
60308
60309         * build-aux/gnupload: New file, from coreutils.
60310
60311 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60312
60313         Avoid the need for AC_LIBSOURCES in m4 macros.
60314         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60315         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60316         * modules/check-version (EXTRA_DIST): Add check-version.h.
60317         * modules/crc (EXTRA_DIST): Add crc.h.
60318         * modules/des (EXTRA_DIST): Add des.h.
60319         * modules/gc (EXTRA_DIST): Add gc.h.
60320         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
60321         * modules/getline (EXTRA_DIST): Add getline.h.
60322         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
60323         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
60324         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
60325         * modules/md2 (EXTRA_DIST): Add md2.h.
60326         * modules/md4 (EXTRA_DIST): Add md4.h.
60327         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
60328         * modules/read-file (EXTRA_DIST): Add read-file.h.
60329         * modules/readline (EXTRA_DIST): Add readline.h.
60330         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
60331         rijndael-api-fst.h.
60332
60333 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60334
60335         * m4/rijndael.m4 (gl_ARCFOUR):
60336         * m4/arctwo.m4 (gl_ARCTWO):
60337         * m4/check-version.m4 (gl_CHECK_VERSION):
60338         * m4/crc.m4 (gl_CRC):
60339         * m4/des.m4 (gl_DES):
60340         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
60341         * m4/gc.m4 (gl_GC):
60342         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
60343         * m4/getline.m4 (gl_FUNC_GETLINE):
60344         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
60345         * m4/hmac-md5.m4 (gl_HMAC_MD5):
60346         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
60347         * m4/md2.m4 (gl_MD2):
60348         * m4/md4.m4 (gl_MD4):
60349         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
60350         * m4/read-file.m4 (gl_FUNC_READ_FILE):
60351         * m4/readline.m4 (gl_FUNC_READLINE):
60352         * m4/rijndael.m4 (gl_RIJNDAEL):
60353         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60354         to get the necessary .h files and whatnot.
60355
60356 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60357
60358         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
60359         gnulib rather than the other way around.
60360         * config/srclistvars.sh (COREUTILS): Remove.
60361
60362 2006-08-22  Jim Meyering  <jim@meyering.net>
60363
60364         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
60365
60366         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
60367
60368 2006-08-22  Eric Blake  <ebb9@byu.net>
60369
60370         * modules/regexprops-generic: New file.
60371         * MODULES.html.sh (Support for building documentation): List it.
60372
60373 2006-08-22  Eric Blake  <ebb9@byu.net>
60374
60375         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
60376         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60377         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60378         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60379
60380 2006-08-22  Bruno Haible  <bruno@clisp.org>
60381
60382         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60383         and lib_LTLIBRARIES like the other lib_* variables.
60384
60385 2006-08-22  Bruno Haible  <bruno@clisp.org>
60386
60387         * build-aux/x-to-1.in: New file, from GNU gettext.
60388
60389 2006-08-22  Bruno Haible  <bruno@clisp.org>
60390
60391         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60392         <utmpx.h> exists.
60393
60394 2006-08-22  Bruno Haible  <bruno@clisp.org>
60395
60396         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60397         <utmpx.h> exists.
60398
60399 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60400
60401         BeOS portability.
60402         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60403         exist.
60404         Problem reported by Bruno Haible.
60405
60406 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60407
60408         Avoid the need for AC_LIBSOURCES in m4 macros.
60409         * modules/acl (EXTRA_DIST): Add acl.h.
60410         * modules/argmatch (Files): Add m4/argmatch.m4.
60411         (configure.ac): Add gl_ARGMATCH.
60412         (EXTRA_DIST): Renamed from lib_SOURCES, for
60413         consistency with the other modules.  Remove argmatch.c.
60414         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60415         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60416         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60417         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60418         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60419         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60420         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60421         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60422         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60423         * modules/closeout (EXTRA_DIST): Add closeout.h.
60424         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60425         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60426         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60427         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60428         dirname.h; remove basename.c and stripslash.c.
60429         * modules/exclude (EXTRA_DIST): Add exclude.h.
60430         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60431         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60432         * modules/file-type (EXTRA_DIST): Add file-type.h.
60433         * modules/filemode (EXTRA_DIST): Add filemode.h.
60434         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60435         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60436         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60437         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60438         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60439         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60440         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60441         * modules/getdate (EXTRA_DIST): Add getdate.c.
60442         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60443         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60444         * modules/getpass (EXTRA_DIST): Add getpass.h.
60445         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60446         * modules/group-member (EXTRA_DIST): Add group-member.h.
60447         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60448         * modules/hash (EXTRA_DIST): Add hash.h.
60449         * modules/human (EXTRA_DIST): Add human.h.
60450         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60451         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60452         * modules/lchown (EXTRA_DIST): Add lchown.h.
60453         * modules/long-options (EXTRA_DIST): Add long-options.h.
60454         * modules/lstat (EXTRA_DIST): Add lstat.h.
60455         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60456         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60457         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60458         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60459         * modules/memxor (EXTRA_DIST): Add memxor.h.
60460         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60461         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60462         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60463         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60464         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60465         * modules/physmem (EXTRA_DIST): Add physmem.h.
60466         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60467         * modules/posixver (EXTRA_DIST): Add posixver.h.
60468         * modules/quote (EXTRA_DIST): Add quote.h.
60469         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60470         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60471         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60472         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60473         regex_internal.h regexec.c.
60474         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60475         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60476         * modules/same (EXTRA_DIST): Add same.h.
60477         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60478         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60479         * modules/savedir (EXTRA_DIST): Add savedir.h.
60480         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60481         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60482         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60483         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60484         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60485         * modules/strdup (EXTRA_DIST): Add strdup.h.
60486         * modules/strftime (EXTRA_DIST): Add strftime.h.
60487         * modules/strndup (EXTRA_DIST): Add strndup.h.
60488         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60489         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60490         * modules/time_r (EXTRA_DIST): Add time_r.h.
60491         * modules/timespec (EXTRA_DIST): Add timespec.h.
60492         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60493         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60494         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60495         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60496         * modules/userspec (EXTRA_DIST): Add userspec.h.
60497         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60498         * modules/utimens (EXTRA_DIST): Add utimens.h.
60499         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60500         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60501         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60502         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60503         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60504         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60505         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60506         * modules/yesno (EXTRA_DIST): Add yesno.h.
60507
60508 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60509
60510         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60511
60512         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60513         * m4/dev-ino.m4, same-inode.m4: Remove.
60514
60515         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60516         * m4/acl.m4 (AC_FUNC_ACL):
60517         * m4/backupfile.m4 (gl_BACKUPFILE):
60518         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60519         * m4/canon-host.m4 (gl_CANON_HOST):
60520         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60521         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60522         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60523         * m4/cloexec.m4 (gl_CLOEXEC):
60524         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60525         * m4/closeout.m4 (gl_CLOSEOUT):
60526         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60527         * m4/dirname.m4 (gl_DIRNAME):
60528         * m4/exclude.m4 (gl_EXCLUDE):
60529         * m4/exitfail.m4 (gl_EXITFAIL):
60530         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60531         * m4/file-type.m4 (gl_FILE_TYPE):
60532         * m4/filemode.m4 (gl_FILEMODE):
60533         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60534         * m4/fpending.m4 (gl_FUNC_FPENDING):
60535         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60536         * m4/fts.m4 (gl_FUNC_FTS):
60537         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60538         * m4/getdate.m4 (gl_GETDATE):
60539         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60540         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60541         * m4/getpass.m4 (gl_FUNC_GETPASS):
60542         * m4/gettime.m4 (gl_GETTIME):
60543         * m4/getugroups.m4 (gl_GETUGROUPS):
60544         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60545         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60546         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60547         * m4/hash.m4 (gl_HASH):
60548         * m4/idcache.m4 (gl_IDCACHE):
60549         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60550         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60551         * m4/long-options.m4 (gl_LONG_OPTIONS):
60552         * m4/lstat.m4 (gl_FUNC_LSTAT):
60553         * m4/md5.m4 (gl_MD5):
60554         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60555         * m4/memcoll.m4 (gl_MEMCOLL):
60556         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60557         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60558         * m4/memxor.m4 (gl_MEMXOR):
60559         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60560         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60561         * m4/modechange.m4 (gl_MODECHANGE):
60562         * m4/mountlist.m4 (gl_MOUNTLIST):
60563         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60564         * m4/openat.m4 (gl_FUNC_OPENAT):
60565         * m4/pathmax.m4 (gl_PATHMAX):
60566         * m4/physmem.m4 (gl_PHYSMEM):
60567         * m4/posixtm.m4 (gl_POSIXTM):
60568         * m4/posixver.m4 (gl_POSIXVER):
60569         * m4/quote.m4 (gl_QUOTE):
60570         * m4/quotearg.m4 (gl_QUOTEARG):
60571         * m4/readtokens.m4 (gl_READTOKENS):
60572         * m4/readutmp.m4 (gl_READUTMP):
60573         * m4/regex.m4 (gl_REGEX):
60574         * m4/safe-read.m4 (gl_SAFE_READ):
60575         * m4/safe-write.m4 (gl_SAFE_WRITE):
60576         * m4/same.m4 (gl_SAME):
60577         * m4/save-cwd.m4 (gl_SAVE_CWD):
60578         * m4/savedir.m4 (gl_SAVEDIR):
60579         * m4/settime.m4 (gl_SETTIME):
60580         * m4/sha1.m4 (gl_SHA1):
60581         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60582         * m4/stat-macros.m4 (gl_STAT_MACROS):
60583         * m4/stat-time.m4 (gl_STAT_TIME):
60584         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60585         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60586         * m4/strdup.m4 (gl_FUNC_STRDUP):
60587         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60588         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60589         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60590         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60591         * m4/time_r.m4 (gl_TIME_R):
60592         * m4/timespec.m4 (gl_TIMESPEC):
60593         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60594         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60595         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60596         * m4/userspec.m4 (gl_USERSPEC):
60597         * m4/utimecmp.m4 (gl_UTIMECMP):
60598         * m4/utimens.m4 (gl_UTIMENS):
60599         * m4/xalloc.m4 (gl_XALLOC):
60600         * m4/xgetcwd.m4 (gl_XGETCWD):
60601         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60602         * m4/xreadlink.m4 (gl_XREADLINK):
60603         * m4/xstrtod.m4 (gl_XSTRTOD):
60604         * m4/yesno.m4 (gl_YESNO):
60605         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60606         to get the necessary .h files and whatnot.
60607
60608 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60609             Bruno Haible  <bruno@clisp.org>
60610
60611         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60612         /bin/sh understanding of '!' conditional negation.
60613
60614 2006-08-21  Jim Meyering  <jim@meyering.net>
60615
60616         * modules/openat (Depends-on): Really alphabetize.
60617
60618         * modules/acl (Depends-on): Add error and quote.
60619
60620         * check-module (find_included_lib_files): Add at-func.c to the
60621         ok-to-include-more-than-once white list.
60622
60623         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60624
60625 2006-08-21  Bruno Haible  <bruno@clisp.org>
60626
60627         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60628         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60629         Reported by Martin Lambers <marlam@marlam.de>.
60630
60631 2006-08-21  Bruno Haible  <bruno@clisp.org>
60632
60633         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60634         specify an installation location, don't emit a noinst_LIBRARIES or
60635         noinst_LTLIBRARIES assignment.
60636
60637 2006-08-21  Bruno Haible  <bruno@clisp.org>
60638
60639         BeOS portability.
60640         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60641         BeOS has mbrtowc() but no <wctype.h>.
60642
60643 2006-08-21  Bruno Haible  <bruno@clisp.org>
60644
60645         BeOS portability.
60646         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60647         exist.
60648
60649 2006-08-21  Bruno Haible  <bruno@clisp.org>
60650
60651         BeOS portability.
60652         * lib/mbchar.h: Include <wctype.h> only if it exists.
60653
60654 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60655
60656         Remove files that are no longer needed by their respective modules.
60657         * m4/obstack.m4: Remove.
60658         * m4/strerror_r.m4: Remove.
60659         * m4/uint32_t.m4: Remove.
60660         * m4/uintptr_t.m4: Remove.
60661         * m4/ullong_max.m4: Remove.
60662         * m4/xstrtoimax.m4: Remove.
60663         * m4/xstrtoumax.m4: Remove.
60664
60665         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60666         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60667         dependencies now capture this.
60668
60669         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60670         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60671         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60672         * m4/human.m4 (gl_HUMAN): Likewise.
60673         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60674         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60675
60676         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60677
60678         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60679         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60680         stdint.
60681         * m4/human.m4 (gl_HUMAN): Likewise.
60682         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60683         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60684         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60685         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60686         * m4/xstrtol (gl_XSTRTOL): Likewise.
60687
60688         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60689         AC_TYPE_LONG_LONG_INT.
60690         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60691         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60692         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60693         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60694
60695         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60696         on stdbool.
60697
60698         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60699         (gl_PREREQ_XSTRTOUL): Remove.
60700
60701         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60702
60703         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60704         mode.
60705
60706 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60707
60708         Add and change modules to make it easier for coreutils to use
60709         gnulib-tool.
60710         * modules/backupfile (Files): Remove m4/d-ino.m4.
60711         (Depends-on): Add d-ino.
60712         * modules/cycle-check (Depends-on): Add stdint.
60713         (lib_SOURCES): Add cycle-check.h.
60714         * modules/d-ino: New module.
60715         * modules/d-type: New module.
60716         * modules/error (Files): Remove m4/strerror_r.m4.
60717         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60718         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60719         m4/inttypes_h.m4, m4/uintmax_t.m4.
60720         (Depends-on): Add stdint.
60721         (lib_SOURCES): Add fsusage.h.
60722         * modules/getcwd (Files): Remove d-ino.m4.
60723         (Depends-on): Add d-ino.
60724         * modules/getndelim2 (Depends-on): Add stdint.
60725         * modules/glob (Files): Remove m4/d-type.m4.
60726         (Depends-on): Add d-type.
60727         * modules/host-os: New module.
60728         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60729         m4/inttypes_h.m4, m4/uintmax_t.m4.
60730         * Depends-on: Add stdint.
60731         (lib_SOURCES): Add human.h.
60732         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60733         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60734         m4/uintmax_t.m4, m4/ulonglong.m4.
60735         (Depends-on): Add stdint.
60736         (EXTRA_DIST): Add inttostr.h.
60737         * modules/lchmod: New module.
60738         * modules/link-follow: New module.
60739         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60740         (Depends-on): Add lchmod.
60741         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60742         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60743         (Depends-on): Add stdint.
60744         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60745         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60746         (Depends-on): Add stdint.
60747         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60748         * modules/perl: New module.
60749         * modules/regex (Depends-on): Add stdint.
60750         * modules/rmdir-errno: New module.
60751         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60752         m4/intmax_t.m4.
60753         (Depends-on): Add stdint.
60754         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60755         m4/uintmax_t.m4.
60756         (Depends-on): Add stdint.
60757         * modules/unlink-busy: New module.
60758         * modules/utimecmp (Depends-on): Add stdint.
60759         * modules/uptime: New module.
60760         * modules/winsz-ioctl: New module.
60761         * modules/winsz-termios: New module.
60762         * modules/xnanosleep (Depends-on): Add nanosleep.
60763         * modules/ullong_max: Remove.
60764         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60765         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60766         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60767         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60768         (Depends-on): Add inttypes.
60769         (lib_SOURCES): Add xstrtol.h.
60770         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60771         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60772         * MODULES.html.sh: Move 'assert' into the assert section.
60773         Move 'dummy' into the linking section.
60774         Remove ullong_max.
60775         Add section for compatibility checks for POSIX:2001 functions,
60776         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60777         winsz-ioctl, and winsz-termios into it.
60778         Add lchmod.
60779         Add top-level Misc section and put host-os, perl, and uptime
60780         into it.
60781
60782 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60783
60784         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60785         now assume the stdint module.  Do not include inttypes.h.
60786         * lib/fsusage.h: Likewise.
60787         * lib/getndelim2.c: Likewise.
60788         * lib/human.h: Likewise.
60789         * lib/inttostr.h: Likewise.
60790         * lib/obstack.c: Likewise.
60791         * lib/regex_internal.h: Likewise.
60792         * lib/tempname.c: Likewise.
60793         * lib/utimecmp.c: Likewise.
60794         * lib/xstrtol.h: Likewise.
60795
60796         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60797
60798         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60799         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60800         * lib/xtime.h: Likewise.
60801
60802 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60803
60804         * modules/openat (Files): Add lib/fchmodat.c.
60805         Fixes problem reported by Jay Youngman.
60806
60807 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60808
60809         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60810         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60811
60812 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60813             Bruno Haible  <bruno@clisp.org>
60814
60815         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60816         and is a script that invokes bison. Tighten the code. Add comments.
60817
60818 2006-08-18  Jim Meyering  <jim@meyering.net>
60819
60820         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60821         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60822         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60823         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60824
60825 2006-08-18  Bruno Haible  <bruno@clisp.org>
60826
60827         * modules/bison-i18n: New file.
60828         * MODULES.html.sh (Internationalization functions): Add it.
60829
60830 2006-08-18  Bruno Haible  <bruno@clisp.org>
60831
60832         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60833         sys/statvfs.h. When getmntinfo was found, check its declaration and
60834         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60835
60836 2006-08-18  Bruno Haible  <bruno@clisp.org>
60837
60838         * m4/bison-i18n.m4: New file, from bison.
60839
60840 2006-08-18  Bruno Haible  <bruno@clisp.org>
60841
60842         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60843         (ME_DUMMY): Treat "kernfs" as a dummy.
60844         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60845
60846 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60847
60848         Update from coreutils.
60849
60850         2006-08-15  Jim Meyering  <jim@meyering.net>
60851
60852         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60853
60854         2006-01-17  Jim Meyering  <jim@meyering.net>
60855
60856         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60857
60858         2006-01-11  Jim Meyering  <jim@meyering.net>
60859
60860         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60861         Check for the lchmod function.
60862
60863 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60864
60865         Update from coreutils.
60866
60867         * lib/__fpending.h: Add copyright notice.
60868         * lib/fprintftime.h: Likewise.
60869         * lib/savedir.c: Use (C) in copyright notice.
60870         * lib/savedir.h: Likewise.
60871
60872         2006-08-15  Jim Meyering  <jim@meyering.net>
60873
60874         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60875         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60876         in support of the EXPECTED_ERRNO macro.
60877         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60878         definitions.  Instead, define the appropriate symbols and include
60879         "at-func.c".
60880         * lib/mkdirat.c (mkdirat): Likewise.
60881         * lib/fchmodat.c (fchmodat): Likewise.
60882         (ENOSYS): Remove definition.
60883         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60884         it.  Don't include "unistd--.h" -- it wasn't ever used.
60885
60886         2006-01-17  Jim Meyering  <jim@meyering.net>
60887
60888         Rewrite fts.c not to change the current working directory,
60889         by using openat, fstatat, fdopendir, etc..
60890
60891         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60892         (HAVE_OPENAT_SUPPORT): Define.
60893         [_LIBC] (fchdir): Don't undef or define; no longer used.
60894         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60895         Now, this `function' always succeeds, and consumes its file descriptor
60896         parameter -- so callers must not close such FDs.  Update callers.
60897         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60898         (diropen): Add parameter, SP.  Adjust all callers.
60899         Implement using diropen_fd, rather than open.
60900         (fts_open): Initialize new member, fts_cwd_fd.
60901         Remove fts_rft-setting code.
60902         (fts_close): Close fts_cwd_fd, if necessary.
60903         (__opendir2): Define in terms of opendir or opendirat,
60904         depending on whether the FST_NOCHDIR flag is set.
60905         (fts_build): Since fts_safe_changedir consumes its FD, and since
60906         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60907         and close the dup'd file descriptor upon failure.
60908         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60909         (fts_safe_changedir): Tweak semantics to reflect that this function
60910         now calls cwd_advance_fd and hence consumes its FD argument.
60911         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60912         [struct FTS] (fts_rft): Remove now-unused member.
60913         [struct FTS] (fts_cycle.state): Improve comment.
60914
60915         * lib/openat.c (openat_needs_fchdir): New function.
60916         * lib/openat.h (openat_needs_fchdir): Declare it.
60917
60918 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60921         Problem and fix reported by Pádraig Brady in
60922         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60923
60924 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60925
60926         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60927
60928 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60929
60930         * lib/memcoll.c (memcoll): Optimize for the common case where the
60931         arguments are bytewise equal.
60932
60933 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60934
60935         * doc/regexprops-generic.texi: Add a copyright notice.
60936
60937 2006-08-15  Bruno Haible  <bruno@clisp.org>
60938
60939         * modules/tmpdir (License): Change to LGPL.
60940
60941 2006-08-15  Bruno Haible  <bruno@clisp.org>
60942
60943         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60944         module.
60945
60946 2006-08-14  Simon Josefsson  <jas@extundo.com>
60947
60948         * config/srclist.txt: Add gnupload.
60949
60950 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60951
60952         Change copyright notice from LGPL 2 to GPL 2, since that's the
60953         standard form used in the gnulib repository.
60954         * tests/test-lock.c: Likewise.
60955         * tests/test-stdint.c: Likewise.
60956         * tests/test-tls.c: Likewise.
60957
60958         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60959         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60960         Add copyright notice.
60961
60962         * check-module: Add copyright notice.  Output a copyright
60963         notice if "--version" is specified.
60964         * modules/COPYING: New file.
60965         * tests/test-getaddrinfo.c: Add copyright notice.
60966         * tests/test-verify.c: Likewise.
60967
60968 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60969
60970         Change copyright notice from LGPL 2 to GPL 2, since that's the
60971         standard form used in the gnulib repository.
60972         * lib/lock.c: LGPL -> GPL.
60973         * lib/lock.h: Likewise.
60974         * lib/strnlen1.c: Likewise.
60975         * lib/strnlen1.h: Likewise.
60976         * lib/tls.c: Likewise.
60977         * lib/tls.h: Likewise.
60978         * lib/tmpdir.c: Likewise.
60979
60980         * lib/TODO: Remove; this belongs only in coreutils.
60981
60982 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60983
60984         Add copyright notices to long-enough files that lack them, since
60985         otherwise the files aren't clearly free.  Use the same notice that
60986         getdate.texi already uses.
60987         * doc/alloca-opt.texi: Add copyright notice.
60988         * doc/alloca.texi: Likewise.
60989         * doc/ctime.texi: Likewise.
60990         * doc/functions.texi: Likewise.
60991         * doc/gcd.texi: Likewise.
60992         * doc/gnulib-tool.texi: Likewise.
60993         * doc/inet_ntoa.texi: Likewise.
60994         * doc/visibility.texi: Likewise.
60995
60996         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60997         * doc/quote.texi: Add copyright notice.
60998
60999         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61000         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61001         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61002         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61003         is now obsolete, and give a pointer to the Sun list.
61004         Add copyright notice.
61005
61006 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         * config/srclistvars.sh: Add copyright notice.
61009
61010 2006-08-14  Eric Blake  <ebb9@byu.net>
61011
61012         Import the following change from libc:
61013
61014         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61015
61016         Upstream bug 2997.
61017         * lib/misc/error.c: Add space between program name and message if file
61018         name is missing.
61019
61020 2006-08-12  Karl Berry  <karl@gnu.org>
61021
61022         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61023         remove, these originate in gnulib now.
61024
61025 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61026
61027         * doc/Makefile (standards.info standards.html standards.dvi):
61028         Also depend on make-stds.texi.
61029
61030 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61031
61032         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61033         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61034
61035         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61036         in wchar_t.  Problem reported by Eric Blake.
61037
61038         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61039         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61040         Also, help the compiler to keep LEN in a register.
61041
61042 2006-08-11  Eric Blake  <ebb9@byu.net>
61043
61044         * users.txt: Sort.  Add tar.
61045
61046 2006-08-11  Bruno Haible  <bruno@clisp.org>
61047
61048         * users.txt: New file.
61049
61050 2006-08-11  Bruno Haible  <bruno@clisp.org>
61051
61052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61053         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61054
61055 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61056
61057         * modules/snprintf (Depends-on): Remove minmax.
61058         (Maintainer): Add self and Bruno.
61059
61060 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61061
61062         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61063         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61064         (EOVERFLOW): Define if the system does not.
61065         Do not include "minmax.h"; it wasn't used.
61066         (snprintf): Don't assume size_t promotes to an unsigned type.
61067         Fix bug when generated string was too long for the buffer: the
61068         buffer's contents are supposed to be the initial prefix of the
61069         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61070         exceeds INT_MAX; do the check ourselves.
61071
61072         Import the following changes from libc:
61073
61074         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61075
61076         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61077         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61078         set wc to the byte which couldn't be converted.
61079         (re_string_reconstruct): Don't clear valid_raw_len before calling
61080         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61081         tip_context using re_string_context_at.
61082
61083         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61084
61085         * lib/posix/regex.h: g++ still cannot handled [restrict].
61086
61087         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61088
61089         * lib/posix/regex.h: Remove special handling for VMS.
61090
61091 2006-08-10  Jim Meyering  <jim@meyering.net>
61092
61093         * modules/same-inode: New module.
61094         * modules/dev-ino: New module.
61095         * modules/cycle-check: Depend on these modules, rather than simply
61096         including their .h files.
61097         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61098         required via m4/cycle-check.m4.
61099         * modules/same: Depend on new same-inode module, rather than
61100         including same-inode.h.
61101         * modules/chdir-safer: New file.
61102
61103         * modules/chown (Depends-on): Add stat-macros.
61104
61105 2006-08-10  Jim Meyering  <jim@meyering.net>
61106
61107         * m4/cycle-check.m4: New file.
61108         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61109         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61110
61111 2006-08-10  Eric Blake  <ebb9@byu.net>
61112
61113         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61114         in from original proposal.
61115
61116 2006-08-10  Eric Blake  <ebb9@byu.net>
61117         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61118
61119         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61120         namespace.
61121
61122 2006-08-10  Bruno Haible  <bruno@clisp.org>
61123
61124         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61125         as well.
61126
61127 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61128
61129         Sync from coreutils.
61130
61131         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61132
61133         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61134         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61135
61136 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         * modules/restrict: Remove; no longer needed now that we assume
61139         Autoconf 2.59 or later.
61140         * MODULES.html.sh: Remove 'restrict'.
61141         * modules/argp (Depends-on): Remove 'restrict'.
61142         * modules/base64 (Depends-on): Likewise.
61143         * modules/gc (Depends-on): Likewise.
61144         * modules/getaddrinfo (Depends-on): Likewise.
61145         * modules/glob (Depends-on): Likewise.
61146         * modules/inet_ntop (Depends-on): Likewise.
61147         * modules/inet_pton (Depends-on): Likewise.
61148         * modules/memxor (Depends-on): Likewise.
61149         * modules/regex (Depends-on): Likewise.
61150         * modules/strtok_r (Depends-on): Likewise.
61151         * modules/time_r (Depends-on): Likewise.
61152
61153 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61154
61155         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61156         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61157         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61158         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61159         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61160         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61161         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61162         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61163
61164         Merge from coreutils.
61165         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61166         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61167         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61168         * m4/time_r.m4 (gl_TIME_R): Likewise.
61169
61170 2006-08-09  Karl Berry  <karl@gnu.org>
61171
61172         * config/srclist.txt: no more gettext-tools, per Bruno.
61173
61174 2006-08-08  Eric Blake  <ebb9@byu.net>
61175
61176         * modules/verror: New module.
61177         * MODULES.html.sh: Document it.
61178
61179 2006-08-08  Eric Blake  <ebb9@byu.net>
61180
61181         * lib/verror.h, lib/verror.c: New files.
61182
61183 2006-08-08  Eric Blake  <ebb9@byu.net>
61184
61185         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61186         verror_at_line output complies with GNU Coding Standards even when
61187         file is NULL.
61188
61189 2006-08-07  Bruno Haible  <bruno@clisp.org>
61190
61191         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61192         versions of AIX.
61193         Reported by Ralf Wildenhues.
61194
61195 2006-08-07  Bruno Haible  <bruno@clisp.org>
61196
61197         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61198         in an AC_DEFUN. Needed so that the autoconf snippets can use
61199         AC_REQUIRE.
61200
61201 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61202
61203         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61204         Initialize pkgdata_DATA.
61205         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
61206         overriding it.
61207
61208 2006-08-06  Eric Blake  <ebb9@byu.net>
61209
61210         * lib/error.h: Fold in some upstream changes from glibc.
61211         * lib/error.c: Likewise.
61212
61213 2006-08-04  Bruno Haible  <bruno@clisp.org>
61214
61215         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61216         Make the mostlyclean-local rule depend on mostlyclean-generic.
61217         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
61218
61219 2006-07-31  Bruno Haible  <bruno@clisp.org>
61220
61221         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
61222         <stdlib.h>, <string.h>.
61223
61224 2006-07-30  Bruno Haible  <bruno@clisp.org>
61225
61226         * modules/readlink (License): Change to LGPL.
61227
61228 2006-07-30  Bruno Haible  <bruno@clisp.org>
61229
61230         * modules/javaversion (Makefile.am): Distribute javaversion.java and
61231         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
61232         set PKGDATADIR to point to it.
61233
61234 2006-07-30  Bruno Haible  <bruno@clisp.org>
61235
61236         * modules/csharpexec (configure.ac): Comment out macro invocation.
61237         * modules/javaexec (configure.ac): Likewise.
61238         * modules/javacomp-script (configure.ac): Likewise.
61239
61240         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
61241
61242 2006-07-30  Bruno Haible  <bruno@clisp.org>
61243
61244         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
61245         linked-list.
61246
61247 2006-07-30  Bruno Haible  <bruno@clisp.org>
61248
61249         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
61250
61251 2006-07-30  Bruno Haible  <bruno@clisp.org>
61252
61253         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61254         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
61255         get removed.
61256
61257 2006-07-29  Bruno Haible  <bruno@clisp.org>
61258
61259         Make it possible for gnulib-tool to work with locally modified or
61260         augmented gnulib repositories.
61261         * gnulib-tool (func_usage): Document --local-dir option.
61262         (local_gnulib_dir): New variable.
61263         Handle --local-dir option.
61264         (func_lookup_file): New function.
61265         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
61266         (func_get_description, func_get_filelist, func_get_description,
61267         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
61268         func_get_automake_snippet, func_get_include_directive,
61269         func_get_license, func_get_maintainer): Use func_lookup_file.
61270         (func_import, func_create_testdir): Use func_lookup_file.
61271
61272 2006-07-29  Bruno Haible  <bruno@clisp.org>
61273
61274         * modules/setenv (Depends-on): Add unistd.
61275
61276 2006-07-29  Bruno Haible  <bruno@clisp.org>
61277
61278         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61279
61280 2006-07-29  Bruno Haible  <bruno@clisp.org>
61281
61282         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61283
61284 2006-07-29  Bruno Haible  <bruno@clisp.org>
61285
61286         * gnulib-tool (import, update): If there is no Makefile.am, look at
61287         aclocal.m4, instead of bailing out.
61288
61289 2006-07-29  Bruno Haible  <bruno@clisp.org>
61290
61291         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61292         Categorize the options by when they are useful.
61293
61294 2006-07-29  Bruno Haible  <bruno@clisp.org>
61295
61296         * gnulib-tool (func_usage): Document option --no-libtool.
61297         Handle option --no-libtool.
61298         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61299         for changed semantics of $libtool variable.
61300         (func_import): Likewise. If libtool is not used, show this through
61301         an option --no-libtool.
61302         (func_create_testdir): Update.
61303
61304 2006-07-29  Bruno Haible  <bruno@clisp.org>
61305
61306         * gnulib-tool (func_import): Extend error message about missing
61307         --doc-base.
61308
61309 2006-07-29  Bruno Haible  <bruno@clisp.org>
61310
61311         * gnulib-tool (func_import): Don't create the $docbase directory if
61312         there is no file to store there.
61313
61314 2006-07-29  Bruno Haible  <bruno@clisp.org>
61315
61316         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61317         relevant, look for configure.ac there, not in the current directory.
61318         Also use a simple search for AC_PREREQ, not "autoconf --trace".
61319
61320 2006-07-29  Bruno Haible  <bruno@clisp.org>
61321
61322         * gnulib-tool (SORT): New variable.
61323         (func_usage): Undocument --assume-autoconf option.
61324         Remove --assume-autoconf option handling.
61325         (autoconf_minversion): Determine from the contents of configure.ac.
61326         (func_import): Remove autoconf_minversion handling.
61327         Suggested by Eric Blake.
61328
61329 2006-07-29  Bruno Haible  <bruno@clisp.org>
61330
61331         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
61332
61333 2006-07-29  Bruno Haible  <bruno@clisp.org>
61334
61335         * config/srclist.txt (*setenv.[ch]): Remove rules.
61336
61337 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61338
61339         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
61340
61341 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61342
61343         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
61344         arpa/inet.h.
61345
61346 2006-07-28  Simon Josefsson  <jas@extundo.com>
61347
61348         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
61349         * modules/inet_pton (Depends-on): Likewise.
61350
61351 2006-07-28  Simon Josefsson  <jas@extundo.com>
61352
61353         * m4/netinet_in_h.m4: New file.
61354
61355 2006-07-28  Simon Josefsson  <jas@extundo.com>
61356
61357         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
61358         #include's.
61359
61360 2006-07-28  Simon Josefsson  <jas@extundo.com>
61361
61362         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
61363         #include's.
61364
61365 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
61366
61367         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
61368         setgid on directories only if they set these bits.
61369         * lib/modechange.h: Remove obsolete comment about masks.
61370
61371 2006-07-28  Eric Blake  <ebb9@byu.net>
61372
61373         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
61374         macro expansion.
61375
61376 2006-07-28  Bruno Haible  <bruno@clisp.org>
61377
61378         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61379
61380 2006-07-28  Bruno Haible  <bruno@clisp.org>
61381
61382         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61383
61384 2006-07-28  Bruno Haible  <bruno@clisp.org>
61385
61386         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61387         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61388         Define fallbacks.
61389         Avoids link error on FreeBSD 4.x.
61390         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61391
61392         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61393         encoding.
61394         * lib/mbswidth.c (iswcntrl): Likewise.
61395
61396 2006-07-27  Bruno Haible  <bruno@clisp.org>
61397
61398         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61399         test.
61400
61401 2006-07-27  Bruno Haible  <bruno@clisp.org>
61402
61403         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61404         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61405         defined.
61406
61407 2006-07-26  Eric Blake  <ebb9@byu.net>
61408
61409         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61410
61411 2006-07-26  Eric Blake  <ebb9@byu.net>
61412
61413         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61414         like mingw that lack mkstemp.
61415         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61416         avoid compilation warning on mingw.
61417
61418 2006-07-26  Bruno Haible  <bruno@clisp.org>
61419
61420         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61421         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61422         INT_FAST*_MIN, INTPTR_MIN.
61423
61424 2006-07-25  Bruno Haible  <bruno@clisp.org>
61425
61426         * modules/version-etc (Depends-on): Add stdarg.
61427
61428 2006-07-25  Bruno Haible  <bruno@clisp.org>
61429
61430         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61431         complex commands.
61432
61433 2006-07-25  Bruno Haible  <bruno@clisp.org>
61434
61435         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61436         defined in <stdarg.h> or config.h.
61437
61438 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61439
61440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61441         (gl_STDIO_SAFER): Remove.
61442
61443 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61444
61445         * MODULES.html.sh (File stream based Input/Output):
61446         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61447         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61448         * modules/fopen-safer, modules/tmpfile-safer: New files.
61449         * modules/stdio-safer: Remove.
61450
61451 2006-07-24  Bruno Haible  <bruno@clisp.org>
61452
61453         * modules/tmpdir: New file.
61454         * MODULES.html.sh (File system functions): Add it.
61455
61456 2006-07-24  Bruno Haible  <bruno@clisp.org>
61457
61458         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61459         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61460
61461 2006-07-24  Bruno Haible  <bruno@clisp.org>
61462
61463         * modules/clean-temp: New file.
61464
61465 2006-07-24  Bruno Haible  <bruno@clisp.org>
61466
61467         * m4/tmpdir.m4: New file, from GNU gettext.
61468
61469 2006-07-24  Bruno Haible  <bruno@clisp.org>
61470
61471         * lib/tmpdir.h: New file, from GNU gettext.
61472         * lib/tmpdir.c: New file, from GNU gettext.
61473
61474 2006-07-24  Bruno Haible  <bruno@clisp.org>
61475
61476         * lib/clean-temp.h: New file, from GNU gettext.
61477         * lib/clean-temp.c: New file, from GNU gettext.
61478
61479 2006-07-23  Eric Blake  <ebb9@byu.net>
61480
61481         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61482         (Depends-on): Add binary-io.
61483
61484 2006-07-23  Eric Blake  <ebb9@byu.net>
61485
61486         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61487
61488 2006-07-23  Eric Blake  <ebb9@byu.net>
61489
61490         * lib/tmpfile-safer.c: New file.
61491         * lib/stdio-safer.h (fopen_safer): Add prototype.
61492         * lib/stdio--.h (tmpfile): Make safer.
61493
61494 2006-07-23  Bruno Haible  <bruno@clisp.org>
61495
61496         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61497         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61498         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61499         gl_linked_remove_at): Use it.
61500
61501 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61502         and Simon Josefsson <jas@extundo.com>
61503
61504         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61505
61506         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61507
61508 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61509
61510         * modules/close-stream: New file.
61511         * modules/closeout (Description): Make it clear that it exits
61512         with a diagnostic on error.
61513         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61514         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61515
61516 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61517
61518         * m4/close-stream.m4: New file.
61519
61520 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61521
61522         * lib/close-stream.c, lib/close-stream.h: New files.
61523
61524 2006-07-22  Bruno Haible  <bruno@clisp.org>
61525
61526         Merge from GNU gettext 0.15.
61527
61528         2006-05-01  Bruno Haible  <bruno@clisp.org>
61529
61530                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61531
61532         2006-07-22  Bruno Haible  <bruno@clisp.org>
61533
61534                 * modules/javaversion: New file.
61535                 * MODULES.html.sh (Java): Add javaversion.
61536
61537         2006-03-12  Bruno Haible  <bruno@clisp.org>
61538
61539                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61540
61541         2005-12-04  Bruno Haible  <bruno@clisp.org>
61542
61543                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61544                 (untested).
61545
61546         2006-06-21  Bruno Haible  <bruno@clisp.org>
61547
61548                 Avoid warnings from recent versions of mcs.
61549                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61550                 -o, -L, -r any more. Use options documented since mcs-1.0
61551                 instead. Similarly for -g.
61552
61553         2005-12-04  Bruno Haible  <bruno@clisp.org>
61554
61555                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61556                 .resources, not .resource.
61557
61558         2005-07-09  Bruno Haible  <bruno@clisp.org>
61559
61560                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61561                 add a .dll suffix.
61562                 Reported by Mark Junker <mjscod@gmx.de>.
61563
61564         2006-07-22  Bruno Haible  <bruno@clisp.org>
61565
61566                 * modules/gettext: Upgrade to gettext-0.15.
61567                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61568                 m4/visibility.m4.
61569                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61570
61571 2006-07-22  Bruno Haible  <bruno@clisp.org>
61572
61573         Merge from GNU gettext 0.15.
61574
61575         2006-03-25  Bruno Haible  <bruno@clisp.org>
61576
61577                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61578
61579         2006-07-21  Bruno Haible  <bruno@clisp.org>
61580
61581                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61582                 "1.1".
61583
61584         2006-05-09  Bruno Haible  <bruno@clisp.org>
61585
61586                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61587                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61588                 for the conftestver execution.
61589
61590         2006-05-01  Bruno Haible  <bruno@clisp.org>
61591
61592                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61593                 optional target-version argument. Verify that the compiler
61594                 groks source of the specified source-version, or add -source
61595                 option as necessary. Verify that the compiler produces
61596                 bytecode in the specified target-version, or add -target and
61597                 -source options as necessary. Make the result of the test
61598                 available as variable CONF_JAVAC. Also log error output in
61599                 config.log.
61600
61601         2006-03-11  Bruno Haible  <bruno@clisp.org>
61602
61603                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61604
61605         2006-05-09  Bruno Haible  <bruno@clisp.org>
61606
61607                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61608                 CLASSPATH_SEPARATOR to a semicolon.
61609
61610         2006-03-12  Bruno Haible  <bruno@clisp.org>
61611
61612                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61613                 available as variable CONF_JAVA, for subsequent autoconf
61614                 tests. Also log error output in config.log.
61615
61616         2006-07-19  Bruno Haible  <bruno@clisp.org>
61617
61618                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61619                 that getline works on glibc2 systems. Needed to avoid trouble
61620                 in relocatable.c.
61621                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61622
61623         2005-12-04  Bruno Haible  <bruno@clisp.org>
61624
61625                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61626                 launcher (untested).
61627
61628         2005-12-04  Bruno Haible  <bruno@clisp.org>
61629
61630                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61631
61632         2006-07-22  Bruno Haible  <bruno@clisp.org>
61633
61634                 * gettext.m4: Update from GNU gettext-0.15.
61635                 * nls.m4: Likewise.
61636                 * po.m4: Likewise.
61637                 * inttypes-pri.m4: Likewise.
61638                 * inttypes-h.m4: Renamed from inttypes.m4.
61639                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61640
61641 2006-07-22  Bruno Haible  <bruno@clisp.org>
61642
61643         Merge from GNU gettext 0.15.
61644
61645         2005-07-05  Bruno Haible  <bruno@clisp.org>
61646
61647                 * printf-args.c (printf_fetchargs): Work around broken
61648                 definition of wint_t on mingw.
61649
61650         2005-02-12  Bruno Haible  <bruno@clisp.org>
61651
61652                 * xallocsa.h: Add extern "C" for C++.
61653
61654         2006-05-17  Bruno Haible  <bruno@clisp.org>
61655
61656                 Cygwin portability.
61657                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61658
61659         2006-04-30  Bruno Haible  <bruno@clisp.org>
61660
61661                 * progreloc.c: Include <mach-o/dyld.h> if available.
61662                 (find_executable): Use _NSGetExecutablePath when possible.
61663
61664         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61665
61666                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61667                 function.
61668
61669         2005-12-29  Bruno Haible  <bruno@clisp.org>
61670
61671                 * progreloc.c (set_program_name_and_installdir): Fix
61672                 compilation error.
61673
61674         2005-12-04  Bruno Haible  <bruno@clisp.org>
61675
61676                 Cygwin portability.
61677                 * progreloc.c: Include <windows.h> also on Cygwin.
61678                 (find_executable): Add support for Cygwin.
61679                 (set_program_name_and_installdir): Handle also platforms with
61680                 nonempty EXEEXT.
61681
61682         2006-07-11  Bruno Haible  <bruno@clisp.org>
61683
61684                 * javacomp.c: Fix a comment.
61685                 Reported by Jim Meyering.
61686
61687         2006-04-30  Bruno Haible  <bruno@clisp.org>
61688
61689                 * javacomp.h (compile_java_class): Add source_version,
61690                 target_version arguments.
61691                 * javacomp.c: Rewritten to choose only a compiler that
61692                 respects the specified source_version and target_version.
61693
61694         2006-06-27  Bruno Haible  <bruno@clisp.org>
61695
61696                 Assume correct S_ISDIR macro.
61697                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61698
61699         2006-07-22  Bruno Haible  <bruno@clisp.org>
61700
61701                 * javaversion.h: New file, from GNU gettext.
61702                 * javaversion.c: New file, from GNU gettext.
61703                 * javaversion.java: New file, from GNU gettext.
61704                 * javaversion.class: New file, from GNU gettext.
61705
61706         2006-05-17  Bruno Haible  <bruno@clisp.org>
61707
61708                 Cygwin portability.
61709                 * javaexec.c (execute_java_class): Test for jview program
61710                 also on Cygwin.
61711
61712         2006-04-09  Bruno Haible  <bruno@clisp.org>
61713
61714                 * fatal-signal.c: Don't include string.h.
61715                 (at_fatal_signal): Use a copying loop instead of memcpy.
61716
61717         2005-12-04  Bruno Haible  <bruno@clisp.org>
61718
61719                 * csharpexec.c: Add support for 'clix' launcher (untested).
61720                 (execute_csharp_using_sscli): New function.
61721                 (execute_csharp_program): Call it.
61722
61723         2006-06-21  Bruno Haible  <bruno@clisp.org>
61724
61725                 Avoid warnings from recent versions of mcs.
61726                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61727                 -o, -L, -r any more. Use options documented since mcs-1.0
61728                 instead. Similarly for -g.
61729
61730         2005-07-09  Bruno Haible  <bruno@clisp.org>
61731
61732                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61733                 add a .dll suffix.
61734                 Reported by Mark Junker <mjscod@gmx.de>.
61735
61736         2006-06-17  Bruno Haible  <bruno@clisp.org>
61737
61738                 * config.charset: Update for NetBSD 3.0.
61739
61740         2006-05-17  Bruno Haible  <bruno@clisp.org>
61741
61742                 Cygwin portability.
61743                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61744
61745         2006-05-16  Bruno Haible  <bruno@clisp.org>
61746
61747                 * localcharset.c [CYGWIN]: Include <windows.h>.
61748                 (get_charset_aliases): For Cygwin, return the same CPxxx
61749                 aliases list as under WIN32.
61750                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61751                 the environment variables. Fall back to GetACP().
61752
61753         2006-04-05  Bruno Haible  <bruno@clisp.org>
61754
61755                 * config.charset: Update Juan Manuel Guerrero's address.
61756
61757         2005-02-12  Bruno Haible  <bruno@clisp.org>
61758
61759                 * allocsa.h: Add extern "C" for C++.
61760
61761         2005-02-10  Bruno Haible  <bruno@clisp.org>
61762
61763                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61764                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61765
61766         2006-07-22  Bruno Haible  <bruno@clisp.org>
61767
61768                 * gettext.h: Update to GNU gettext-0.15.
61769
61770 2006-07-22  Bruno Haible  <bruno@clisp.org>
61771
61772         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61773         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61774         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61775
61776 2006-07-21  Eric Blake  <ebb9@byu.net>
61777
61778         * modules/stdlib-safer: New file.
61779         * MODULES.html.sh (File stream based Input/Output): Add
61780         stdlib-safer.
61781
61782 2006-07-21  Eric Blake  <ebb9@byu.net>
61783
61784         * lib/stdlib-safer.h: New file from coreutils, required by
61785         stdlib--.h.
61786
61787 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61788
61789         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61790
61791 2006-07-20  Bruno Haible  <bruno@clisp.org>
61792
61793         * gnulib-tool: Recognize new option --assume-autoconf.
61794         (autoconf_minversion): New variable.
61795         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61796
61797 2006-07-20  Bruno Haible  <bruno@clisp.org>
61798
61799         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61800
61801 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61802
61803         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61804         Reindent and repaginate.
61805
61806 2006-07-19  Derek Price  <derek@ximbiot.com>
61807
61808         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61809         Correct grammar.
61810
61811 2006-07-17  Bruno Haible  <bruno@clisp.org>
61812
61813         * modules/list: New file.
61814         * modules/array-list: New file.
61815         * modules/carray-list, modules/carray-list-tests: New files.
61816         * modules/linked-list, modules/linked-list-tests: New files.
61817         * modules/avltree-list, modules/avltree-list-tests: New files.
61818         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61819         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61820         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61821         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61822         * modules/oset: New file.
61823         * modules/array-oset: New file.
61824         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61825         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61826         * tests/test-carray_list.c: New file.
61827         * tests/test-linked_list.c: New file.
61828         * tests/test-avltree_list.c: New file.
61829         * tests/test-rbtree_list.c: New file.
61830         * tests/test-linkedhash_list.c: New file.
61831         * tests/test-avltreehash_list.c: New file.
61832         * tests/test-rbtreehash_list.c: New file.
61833         * tests/test-avltree_oset.c: New file.
61834         * tests/test-rbtree_oset.c: New file.
61835         * MODULES.html.sh (Container data structures): New section.
61836
61837 2006-07-17  Bruno Haible  <bruno@clisp.org>
61838
61839         * m4/gl_list.m4: New file.
61840
61841 2006-07-17  Bruno Haible  <bruno@clisp.org>
61842
61843         * lib/gl_list.h: New file.
61844         * lib/gl_list.c: New file.
61845         * lib/gl_array_list.h: New file.
61846         * lib/gl_array_list.c: New file.
61847         * lib/gl_carray_list.h: New file.
61848         * lib/gl_carray_list.c: New file.
61849         * lib/gl_linked_list.h: New file.
61850         * lib/gl_linked_list.c: New file.
61851         * lib/gl_anylinked_list1.h: New file.
61852         * lib/gl_anylinked_list2.h: New file.
61853         * lib/gl_avltree_list.h: New file.
61854         * lib/gl_avltree_list.c: New file.
61855         * lib/gl_anyavltree_list1.h: New file.
61856         * lib/gl_anyavltree_list2.h: New file.
61857         * lib/gl_rbtree_list.h: New file.
61858         * lib/gl_rbtree_list.c: New file.
61859         * lib/gl_anyrbtree_list1.h: New file.
61860         * lib/gl_anyrbtree_list2.h: New file.
61861         * lib/gl_anytree_list1.h: New file.
61862         * lib/gl_anytree_list2.h: New file.
61863         * lib/gl_linkedhash_list.h: New file.
61864         * lib/gl_linkedhash_list.c: New file.
61865         * lib/gl_anyhash_list1.h: New file.
61866         * lib/gl_anyhash_list2.h: New file.
61867         * lib/gl_avltreehash_list.h: New file.
61868         * lib/gl_avltreehash_list.c: New file.
61869         * lib/gl_rbtreehash_list.h: New file.
61870         * lib/gl_rbtreehash_list.c: New file.
61871         * lib/gl_anytreehash_list1.h: New file.
61872         * lib/gl_anytreehash_list2.h: New file.
61873
61874         * lib/gl_oset.h: New file.
61875         * lib/gl_oset.c: New file.
61876         * lib/gl_array_oset.h: New file.
61877         * lib/gl_array_oset.c: New file.
61878         * lib/gl_avltree_oset.h: New file.
61879         * lib/gl_avltree_oset.c: New file.
61880         * lib/gl_rbtree_oset.h: New file.
61881         * lib/gl_rbtree_oset.c: New file.
61882         * lib/gl_anytree_oset.h: New file.
61883
61884 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61885
61886         * m4/mkancesdirs.m4: New file.
61887         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61888         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61889         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61890         it.
61891
61892 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61893
61894         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61895         * lib/mkancesdirs.h: New files.
61896         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61897         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61898         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61899         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61900         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61901         callers changed.  Revamp internals significantly, by not
61902         attempting to create directories that are temporarily more
61903         permissive than the final results.  Do not attempt to use
61904         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61905         This removes some race conditions, fixes some bugs, and simplifies
61906         things.  Use new dirchownmod function to do owner and mode changes.
61907         * lib/mkdir-p.h: Likewise.
61908         * lib/modechange.c (octal_to_mode): New function.
61909         (struct mode_change): New member mentioned.
61910         (make_node_op_equals): New arg mentioned.  All callers changed.
61911         (mode_compile): Keep track of which mode bits the user has explicitly
61912         mentioned.
61913         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61914         New arg PMODE_BITS, to keep track of which mode bits the user
61915         mentioned; it treats S_ISUID and S_ISGID speciall.
61916         All callers changed.
61917         * lib/modechange.h: Likewise.
61918
61919 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61920
61921         * MODULES.html.sh: Add mkancestors.
61922         * modules/mkancesdirs: New module.
61923         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61924         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61925         The chdir-safer and afs files are now orphans; I'll remove them
61926         unless someone speaks up.
61927         Add lib/dirchownmod.c, lib/dirchownmod.h.
61928         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61929         Add lchown, mkancesdirs.
61930         (Maintainer): Add self.
61931
61932 2006-07-15  Karl Berry  <karl@gnu.org>
61933
61934         * gnulib-tool: help message wording/arrangement.
61935
61936 2006-07-14  Simon Josefsson  <jas@extundo.com>
61937
61938         * doc/gnulib.texi (Libtool and Windows): New section.
61939
61940 2006-07-12  Simon Josefsson  <jas@extundo.com>
61941
61942         * modules/gendocs (License): Fix license, approved by Karl.
61943
61944 2006-07-12  Eric Blake  <ebb9@byu.net>
61945
61946         * MODULES.html.sh: Add gendocs.
61947
61948 2006-07-11  Eric Blake  <ebb9@byu.net>
61949
61950         * modules/fdl: New module, to install doc/fdl.texi.
61951         * MODULES.html.sh: Add new section for documentation modules.
61952         * gnulib-tool: Avoid space-tab.
61953         (--doc-base): New option, to manage files from doc.
61954
61955 2006-07-11  Eric Blake  <ebb9@byu.net>
61956
61957         * m4/absolute-header.m4: Fix comments to match recent change.
61958
61959 2006-07-11  Eric Blake  <ebb9@byu.net>
61960
61961         * gnulib-tool: List --doc-base before --tests-base.
61962
61963 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61964
61965         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61966
61967 2006-07-11  Bruno Haible  <bruno@clisp.org>
61968
61969         * README: Mention where to put documentation.
61970
61971 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61972
61973         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61974
61975 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61976
61977         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61978         to stdint.m4.
61979
61980 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61981
61982         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61983         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61984         "no/such/file/stdint.h" when there is no such file, so that
61985         the resulting C code can be parsed by dodgy compilers.
61986         Problems reported by Bob Proulx.
61987
61988 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61989
61990         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61991         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61992         macros into the GNU _D_EXACT_NAMLEN.
61993         * lib/savedir.c:  Likewise.
61994         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61995
61996 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61997         and Paul Eggert  <eggert@cs.ucla.edu>
61998
61999         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62000         * m4/savedir.m4:
62001         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62002         macros into the GNU _D_EXACT_NAMLEN.
62003
62004 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62007         around the absolute name, to work around a problem with the HP-UX
62008         11.23 native C compiler, reported by Bob Proulx.
62009
62010 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62011
62012         * doc/maintain.texi, make-stds.texi: Sync from
62013         <http://savannah.gnu.org/projects/gnustandards>.
62014
62015 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62016
62017         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62018
62019 2006-07-09  Jim Meyering  <jim@meyering.net>
62020
62021         * m4/glob.m4: Remove a doubled word in a comment.
62022
62023 2006-07-09  Jim Meyering  <jim@meyering.net>
62024
62025         * lib/argp-pv.c: Remove a doubled word in a comment.
62026         * lib/check-version.c (check_version): Likewise.
62027         * lib/javacomp.c (compile_java_class): Likewise.
62028
62029 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62030
62031         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62032         for the benefit of people using Autoconf 2.60.  If you want to
62033         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62034         (or m4/onceonly.m4, if pre-2.57) manually.
62035
62036 2006-07-08  Jim Meyering  <jim@meyering.net>
62037
62038         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62039         comment.
62040         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62041         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62042         comment.
62043
62044 2006-07-08  Jim Meyering  <jim@meyering.net>
62045
62046         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62047
62048 2006-07-07  Simon Josefsson  <jas@extundo.com>
62049
62050         * tests/test-crc.c: Change expected crc value, the test vector
62051         were probably computed using the old broken crc.c?
62052
62053 2006-07-06  Simon Josefsson  <jas@extundo.com>
62054
62055         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62056         now the canonical place for the M4 file).
62057
62058         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62059         from the sys_socket dependency now.
62060
62061         * modules/inet_pton (Files): Ditto.
62062
62063         * modules/inet_ntop (Files): Ditto.
62064
62065 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62066
62067         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62068         not gl_PREREQ_GETUSERSHELL.
62069
62070 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62071
62072         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62073         with only one argument, for Autoconf 2.60.
62074         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62075         expand to nothing, so add a shell command to avoid syntax error.
62076         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62077
62078 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62079
62080         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62081
62082 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62083
62084         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62085         no longer needed.  Check for isblank decl.
62086         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62087         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62088         of existence.
62089
62090 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62091
62092         * lib/getloadavg.c: Use __VMS, not VMS.
62093         * lib/getopt.c: Likewise.
62094         * lib/getpagesize.h: Likewise.
62095         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62096         and probably does not work.
62097
62098 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62099
62100         * lib/.cppi-disable: Add wcwidth.
62101         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62102         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62103         (ISGRAPH): Remove.  All uses changed to isgraph.
62104         (FOLD) [!defined _LIBC]: Remove special case.
62105         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62106         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62107         HAVE_ISBLANK.
62108         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62109         case.
62110
62111 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62112
62113         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62114         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62115         brackets.  Other minor changes to suppress some compiler
62116         warnings.
62117
62118 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62119         and Paul Eggert  <eggert@cs.ucla.edu>
62120
62121         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62122         of invoking obsolescent AC_HEADER_DIRENT macro.
62123         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62124         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62125         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62126         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62127         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62128         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62129         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62130         * m4/readdir.m4: Remove; no longer needed.
62131
62132 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62133         and Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62136         Don't worry about this obsolete case any more.
62137         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62138         directories.
62139         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62140         worry about this obsolete case any more.
62141         * lib/fts.c: Likewise.
62142         * lib/getcwd.c: Likewise.
62143         * lib/glob.h: Likewise.
62144         * lib/savedir.c: Likewise.
62145
62146 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62147
62148         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62149         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62150         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62151         needed.
62152         All uses removed.
62153         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62154         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62155         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62156         needed.
62157         * m4/getdate.m4 (gl_GETDATE): Likewise.
62158         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62159         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62160         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62161         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62162         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62163         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62164         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62165         needed.
62166
62167 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62168
62169         * lib/memcasecmp.c: Include <limits.h>.
62170         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62171         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62172         Don't assume isdigit succeeds only on '0' through '9'.
62173
62174 2006-07-05  Eric Blake  <ebb9@byu.net>
62175
62176         * modules/getaddrinfo (Depends-on): Add snprintf.
62177
62178 2006-07-05  Eric Blake  <ebb9@byu.net>
62179
62180         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62181         to avoid 'header present but could not be compiled' on cygwin.
62182
62183 2006-07-05  Eric Blake  <ebb9@byu.net>
62184
62185         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62186         missing from netdb.h.
62187         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62188
62189 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62190
62191         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62192         no longer needed.
62193         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62194         * m4/getdate.m4 (gl_GETDATE): Likewise.
62195         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62196         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62197         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62198         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62199         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62200
62201 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62202
62203         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
62204         All uses of is_space replaced by isspace.
62205         * lib/exit.h: Don't talk about STDC_HEADERS.
62206         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
62207         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
62208         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
62209         replaced by isprint etc.
62210         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
62211         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62212         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
62213         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
62214         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
62215         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62216
62217 2006-07-05  Bruno Haible  <bruno@clisp.org>
62218
62219         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
62220         the function exists, before testing against AIX.
62221         Reported by Martin Lambers <marlam@marlam.de>.
62222
62223 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62224
62225         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
62226         From Mark D. Baushke.
62227
62228 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62229
62230         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
62231         to the absolute name, not just one, to bypass Sun C 5.8's
62232         "warning: #include of /usr/include/... may be non-portable".
62233
62234 2006-07-04  Eric Blake  <ebb9@byu.net>
62235
62236         * modules/dirname-tests: New test module.
62237         * tests/test-dirname.c: New file, replacing dirname.c
62238         TEST_DIRNAME section that was recently deleted.
62239
62240 2006-07-04  Bruno Haible  <bruno@clisp.org>
62241
62242         Assume ANSI C header files and <ctype.h> functions.
62243         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
62244         (mbsnwidth): Use isprint, iscntrl instead.
62245
62246 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62247
62248         Merge from coreutils.
62249         * MODULES.html.sh: Add xstrtold.
62250         * modules/xstrtold: New file.
62251         * modules/cycle-check (Files): Add lib/same-inode.h.
62252         * modules/dirname (Files): Add m4/double-slash-root.m4.
62253         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
62254         * modules/mkdir-p (Files): Add lib/same-inode.h.
62255         * modules/same (Files): Add lib/same-inode.h.
62256
62257 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62258
62259         * m4/absolute-header.m4: Renamed from full-header-path.m4.
62260         This is to keep the terminology clean; POSIX talks about
62261         "absolute pathnames", not "full pathnames", but the GNU
62262         Coding Standards say to use "path" for something else;
62263         so use "absolute" to keep both sides happy.
62264         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
62265         Set gl_absolute_header, not gl_full_header_path.
62266         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
62267         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
62268         All uses changed.
62269
62270         Merge from coreutils.
62271
62272         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62273
62274         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62275         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62276         want to require the building of c-strtod.o.
62277         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62278         needs -lm directly.
62279         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62280
62281         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62282
62283         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62284         --as-needed option if available.  Problem reported by Albert Chin in
62285         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62286         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62287         cc merely issues a bunch of annoying warnings for --as-needed
62288         (this problem was reported by Bob Proulx).  Also, try linking with
62289         -lm to detect a bug in binutils 2.16 (this problem was reported
62290         by Ralf Wildenhues).
62291
62292         2006-06-18  Jim Meyering  <jim@meyering.net>
62293
62294         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62295         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62296         macro.
62297         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62298         also check for glibc-2.4's abort-inducing bug.
62299
62300         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62301         Low-probability clean-up should be to use rmdir to get rid of
62302         the just-created directory, not unlink.
62303
62304         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62305         configure fail, and request a bug report to inform us about it.
62306         Add a comment that, barring reports to the contrary, in 2007 we'll
62307         assume ftruncate is universally available.
62308
62309         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62310
62311         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
62312
62313         2006-03-12  Jim Meyering  <jim@meyering.net>
62314
62315         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62316         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62317         * m4/same.m4 (gl_SAME): Likewise.
62318         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
62319
62320         2006-03-11  Eric Blake  <ebb9@byu.net>
62321
62322         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
62323         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
62324         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
62325         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
62326
62327 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62328
62329         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
62330         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
62331         reported by Mark D. Baushke, one in
62332         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
62333
62334         Merge from coreutils.
62335
62336         * lib/.cppi-disable: Add stdint_.h.
62337         * lib/.cvsignore: Add stdint.h.
62338
62339         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62340
62341         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
62342         both double and long double versions.
62343         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
62344         * lib/xstrtold.c: New file.
62345         * lib/xstrtod.h (xstrtold): New decl.
62346
62347         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62348
62349         * lib/filemode.c (setst): Remove.
62350         (strmode): Rewrite to avoid setst.  This makes the code shorter,
62351         (arguably) clearer, and the generated code is a bit smaller on my
62352         Debian GNU/Linux stable x86 host.
62353
62354         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62355
62356         * lib/filemode.c: Include "filemode.h" first, to test the interface.
62357         Assume that filemode.h includes sys/types.h and sys/stat.h.
62358         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
62359         (ftypelet): Reorder to put common cases first, for efficiency.
62360         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
62361         to do 'M'.
62362         (strmode): Renamed from mode_string, and now stores 12 bytes instead
62363         of 10, for compatibility with FreeBSD.  All callers changed.
62364         (filemodestring): Now stores 12 bytes instead of 10, and sets file
62365         types that can't be deduced solely from st_mode.  First arg is now a
62366         const pointer.
62367         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
62368         (strmode): Renamed from mode_string.
62369         (filemodestring): New decl.
62370         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
62371         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
62372         needed.
62373         (S_ISPORT, S_ISWHT): New macros, if not already defined.
62374
62375         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62376
62377         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62378         fsusage.h now does that.  Include fsusage.h first, to test interface.
62379         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62380         at most one method (the old code could have generated decls that
62381         didn't conform to C89, not that this was ever exercised).
62382         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62383
62384         2006-03-19  Jim Meyering  <jim@meyering.net>
62385
62386         Work even in a chroot where d_ino values for entries in "/"
62387         don't match the stat.st_ino values for the same names.
62388         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62389         number, iterate through all entries again, using lstat instead.
62390         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62391         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62392
62393         * lib/getcwd.c (__getcwd): Clarify a comment.
62394         Use memcpy in place of a call to strcpy.
62395
62396         2006-03-12  Jim Meyering  <jim@meyering.net>
62397
62398         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62399         matches that of the current directory (which we're about to chdir ".."
62400         out of), then save the dev-ino of the parent, instead.
62401
62402         * lib/same-inode.h (SAME_INODE): New file/macro.
62403         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62404         Include "same-inode.h", instead.
62405         * lib/same.c: Likewise.
62406         * lib/cycle-check.h: Include "same-inode.h".
62407         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62408         * lib/cycle-check.c (SAME_INODE): Remove definition.
62409         * lib/root-dev-ino.h: Include "same-inode.h".
62410
62411         2006-03-11  Eric Blake  <ebb9@byu.net>
62412
62413         * lib/same.c (same_name): s/base_name/last_component/
62414         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62415         * lib/filenamecat.c (file_name_concat): Likewise.
62416
62417         2006-03-11  Eric Blake  <ebb9@byu.net>,
62418                     Paul Eggert  <eggert@cs.ucla.edu>
62419
62420         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62421         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62422         drive prefix.
62423         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62424         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62425         (last_component): New method.
62426         * lib/dirname.c (dir_len): Determine when drive letters need a
62427         subsequent slash.  Preserve // when it is special.
62428         (dir_name): Don't append dot when drive letter is absolute.
62429         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62430         * lib/basename.c (base_name): New semantics - malloc the result.
62431         Preserve // when it is special.  Preserve relative files that look
62432         like drive letters.
62433         (base_len): Preserve // when it is special.
62434         (last_component): New method, similar to old base_name semantics.
62435         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62436         base_name.  Strip redundant slashes from ///.
62437
62438 2006-07-03  Jim Meyering  <jim@meyering.net>
62439
62440         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62441         macro is used before the first cycle_check call.
62442
62443 2006-07-03  Eric Blake  <ebb9@byu.net>
62444
62445         * modules/dirname (Depends-on): Add xstrndup.
62446
62447 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62448
62449         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62450         test cases, so that config.log is a bit easier to follow.
62451
62452 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62453
62454         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62455         both are 64 bits, since this seems to be the tradition, and this
62456         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62457         we ever run into a host that prefers long long to long in this
62458         case, we'll need another configure-time test.  Problem reported by
62459         Jim Meyering.
62460
62461 2006-07-02  Eric Blake  <ebb9@byu.net>
62462
62463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62464
62465 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62466
62467         * modules/inttypes (Depends-on): No longer depends on stdint.
62468         * modules/stdint (Description): Say more about assumptions.
62469         Say that the fast types might differ.  Say macros are used.
62470         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62471         (Makefile.am): Revise list of substituted symbols to match
62472         new stdint.m4.
62473         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62474         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62475         * tests/test-stdint.c (verify_same_types)
62476         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62477         the code conforms to C99/C89.
62478         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62479         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62480
62481 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62482
62483         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62484         but fix a bug, by requiring at least 64 bits.
62485         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62486         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62487         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62488         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62489
62490         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62491         changes.  Make 2.59 a prerequisite.  Check and substitute for
62492         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62493         inttypes.h.  Do not use special include files; just use the
62494         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62495         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62496         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62497         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62498         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62499         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62500         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62501         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62502         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62503         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62504         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62505         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62506         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62507         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62508         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62509         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62510         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62511         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62512         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62513         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62514         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62515         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62516         not check for things that C99 does not require, e.g., int8_t.  If
62517         a test isn't needed unless <stdint.h> isn't working, and is
62518         unlikely to be needed for any other reason, then don't do it
62519         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62520         size_t, since we assume C89 freestanding at least.  Do not check
62521         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62522         the right thing even if the types are not defined.  Instead use:
62523         (gl_STDINT_TYPE_PROPERTIES): New macro.
62524         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62525         testing whether <sys/types.h> clashes, as Autoconf does this for
62526         us now.  All uses removed.
62527         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62528         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62529         (gl_CHECK_TYPE_SAME):
62530         Remove; no longer needed.
62531         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62532         exists, since we'll return 0 anyway in that case.
62533         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62534
62535 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62538         possible collision with system files.
62539         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62540         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62541         WCHAR_MIN and WCHAR_MAX in this case.
62542         (<stddef.h>): Do not include; no longer needed.
62543         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62544         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62545         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62546         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62547         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62548         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62549         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62550         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62551         !defined(__c99))]: Include in this case too, since it's harmless
62552         now.
62553         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62554         dangerous to do so.
62555         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62556         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62557         (_STDINT_MIN, _STDINT_MAX): New macros.
62558         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62559         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62560         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62561         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62562         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62563         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62564         macros, not typedefs; this simplifies things quite a bit.
62565         Use long int for all types narrower than int64_t.
62566         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62567         Define in terms of long long int or int64_t or long int,
62568         not int64_t or int32_t.  This saves some compile-time testing.
62569         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62570         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62571         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62572         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62573         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62574         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62575         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62576         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62577         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62578         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62579         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62580         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62581         undef any previous version and define our own version, for
62582         simplicity and consistency with the new macros for types.
62583         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62584         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62585         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62586         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62587         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62588         @WINT_T_SUFFIX@ to keep things simple here.
62589         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62590         Simplify by assuming typical 8/16/32/64 host, since we're
62591         already doing that elsewhere anyway.
62592         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62593         and assume long long int is 64 bits if available.  This
62594         speeds up 'configure'.
62595
62596 2006-07-01  Eric Blake  <ebb9@byu.net>
62597
62598         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62599         Reported by Andreas Buening.
62600
62601 2006-07-01  Eric Blake  <ebb9@byu.net>
62602
62603         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62604
62605 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62606
62607         * lib/getaddrinfo.c: fixed typo
62608
62609 2006-06-29  Jim Meyering  <jim@meyering.net>
62610
62611         * modules/strftime (Maintainer): Add my name, since with the
62612         FPRINTFTIME changes strftime.c has forked from glibc.
62613
62614 2006-06-29  Eric Blake  <ebb9@byu.net>
62615
62616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62617
62618 2006-06-29  Eric Blake  <ebb9@byu.net>
62619
62620         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62621
62622 2006-06-29  Eric Blake  <ebb9@byu.net>
62623
62624         * lib/stat_.h: New file.
62625
62626 2006-06-29  Eric Blake  <ebb9@byu.net>
62627
62628         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62629         unused static function.
62630
62631 2006-06-29  Eric Blake  <ebb9@byu.net>
62632
62633         * doc/functions.texi (Function Portability): Document missing lstat
62634         on mingw.
62635
62636 2006-06-29  Eric Blake  <ebb9@byu.net>
62637
62638         * MODULES.html.sh: Add sys_stat.
62639         * modules/sys_stat: New module.
62640         * modules/mkstemp (Depends-on): Add sys_stat.
62641
62642 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62643
62644         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62645
62646 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62647
62648         * m4/c-bs-a.m4: Removed.
62649
62650 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62651
62652         * lib/strftime.c: Assume strftime() exists.
62653
62654 2006-06-29  Derek Price  <derek@ximbiot.com>
62655
62656         * modules/c-bs-a: Removed - \a is C89.
62657         * MODULES.html.sh: Remove c-bs-a.
62658
62659 2006-06-29  Bruno Haible  <bruno@clisp.org>
62660
62661         * modules/wcwidth (License): Change to LGPL.
62662
62663 2006-06-28  Simon Josefsson  <jas@extundo.com>
62664
62665         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62666         on _WIN32.
62667
62668         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62669         getnameinfo.
62670
62671 2006-06-28  Simon Josefsson  <jas@extundo.com>
62672
62673         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62674
62675 2006-06-28  Simon Josefsson  <jas@extundo.com>
62676
62677         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62678         functions there.  It will succeed on Windows XP, but on Windows
62679         2000 and (presumably) earlier, it will fail, and use the internal
62680         re-implementation.
62681         (use_win32_p): New function.
62682         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62683         Support AI_NUMERICSERV to disable getservbyname.
62684         (getnameinfo): New function, only supports
62685         NI_NUMERICHOST|NI_NUMERICSERV for now.
62686
62687         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62688         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62689         getnameinfo.
62690
62691 2006-06-28  Eric Blake  <ebb9@byu.net>
62692
62693         * modules/wcwidth: New file.
62694         * modules/mbchar (Depends-on): Add wcwidth.
62695         * modules/mbswidth (Depends-on): Add wcwidth.
62696         * MODULES.html.sh: Add wcwidth.
62697
62698 2006-06-28  Eric Blake  <ebb9@byu.net>
62699
62700         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62702
62703 2006-06-28  Eric Blake  <ebb9@byu.net>
62704
62705         * lib/xvasprintf.h: Fix comments.
62706
62707 2006-06-28  Eric Blake  <ebb9@byu.net>
62708
62709         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62710         * lib/mbswidth.c (wcwidth): Move from here...
62711         * lib/wcwidth.h: ...to this new file.
62712
62713 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62714
62715         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62716
62717         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62718         it's obsolete.
62719         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62720
62721 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62722
62723         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62724         Autoconf 2.60 says this stuff was obsolete.
62725
62726 2006-06-28  Bruno Haible  <bruno@clisp.org>
62727
62728         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62729
62730 2006-06-28  Bruno Haible  <bruno@clisp.org>
62731
62732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62733         gt_TYPE_WCHAR_T.
62734
62735 2006-06-28  Bruno Haible  <bruno@clisp.org>
62736
62737         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62738         declaration for wcwidth.
62739         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62740
62741 2006-06-28  Bruno Haible  <bruno@clisp.org>
62742
62743         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62744         (mkdir): Define using _mkdir.
62745
62746 2006-06-28  Bruno Haible  <bruno@clisp.org>
62747
62748         * lib/getaddrinfo.h: Fix POSIX URL.
62749         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62750         _WIN32.
62751         (use_win32_p): Make static.
62752         (getaddrinfo): Reject service name if it is empty or does not consist
62753         solely of decimal digits, or if its value is > 65535.
62754         (getnameinfo): Remove useless casts.
62755
62756 2006-06-27  Simon Josefsson  <jas@extundo.com>
62757
62758         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62759         Eggert and Martin Lambers.
62760
62761 2006-06-27  Simon Josefsson  <jas@extundo.com>
62762
62763         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62764         Eggert and Martin Lambers.
62765
62766 2006-06-27  Bruno Haible  <bruno@clisp.org>
62767
62768         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62769         result to 0, not to empty.
62770         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62771
62772 2006-06-27  Bruno Haible  <bruno@clisp.org>
62773
62774         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62775
62776 2006-06-26  Simon Josefsson  <jas@extundo.com>
62777
62778         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62779         present.
62780
62781 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62782
62783         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62784         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62785         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62786
62787 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62788
62789         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62790
62791 2006-06-26  Bruno Haible  <bruno@clisp.org>
62792
62793         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62794
62795 2006-06-26  Bruno Haible  <bruno@clisp.org>
62796
62797         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62798
62799 2006-06-26  Bruno Haible  <bruno@clisp.org>
62800
62801         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62802         SGI C compiler in pre-C99 mode.
62803         Suggested by Mark D. Baushke and Larry Jones.
62804
62805 2006-06-26  Bruno Haible  <bruno@clisp.org>
62806
62807         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62808         WCHAR_MAX.
62809         Reported by Mark D. Baushke and Larry Jones.
62810
62811 2006-06-26  Bruno Haible  <bruno@clisp.org>
62812
62813         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62814         in pre-C99 mode.
62815         Suggested by Mark D. Baushke and Larry Jones.
62816
62817 2006-06-23  Simon Josefsson  <jas@extundo.com>
62818             Bruno Haible  <bruno@clisp.org>
62819
62820         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62821         Emit mostlyclean-local rule.
62822         (func_emit_tests_Makefile_am): Likewise.
62823         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62824
62825 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62826
62827         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62828
62829 2006-06-23  Bruno Haible  <bruno@clisp.org>
62830
62831         * tests/test-stdint.c: Update to match ISO C 99 Technical
62832         Corrigendum 1.
62833
62834 2006-06-23  Bruno Haible  <bruno@clisp.org>
62835
62836         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62837
62838 2006-06-23  Bruno Haible  <bruno@clisp.org>
62839
62840         * lib/stdint_.h: Treat IRIX like OpenBSD.
62841
62842 2006-06-23  Bruno Haible  <bruno@clisp.org>
62843
62844         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62845         ISO C 99 Technical Corrigendum 1.
62846
62847 2006-06-22  Simon Josefsson  <jas@extundo.com>
62848
62849         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62850         MinGW.
62851
62852 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62853
62854         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62855         needed.  Some compiler complained about some of them.  Problem reported
62856         by Larry Jones in
62857         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62858
62859 2006-06-21  Simon Josefsson  <jas@extundo.com>
62860
62861         * tests/test-getaddrinfo.c: New file.
62862
62863         * modules/getaddrinfo-tests: New file.
62864
62865         * MODULES.html.sh: Add inet_pton.
62866
62867         * modules/inet_pton: New file.
62868
62869 2006-06-21  Simon Josefsson  <jas@extundo.com>
62870
62871         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62872         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62873         of using the (limited) gnulib implementation on Windows XP.
62874
62875         * m4/inet_pton.m4: New file.
62876
62877 2006-06-21  Simon Josefsson  <jas@extundo.com>
62878
62879         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62880         variable.
62881
62882         * lib/socket_.h: Don't define WINVER.
62883
62884         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62885         slightly modified to work in gnulib.
62886
62887 2006-06-21  Simon Josefsson  <jas@extundo.com>
62888
62889         * doc/gnulib.texi (Windows sockets): Add.
62890
62891 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62892
62893         * lib/read-file.c (fread_file): Start with buffer allocation of
62894         0 bytes rather than 1 byte; this simplifies the code.
62895         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62896         code to free buffer and save/restore errno.
62897         (internal_read_file): Remove unused local.
62898
62899 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62900
62901         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62902         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62903         Problem reported by Denis Excoffier in
62904         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62905
62906 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62907
62908         * modules/sys_socket, modules/socklen: Include sys/types since
62909         FreeBSD 4.x's sys/socket.h needs it.
62910
62911 2006-06-19  Simon Josefsson  <jas@extundo.com>
62912
62913         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62914
62915 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62916
62917         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62918
62919 2006-06-19  Bruno Haible  <bruno@clisp.org>
62920
62921         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62922         and FULL_PATH_INTTYPES_H in angle brackets.
62923         Reported by Mark D. Baushke <mdb@gnu.org>.
62924
62925 2006-06-17  Eric Blake  <ebb9@byu.net>
62926
62927         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62928         errno.
62929
62930 2006-06-17  Bruno Haible  <bruno@clisp.org>
62931
62932         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62933         <sys/inttypes.h>.
62934
62935 2006-06-17  Bruno Haible  <bruno@clisp.org>
62936
62937         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62938         whether errno is declared. Assume <errno.h> declares errno.
62939
62940 2006-06-17  Bruno Haible  <bruno@clisp.org>
62941
62942         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62943
62944 2006-06-17  Bruno Haible  <bruno@clisp.org>
62945
62946         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62947         problem on Solaris 2.5.1.
62948
62949 2006-06-16  Eric Blake  <ebb9@byu.net>
62950
62951         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62952         * lib/unicodeio.c [!defined errno]: Likewise.
62953         * lib/strtol.c [!defined errno]: Likewise.
62954         * lib/strtod.c [!defined errno]: Likewise.
62955
62956 2006-06-15  Eric Blake  <ebb9@byu.net>
62957
62958         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62959
62960 2006-06-15  Eric Blake  <ebb9@byu.net>
62961
62962         * config/srclist.txt (ssize_t.m4): Lose sync.
62963
62964 2006-06-15  Bruno Haible  <bruno@clisp.org>
62965
62966         * modules/stdint (Files): Include m4/full-header-path.m4,
62967         m4/size_max.m4, m4/wchar_t.m4.
62968         (Makefile.am): Many more substitutions.
62969         * modules/stdint-tests: New file.
62970         * tests/test-stdint.c: New file.
62971
62972 2006-06-15  Bruno Haible  <bruno@clisp.org>
62973
62974         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62975         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62976         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62977         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62978         gl_CHECK_TYPE_SAME): New macros.
62979
62980 2006-06-15  Bruno Haible  <bruno@clisp.org>
62981
62982         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62983
62984 2006-06-15  Bruno Haible  <bruno@clisp.org>
62985
62986         * lib/stdint_.h: Rewritten to be fully auto-configured.
62987         Fixes bug on HP-UX/IA64.
62988
62989 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62990
62991         * lib/getdate.y (__attribute__): Don't define if already defined.
62992         Problem reported by Larry Jones.
62993         * lib/utimens.c (__attribute__): Likewise.
62994
62995 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62996
62997         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62998         reported by Andreas Schwab.
62999
63000 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63001             Bruno Haible  <bruno@clisp.org>
63002
63003         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63004         check for the declaration of strnlen and a run test that exposes the
63005         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63006         rpl_strndup.
63007
63008 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63009             Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63012
63013 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63014
63015         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63016         compile test, for Tru64 4.0D.
63017
63018 2006-05-28  Karl Berry  <karl@gnu.org>
63019
63020         * config/srclist.txt (printf-args.c): lose sync.
63021
63022 2006-05-26  Martin Lambers  <marlam@marlam.de>
63023
63024         * lib/getpass.c: Updates the test for the native W32 API, and adds
63025         missing includes, thus fixing compilation warnings.
63026
63027 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63028
63029         * lib/exclude.c (exclude_fnmatch): New function.
63030         (excluded_file_name): Call exclude_fnmatch.
63031         * lib/exclude.h (excluded_file_name): New prototype
63032
63033 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63034
63035         * lib/tempname.c (small_open, large_open): New macros.
63036         (__open, __open64) [!_LIBC]: Remove.
63037         (__gen_tempname): Use small_open and large_open instead of __open
63038         and __open64.  This fixes a portability bug on HP-UX 11.11i
63039         reported by Simon Wing-Tang in
63040         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63041
63042 2006-05-24  Bruno Haible  <bruno@clisp.org>
63043
63044         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63045         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63046         Reported by Thorsten Maerz <torte@netztorte.de> via
63047         Aaron Stone <aaron@serendipity.cx>.
63048
63049 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63050
63051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63052         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63053         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63054         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63055         not really conditional on the cache.
63056         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63057
63058 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63059
63060         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63061         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63062         (my_usleep): Don't mishandle maximum value.
63063
63064 2006-05-19  Jim Meyering  <jim@meyering.net>
63065
63066         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63067
63068 2006-05-17  Bruno Haible  <bruno@clisp.org>
63069
63070         Cygwin portability.
63071         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63072
63073 2006-05-17  Bruno Haible  <bruno@clisp.org>
63074
63075         * lib/stdint_.h: Fix recognition of Cygwin.
63076
63077 2006-05-15  Bruno Haible  <bruno@clisp.org>
63078
63079         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63080         on libtool patch by Ralf Wildenhues.
63081
63082 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63083
63084         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63085         test for C99 conformance; (bool) 0.5 is an integer constant
63086         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63087         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63088
63089 2006-05-11  Simon Josefsson  <jas@extundo.com>
63090
63091         * m4/xvasprintf.m4: Fix obvious typo.
63092
63093 2006-05-11  Jim Meyering  <jim@meyering.net>
63094
63095         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63096         James Lemley.
63097
63098 2006-05-10  Simon Josefsson  <jas@extundo.com>
63099
63100         * lib/md4.c: Typo fix, update copyright years.
63101         (K1, K2): Don't use L because it turn computations into 64-bit on
63102         64-bit platforms.
63103
63104 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63105
63106         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63107         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63108         unwanted sign propagation, e.g., on hosts with 64-bit int.
63109         There still are some problems with reeelly weird theoretical hosts
63110         (e.g., 33-bit int) but it's not worth worrying about now.
63111         * lib/sha1.c (rol): Likewise.
63112         (K1, K2, K3, K4): Remove unnecessary L suffix.
63113
63114 2006-05-10  Bruno Haible  <bruno@clisp.org>
63115
63116         * lib/des.c: Cast to avoid warnings.
63117
63118 2006-05-09  Bruno Haible  <bruno@clisp.org>
63119
63120         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63121         (Depends-on): Depend also on xsize, stdarg.
63122         (configure.ac): Add gl_XVASPRINTF.
63123
63124 2006-05-09  Bruno Haible  <bruno@clisp.org>
63125
63126         * m4/xvasprintf.m4: New file.
63127
63128 2006-05-09  Bruno Haible  <bruno@clisp.org>
63129
63130         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63131         (EOVERFLOW): Define fallback value.
63132         (xstrcat): New function.
63133         (xvasprintf): Recognize the special case of a string concatenation.
63134
63135 2006-05-08  Eric Blake  <ebb9@byu.net>
63136
63137         * gnulib-tool (func_version): Base copyright year on CVS date.
63138         (func_emit_copyright_notice): New function.
63139         (func_emit_lib_Makefile_am): Use it.
63140         (func_emit_tests_Makefile_am): Likewise.
63141         (func_import): Likewise.
63142
63143 2006-05-08  Bruno Haible  <bruno@clisp.org>
63144
63145         * modules/stdarg: New file.
63146         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63147
63148 2006-05-08  Bruno Haible  <bruno@clisp.org>
63149
63150         * m4/stdarg.m4: New file, from GNU gettext.
63151
63152 2006-05-08  Bruno Haible  <bruno@clisp.org>
63153
63154         * config/srclist.txt (build-aux/config.rpath): different from latest
63155         release.
63156
63157 2006-05-08  Bruno Haible  <bruno@clisp.org>
63158
63159         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63160
63161 2006-05-05  Jim Meyering  <jim@meyering.net>
63162
63163         * m4/warning.m4: New file, derived from bison's file by the same name.
63164
63165 2006-05-03  Bruno Haible  <bruno@clisp.org>
63166
63167         * lib/stdint_.h: Shorter URL.
63168         * lib/inttypes.h: Likewise.
63169
63170 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63171
63172         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63173
63174 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63175
63176         * lib/verify.h: Document the internals better.  Most of this change
63177         was written by Bruno Haible.
63178
63179 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63180
63181         * doc/verify.texi: New file, partly based on a proposal by
63182         Bruno Haible.
63183
63184 2006-05-02  Bruno Haible  <bruno@clisp.org>
63185
63186         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63187         test from here...
63188         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63189
63190 2006-04-29  Bruno Haible  <bruno@clisp.org>
63191
63192         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63193         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63194
63195 2006-04-29  Bruno Haible  <bruno@clisp.org>
63196
63197         * gnulib-tool: Make --update option actually work.
63198
63199 2006-04-29  Bruno Haible  <bruno@clisp.org>
63200
63201         * doc/gcd.texi: New file.
63202         * doc/gnulib.texi: Include it.
63203
63204 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
63205
63206         * lib/getdate.y (get_date): When adding relative date, start with the
63207         initial time, not with the result of the first mktime call.
63208
63209 2006-04-25  Bruno Haible  <bruno@clisp.org>
63210
63211         * gnulib-tool (func_import): Output the include directives in three
63212         blocks, sorted separately.
63213         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63214
63215 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63216
63217         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
63218         to define main with arguments, for C++.  Reported by Eric Blake.
63219         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
63220         Prefer 'int main ()' to 'int main (void)', for C++.
63221         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63222         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
63223         for 'main', for C99 and C++.
63224
63225 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63226
63227         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
63228         Don't assume that exit status -1 is valid.
63229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63230         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63231         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63232         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
63233         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
63234         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
63235         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
63236         functions can be used without declaring them, or that you can
63237         exit with status -1.
63238         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63239
63240 2006-04-24  Karl Berry  <karl@gnu.org>
63241
63242         * config/srclist.txt (longdouble.m4): sync lost.
63243
63244 2006-04-24  Eric Blake  <ebb9@byu.net>
63245
63246         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
63247
63248 2006-04-24  Bruno Haible  <bruno@clisp.org>
63249
63250         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
63251         poll() implementation in AIX.
63252         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63253
63254 2006-04-24  Bruno Haible  <bruno@clisp.org>
63255
63256         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
63257         assigned exactly once.
63258
63259 2006-04-23  Claudio Fontana  <claudio@gnu.org>
63260             Bruno Haible  <bruno@clisp.org>
63261
63262         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
63263         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
63264         for AM_CPPFLAGS.
63265
63266 2006-04-23  Bruno Haible  <bruno@clisp.org>
63267
63268         * modules/copy-file: Depend on unistd.
63269         * modules/execute: Likewise.
63270         * modules/fatal-signal: Likewise.
63271         * modules/findprog: Likewise.
63272         * modules/mkdtemp : Likewise.
63273         * modules/pipe: Likewise.
63274         * modules/wait-process: Likewise.
63275
63276 2006-04-23  Bruno Haible  <bruno@clisp.org>
63277
63278         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63279         condition was already detected.
63280         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63281
63282 2006-04-23  Bruno Haible  <bruno@clisp.org>
63283
63284         * lib/copy-file.c: Include <unistd.h> unconditionally.
63285         * lib/execute.c: Likewise.
63286         * lib/fatal-signal.c: Likewise.
63287         * lib/findprog.c: Likewise.
63288         * lib/mkdtemp.c: Likewise.
63289         * lib/pipe.h: Likewise.
63290         * lib/pipe.c: Likewise.
63291         * lib/wait-process.h: Likewise.
63292
63293 2006-04-23  Bruno Haible  <bruno@clisp.org>
63294
63295         * gnulib-tool (func_usage): Fix --import description. Document
63296         --update.
63297         (func_import): Create temporary file in a temporary directory, if
63298         --dry-run is specified. Silence errors from 'grep' when there are no
63299         m4 files in $m4dir.
63300         (func_create_testdir): Silence errors from 'grep' when there are no
63301         m4 files in $m4dir.
63302         Reported by Karl Berry <karl@freefriends.org>.
63303
63304 2006-04-20  Bruno Haible  <bruno@clisp.org>
63305
63306         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63307         one argument, so that the code will be portable to Autoconf 2.60.
63308         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63309         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63310         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
63311
63312 2006-04-19  Derek Price  <derek@ximbiot.com>
63313             Eric Blake  <ebb9@byu.net>
63314
63315         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63316         rather than "/full/path.h".  Update comment to match.  Shorten &
63317         generalize m4_translit call via AS_TR_CPP.
63318
63319 2006-04-19  Derek Price  <derek@ximbiot.com>
63320             Eric Blake  <ebb9@byu.net>
63321
63322         * lib/inttypes.h: Correct grammar in comment.
63323
63324 2006-04-18  Derek Price  <derek@ximbiot.com>
63325             Paul Eggert  <eggert@cs.ucla.edu>
63326
63327         * modules/inttypes: New file.
63328         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
63329
63330 2006-04-18  Derek Price  <derek@ximbiot.com>
63331             Paul Eggert  <eggert@cs.ucla.edu>
63332
63333         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
63334         New files.
63335
63336 2006-04-18  Derek Price  <derek@ximbiot.com>
63337             Paul Eggert  <eggert@cs.ucla.edu>
63338
63339         * lib/inttypes.h: New file.
63340         * lib/strtoimax.c: Assume <inttypes.h>.
63341
63342 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
63343
63344         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
63345         isn't mounted.  Problem reported by Kir Kolyshkin.
63346
63347 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
63350         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
63351         Derek R. Price.
63352         * lib/regex.h (RE_DUP_MAX): Update comment to match current
63353         implementation.
63354
63355 2006-04-12  Eric Blake  <ebb9@byu.net>
63356
63357         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
63358         is now done automatically by the corresponding Autoconf macro.
63359
63360 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
63361
63362         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
63363         time_r.h.
63364
63365 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63366
63367         Merge regex changes from libc, removing some of our
63368         POSIX-conformance changes that were rejected and redoing them in a
63369         less-intrusive way.
63370
63371         * lib/regcomp.c (re_compile_internal, init_dfa):
63372         Length arg is now size_t, not Idx.  All uses changed.
63373         (peek_token): Forward decl now says internal_function.
63374         (__re_error_msgid, __re_error_msgid_idx):
63375         Now static rather than extern with attribute_hidden.
63376         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63377         For some reason libc prefers K&R style defns for external functions.
63378         (regerror) [!defined _LIBC]: Likewise.
63379         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63380         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63381         (build_range_exp, build_collating_symbol):
63382         Use K&R-style defn.
63383         (re_compile_fastmap): Use '\0' to memset, not 0.
63384         (utf8_sb_map): Make the calculations more obvious.
63385         (init_dfa, parse_bracket_exp, build_charclass_op):
63386         Call calloc and cast result, as glibc does.
63387         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63388         (build_range_exp, build_collating_symbol):
63389         Now internal functions.
63390
63391         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63392
63393         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63394         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63395         Don't depend on VMS; depend on __VMS instead, for POSIX
63396         namespace cleanness.
63397         (regoff_t): Define to ssize_t, not long int.
63398
63399         Remove the REG_ macros named below.  Instead, make the old names
63400         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63401         __USE_GNU_REGEX.
63402         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63403         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63404         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63405         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63406         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63407         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63408         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63409         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63410         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63411         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63412         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63413         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63414         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63415         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63416         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63417         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63418         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63419         (REG_NREGS):
63420         Remove.  All uses replaced by the old RE_* names.
63421         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63422         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63423         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63424         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63425         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63426         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63427         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63428         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63429         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63430         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63431         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63432         Don't bother having these macros be independent of each others'
63433         values, since they no longer exist in the POSIX name space.
63434
63435         Rename the following member names back to their old names,
63436         unless !__USE_GNU_REGEX.  All uses changed back.
63437         (buffer): Renamed from re_buffer.
63438         (allocated): Renamed from re_allocated.
63439         (used): Renamed from re_used.
63440         (syntax): Renamed from re_syntax.
63441         (fastmap): Renamed from re_fastmap.
63442         (translate): Renamed from re_translate.
63443         (can_be_null): Renamed from re_can_be_null.
63444         (regs_allocated): Renamed from re_regs_allocated.
63445         (fastmap_accurate): Renamed from re_fastmap_accurate.
63446         (no_sub): Renamed from re_no_sub.
63447         (not_bol): Renamed from re_not_bol.
63448         (not_eol): Renamed from re_not_eol.
63449         (newline_anchor): Renamed from re_newline_anchor.
63450         (num_regs): Renamed from rm_num_regs.
63451         (start): Renamed from rm_start.
63452         (end): Renamed from rm_end.
63453
63454         (free_state): Move up a bit.
63455
63456         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63457         #define to be empty.
63458         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63459         when that is what is intended.
63460         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63461         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63462         (MAX): New macro.
63463         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63464         All uses changed back to re_malloc, etc.  It's now the caller's
63465         responsibility to check for overflow; all callers changed.
63466         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63467         (re_x2nrealloc): Remove.
63468         (free_state): Remove decl.
63469
63470         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63471         (re_set_registers, re_exec):
63472         Use K&R-style defn.
63473
63474         2006-01-31  Roland McGrath  <roland@redhat.com>
63475
63476         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63477         Reported by Mike Frysinger <vapier@gentoo.org>.
63478
63479         2006-01-15  Andreas Jaeger  <aj@suse.de>
63480
63481         [BZ #1950]
63482         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63483         build_wcs_upper_buffer change.
63484         (build_wcs_upper_buffer): Change return type.
63485
63486         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63487
63488         * lib/regex_internal.h: Include <stdint.h> if available.
63489
63490         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63491
63492         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63493
63494         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63495
63496         * lib/regcomp.c: Adjust for changed secondary hash function.
63497
63498         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63499
63500         * lib/regex.h: Pretty printing.
63501         Clean up namespace a bit.
63502
63503         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63504
63505         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63506         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63507
63508         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63509                     Ulrich Drepper  <drepper@redhat.com>
63510
63511         [BZ #1302]
63512         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63513         changed.
63514         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63515
63516         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63517
63518         [BZ #281]
63519         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63520         * lib/regcomp.c: Remove unnecessary uses of
63521         unsigned RE_TRANSLATE_TYPE.
63522         * lib/regex_internal.h: Likewise.
63523         * lib/regex_internal.c: Likewise.
63524         * lib/regexec.c: Likewise.
63525         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63526
63527         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63528
63529         * lib/regexec.c (find_recover_state): Remove unnecessary
63530         initialization.
63531         (transit_state_bkref): Make DFA a const pointer.
63532         (get_subexp): Likewise.
63533         (check_arrival): Likewise.
63534         (update_cur_sifted_state): Likewise.
63535         (re_search_internal): Likewise.
63536         (prune_impossible_nodes): Likewise.
63537         (acquire_init_state_context): Likewise.
63538         (proceed_next_node): Likewise.
63539         (set_regs): Likewise.
63540         (free_fail_stack_return): Likewise.
63541         (check_arrival_expand_ecl): Mark DFA parameter as const.
63542         (check_arrival_expand_ecl_sub): Likewise.
63543         (check_subexp_limits): Likewise.
63544         (sub_epsilon_src_nodes):  Likewise.
63545         (add_epsilon_src_nodes):  Likewise.
63546         (merge_state_array): Likewise.
63547         (update_regs): Likewise.
63548         (build_trtable): Likewise.
63549         (sift_states_backward): Mark MCTX parameter as const.
63550         (build_sifted_states): Likewise.
63551         (update_cur_sifted_state): Likewise.
63552         (sift_states_mkref): Likewise.
63553         (check_arrival_expand_ecl): Mark eclosure as const.
63554         (check_dst_limits_calc_pos_1): Likewise.
63555         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63556         pointer.
63557
63558         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63559
63560         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63561         (transit_state_sb): Likewise.
63562         (transit_state_mb): Likewise.
63563         (sift_states_iter_mb): Likewise.
63564         (check_arrival_add_next_nodes): Likewise.
63565         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63566         [_LIBC] (re_search_2_stub): Use mempcpy.
63567
63568         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63569         mbrtowc for very simple UTF-8 case.
63570
63571         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63572         a pointer-to-const.
63573         (re_acquire_state_context): Likewise.
63574         * lib/regex_internal.h: Adjust prototypes.
63575
63576         * lib/regex.c: Prevent using C++ compilers.
63577
63578         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63579         (re_acquire_state_context): Likewise.
63580
63581 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         * modules/regex (Depends-on): Add ssize_t.
63584
63585 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63586
63587         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63588         translation table.
63589
63590 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63591
63592         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63593
63594 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63595             Bruno Haible  <bruno@clisp.org>
63596
63597         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63598         <sys/types.h> and <inttypes.h>.
63599
63600 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63601
63602         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63603         `__error_t_defined', so argp.h will not typedef the former.
63604
63605 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63606
63607         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63608         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63609         glibc names.  Even if glibc is changed to conform to POSIX, the
63610         traditional names will be available anyway, since regex depends on
63611         the extensions module.  Also, fix a longstanding typo in the
63612         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63613         reported by Emanuele Giaquinta.  Also, change sense of cached
63614         variable, so that the message makes sense.
63615
63616 2006-03-24  Simon Josefsson  <jas@extundo.com>
63617
63618         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63619         including some doc fixes.
63620         (base64_encode_alloc): Fix +1 bug on allocation failures.
63621
63622 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63623
63624         * lib/base64.c (base64_encode): Do not read past end of array with
63625         unsanitized input on systems with CHAR_BIT > 8.
63626
63627 2006-03-24  Eric Blake  <ebb9@byu.net>
63628
63629         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63630
63631 2006-03-22  Karl Berry  <karl@gnu.org>
63632
63633         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63634         * config/srclistvars.sh (COREUTILS): new var.
63635
63636 2006-03-17  Jim Meyering  <jim@meyering.net>
63637
63638         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63639         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63640
63641 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63644         no longer needs it.  Instead, check that regoff_t is as least
63645         as wide as ptrdiff_t.
63646
63647         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63648         so that our regex.h stays compatible with the installed regex.
63649         This is helpful for installers who configure --without-included-regex.
63650         Problem reported by Emanuele Giaquinta.
63651
63652 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63653
63654         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63655         Typedef to long int, not to off_, as POSIX will likely change
63656         in that direction.
63657
63658 2006-03-15  Eric Blake  <ebb9@byu.net>
63659
63660         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63661
63662 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63663
63664         * lib/argp-help.c (validate_uparams): Fix typo
63665         * lib/argp-parse.c (argp_default_options): Consistently begin help
63666         messages with a lowercase letter.
63667
63668 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63669
63670         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63671         overrun buffers and shouldn't be used (much as gets shouldn't be
63672         used).
63673         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63674
63675 2006-03-08  Simon Josefsson  <jas@extundo.com>
63676
63677         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63678         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63679
63680 2006-03-08  Simon Josefsson  <jas@extundo.com>
63681
63682         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63683         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63684
63685 2006-03-08  Simon Josefsson  <jas@extundo.com>
63686
63687         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63688         signal that configure disabled the device.
63689
63690 2006-03-08  Simon Josefsson  <jas@extundo.com>
63691
63692         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63693         languages.
63694
63695 2006-03-07  Simon Josefsson  <jas@extundo.com>
63696
63697         * modules/getopt (Depends-on): Add unistd.
63698
63699         * modules/unistd: New file.
63700
63701 2006-03-07  Simon Josefsson  <jas@extundo.com>
63702
63703         * modules/gc-random: New file.
63704
63705 2006-03-07  Simon Josefsson  <jas@extundo.com>
63706
63707         * m4/unistd_h.m4: New file.
63708
63709 2006-03-07  Simon Josefsson  <jas@extundo.com>
63710
63711         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63712         test to be side-effect free by storing the result in the cache
63713         variable gl_cv_lib_readline, and moving the assignment of
63714         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63715         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63716
63717 2006-03-07  Simon Josefsson  <jas@extundo.com>
63718
63719         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63720         error on missing devices (the functions will return an error).
63721
63722         * m4/gc.m4: Move random stuff to gc-random.m4
63723
63724 2006-03-07  Simon Josefsson  <jas@extundo.com>
63725
63726         * lib/unistd_.h: New file.
63727
63728 2006-03-07  Simon Josefsson  <jas@extundo.com>
63729
63730         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63731
63732 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63733
63734         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63735         Problem reported by Juan Manuel Guerrero.
63736
63737 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63738
63739         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63740         the unistd module.
63741         * lib/getlogin_r.c: Likewise.
63742         * lib/getlogin_r.h: Likewise.
63743         * lib/glob.c: Likewise.
63744         * lib/pagealign_alloc.c: Likewise.
63745         * lib/unistd_.h: Remove; no longer needed.
63746
63747 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63748
63749         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63750         Add unistd.
63751         * modules/c-stack (Depends-on): Add unistd.
63752         * modules/getlogin_r: Likewise.
63753         * modules/glob: Likewise.
63754         * modules/pagealign_alloc: Likewise.
63755         * modules/unistd (Files): Remove lib/unistd_.h.
63756         (EXTRA_DIST): Remove.
63757         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63758         need unistd_.h.
63759         (MOSTLYCLEANFILES): Remove unistd.h-t.
63760
63761 2006-03-03  Simon Josefsson  <jas@extundo.com>
63762
63763         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63764
63765 2006-03-03  Simon Josefsson  <jas@extundo.com>
63766
63767         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63768         libidn and bison.
63769
63770 2006-03-03  Simon Josefsson  <jas@extundo.com>
63771
63772         * build-aux/maint.mk: Add indent target.
63773
63774 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63775
63776         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63777         our replacement poll.h in any case, to avoid a differing
63778         declaration from a system header.  Seen on AIX.
63779
63780 2006-03-01  Simon Josefsson  <jas@extundo.com>
63781
63782         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63783         <kasal@ucw.cz>.
63784
63785 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63786
63787         * modules/gettime (Depends-on): Add extensions module.
63788         * modules/nanosleep (Depends-on): Likewise.
63789         * modules/settime (Depends-on): Likewise.
63790
63791 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63792
63793         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63794         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63795         pedantically.
63796         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63797         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63798
63799         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63800         not "==".  Reported by Ralf Wildenhues.
63801
63802 2006-03-01  Karl Berry  <karl@gnu.org>
63803
63804         * doc/Copyright/request-*: new files, synced from gnuorg.
63805
63806 2006-03-01  Karl Berry  <karl@gnu.org>
63807
63808         * config/srclist.txt (Copyright/*): new entries.
63809
63810 2006-02-28  Simon Josefsson  <jas@extundo.com>
63811
63812         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63813
63814 2006-02-27  Simon Josefsson  <jas@extundo.com>
63815
63816         * lib/base64.h: Indent #define's.  From Jim Meyering
63817         <jim@meyering.net>.
63818
63819 2006-02-27  Jim Meyering  <jim@meyering.net>
63820
63821         Revert the change of 2006-02-24, so these files can continue
63822         to be sync'd from gettext.
63823         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63824         of `config.h'.
63825
63826 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63827
63828         * modules/intprops: New file.
63829         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63830         Add intprops.
63831         * modules/getloadavg (Files): Remove lib/intprops.h.
63832         (Depends-on): Add intprops.
63833         * modules/human: Likewise.
63834         * modules/inttostr: Likewise.
63835         * modules/openat: Likewise.
63836         * modules/sig2str: Likewise.
63837         * modules/userspec: Likewise.
63838         * modules/utimecmp: Likewise.
63839         * modules/xnanosleep: Likewise.
63840         * modules/xstrtol: Likewise.
63841
63842 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63843
63844         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63845         * modules/lock-tests (TESTS): Use $(EXEEXT).
63846         * modules/tls-tests: Likewise.
63847         * modules/argp-tests: Likewise.
63848         (check_PROGRAMS): New var, replacing...
63849         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63850
63851 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63852
63853         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63854         `config.h'.
63855
63856 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63857
63858         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63859
63860 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63861
63862         Sync from coreutils.
63863         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63864         gl_CHDIR_SAFER.
63865
63866 2006-02-22  Jim Meyering  <jim@meyering.net>
63867
63868         Sync from coreutils.
63869         * m4/chdir-safer.m4: New file.
63870
63871 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63872
63873         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63874         AT_FDCWD exceeds INT_MAX.
63875         * lib/openat.h (AT_FDCWD): Likewise.
63876
63877 2006-02-17  Eric Blake  <address@hidden>
63878
63879         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63880
63881 2006-02-16  Simon Josefsson  <jas@extundo.com>
63882
63883         * modules/getaddrinfo (Depends-on): Add sys_socket.
63884
63885 2006-02-15  Simon Josefsson  <jas@extundo.com>
63886
63887         * build-aux/maint.mk: Add dsyntax-check rule.
63888
63889 2006-02-15  Eric Blake  <ebb9@byu.net>
63890
63891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63892         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63893         'present but cannot compile' warnings on cygwin.
63894         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63895         use ws2tcpip.h if sys/socket.h works.
63896         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63897         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63898
63899 2006-02-14  Simon Josefsson  <jas@extundo.com>
63900
63901         * modules/maintainer-makefile (Files): Rename.
63902
63903         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63904         and (the local) Makefile.cfg to maint-cfg.mk.
63905
63906         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63907         to the latter.
63908
63909         * modules/maintainer-makefile: New module.
63910
63911         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63912         severaly stripped to make it possible to build it up from scratch
63913         with reliable tests.
63914
63915         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63916         fixes to permit overriding the default actions when configure and
63917         makefile are not available.
63918
63919 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63920
63921         Sync from coreutils.
63922         * modules/lstat (Depends-on): Don't depend on xalloc.
63923         (License): Change from GPL to LGPL, since this is now simply a
63924         replacement for a libc function.
63925
63926 2006-02-14  Jim Meyering  <jim@meyering.net>
63927
63928         Sync from coreutils.
63929
63930         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63931         failure on deficient systems, and simplify gnulib lgpl dependencies.
63932         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63933         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63934
63935         * lib/xalloc-die.c: Remove unused definition of N_.
63936
63937 2006-02-14  Jim Meyering  <jim@meyering.net>
63938
63939         Sync from coreutils.
63940         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63941         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63942         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63943         double-quote uses of that variable, to accommodate the rare case in
63944         which getmntent is available in none of the libraries checked.  This
63945         happens at least on FreeBSD 5.0.
63946
63947 2006-02-13  Simon Josefsson  <jas@extundo.com>
63948
63949         * gnulib-tool (Usage): Fix --import, from
63950         karl@freefriends.org (Karl Berry).
63951
63952 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63953
63954         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63955
63956 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63957
63958         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63959         "autoupdate" on 2005-12-12.
63960
63961 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63962
63963         * modules/closeout (Depends-on): Remove atexit.
63964
63965 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63966
63967         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63968         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63969
63970 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63971
63972         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63973         __EXTENSIONS__ if this causes compilation to fail.  Problem
63974         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63975         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63976
63977 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63978
63979         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63980         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63981         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63982         All uses changed.
63983
63984 2006-01-26  Simon Josefsson  <jas@extundo.com>
63985
63986         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63987         prototype is visible on mingw32.
63988
63989         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63990         for mingw32.
63991
63992         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63993         mingw32).
63994
63995 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63996
63997         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63998         attempt to open for write; this always fails, at least on POSIX
63999         hosts.  This reinstates the 2006-01-09 change, which was
64000         inadvertently removed.
64001
64002 2006-01-26  Bruno Haible  <bruno@clisp.org>
64003
64004         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64005         Reported by Paul Eggert.
64006
64007 2006-01-26  Bruno Haible  <bruno@clisp.org>
64008             Paul Eggert  <eggert@cs.ucla.edu>
64009
64010         * lib/stdbool_.h (_Bool)
64011         [(! (defined __cplusplus || defined __BEOS__)
64012           && !defined __GNUC__
64013           && !(defined __HP_cc || defined __xlc__
64014                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64015                || defined __sgi))]:
64016         #define to signed char in these cases too; this simplifies
64017         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64018         etc., separately) and makes it more conservative.
64019
64020 2006-01-25  Simon Josefsson  <jas@extundo.com>
64021
64022         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64023         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64024         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64025
64026 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64027
64028         * lib/argp-namefrob.h: Bugfix. Remove stray #
64029
64030 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64031
64032         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64033         so that we test the test.
64034         Check for yet another HP-UX cc bug involving *bool |= bool.
64035
64036 2006-01-25  Karl Berry  <karl@gnu.org>
64037
64038         * config/srclist.txt (vasnprintf.c): sync lost.
64039
64040 2006-01-25  Jim Meyering  <jim@meyering.net>
64041
64042         Sync from the stable (b5) branch of coreutils:
64043
64044         * lib/fts.c (fts_children): Don't let close() clobber errno from
64045         failed fchdir().
64046
64047         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64048         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64049         a dangling symlink.  That can also happen at least for ELOOP.
64050         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64051         FYI, this bug predates the inclusion of fts.c in coreutils.
64052
64053         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64054         in their own block, so pre-c99 compilers don't object.
64055
64056         Avoid the double-free (first in fts_read, second in fts_close) that
64057         would occur when an `active' directory is made inaccessible (e.g.,
64058         via chmod a-x) during a traversal.
64059         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64060         before returning.  Reproduce this failure by
64061         mkdir -p a/b; cd a; chmod a-x . b
64062         Reported by Stavros Passas.
64063
64064 2006-01-25  Jim Meyering  <jim@meyering.net>
64065
64066         * lib/fileblocks.c: Remove more useless parentheses.
64067         * lib/readutmp.h: Likewise.
64068
64069 2006-01-25  Bruno Haible  <bruno@clisp.org>
64070
64071         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64072         warnings.
64073         Reported by Paul Eggert.
64074
64075 2006-01-25  Bruno Haible  <bruno@clisp.org>
64076
64077         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64078         rid of a trap command. For Solaris sh.
64079         Reported by Mark D. Baushke <mdb@gnu.org>.
64080
64081 2006-01-24  Simon Josefsson  <jas@extundo.com>
64082
64083         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64084         Bruno.
64085
64086 2006-01-24  Karl Berry  <karl@gnu.org>
64087
64088         * config/srclist.txt (argp-namefrob.h): sync lost.
64089
64090 2006-01-24  Jim Meyering  <jim@meyering.net>
64091
64092         * modules/openat (Files): Add lib/intprops.h.
64093         From Mark D. Baushke.
64094
64095 2006-01-24  Jim Meyering  <jim@meyering.net>
64096
64097         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64098         Reported by Mark D. Baushke.
64099
64100 2006-01-24  Jim Meyering  <jim@meyering.net>
64101
64102         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64103
64104 2006-01-24  Bruno Haible  <bruno@clisp.org>
64105
64106         * modules/strnlen (Maintainer): Change from glibc to all.
64107
64108 2006-01-24  Bruno Haible  <bruno@clisp.org>
64109
64110         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64111         Patch by Paul Eggert.
64112
64113 2006-01-24  Bruno Haible  <bruno@clisp.org>
64114
64115         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64116         already has it.
64117         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64118         2005-11-26.
64119
64120         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64121         'signed char' to avoid problems with the built-in _Bool type.
64122         Reported by Paul Eggert on 2005-11-26.
64123
64124 2006-01-24  Bruno Haible  <bruno@clisp.org>
64125
64126         * gnulib-tool (func_import): Avoid constructing complicated sed
64127         expressions inside backquote.
64128         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64129
64130 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64131
64132         These changes imported from libc.
64133         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64134         test and two separate function calls.
64135         * lib/strndup.c (__strndup): Add libc_hidden_def.
64136
64137 2006-01-23  Simon Josefsson  <jas@extundo.com>
64138
64139         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64140         Remove the test_*_SOURCES variable: automake infers it by default.
64141         * modules/tls-tests: Likewise.
64142
64143 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64144
64145         Work around porting bugs reported by Dieter in
64146         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64147         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64148         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64149         Include "getopt.h" first, to check interface.
64150         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64151         !HAVE_DECL_GETENV.
64152         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64153         (__strndup): Revert to K&R-style function dfns, the glibc style.
64154         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64155         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64156         Include strnlen.h first, to get prototype properly.
64157         (strnlen): Renamed from __strnlen.
64158         Remove weak alias.
64159
64160 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64161
64162         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64163
64164 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64165
64166         * config/srclist.txt: Adjust to reflect glibc reorganization.
64167         This affects only comments.
64168
64169 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64170
64171          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64172          Reported by Bruce Korb <bkorb@gnu.org>.
64173
64174 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64175
64176         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64177         to pacify gcc -Wswitch-default.
64178
64179 2006-01-22  Bruno Haible  <bruno@clisp.org>
64180
64181         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64182         temporary buffer for sprintf, take into account the precision also
64183         for 'd', 'i', 'u', 'o', 'x', 'X'.
64184
64185 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64186
64187         * modules/argp-tests: New module
64188         * tests/test-argp.c: New file
64189         * tests/test-argp-2.sh: New file
64190
64191 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64192
64193         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64194         (__argp_base_name): Removed
64195         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64196         typo.
64197         (__argp_base_name): Provide macro definition or extern declaration
64198         depending on the configuration
64199
64200 2006-01-20  Simon Josefsson  <jas@extundo.com>
64201
64202         * modules/inet_ntop (Depends-on): Depend on sys_socket.
64203
64204 2006-01-20  Simon Josefsson  <jas@extundo.com>
64205
64206         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
64207
64208 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64209
64210         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
64211         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
64212         Suggested by Bruno Haible.
64213
64214 2006-01-20  Karl Berry  <karl@gnu.org>
64215
64216         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
64217         until changes propagate, I guess.
64218
64219 2006-01-19  Simon Josefsson  <jas@extundo.com>
64220
64221         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
64222
64223 2006-01-19  Simon Josefsson  <jas@extundo.com>
64224
64225         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
64226
64227 2006-01-19  Simon Josefsson  <jas@extundo.com>
64228
64229         * gnulib-tool: Set check_PROGRAMS.
64230
64231         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64232         modules/des-tests, modules/gc-arcfour-tests,
64233         modules/gc-arctwo-tests, modules/gc-des-tests,
64234         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64235         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64236         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64237         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64238         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64239         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
64240         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
64241         test_*_SOURCES.
64242
64243 2006-01-18  Simon Josefsson  <jas@extundo.com>
64244
64245         * modules/socklen (Depends-on): Depend on sys_socket.
64246
64247 2006-01-18  Simon Josefsson  <jas@extundo.com>
64248
64249         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64250         modules/des-tests, modules/gc-arcfour-tests,
64251         modules/gc-arctwo-tests, modules/gc-des-tests,
64252         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64253         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64254         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64255         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64256         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64257         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
64258         $(EXEEXT) to automake TESTS variable, for mingw32.
64259
64260 2006-01-17  Simon Josefsson  <jas@extundo.com>
64261
64262         * modules/socklen (Include): Need sys/socket.h.
64263
64264 2006-01-17  Bruno Haible  <bruno@clisp.org>
64265
64266         * modules/ssize_t (Include): Add <sys/types.h>.
64267
64268 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
64269
64270         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
64271         it's not portable and it doesn't work with cross-compiles.
64272         Problem reported by Bruno Haible.  Fix missing-$ typo in
64273         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64274         -zignore from being used with Sun's C compiler.
64275
64276 2006-01-12  Simon Josefsson  <jas@extundo.com>
64277
64278         * lib/base64.c: Fix warning, reported by Bruno Haible
64279         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64280
64281 2006-01-12  Bruno Haible  <bruno@clisp.org>
64282
64283         * modules/ldd: New file.
64284         * build-aux/ldd.sh.in: New file.
64285         * MODULES.html.sh (Support for building libraries and executables): Add
64286         ldd.
64287
64288 2006-01-12  Bruno Haible  <bruno@clisp.org>
64289
64290         * m4/ldd.m4: New file.
64291
64292 2006-01-12  Bruno Haible  <bruno@clisp.org>
64293
64294         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64295         endless loop while replacing $auxdir with build-aux.
64296
64297 2006-01-11  Simon Josefsson  <jas@extundo.com>
64298
64299         * lib/stdint_.h (SIZE_MAX): Add missing (.
64300
64301 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         Sync from coreutils.
64304         * lib/md5.c: Fix commentary typos.
64305         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64306         * lib/md5.h (__attribute__): Remove; unused.
64307         * lib/sha1.c: Fix commentary to match md5 better.
64308         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64309         so that we don't need to worry about alignment.  All uses changed.
64310         This merges the 2005-10-28 md5 change into sha1.
64311
64312 2006-01-11  Jim Meyering  <jim@meyering.net>
64313
64314         Sync from coreutils.
64315         * lib/md5.c (OP): Fix spacing.
64316
64317 2006-01-11  Bruno Haible  <bruno@clisp.org>
64318
64319         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64320         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
64321         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
64322
64323 2006-01-11  Bruno Haible  <bruno@clisp.org>
64324
64325         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64326         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
64327         the "early" section as well.
64328
64329 2006-01-11  Bruno Haible  <bruno@clisp.org>
64330
64331         Avoid "ar: no archive members specified" error on MacOS X.
64332         * gnulib-tool (func_modules_add_dummy): New function.
64333         (func_import, func_create_testdir): Invoke it.
64334
64335 2006-01-11  Bruno Haible  <bruno@clisp.org>
64336
64337         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
64338         with $auxdir in AC_CONFIG_FILES statements.
64339
64340 2006-01-11  Bruno Haible  <bruno@clisp.org>
64341
64342         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64343         Initialize also noinst_HEADERS to empty.
64344
64345 2006-01-11  Bruno Haible  <bruno@clisp.org>
64346
64347         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
64348         variables.
64349         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
64350         autoreconf.
64351
64352 2006-01-11  Bruno Haible  <bruno@clisp.org>
64353
64354         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
64355         overridable by the user.
64356         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64357
64358 2006-01-10  Simon Josefsson  <jas@extundo.com>
64359
64360         * modules/sys_socket: New file.
64361
64362 2006-01-10  Simon Josefsson  <jas@extundo.com>
64363
64364         * m4/sys_socket_h.m4: New file.
64365
64366 2006-01-10  Simon Josefsson  <jas@extundo.com>
64367
64368         * lib/socket_.h: New file.
64369
64370 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64371
64372         * modules/readutmp (Maintainer): Add myself.
64373
64374 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64375
64376         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64377         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64378         People who are still concerned with buggy memcmp implementations
64379         can invoke gl_FUNC_MEMCMP themselves.
64380
64381 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64382
64383         * lib/regex_internal.h (BITSET_WORD_BITS):
64384         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64385         preprocessor mishandles large unsigned values as if they were signed.
64386         Problem reported by Claudio Fontana in
64387         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64388
64389 2006-01-10  Jim Meyering  <jim@meyering.net>
64390
64391         Avoid the double-free (first in fts_read, second in fts_close) that
64392         would occur when an `active' directory is made inaccessible (e.g.,
64393         via chmod a-x) during a traversal.
64394         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64395         before returning.  Reproduce this failure by
64396         mkdir -p a/b; cd a; chmod a-x . b
64397         Reported by Stavros Passas.
64398
64399         Sync from coreutils.
64400         * lib/sha1.c: Tweak grammar in a comment.
64401
64402 2006-01-10  Jim Meyering  <jim@meyering.net>
64403
64404         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64405         Patch by Joerg Sonnenberger.
64406
64407 2006-01-10  Bruno Haible  <bruno@clisp.org>
64408
64409         * modules/readutmp: Depend on module free.
64410         * modules/strtok_r: Depend on module restrict.
64411
64412 2006-01-10  Bruno Haible  <bruno@clisp.org>
64413
64414         * modules/gettext (configure.ac): Add an invocation of
64415         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64416
64417 2006-01-10  Bruno Haible  <bruno@clisp.org>
64418
64419         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64420         Reported by Werner Lemberg <wl@gnu.org>.
64421
64422 2006-01-10  Bruno Haible  <bruno@clisp.org>
64423
64424         * lib/localcharset.c: Update from GNU gettext.
64425
64426 2006-01-10  Bruno Haible  <bruno@clisp.org>
64427
64428         * lib/argp.h (__const): Remove macro. Use const instead.
64429         * lib/argp-fmtstream.h (__const): Likewise.
64430         * lib/glob_.h (__const): Remove macro.
64431         * lib/glob-libc.h: Use const instead of __const.
64432
64433 2006-01-10  Bruno Haible  <bruno@clisp.org>
64434
64435         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64436         variable.
64437         Needed to avoid an automake error regarding the 'gettext' module.
64438
64439 2006-01-09  Simon Josefsson  <jas@extundo.com>
64440
64441         * modules/inet_ntop (Depends-on): Add restrict.
64442
64443 2006-01-09  Simon Josefsson  <jas@extundo.com>
64444
64445         * modules/gc-rijndael-tests (License): Put under LGPL.
64446
64447         * modules/gc-des-tests (License): Likewise.
64448
64449         * modules/gc-arcfour-tests (License): Likewise.
64450
64451         * modules/gc-arctwo-tests (License): Likewise.
64452
64453         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64454
64455         * modules/gc-hmac-sha1-tests (Files): Likewise.
64456
64457         * modules/gc-hmac-md5-tests (License): Likewise.
64458
64459         * modules/gc-sha1-tests (License): Likewise.
64460
64461         * modules/gc-md5-tests (License): Likewise.
64462
64463         * modules/gc-md4-tests (License): Likewise.
64464
64465         * modules/gc-md2-tests (License): Likewise.
64466
64467         * modules/gc-tests (License): Likewise.
64468
64469         * modules/des-tests (License): Likewise.
64470
64471         * modules/md4-tests (License): Likewise.
64472
64473         * modules/md2-tests (License): Likewise.
64474
64475 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64476
64477         Sync from coreutils:
64478
64479         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64480         * modules/lib-ignore: New file.
64481         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64482         chdir-safer.m4, lchmod.m4.
64483         * modules/openat: Add mkdirat.c, openat-priv.h.
64484
64485 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64486
64487         Sync from coreutils.
64488         * m4/lib-ignore.m4: New file.
64489         * m4/lchmod.m4: New file.
64490
64491 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64492
64493         Sync from coreutils.
64494         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64495         for write access: POSIX says that must fail.
64496         * lib/fts.c (diropen): Likewise.
64497         * lib/save-cwd.c (save_cwd): Likewise.
64498         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64499         well, for minor improvements on hosts that lack O_DIRECTORY.
64500         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64501         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64502         Fall back on chown if open failed with EACCES.
64503
64504         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64505         Report an error at compile-time if only a 1-second nominal clock
64506         resolution is found.
64507
64508         * lib/lchmod.h: New file.
64509         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64510         (make_dir_parents): Use lchown rather than chown, and
64511         lchmod rather than chmod.
64512
64513         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64514         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64515         "proc" reported by n0dalus.
64516
64517         * lib/mountlist.c: Include <limits.h>.
64518         (dev_from_mount_options)
64519         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64520         New function.  It no longer assumes "dev=" has the System V meaning
64521         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64522         (read_file_system_list)
64523         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64524         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64525         dev= in that case.
64526
64527         * lib/posixtm.h (PDS_PRE_2000): New macro.
64528         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64529         allow_century.  All usages changed.  Reject dates outside the range
64530         1969-1999 if PDS_PRE_2000 is used.
64531
64532 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64533
64534         Sync from coreutils.
64535         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64536         (Time of day items): Mention the possibility of leap seconds.
64537         Problem reported by Dr. David Alan Gilbert.
64538
64539 2006-01-09  Jim Meyering  <jim@meyering.net>
64540
64541         Sync from coreutils.
64542
64543         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64544
64545         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64546
64547         * lib/modechange.c (mode_compile): Reject an invalid mode string
64548         that starts with an octal digit.  From Andreas Gruenbacher.
64549
64550         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64551         and dup to open_safer and dup_safer, respectively.
64552         (openat_permissive): Fix typo in comment.
64553
64554         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64555         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64556         (_): Remove; no longer needed.
64557         (openat): Renamed from rpl_openat; no need for rpl_openat
64558         since openat.h renames openat for us.
64559         Replace most of the body with a call to openat_permissive,
64560         to avoid duplicate code.
64561         Port to (probably hypothetical) environments were mode_t is
64562         wider than int.
64563         (openat_permissive): Require mode arg, so that we can check
64564         types better.  Put it just after flags.  Change cwd failure
64565         indicator from pointer-to-bool to pointer-to-errno-value.
64566         All callers changed.
64567         Invoke openat_save_fail and/or openat_restore_fail if
64568         cwd_errno is null, so that openat can call us.
64569         (openat_permissive, fdopendir, fstatat, unlinkat):
64570         Simplify errno handling to avoid some duplicate code,
64571         as it's OK to set errno on success.
64572         * lib/openat.h: Revamp code so that function macros depend on
64573         __OPENAT_PREFIX only, not also on AT_FDCWD.
64574         (openat_ro): Remove.  Caller changed to use openat_permissive.
64575         (openat_permissive): Now a macro, if not a function.
64576         (openat_restore_fail, openat_save_fail): Now always functions,
64577         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64578
64579         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64580         and openat.c.
64581         * lib/mkdirat.c: Include openat-priv.h.
64582         Remove definitions of macros defined therein.
64583         * lib/openat.c: Likewise.
64584
64585         * lib/mkdirat.c (mkdirat): New file and function.
64586         * lib/openat.h (mkdirat): Declare.
64587
64588         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64589
64590         * lib/openat.h (openat_permissive): Declare.
64591         (openat_ro): Define.
64592
64593         * lib/openat.c (EXPECTED_ERRNO): New macro.
64594         (openat_permissive): New function -- used in remove.c rewrite.
64595         (all functions): Set errno just before returning, only if there
64596         was an actual failure.
64597         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64598
64599         Emulate openat-family functions using Linux's procfs, if possible.
64600         Idea and some code based on Ulrich Drepper's glibc changes.
64601
64602         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64603         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64604         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64605         before falling back on save_cwd and restore_cwd.
64606         (fdopendir, fstatat, unlinkat): Likewise.
64607
64608         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64609         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64610
64611         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64612         as second argument to va_arg.  Otherwise, some versions of gcc
64613         warn that `if this code is reached, the program will abort'.
64614
64615 2006-01-09  Jim Meyering  <jim@meyering.net>
64616
64617         Sync from coreutils.
64618         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64619         Require openat-priv.h.
64620
64621 2006-01-09  Bruno Haible  <bruno@clisp.org>
64622
64623         * modules/strnlen (Include): Use strnlen.h.
64624
64625 2006-01-09  Bruno Haible  <bruno@clisp.org>
64626
64627         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64628
64629 2006-01-09  Bruno Haible  <bruno@clisp.org>
64630
64631         * lib/sysexit_.h (EX_OK): New macro.
64632         Suggested by Martin Lambers <marlam@marlam.de>.
64633
64634 2006-01-09  Bruno Haible  <bruno@clisp.org>
64635
64636         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64637         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64638
64639 2006-01-09  Bruno Haible  <bruno@clisp.org>
64640
64641         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64642         numbers.
64643
64644 2006-01-09  Bruno Haible  <bruno@clisp.org>
64645
64646         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64647         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64648         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64649         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64650
64651 2006-01-09  Bruno Haible  <bruno@clisp.org>
64652
64653         * build-aux/javacomp.sh.in: New file, moved from lib/.
64654         * modules/javacomp-script (Files): Update.
64655         (configure.ac): Add AC_CONFIG_FILES invocation.
64656         (EXTRA_DIST): Remove variable.
64657
64658         * build-aux/javaexec.sh.in: New file, moved from lib/.
64659         * modules/javaexec (Files): Update.
64660         (configure.ac): Add AC_CONFIG_FILES invocation.
64661         (EXTRA_DIST): Remove javaexec.sh.in.
64662
64663         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64664         * modules/csharpcomp-script (Files): Update.
64665         (configure.ac): Add AC_CONFIG_FILES invocation.
64666         (EXTRA_DIST): Remove variable.
64667
64668         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64669         * modules/csharpexec (Files): Update.
64670         (configure.ac): Add AC_CONFIG_FILES invocation.
64671         (EXTRA_DIST): Remove csharpexec.sh.in.
64672
64673 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64674
64675         Sync from coreutils.
64676
64677         Add POSIX ACL support
64678         * lib/acl.h (copy_acl, set_acl): Add declarations.
64679         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64680         systems other than Linux.
64681         (chmod_or_fchmod): New function: use fchmod when possible,
64682         and chmod otherwise.
64683         (file_has_acl): Add a POSIX ACL implementation, with a
64684         Linux-specific subcase.
64685         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64686         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64687         acls are unsupported.
64688         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64689         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64690         are unsupported.
64691
64692 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64693
64694         Sync from coreutils.
64695         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64696
64697 2006-01-07  Bruno Haible  <bruno@clisp.org>
64698
64699         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64700         gl_EARLY.
64701
64702 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64703
64704         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64705         Problem reported for Mingw by Mark Junker.
64706
64707 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         * README: Gnulib normally doesn't generate a tarball.
64710
64711 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64712
64713         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64714         long int, not int, for nanosecond counts, so that people who are
64715         used to POSIX struct timespec won't be surprised.  Reported by Jim
64716         Meyering.
64717
64718 2005-12-28  Bruno Haible  <bruno@clisp.org>
64719
64720         * build-aux/config.rpath: Update from GNU gettext.
64721
64722 2005-12-16  Jim Meyering  <jim@meyering.net>
64723
64724         * modules/fprintftime: New module.
64725         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64726
64727 2005-12-16  Jim Meyering  <jim@meyering.net>
64728
64729         * m4/fprintftime.m4: New file.
64730
64731 2005-12-16  Jim Meyering  <jim@meyering.net>
64732
64733         * lib/fprintftime.c, lib/fprintftime.h: New files.
64734
64735 2005-12-15  Simon Josefsson  <jas@extundo.com>
64736
64737         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64738         new m4/socklen.m4.
64739
64740 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64741
64742         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64743         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64744
64745 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64746
64747         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64748         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64749         struct uparams is valid. Fall back to the default values if it is
64750         not.
64751
64752 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64753
64754         * modules/argp (Files): Add argp-pin.c
64755         (Depends-on): dirname
64756         (lib_SOURCES): Add argp-pin.c
64757
64758 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64759
64760         * m4/argp.m4:  Check if program_invocation_name and
64761         program_invocation_short_name are declared and define appropriate
64762         macros if they are not.
64763
64764 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64765
64766         * lib/argp-help.c (__argp_base_name): New function
64767         (__argp_short_program_name): Rewrite using __argp_base_name
64768         * lib/argp-namefrob.h: Define program_invocation_name and
64769         program_invocation_short_name if requested
64770         (__argp_base_name): Add prototype
64771         * lib/argp-parse.c (argp_def): Use gettext wrappers
64772         (argp_default_parser): Use __argp_base_name
64773         * lib/argp-pin.c: New file. Defines program_invocation_name and
64774         program_invocation_short_name on systems that lack them.
64775
64776 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64777
64778         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64779         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64780         porting problem reported by Georg Schwarz in
64781         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64782
64783 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64784
64785         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64786         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64787         porting problem reported by Georg Schwarz in
64788         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64789
64790 2005-12-05  Bruno Haible  <bruno@clisp.org>
64791
64792         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64793         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64794         Reported by Mark Junker <mjscod@gmx.de>.
64795
64796 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64799         Use implementation from Albert Chin, with some
64800         comments/corrections by Stepan Kasal and myself.
64801
64802 2005-12-02  Bruno Haible  <bruno@clisp.org>
64803
64804         * gnulib-tool (func_import): Accept GPLed build tool modules when
64805         --lgpl is given.
64806         * modules/csharpcomp-script: New file.
64807         * modules/csharpcomp: Depend on it.
64808         * modules/javacomp-script: New file.
64809         * modules/javacomp: Depend on it.
64810         Suggested by Simon Josefsson.
64811
64812 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64813
64814         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64815         statement, to work around an HP-UX 10.20 compiler bug reported by
64816         Peter O'Gorman.
64817
64818 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64819
64820         * modules/savedir (Depends-on): Add openat.
64821
64822 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64823
64824         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64825         (uintmax_t) [defined uintmax_t]: Do not declare.
64826         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64827         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64828         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64829         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64830         sake of portability to weird hosts that C allows (though we don't
64831         know of any practical examples).
64832
64833         * lib/savedir.h (fdsavedir): New decl.
64834         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64835         contains most of the former guts of savedir.
64836         (savedir): Use savedirstream.
64837         Include "openat.h".
64838
64839 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64840
64841         * modules/obstack (Files): Add m4/ulonglong.m4.
64842         Problem reported by Davide Angelocola.
64843
64844 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64845
64846         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64847         coreutils no longer futzes with rounding modes.
64848
64849 2005-11-14  Jim Meyering  <jim@meyering.net>
64850
64851         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64852         replacement of mkstemp.
64853
64854 2005-11-10  Simon Josefsson  <jas@extundo.com>
64855
64856         * lib/readline.c: Remove EOL.
64857
64858 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64859
64860         * modules/gethrxtime (Depends-on): Add gettime.
64861
64862 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64865         or gettimeofday; no longer needed.
64866
64867 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64868
64869         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64870         time business.
64871         (gethrxtime) [! (HAVE_NANOUPTIME
64872         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64873         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64874         our own approximation.
64875
64876 2005-11-08  Eric Blake  <ebb9@byu.net>
64877
64878         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64879
64880 2005-11-08  Eric Blake  <ebb9@byu.net>
64881
64882         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64883
64884 2005-11-04  Bruno Haible  <bruno@clisp.org>
64885
64886         * gnulib-tool: Implement --update mode.
64887
64888 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64889
64890         Fix porting problem reported by Theodoros V. Kalamatianos.
64891         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64892         Don't assume that futimes failing means we must fail.
64893
64894 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64895
64896         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64897         variables to suggest the intended function of the PATH_MAX check.
64898
64899 2005-10-30  Kean Johnston  <jkj@sco.com>
64900
64901         Trivial changes to support SCO systems.
64902         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64903         as PATH_MAX.
64904         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64905         where __ptr is null when no I/O is pending.
64906
64907 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64908
64909         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64910         leave errno alone.  Problem reported by Dmitry V. Levin.
64911
64912 2005-10-28  Simon Josefsson  <jas@extundo.com>
64913
64914         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64915         Test more.
64916
64917         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64918
64919         * modules/md2, modules/md2-tests: New files.
64920
64921 2005-10-28  Simon Josefsson  <jas@extundo.com>
64922
64923         * m4/inet_ntop.m4: More tests.
64924
64925         * m4/gc-md2.m4, md2.m4: New file.
64926
64927 2005-10-28  Simon Josefsson  <jas@extundo.com>
64928
64929         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64930         "restrict" keywords, as per POSIX.  Protect the function
64931         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64932         Don't use K&R prototypes.  Check the sprintf return values.
64933         Re-define EAFNOSUPPORT if not present.  Indent.
64934
64935         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64936         suggested by Bruno Haible <bruno@clisp.org>.
64937
64938         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64939
64940         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64941
64942         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64943         libgcrypt).
64944
64945         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64946
64947         * lib/md2.h, lib/md2.c: New files.
64948
64949 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64950
64951         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64952         errno alone.  Problem reported by Frederic Jolliton.
64953
64954 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64955
64956         * modules/verify (License): Change from GPL to LGPL.  This is a
64957         tiny module and there are apparently near-equivalents that are
64958         under the BSD license.
64959
64960 2005-10-24  Simon Josefsson  <jas@extundo.com>
64961
64962         * modules/sha1: Relicense to LGPL.
64963
64964 2005-10-24  Simon Josefsson  <jas@extundo.com>
64965
64966         * lib/md4.h: Shrink buffer size, now that we changed the type.
64967
64968 2005-10-23  Simon Josefsson  <jas@extundo.com>
64969
64970         * gnulib-tool (func_import): Fix --tests-base.
64971
64972 2005-10-22  Simon Josefsson  <jas@extundo.com>
64973
64974         * modules/arcfour (Depends-on): Need stdint.
64975
64976 2005-10-22  Simon Josefsson  <jas@extundo.com>
64977
64978         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64979         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64980
64981 2005-10-22  Simon Josefsson  <jas@extundo.com>
64982
64983         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64984         suggested by Bruno Haible <bruno@clisp.org>.
64985
64986 2005-10-22  Simon Josefsson  <jas@extundo.com>
64987
64988         * lib/crc.h: Include stddef.h, for size_t.
64989
64990 2005-10-22  Simon Josefsson  <jas@extundo.com>
64991
64992         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64993         arcfour_context struct (simplify test vector testing in GNU
64994         Shishi).
64995
64996 2005-10-21  Simon Josefsson  <jas@extundo.com>
64997
64998         * modules/des, modules/des-tests: New files.
64999
65000         * modules/gc-des, modules/gc-des-tests: New files.
65001
65002         * tests/test-des.c, tests/test-gc-des.c: New file.
65003
65004 2005-10-21  Simon Josefsson  <jas@extundo.com>
65005
65006         * modules/arctwo, modules/arctwo-tests: New files.
65007
65008         * tests/test-arctwo.c: New file.
65009
65010         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65011
65012         * tests/test-gc-arctwo.c: New file.
65013
65014 2005-10-21  Simon Josefsson  <jas@extundo.com>
65015
65016         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65017         Bruno Haible <bruno@clisp.org>.
65018
65019         * m4/gc-des.m4: New file.
65020
65021 2005-10-21  Simon Josefsson  <jas@extundo.com>
65022
65023         * m4/arctwo.m4: New file.
65024
65025         * m4/gc-arctwo.m4: New file.
65026
65027 2005-10-21  Simon Josefsson  <jas@extundo.com>
65028
65029         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65030         block.
65031
65032 2005-10-21  Simon Josefsson  <jas@extundo.com>
65033
65034         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65035         <bruno@clisp.org>.
65036
65037         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65038
65039         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65040         Bruno Haible <bruno@clisp.org>.
65041
65042         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65043         <bruno@clisp.org>.
65044
65045 2005-10-21  Simon Josefsson  <jas@extundo.com>
65046
65047         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65048
65049 2005-10-21  Simon Josefsson  <jas@extundo.com>
65050
65051         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65052
65053 2005-10-21  Simon Josefsson  <jas@extundo.com>
65054
65055         * lib/des.h, lib/des.c: New files.
65056
65057         * lib/gc-gnulib.c: Support DES.c
65058
65059 2005-10-21  Simon Josefsson  <jas@extundo.com>
65060
65061         * lib/arctwo.h, lib/arctwo.c: New files.
65062
65063         * lib/gc-gnulib.c: Support ARCTWO.
65064
65065 2005-10-21  Simon Josefsson  <jas@extundo.com>
65066
65067         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65068         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65069
65070 2005-10-21  Simon Josefsson  <jas@extundo.com>
65071
65072         * gnulib-tool (func_import, func_create_testdir): Define automake
65073         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65074         Makefile.am snippet),
65075         suggested by Bruno Haible <bruno@clisp.org>.
65076
65077         * modules/gc (Makefile.am): Use it.
65078
65079 2005-10-21  Bruno Haible  <bruno@clisp.org>
65080
65081         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65082         patch.
65083
65084 2005-10-19  Simon Josefsson  <jas@extundo.com>
65085
65086         * tests/test-gc-rijndael.c: New file.
65087
65088         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65089
65090 2005-10-19  Simon Josefsson  <jas@extundo.com>
65091
65092         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65093         interface too.
65094
65095 2005-10-19  Simon Josefsson  <jas@extundo.com>
65096
65097         * tests/test-gc-arcfour.c: New file.
65098
65099         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65100
65101 2005-10-19  Simon Josefsson  <jas@extundo.com>
65102
65103         * modules/gc-md4, modules/gc-md4-tests: New file.
65104
65105         * tests/test-gc-md4.c: New file.
65106
65107 2005-10-19  Simon Josefsson  <jas@extundo.com>
65108
65109         * m4/gc-md4.m4: New file.
65110
65111 2005-10-19  Simon Josefsson  <jas@extundo.com>
65112
65113         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65114         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65115         <kasal@ucw.cz>.
65116
65117 2005-10-19  Simon Josefsson  <jas@extundo.com>
65118
65119         * m4/gc-arcfour.m4: New file.
65120
65121         * m4/gc-rijndael.m4: New file.
65122
65123 2005-10-19  Simon Josefsson  <jas@extundo.com>
65124
65125         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65126
65127 2005-10-19  Simon Josefsson  <jas@extundo.com>
65128
65129         * lib/gc-gnulib.c: Support ARCFOUR.
65130
65131 2005-10-19  Simon Josefsson  <jas@extundo.com>
65132
65133         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65134         support.
65135
65136         * lib/gc.h: Add ECB enum type.
65137
65138         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65139
65140 2005-10-18  Simon Josefsson  <jas@extundo.com>
65141
65142         * tests/test-md5.c: New file.
65143
65144         * modules/md5-tests: New file.
65145
65146 2005-10-18  Simon Josefsson  <jas@extundo.com>
65147
65148         * tests/test-md4.c: New file.
65149
65150         * modules/md4, modules/md4-tests: New files.
65151
65152 2005-10-18  Simon Josefsson  <jas@extundo.com>
65153
65154         * m4/md4.m4: New file.
65155
65156 2005-10-18  Simon Josefsson  <jas@extundo.com>
65157
65158         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65159
65160 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65161
65162         * gnulib-tool (func_create_testdir): Omit the second check whether
65163         BUILT_SOURCES in nonempty.
65164
65165 2005-10-17  Simon Josefsson  <jas@extundo.com>
65166
65167         * tests/test-rijndael.c: New file.
65168
65169 2005-10-17  Simon Josefsson  <jas@extundo.com>
65170
65171         * modules/sha1: Depend on stdint instead of md5.
65172
65173         * modules/md5: Depend on stdint, remove uint32_t.
65174
65175 2005-10-17  Simon Josefsson  <jas@extundo.com>
65176
65177         * modules/gc-sha1-tests: New file.
65178
65179         * tests/test-gc-sha1.c: New file.
65180
65181 2005-10-17  Simon Josefsson  <jas@extundo.com>
65182
65183         * m4/md5.m4: Remove call to uint32_t.m4.
65184
65185 2005-10-17  Simon Josefsson  <jas@extundo.com>
65186
65187         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65188
65189         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65190         md5.h.
65191
65192         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65193
65194         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65195
65196 2005-10-17  Simon Josefsson  <jas@extundo.com>
65197
65198         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
65199
65200 2005-10-17  Simon Josefsson  <jas@extundo.com>
65201
65202         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
65203
65204 2005-10-17  Simon Josefsson  <jas@extundo.com>
65205
65206         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
65207
65208         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
65209
65210 2005-10-17  Bruno Haible  <bruno@clisp.org>
65211
65212         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
65213         that it can also be used in a test.
65214
65215 2005-10-16  Bruno Haible  <bruno@clisp.org>
65216
65217         * gnulib-tool (func_emit_tests_Makefile_am): Also define
65218         TESTS_ENVIRONMENT, so that individual tests can augment it.
65219
65220         * gnulib-tool (func_create_testdir): Use an intermediate target for
65221         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
65222         macros, like $(ALLOCA_H), which cannot be passed through the command
65223         line.
65224
65225 2005-10-15  Simon Josefsson  <jas@extundo.com>
65226
65227         * modules/rijndael-tests: New file.
65228
65229         * modules/rijndael: New file.
65230
65231 2005-10-15  Simon Josefsson  <jas@extundo.com>
65232
65233         * m4/rijndael.m4: New file.
65234
65235 2005-10-15  Simon Josefsson  <jas@extundo.com>
65236
65237         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
65238
65239         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
65240
65241 2005-10-14  Simon Josefsson  <jas@extundo.com>
65242
65243         * tests/test-arcfour.c: New file.
65244
65245         * modules/arcfour, modules/arcfour-tests: New files.
65246
65247 2005-10-14  Simon Josefsson  <jas@extundo.com>
65248
65249         * m4/arcfour.m4: New file.
65250
65251 2005-10-14  Simon Josefsson  <jas@extundo.com>
65252
65253         * lib/arcfour.h, lib/arcfour.c: New files.
65254
65255 2005-10-14  Roland McGrath  <roland@redhat.com>
65256
65257         Import from libc.  [BZ #1331]
65258         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
65259         macro argument.
65260         Reported by Matej Vela <vela@debian.org>.
65261
65262 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65263
65264         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
65265         include <wchar.h>; no longer needed.
65266
65267 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65268
65269         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
65270
65271 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
65272         and  Ulrich Drepper  <drepper@redhat.com>
65273
65274         Import from libc.
65275         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65276         instead of inline stream orientation test and two separate
65277         function calls.  Pay no attention to USE_IN_LIBIO.
65278
65279 2005-10-13  Simon Josefsson  <jas@extundo.com>
65280
65281         * modules/gc-hmac-md5-tests: New file.
65282
65283         * tests/test-gc-hmac-sha1.c: New file.
65284
65285         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65286
65287         * modules/gc-hmac-md5-tests: New file.
65288
65289         * tests/test-gc-md5.c: New file.
65290
65291         * modules/gc-md5-tests: New file.
65292
65293 2005-10-13  Simon Josefsson  <jas@extundo.com>
65294
65295         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65296         Move memory allocation outside of loop.
65297
65298 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65299
65300         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65301         intermediate directory is in a read-only file system.  Problem
65302         reported by Eric Blake.
65303
65304 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65305
65306         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65307
65308 2005-10-12  Simon Josefsson  <jas@extundo.com>
65309
65310         * tests/test-hmac-sha1.c: New file.
65311
65312         * modules/hmac-sha1-tests: New file.
65313
65314         * modules/hmac-sha1: New file.
65315
65316 2005-10-12  Simon Josefsson  <jas@extundo.com>
65317
65318         * modules/gc-sha1: New file.
65319
65320 2005-10-12  Simon Josefsson  <jas@extundo.com>
65321
65322         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
65323
65324         * tests/test-gc-pbkdf2-sha1.c: New file.
65325
65326 2005-10-12  Simon Josefsson  <jas@extundo.com>
65327
65328         * modules/gc-md5, modules/gc-hmac-md5: New files.
65329
65330         * modules/gc (Files): Remove md5, memxor and hmac files.
65331
65332 2005-10-12  Simon Josefsson  <jas@extundo.com>
65333
65334         * m4/gc-pbkdf2-sha1.m4: New file.
65335
65336         * m4/gc-hmac-sha1.m4: New file.
65337
65338         * m4/gc-sha1: New file.
65339
65340         * m4/hmac-sha1.m4: New file.
65341
65342 2005-10-12  Simon Josefsson  <jas@extundo.com>
65343
65344         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
65345
65346         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
65347
65348 2005-10-12  Simon Josefsson  <jas@extundo.com>
65349
65350         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
65351         suggested by Bruno Haible <bruno@clisp.org>.
65352
65353 2005-10-12  Simon Josefsson  <jas@extundo.com>
65354
65355         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
65356
65357 2005-10-12  Simon Josefsson  <jas@extundo.com>
65358
65359         * lib/gc-pbkdf2-sha1.c: New file.
65360
65361         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
65362
65363 2005-10-12  Simon Josefsson  <jas@extundo.com>
65364
65365         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
65366
65367         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
65368
65369 2005-10-12  Simon Josefsson  <jas@extundo.com>
65370
65371         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
65372         GC_USE_HMAC_MD5, respectively.
65373
65374         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
65375         (gc_md5): Fix typo.
65376
65377         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65378
65379         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65380
65381         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65382
65383 2005-10-12  Bruno Haible  <bruno@clisp.org>
65384
65385         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65386         Reported by Stepan Kasal <kasal@ucw.cz>.
65387
65388 2005-10-11  Simon Josefsson  <jas@extundo.com>
65389
65390         * tests/test-crc.c: New file.
65391
65392         * modules/crc, modules/crc-tests: New files.
65393
65394 2005-10-11  Simon Josefsson  <jas@extundo.com>
65395
65396         * m4/crc.m4: New file.
65397
65398 2005-10-11  Simon Josefsson  <jas@extundo.com>
65399
65400         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65401
65402         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65403
65404         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65405
65406 2005-10-11  Simon Josefsson  <jas@extundo.com>
65407
65408         * lib/crc.h, lib/crc.c: New files.
65409
65410         * lib/gc.h (gc_hash_buffer): Add doc.
65411
65412 2005-10-11  Bruno Haible  <bruno@clisp.org>
65413
65414         * modules/c-strcasestr: New file.
65415         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65416
65417 2005-10-11  Bruno Haible  <bruno@clisp.org>
65418
65419         * modules/c-strcase: New file.
65420         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65421
65422 2005-10-11  Bruno Haible  <bruno@clisp.org>
65423
65424         * lib/strcasecmp.c: Include limits.h.
65425         (strcasecmp): Avoid integer overflow on exotic platforms.
65426         * lib/strncasecmp.c: Include limits.h.
65427         (strncasecmp): Avoid integer overflow on exotic platforms.
65428         Reported by Paul Eggert.
65429
65430 2005-10-11  Bruno Haible  <bruno@clisp.org>
65431
65432         * lib/c-strcasestr.h: New file, from GNU gettext.
65433         * lib/c-strcasestr.c: New file, from GNU gettext.
65434
65435 2005-10-11  Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/c-strcase.h: New file, from GNU gettext.
65438         * lib/c-strcasecmp.c: New file, from GNU gettext.
65439         * lib/c-strncasecmp.c: New file, from GNU gettext.
65440
65441 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65442
65443         * modules/mempcpy (License): GPL -> LGPL.
65444         * modules/strchrnul (License): Likewise.
65445         * modules/sysexits (License): Likewise.
65446
65447 2005-10-08  Simon Josefsson  <jas@extundo.com>
65448
65449         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65450
65451 2005-10-07  Simon Josefsson  <jas@extundo.com>
65452
65453         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65454
65455 2005-10-06  Simon Josefsson  <jas@extundo.com>
65456
65457         * tests/test-hmac-md5.c: New file.
65458
65459         * modules/hmac-md5-tests: New file.
65460
65461         * modules/hmac-md5: New file.
65462
65463 2005-10-06  Simon Josefsson  <jas@extundo.com>
65464
65465         * m4/hmac-md5.m4: New file.
65466
65467         * m4/memxor.m4: Require gl_C_RESTRICT.
65468
65469 2005-10-06  Simon Josefsson  <jas@extundo.com>
65470
65471         * lib/memxor.c (memxor): Avoid casts and warnings.
65472
65473 2005-10-06  Simon Josefsson  <jas@extundo.com>
65474
65475         * lib/hmac-md5.c: New file.
65476
65477         * lib/hmac.h: New file.
65478
65479 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65480
65481         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65482         promotes to int, not unsigned int, to catch the AIX 5.3
65483         compiler bug.
65484
65485 2005-10-05  Simon Josefsson  <jas@extundo.com>
65486
65487         * modules/memxor: New file.
65488
65489         * modules/iconv (Files): Move config.rpath to havelib, it is used
65490         there.
65491
65492         * modules/havelib (Files): Add config.rpath.
65493
65494 2005-10-05  Simon Josefsson  <jas@extundo.com>
65495
65496         * m4/memxor.m4: New file.
65497
65498 2005-10-05  Simon Josefsson  <jas@extundo.com>
65499
65500         * lib/memxor.c (memxor): Fix compiler error.
65501
65502         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65503         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65504
65505         * lib/memxor.h, lib/memxor.c: New files.
65506
65507         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65508         we assume all systems have it, suggested by Jim Meyering
65509         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65510         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65511         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65512         same reasons.
65513
65514 2005-10-05  Simon Josefsson  <jas@extundo.com>
65515
65516         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65517
65518 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65519
65520         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65521         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65522         needed, since the source code now assumes these .h files.
65523
65524 2005-10-05  Derek Price  <derek@ximbiot.com>
65525
65526         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65527
65528 2005-10-05  Bruno Haible  <bruno@clisp.org>
65529
65530         * modules/stdint (License): Change to LGPL.
65531
65532 2005-10-04  Simon Josefsson  <jas@extundo.com>
65533
65534         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65535         D. Baushke" <mdb@gnu.org>.
65536
65537 2005-10-04  Bruno Haible  <bruno@clisp.org>
65538
65539         * lib/verify.h (verify_true): Provide alternative definition for C++.
65540
65541 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65542
65543         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65544         (SSIZE_MAX): New macro, if not already defined.
65545         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65546         than 2 GiB.
65547
65548 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65549
65550         Sync from coreutils.
65551         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65552         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65553         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65554         ULLONG_MAX doesn't work with 2.7.2.1.
65555
65556 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65559         From Ben Pfaff.
65560
65561         * modules/exclude (Depends-on): Depend on verify.
65562         * modules/strtoimax (Depends-on): Likewise.
65563         * modules/utimecmp (Depends-on): Likewise.
65564
65565 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65566
65567         * lib/exclude.c: Include verify.h.
65568         (verify): Remove.  All callers changed to use verify.h's version.
65569         * lib/strtoimax.c: Likewise.
65570         * lib/utimecmp.c: Likewis.e
65571
65572         Sync from coreutils.
65573         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65574         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65575         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65576         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65577         bother returning ENOSYS if settimeofday or stime fails; just let
65578         them return whatever errno they want to return.
65579         * lib/utimens.c: Include unistd.h, for dup2.
65580         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65581         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65582
65583 2005-10-02  Jim Meyering  <jim@meyering.net>
65584
65585         Sync from coreutils.
65586         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65587         from glibc-2.2.5 that fails for read-only files.
65588
65589 2005-10-02  Jim Meyering  <jim@meyering.net>
65590
65591         Sync from coreutils.
65592         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65593         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65594         `#if HAVE_CONFIG_H'.
65595         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65596         Remove AT_FDCWD test.
65597         Do not consume the fd unless successful.
65598         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65599         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65600         block, so that we don't even try to compile it if settimeofday is
65601         available.  This works around a compilation failure on OSF1 V5.1,
65602         due to stime requiring a `long int*' while tv_sec is `int'.
65603
65604 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65605
65606         Sync from coreutils.
65607         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65608         against `yes', rather than just testing for nonempty.
65609
65610 2005-10-01  Simon Josefsson  <jas@extundo.com>
65611
65612         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65613         and Darwin.
65614
65615         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65616         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65617         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65618         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65619         Check if struct addrinfo is declared.
65620
65621 2005-10-01  Simon Josefsson  <jas@extundo.com>
65622
65623         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65624         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65625         AI_* and EAI_* definitions.  Protect function declarations.
65626
65627 2005-10-01  Jim Meyering  <jim@meyering.net>
65628
65629         Sync from coreutils.
65630
65631         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65632         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65633         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65634         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65635         in the inet and nsl libraries.  Required on Solaris 5.7.
65636
65637 2005-10-01  Jim Meyering  <jim@meyering.net>
65638
65639         Sync from coreutils.
65640         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65641         in the inet and nsl libraries.  Required on Solaris 5.7.
65642
65643 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65644
65645         * lib/getdelim.c (getdelim): Remove unused variables.
65646
65647 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65648
65649         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65650         so that the code works even with ancient cpp.  Portability problem
65651         with GCC 2.7.2.1 reported by Thomas M.Ott.
65652
65653 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65654
65655         * modules/regex (Depends-on): Add strcase.
65656
65657         * modules/gethostname (Licence): Change from GPL to LGPL, since
65658         gethostname.c is a trivial implementation of a standard library
65659         function.
65660         * modules/poll (License): Change from GPL to LGPL, since it's
65661         derived from LGPL code.
65662
65663 2005-09-27  Jim Meyering  <jim@meyering.net>
65664
65665         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65666         HAVE_CONFIG_H.
65667
65668         * lib/intprops.h (signed_type_or_expr__): Define.
65669         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65670         for unsigned types.
65671
65672 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65673
65674         * lib/verify.h (verify_expr): Remove, replacing with:
65675         (verify_true): New macro that returns true instead of void.
65676         (verify_type__): Remove.
65677         (verify): Use verify_true rather than verify_type__.
65678
65679 2005-09-26  Bruno Haible  <bruno@clisp.org>
65680
65681         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65682         is necessary.
65683         (lib_SOURCES): Remove mbchar.c.
65684         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65685         (Files): Add m4/mbrtowc.m4.
65686         * modules/mbiter: Likewise.
65687         * modules/mbuiter: Likewise.
65688
65689 2005-09-26  Bruno Haible  <bruno@clisp.org>
65690
65691         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65692         compile mbchar.c if they are not both present.
65693         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65694         * m4/mbiter.m4 (gl_MBITER): Likewise.
65695         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65696         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65697         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65698
65699 2005-09-25  Jim Meyering  <jim@meyering.net>
65700
65701         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65702         also uses socklen_t.
65703
65704 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65705
65706         * lib/utimens.c (ENOSYS): Define if not already defined.
65707         (futimens): Support having a null PATH if the file descriptor
65708         is nonnegative.
65709
65710         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65711         Remove.
65712         (__attribute): Define to empty unless GCC 3.1 or later.
65713         This works around a core dump on OpenBSD 3.4, which has GCC
65714         2.95.3, which dumps core when given __attribute__(()).  It also
65715         simplifies other tests, since we really don't want to bother with
65716         worrying about which ancient version of GCC supported what.
65717         Original problem reported by Yoann Vandoorselaere, with part of
65718         the fix suggested by Derek Price.
65719
65720 2005-09-24  Jim Meyering  <jim@meyering.net>
65721
65722         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65723         so we can once again use a positive bitfield width of 1 -- now we
65724         don't have to explain why we were using a bitfield width of 2.
65725
65726 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65727
65728         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65729         and similarly for the other external symbols.  Problem reported
65730         by James Gallager.
65731
65732         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65733         bug reported by Jim Meyering.
65734
65735         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65736         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65737         not needed, since socklen is a prerequisite module.
65738
65739 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65740
65741         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65742         Problem reported by Eric Blake.
65743         (getaddrinfo): Initialize se so that it's not garbage.
65744         Redo internal storage allocation so that it doesn't make unportable
65745         assumptions about alignment.
65746         Fix a memory leak.
65747
65748         * lib/utimens.c (futimens): Use futimesat if available.
65749         Prefer it to futimes since it doesn't have the futimes bug.
65750
65751         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65752         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65753         Instead, declare a function that returns a pointer to an array,
65754         and use verify_type__ to declare the size of the array.
65755         Problem and germ of a solution reported by Bruno Haible.
65756         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65757         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65758
65759 2005-09-23  Jim Meyering  <jim@meyering.net>
65760
65761         Sync from coreutils.
65762         Correct build failure (socklen_t not defined) on at least
65763         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65764         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65765
65766 2005-09-23  Jim Meyering  <jim@meyering.net>
65767
65768         * modules/getaddrinfo (Depends-on): Add socklen.
65769
65770 2005-09-23  Bruno Haible  <bruno@clisp.org>
65771
65772         * tests/test-verify.c: New file.
65773
65774 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65775
65776         Sync from coreutils.
65777
65778         * modules/argmatch (Depends-on): Add verify.
65779         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65780         unistd-safer.
65781         * modules/save-cwd (Depends-on): Likewise.
65782
65783         * modules/openat (Files): Add lib/openat-die.c.
65784         (Depends-on): Remove error, exitfail.
65785         Add dirname.
65786
65787         * modules/verify: New file.
65788         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65789         with "verify" module.
65790
65791 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65792
65793         Sync from coreutils.
65794
65795         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65796         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65797         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65798         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65799         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65800         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65801         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65802         Don't bother checking for string.h, stdlib.h, unistd.h.
65803         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65804         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65805         module's job.
65806         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65807         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65808
65809         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65810         (gl_GETDATE): Use it.
65811
65812         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65813
65814 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65815
65816         Sync from coreutils.
65817
65818         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65819         stat-time.h.
65820         * lib/argmatch.h: Include verify.h
65821         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65822         (ARGMATCH_ASSERT): Remove; unused.
65823         * lib/canonicalize.c: Assume STDC_HEADERS.
65824         * lib/exclude.c: Include "strcase.h".
65825         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65826         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65827         and stdio-safer.h.
65828         (getusershell): Call fopen, not fopen_safer.
65829         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65830         Do not include unistd-safer.h.
65831         (save_cwd): Don't call fd_safer; no longer needed
65832         now that we include fcntl--.h.
65833
65834         * lib/getdate.y (relative_time): New type.
65835         (RELATIVE_TIME_0): New constant.
65836         (parser_control): Use relative_time instead of doing it ourselves.
65837         (%union): Add new relative_time rel member.
65838         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65839         Now typeless.
65840         (relunit, relunit_snumber): Now of type rel.
65841         (zone, rel, relunit, get_date): Adjust to above changes.
65842
65843         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65844         Do not include unistd-safer.h.
65845         (getloadavg): Don't call fd_safer; no longer needed
65846         now that we include fcntl--.h.
65847
65848         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65849         (make_dir_parents): Treat ENOSYS like EEXIST.
65850
65851         Improve quality of diagnostics on restore_cwd failure.
65852         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65853         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65854         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65855         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65856         each time through the loop.  Do not diagnose restore_cwd failure;
65857         that is the caller's job (and perhaps the caller does not care).
65858
65859         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65860         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65861         If the file already exists but is not a directory, don't bother
65862         to try to make its parents.
65863         Close potential file descriptor leak if we can't chdir("/") (!).
65864         Don't always return true if chdir($PWD) fails; return true only
65865         if the requested action was done successfully (except for the
65866         chdir($PWD)).
65867         Don't log final directory unless we actually made it.
65868         Refactor to avoid duplicate code to fix up permissions.
65869         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65870
65871         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65872         to make it a bit faster and (I hope) clearer.
65873         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65874         Fix bug in formats like %2N.
65875
65876         * lib/verify.h: New file.
65877
65878 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65879
65880         Sync from coreutils.
65881         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65882
65883 2005-09-22  Jim Meyering  <jim@meyering.net>
65884
65885         Sync from coreutils.
65886
65887         * m4/lstat.m4 (gl_FUNC_LSTAT):
65888         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65889         Remove obsolete comment.
65890         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65891         * m4/xstrtod.m4: Likewise.
65892
65893         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65894
65895 2005-09-22  Jim Meyering  <jim@meyering.net>
65896
65897         Sync from coreutils.
65898
65899         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65900
65901         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65902         the .tm_year member, since otherwise gcc-4.0 would now warn about
65903         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65904
65905         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65906         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65907
65908         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65909         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65910         when run in a time zone for which daylight savings time is in effect
65911         for the starting date.
65912
65913         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65914         stop us from restricting permissions of just-created absolute-named
65915         directories.
65916         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65917         to restore initial working directory.
65918         * lib/mkdir-p.c (make_dir_parents): New parameter:
65919         different_working_dir, to tell caller if/when we change the working
65920         directory and are unable to return to the initial one.
65921         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65922         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65923         `return false'.  This fixes a bug introduced on 2004-07-30.
65924
65925         * lib/openat.c (fdopendir): Be sure to close the supplied
65926         file descriptor before returning.  This makes our replacement
65927         implementation a little closer to Solaris's, where fdopendir
65928         ties the file descriptor to the returned DIR* pointer.
65929         * lib/openat.c (unlinkat): New function.
65930         * lib/openat.h (unlinkat): Add prototype.
65931         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65932         (openat_restore_fail): Rename from openat_restore_die.
65933         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65934
65935         Provide an alternative to exiting immediately upon save_cwd or
65936         restore_cwd failure.  Now, an application can arrange e.g.,
65937         to perform a longjump in that case.
65938         * lib/openat.c: Include dirname.h.
65939         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65940         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65941         and openat_restore_die rather than calling error directly.
65942         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65943
65944         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65945         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65946         define.
65947
65948         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65949         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65950                             int utc, int nanoseconds);
65951         Background:
65952         date should not have to allocate a megabyte of virtual memory to
65953         handle a format argument like +%1048575T.  When implemented with
65954         strftime, it must allocate such a buffer, use strftime to fill it
65955         in, print it, then free it.
65956         With fprintftime, it simply prints everything and exits.
65957         With no need for memory allocation, that's one fewer way to fail.
65958         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65959         optional field width, not before, so we accept %9:z, not %:9z.
65960         (my_strftime): Be sure to use L_('x') for literals.
65961
65962         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65963         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65964         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65965         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65966         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65967         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65968         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65969         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65970         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65971         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65972         * lib/xgethostname.c, lib/xreadlink.c:
65973         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65974
65975         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65976         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65977         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65978         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65979         and don't include <sys/file.h>).
65980
65981 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65982
65983         Sync from coreutils.
65984
65985         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65986         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65987         [!LDAV_DONE]: Avoid unused variable warning.
65988
65989 2005-09-21  Bruno Haible  <bruno@clisp.org>
65990
65991         * lib/unicodeio.h (unicode_to_mb): New declaration.
65992
65993 2005-09-20  Derek Price  <derek@ximbiot.com>
65994
65995         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65996         getaddrinfo.h.
65997
65998 2005-09-20  Bruno Haible  <bruno@clisp.org>
65999
66000         * gnulib-tool: Remove trailing slashes from the values specified for
66001         --source-base, --m4-base, --tests-base, --aux-dir.
66002         Suggested by Simon Josefsson <jas@extundo.com>.
66003
66004 2005-09-20  Bruno Haible  <bruno@clisp.org>
66005
66006         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66007         func_modules_to_filelist, func_import, func_create_testdir): Make all
66008         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66009         change when gnulib-tool is invoked in a different locale.
66010
66011 2005-09-19  Simon Josefsson  <jas@extundo.com>
66012
66013         * m4/socklen.m4: Fix typo.
66014
66015 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66016
66017         Use a consistent style for including <config.h>.
66018         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66019         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66020         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66021         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66022         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66023         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66024         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66025         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66026         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66027         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66028         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66029         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66030         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66031         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66032         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66033         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66034         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66035         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66036         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66037         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66038         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66039         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66040         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66041         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66042         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66043         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66044         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66045         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66046         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66047         lib/xstrtoumax.c, lib/yesno.c:
66048         Standardize inclusion of config.h.
66049         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66050         lib/inttostr.h:  Removed inclusion of config.h from header files.
66051         * lib/inttostr.c:  Adjusted in-tree users.
66052         * lib/timespec.h: Remove superfluous warning to include config.h.
66053         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66054         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66055         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66056         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66057         config.h with HAVE_CONFIG_H.
66058
66059 2005-09-19  Jim Meyering  <jim@meyering.net>
66060
66061         * modules/pathmax (License): Change to LGPL.
66062
66063 2005-09-19  Derek Price  <derek@ximbiot.com>
66064
66065         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66066
66067 2005-09-19  Bruno Haible  <bruno@clisp.org>
66068
66069         * gnulib-tool (import): Provide default for --tests-base.
66070
66071 2005-09-19  Bruno Haible  <bruno@clisp.org>
66072
66073         * doc/quote.texi: New file, extracted from gnulib.texi.
66074         * doc/ctime.texi: New file, extracted from gnulib.texi.
66075         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66076         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66077         * doc/gnulib.texi: Include them.
66078
66079 2005-09-18  Bruno Haible  <bruno@clisp.org>
66080
66081         Portability fix.
66082         * gnulib-tool (func_readlink): New function.
66083         (func_ln_if_changed): Use it.
66084
66085 2005-09-18  Bruno Haible  <bruno@clisp.org>
66086
66087         * gnulib-tool: Support --with-tests also with --import.
66088         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66089         (func_import): Use variables $testsbase and $inctests. Emit a
66090         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66091         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66092         SUBDIRS += $testsdir.
66093         (func_create_testdir): Update.
66094
66095 2005-09-18  Bruno Haible  <bruno@clisp.org>
66096
66097         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66098         instead of $dry_run.
66099         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66100         (func_ln_if_changed): Don't handle dry-run here.
66101         (func_import): In dry-run mode, detect more precisely which actions
66102         would be performed, and don't use "...ing" verbs.
66103
66104 2005-09-18  Bruno Haible  <bruno@clisp.org>
66105
66106         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66107         (func_import): Use join on two temporary files instead of three nested
66108         loops, in order to determine which files are new or old.
66109
66110 2005-09-18  Bruno Haible  <bruno@clisp.org>
66111
66112         * gnulib-tool (func_import): Comment out code that spits out the
66113         new files with --dry-run.
66114
66115 2005-09-18  Bruno Haible  <bruno@clisp.org>
66116
66117         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66118
66119 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66120
66121         * lib/stat-time.h: New file.
66122         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66123         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66124         in a different way.
66125         (timespec_cmp): New function.
66126         * lib/utimecmp.c: Include stat-time.h.
66127         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66128         members exist, not on the obsolescent ST_MTIM_NSEC.
66129         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66130
66131 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66132
66133         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66134
66135 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66136
66137         * MODULES.html.sh (File system functions): Add stat-time.
66138         * modules/stat-time: New file.
66139         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66140         is now done in a different way, by the stat-time module.
66141         * modules/utimecmp (Depends-on): Add stat-time.
66142
66143 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66144
66145         * m4/st_mtim.m4: Remove.  Superseded by...
66146         * m4/stat-time.m4: New file.
66147         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66148         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66149
66150 2005-09-15  Derek Price  <derek@ximbiot.com>
66151
66152         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66153
66154 2005-09-15  Derek Price  <derek@ximbiot.com>
66155
66156         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66157         * lib/regex_internal.c: Ditto, using this...
66158         (__GNUC_PREREQ): ...new macro.
66159         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66160         using...
66161         (__GNUC_PREREQ): ...this new macro.
66162
66163         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66164
66165 2005-09-15  Derek Price  <derek@ximbiot.com>
66166             Paul Eggert  <eggert@cs.ucla.edu>
66167
66168         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66169         changes, consolidating in...
66170         * lib/regex_internal.h: ...this file.
66171
66172 2005-09-13  Jim Meyering  <jim@meyering.net>
66173
66174         * lib/canon-host.c: Filter through gnu indent and reword comments
66175         slightly.
66176         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66177
66178 2005-09-13  Derek Price  <derek@ximbiot.com>
66179
66180         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66181         failure.
66182         Reported by Jim Meyering  <jim@meyering.net>.
66183
66184 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66185
66186         * lib/base64.c: Typo.
66187         (base64_encode): Put b64str in initialized data section.
66188
66189 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66190
66191         Merge glibc and coreutils changes into gnulib, plus a few
66192         extra fixes.
66193         * lib/md5.c: Use #error rather than a string.
66194         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66195         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66196         (__attribute__): Define to empty for non recent-GCC.
66197         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66198         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
66199         Renamed from their non-__ counterparts, with new macros replacing
66200         them if not _LIBC.  Add __THROW attribute.
66201         (rol): Remove.
66202         (struct md5_ctx): Align buffer if using GCC.
66203         * lib/sha1.h (struct sha1_ctx): Likewise.
66204         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
66205         The old name was backwards.
66206         (NOTSWAP): Remove; not used.
66207         (rol): New macro, moved here from md5.h.
66208         (sha1_process_block): Remove a FIXME that doesn't make sense.
66209
66210 2005-09-12  Derek Price  <derek@ximbiot.com>
66211
66212         Return usable errors from canon-host.
66213         * lib/canon-host.h: New file.
66214         * lib/canon-host.c (canon_host): Wrap...
66215         (canon_host_r): ...this new function, which now relies exclusively on
66216         getaddrinfo.
66217         (ch_strerror): New function.
66218         (last_cherror): New global.
66219         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
66220         interface.
66221         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
66222         void *.
66223         (freeaddrinfo): Free ai->ai_canonname when set.
66224
66225 2005-09-12  Derek Price  <derek@ximbiot.com>
66226
66227         Make canon-host require getaddrinfo.
66228         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
66229         AC_LIBSOURCE canon-host.h.  Call...
66230         (gl_PREREQ_CANON_HOST): ...this new function, which requires
66231         gl_GETADDRINFO.
66232         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
66233
66234 2005-09-12  Derek Price  <derek@ximbiot.com>
66235
66236         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
66237         LGPL.
66238         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
66239
66240 2005-09-12  Derek Price  <derek@ximbiot.com>
66241
66242         * lib/gai_strerror.c: Include config.h when available.  Include
66243         getaddrinfo.h before other headers to test interface.
66244         Reported by Larry Jones <lawrence.jones@ugs.com>.
66245
66246 2005-09-12  Derek Price  <derek@ximbiot.com>
66247             Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * modules/glob (Files): Add glob-libc.h.
66250
66251 2005-09-12  Derek Price  <derek@ximbiot.com>
66252             Paul Eggert  <eggert@cs.ucla.edu>
66253
66254         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
66255         glob_.h, glob-libc.h.
66256         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
66257
66258 2005-09-12  Derek Price  <derek@ximbiot.com>
66259             Paul Eggert  <eggert@cs.ucla.edu>
66260
66261         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
66262         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
66263         protecting things that should be done only in gnulib contexts.
66264         * lib/glob_.h: New file, containing only the glob things needed for
66265         gnulib.
66266         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
66267         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
66268         (glob, globfree, glob_pattern_p): Now defined simply in terms of
66269         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
66270         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
66271         and to respect the namespace rules better.
66272
66273 2005-09-08  Simon Josefsson  <jas@extundo.com>
66274
66275         * modules/socklen: New file.
66276
66277 2005-09-08  Simon Josefsson  <jas@extundo.com>
66278
66279         * m4/socklen.m4: New file.
66280
66281 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66282
66283         * modules/utimens (Files): Add m4/utimbuf.m4, since
66284         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66285         Reported by Sergey Poznyakoff.
66286
66287 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66288
66289         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66290         definitions, since that's the preferred style in glibc.
66291         Fix a minor spacing issue, and update copyright notice to match
66292         glibc's.
66293
66294 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66295
66296         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66297
66298 2005-09-06  Simon Josefsson  <jas@extundo.com>
66299
66300         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66301         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66302
66303 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66304
66305         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66306         warning.
66307
66308 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66309
66310         * config/srclist.txt: Add glibc bug 1302.
66311
66312 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
66313
66314         Change bitset word type from unsigned int to unsigned long int,
66315         as this has better performance on typical 64-bit hosts.
66316         Port bitset code to hosts with unusual word sizes.
66317         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
66318         (build_collating_symbol):
66319         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
66320         argument is a bitset.  This is merely a style issue, but it makes
66321         it clearer that an entire array is expected.
66322         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
66323         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
66324         Port to the case where bitset_word is not the same as unsigned int.
66325         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66326         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
66327         Likewise.
66328         * lib/regexec.c (check_dst_limits_calc_pos_1,
66329         check_subexp_matching_top):
66330         (build_trtable, group_nodes_into_DFAstates):
66331         Likewise.
66332         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
66333         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
66334         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
66335         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
66336         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
66337         * lib/regcomp.c (optimize_subexps, lower_subexp):
66338         Work even if bitset_word has holes in its bitwise representation.
66339         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
66340         * lib/regexec.c (check_dst_limits_calc_pos_1,
66341         check_subexp_matching_top):
66342         Likewise.
66343         * lib/regex_internal.c (re_string_reconstruct):
66344         Don't assume UCHAR_MAX == 255.
66345         * lib/regex_internal.h (bitset_set_all): Likewise.
66346         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
66347         All uses changed.
66348         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
66349         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
66350         All uses changed.
66351         (BITSET_WORD_MAX): New macro.
66352         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
66353         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
66354         (bitset_empty, bitset_copy):
66355         Prefer sizeof (bitset) to multiplying it out ourselves.
66356         (bitset_not_merge): Remove; unused.
66357         (bitset_contain): Return bool, not unsigned int with one bit on.
66358         All callers changed.
66359         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
66360         alignment than re_node_set; do this by defining a new internal
66361         type struct dests_alloc and using it to allocate memory.
66362
66363 2005-09-05  Bruno Haible  <bruno@clisp.org>
66364
66365         * gnulib-tool (func_import): Fix comparison in handling of symbolic
66366         links.
66367
66368 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
66369
66370         * modules/size_max (Makefile.am): Add size_max.h
66371
66372 2005-09-04  Derek Price  <derek@ximbiot.com>
66373
66374         * gnulib-tool (func_import): Fix reversed $symbolic logic.
66375
66376 2005-09-03  Simon Josefsson  <jas@extundo.com>
66377
66378         * gnulib-tool: Fix typo.
66379
66380 2005-09-03  Simon Josefsson  <jas@extundo.com>
66381
66382         * config/srclist.txt: Add glibc bug 1293.
66383
66384 2005-09-03  Derek Price  <derek@ximbiot.com>
66385
66386         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66387         From Larry Jones <lawrence.jones@ugs.com>.
66388
66389 2005-09-02  Simon Josefsson  <jas@extundo.com>
66390
66391         * modules/socklen: New file.
66392
66393 2005-09-02  Simon Josefsson  <jas@extundo.com>
66394
66395         * modules/havelib: New module.
66396
66397         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66398         Use havelib.
66399
66400 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66401
66402         Check for arithmetic overflow when calculating sizes, to prevent
66403         some buffer-overflow issues.  These patches are conservative, in the
66404         sense that when I couldn't determine whether an overflow was possible,
66405         I inserted a run-time check.
66406         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66407         macros.
66408         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66409         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66410         (re_xnrealloc, re_x2nrealloc): New inline functions.
66411         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66412         parse_bracket_exp):
66413         (build_equiv_class, build_charclass): Check for arithmetic overflow
66414         in size expression calculations.
66415         * lib/regex_internal.c (re_string_realloc_buffers):
66416         (build_wcs_upper_buffer, re_node_set_add_intersect):
66417         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66418         (re_dfa_add_node, register_state): Likewise.
66419         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66420         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66421         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66422         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66423
66424 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66425
66426         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66427         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66428
66429 2005-09-02  Bruno Haible  <bruno@clisp.org>
66430
66431         Support for lib vs. lib64 distinction on biarch platforms.
66432         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66433         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66434         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66435
66436 2005-09-02  Bruno Haible  <bruno@clisp.org>
66437
66438         * gnulib-tool (import): In the other first-use case, provide defaults
66439         as well.
66440
66441 2005-09-02  Bruno Haible  <bruno@clisp.org>
66442
66443         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66444         patches not yet found in the latest gettext release.
66445
66446 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66447
66448         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66449         to avoid a collision with bits/local_lim.h in glibc.
66450         All uses changed.  Problem reported by Dmitry V. Levin in
66451         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66452
66453         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66454         bugs in int versus size_t comparisons.
66455         (re_string_context_at): Fix bug where the code assumed that
66456         Idx is signed.
66457
66458         Use bool where appropriate.
66459         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66460         All callers changed.
66461         (calc_eclosure_iter): Likewise, for ROOT arg.
66462         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66463         (build_charclass_op): Likewise, for NON_MATCH arg.
66464         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66465         (re_string_construct_common): Likewise, for ICASE arg.
66466         * lib/regexec.c (re_search_2_stub, re_search_stub):
66467         Likewise, for RET_LEN arg.
66468         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66469         (set_regs): Likewise, for FL_BACKTRACK arg.
66470         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66471         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66472         (calc_eclosure_iter, parse_bracket_exp):
66473         Use bool for internal variables that are booleans.
66474         * lib/regexec.c (re_search_internal, check_matching,
66475         proceed_next_node):
66476         (set_regs, build_sifted_states, sift_states_bkref):
66477         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66478         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66479         (find_collation_sequence_value):
66480         Likewise.
66481         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66482         (re_node_set_compare):
66483         Return bool, not int. All callers changed.
66484         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66485         (build_trtable, check_node_accept): Likewise.
66486         * lib/regex_internal.h: Include stdbool.h.
66487
66488         Fix bugs uncovered when converting to bool.
66489         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66490         failure instead of charging ahead blindly.
66491         * lib/regex_internal.c (register_state): Likewise.
66492         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66493         for freeing internal storage.
66494         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66495         bitset pieces used as boolean, to avoid undefined behavior
66496         on hosts that do int overflow checking.
66497
66498 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66499
66500         * config/srclist.txt: Add glibc bugs 1285-1287.
66501
66502 2005-09-01  Jim Meyering  <jim@meyering.net>
66503
66504         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66505         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66506         Require gl_STAT_MACROS, too.
66507
66508 2005-09-01  Bruno Haible  <bruno@clisp.org>
66509
66510         * gnulib-tool (import): In the first-use case, provide defaults.
66511
66512 2005-09-01  Bruno Haible  <bruno@clisp.org>
66513
66514         * gnulib-tool (func_import): Remove the .tmp files.
66515
66516 2005-09-01  Bruno Haible  <bruno@clisp.org>
66517
66518         * gnulib-tool (func_import): Fix handling of symbolic links.
66519
66520 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66521
66522         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66523         old glibc regex code mishandles strings longer than 2**31 bytes.
66524         This patch fixes this when the regex code is used in gnulib
66525         (i.e., outside glibc).
66526
66527         This patch should not affect the use of the regex code inside
66528         glibc.  No doubt this problem also needs to be handled for glibc
66529         as well, but the result will be an incompatible change to the
66530         glibc ABI, and the old ABI will have to be supported too.  That
66531         can be the the subject for another patch.
66532
66533         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66534         governing whether the rest of this patch is active.  By default,
66535         the macro is disabled and the patch has no effect.
66536         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66537         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66538         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66539         (re_match_2, re_set_registers): Use the new types.
66540         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66541         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66542         New macros.
66543         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66544         (re_string_context_at, bin_tree_t, re_dfastate_t):
66545         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66546         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66547         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66548         (re_string_char_size_at, re_string_wchar_at):
66549         (re_string_elem_size_at):
66550         Use the new types and macros to port to 64-bit hosts.
66551         Use unsigned types for internal values, so that the code
66552         mostly works even for arrays larger than SSIZE_MAX.
66553         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66554         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66555         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66556         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66557         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66558         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66559         (calc_inveclosure, parse_dup_op, build_range_exp):
66560         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66561         (fetch_number, create_token_tree, mark_opt_subexp):
66562         Likewise.
66563         * lib/regex_internal.c (re_string_construct_common,
66564         create_ci_newstate):
66565         (create_cd_newstate, re_string_allocate, re_string_construct):
66566         (re_string_realloc_buffers, build_wcs_upper_buffer):
66567         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66568         (re_string_reconstruct, re_string_peek_byte_case):
66569         (re_string_fetch_byte_case, re_string_context_at):
66570         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66571         (re_node_set_init_copy, re_node_set_add_intersect):
66572         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66573         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66574         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66575         (re_acquire_state, re_acquire_state_context, register_state):
66576         Likewise.
66577         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66578         search_cur_bkref_entry):
66579         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66580         (re_search_internal, re_search_2_stub, re_search_stub)
66581         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66582         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66583         (update_cur_sifted_state, check_dst_limits):
66584         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66585         (check_subexp_limits, sift_states_bkref, merge_state_array):
66586         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66587         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66588         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66589         (expand_bkref_cache, check_node_accept_bytes):
66590         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66591         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66592         (acquire_init_state_context, check_halt_node_context):
66593         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66594         (sift_states_backward, clean_state_log_if_needed):
66595         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66596         (find_recover_state, transit_state_sb, transit_state_mb):
66597         (transit_state_bkref, build_trtable, match_ctx_clean):
66598         Likewise.
66599         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66600         to work around an assumption that REG_MISSING is negative.
66601
66602         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66603         (seek_collating_symbol_entry) [defined _LIBC]:
66604         (lookup_collation_sequence_value) [defined _LIBC]:
66605         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66606         Use prototypes rather than old-style function definitions.
66607         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66608         (transit_state_sb) [0]:
66609         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66610
66611         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66612         rm_eo.
66613
66614         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66615         (optimize_subexps, lower_subexp):
66616         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66617         since the signed shift might overflow.  Use 1u<<31 instead.
66618         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66619         Likewise.
66620         * lib/regexec.c (check_dst_limits_calc_pos_1,
66621         check_subexp_matching_top): Likewise.
66622
66623         * lib/regcomp.c (optimize_subexps, lower_subexp):
66624         Use CHAR_BIT rather than 8, for clarity.
66625         * lib/regexec.c (check_dst_limits_calc_pos_1):
66626         (check_subexp_matching_top): Likewise.
66627         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66628         have to worry about portability issues when shifting it left.
66629         Remove no-longer-needed test for table_size > 0.
66630         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66631         in a word, as the resulting behavior is undefined.
66632         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66633         in one case, a <= should have been an <, and in another case the
66634         whole test was missing.
66635         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66636         the standard name CHAR_BIT.
66637         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66638         this is not true on one's complement and signed-magnitude hosts.
66639
66640         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66641         next_last_offset.
66642         (struct re_dfa_t): Remove unused member states_alloc.
66643         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66644
66645 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66646
66647         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66648         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66649         and large-file glibc and in 32-bit large-file Solaris.
66650
66651 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66652
66653         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66654         lengths fit in regoff_t; this isn't true if regoff_t is the same
66655         width as size_t.
66656         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66657         (= START + RANGE) instead of RANGE.  This avoids overflow
66658         problems when regoff_t is the same width as size_t.
66659         All callers changed.
66660         (re_search_2_stub): Check for overflow when adding the
66661         sizes of the two strings.
66662         (re_search_stub): Check for overflow when adding START
66663         to RANGE; if it occurs, substitute the extreme value.
66664
66665 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66666
66667         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66668
66669 2005-08-31  Jim Meyering  <jim@meyering.net>
66670
66671         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66672         a pointer-to-const.
66673         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66674         (register_state): Likewise.
66675         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66676         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66677         (group_nodes_into_DFAstates): Likewise.
66678
66679 2005-08-31  Jim Meyering  <jim@meyering.net>
66680
66681         * check-module: Add a FIXME comment.
66682
66683 2005-08-31  Eric Blake  <ebb9@byu.net>
66684
66685         * modules/unistd-safer (Files): Add unistd--.h.
66686         * modules/stdio-safer (Files): Add stdio--.h.
66687
66688 2005-08-31  Derek Price  <derek@ximbiot.com>
66689
66690         * lib/getdelim.c (getdelim): Return EOF on EOF.
66691         Reported by Larry Jones <lawrence.jones@ugs.com>.
66692
66693 2005-08-31  Bruno Haible  <bruno@clisp.org>
66694
66695         Avoid unnecessary diffs in the generated lib/Makefile.am.
66696         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66697         the generated files.
66698         (func_import): Don't set cmd.
66699
66700 2005-08-31  Bruno Haible  <bruno@clisp.org>
66701
66702         * lib/strstr.c: Include <stddef.h>, for NULL.
66703         * lib/strcasestr.c: Likewise.
66704         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66705
66706 2005-08-31  Bruno Haible  <bruno@clisp.org>
66707
66708         * gnulib-tool: New option --macro-prefix.
66709         (func_import): Use macro_prefix.
66710         (import): Handle option --macro-prefix.
66711
66712 2005-08-31  Bruno Haible  <bruno@clisp.org>
66713
66714         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66715         Also use new variables cached_lgpl, cached_libtool.
66716
66717 2005-08-31  Bruno Haible  <bruno@clisp.org>
66718
66719         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66720         always instantiating them.
66721
66722 2005-08-31  Bruno Haible  <bruno@clisp.org>
66723
66724         * gnulib-tool (func_import): Read the previous cached settings
66725         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66726         earlier added by gnulib but are now dropped. Warn when a gnulib file
66727         overwrites a non-gnulib file.
66728
66729 2005-08-31  Bruno Haible  <bruno@clisp.org>
66730
66731         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66732         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66733         projects that don't keep autogenerated files in CVS. Put into
66734         actioncmd only the specified modules, not the transitive closure.
66735
66736 2005-08-31  Bruno Haible  <bruno@clisp.org>
66737
66738         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66739         Create directories that shall be filled.
66740         (import): Don't look for gl_* macros in configure.ac. Recurse across
66741         all directories containing a gnulib-cache.m4 files, if meaningful.
66742
66743 2005-08-31  Bruno Haible  <bruno@clisp.org>
66744
66745         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66746         (import): Set seen_libtool when we see gl_LIBTOOL.
66747
66748 2005-08-31  Bruno Haible  <bruno@clisp.org>
66749
66750         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66751         declaration macro definitions from generated gnulib.m4.
66752
66753 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66754
66755         * lib/iconvme.h: Add prototype for iconv_alloc.
66756
66757 2005-08-29  Simon Josefsson  <jas@extundo.com>
66758
66759         * lib/iconvme.c: Fix errno.
66760
66761 2005-08-29  Bruno Haible  <bruno@clisp.org>
66762
66763         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66764         that it works when the directory contains spaces.
66765
66766 2005-08-29  Bruno Haible  <bruno@clisp.org>
66767
66768         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66769
66770 2005-08-29  Bruno Haible  <bruno@clisp.org>
66771
66772         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66773         Emit more advice.
66774
66775 2005-08-29  Bruno Haible  <bruno@clisp.org>
66776         and Stepan Kasal  <kasal@ucw.cz>
66777
66778         * check-module: If more parameters are given, check each of them
66779         separately; add more exceptions, as noted by Jim Meyering.
66780         (check_module): New procedure.
66781         (%exempt_header): Now contains all exceptions.
66782
66783 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66784
66785         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66786
66787 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66788
66789         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66790
66791 2005-08-28  Bruno Haible  <bruno@clisp.org>
66792
66793         * m4/gnulib-tool.m4: New file.
66794
66795 2005-08-27  Jim Meyering  <jim@meyering.net>
66796
66797         * modules/unistd-safer (Files): Add pipe-safer.c.
66798         * modules/fcntl-safer (Files): Add creat-safer.c.
66799
66800 2005-08-27  Jim Meyering  <jim@meyering.net>
66801
66802         * m4/stdlib-safer.m4: New file.  From coreutils.
66803         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66804         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66805         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66806         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66807         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66808
66809 2005-08-27  Jim Meyering  <jim@meyering.net>
66810
66811         * lib/fopen-safer.c: Merge minor changes from coreutils.
66812         * lib/dup-safer.c: Likewise.
66813         * lib/fd-safer.c: Likewise.
66814
66815         Merge from coreutils.
66816         * lib/stdio--.h: New file.
66817         * lib/stdlib--.h: New file.
66818         * lib/mkstemp-safer.c: New file.
66819
66820         GNU tar needs these.
66821         * lib/pipe-safer.c: New file.
66822         * lib/creat-safer.c: New file.
66823         * lib/fcntl--.h (creat): Define to creat_safer.
66824         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66825         * lib/unistd--.h (pipe): Define to pipe_safer.
66826         * lib/unistd-safer.h: Declare pipe_safer.
66827
66828 2005-08-26  Simon Josefsson  <jas@extundo.com>
66829
66830         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66831         Haible <bruno@clisp.org>.
66832
66833 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66834
66835         * lib/regex_internal.h: Remove all references to
66836         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66837         or better.
66838         (bitset_not, bitset_merge, bitset_not_merge):
66839         (bitset_mask, re_string_allocate, re_string_construct):
66840         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66841         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66842         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66843         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66844         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66845         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66846         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66847         (re_acquire_state_context):
66848         Remove unnecessary forward decls.
66849         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66850         Put __attribute at function definition,
66851         now that the function decl has been removed.
66852         * lib/regex_internal.c (re_string_peek_byte_case):
66853         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66854         Likewise.
66855
66856 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66857
66858         * m4/regex.m4: Add AC_PREREQ(2.50).
66859         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66860
66861 2005-08-25  Simon Josefsson  <jas@extundo.com>
66862
66863         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66864         __fsetlocking.
66865
66866 2005-08-25  Simon Josefsson  <jas@extundo.com>
66867
66868         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66869         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66870         GLIBC specific code.
66871
66872 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66873
66874         Make regex safe for g++.  This fixes one real bug (an "err"
66875         that should have been "*err").  g++ problem reported by
66876         Sam Steingold.
66877         * lib/regex_internal.h (re_calloc): New macro, consistent with
66878         re_malloc etc.  All callers of calloc changed to use re_calloc.
66879         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66880         not int.  All callers changed.
66881         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66882         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66883         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66884         (find_recover_state): Change "err" to "*err"; this fixes what
66885         appears to be a real bug.
66886         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66887         versus int.
66888
66889 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66890
66891         * modules/regex (Depends-on): Add malloc, since the code
66892         assumes that !malloc(0) means failure.
66893
66894 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66895
66896         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66897
66898         alloca modernization/simplification for regex.
66899         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66900         needs to be at the start of the file, and can be moved into
66901         regex_internal.h and simplified.
66902         * lib/regex_internal.h: Include <alloca.h>.
66903         (__libc_use_alloca) [!defined _LIBC]: New macro.
66904         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66905         now works outside glibc.
66906
66907 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66908
66909         * config/srclist.txt: Add glibc bugs 1241, 1245.
66910
66911 2005-08-25  Jim Meyering  <jim@meyering.net>
66912
66913         * lib/open-safer.c: Include <config.h>.
66914         Otherwise, we'd lose LARGEFILE support in any file using
66915         e.g. "fcntl--.h"
66916
66917 2005-08-25  Bruno Haible  <bruno@clisp.org>
66918
66919         * m4/minmax.m4: Require autoconf 2.52.
66920         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66921         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66922         alternatives of translit over the alphabet.
66923         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66924
66925 2005-08-24  Simon Josefsson  <jas@extundo.com>
66926
66927         * tests/test-getpass.c: New file.
66928
66929 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66932         for GNU regex features.
66933
66934 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66937         * lib/regex.h (regerror): Likewise.
66938
66939         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66940         requires this.  (The code never needed it.)
66941
66942         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66943         All uses of recently-renamed identifiers changed to use the new,
66944         POSIX-compliant names.  The code will build and run just fine
66945         without these changes, but it's better to eat our own dog food
66946         and use the standard-conforming names.
66947
66948         * lib/regex.h: Fix a multitude of POSIX name space violations.
66949         These changes have an effect only for programs that define
66950         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66951         do not change anything for programs compiled in the normal way.
66952         Also, there is no effect on the ABI.
66953
66954         (_REGEX_SOURCE): New macro.
66955         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66956         defined and _GNU_SOURCE is not; this fixes a name space violation.
66957
66958         Rename the following macros to obey POSIX requirements.
66959         The old names are still visible as macros if _REGEX_SOURCE is defined.
66960         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66961         RE_BACKSLASH_ESCAPE_IN_LISTS.
66962         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66963         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66964         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66965         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66966         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66967         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66968         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66969         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66970         (REG_INTERVALS): renamed from RE_INTERVALS.
66971         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66972         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66973         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66974         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66975         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66976         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66977         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66978         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66979         RE_UNMATCHED_RIGHT_PAREN_ORD.
66980         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66981         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66982         (REG_DEBUG): renamed from RE_DEBUG.
66983         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66984         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66985         unusual, since we can't clash with the POSIX REG_ICASE.
66986         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66987         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66988         (REG_NO_SUB): renamed from RE_NO_SUB.
66989         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66990         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66991         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66992         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66993         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66994         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66995         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66996         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66997         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66998         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66999         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67000         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67001         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67002         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67003         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67004         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67005         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67006         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67007         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67008         (REG_FIXED): Renamed from REGS_FIXED.
67009         (REG_NREGS): Renamed from RE_NREGS.
67010
67011         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67012         of other REG_* macros, since POSIX says the user is allowed to
67013         #undef these macros selectively.
67014
67015         (reg_errcode_t): Update comment stating what other tables need
67016         to be consistent.
67017
67018         Rename the following enum values to obey POSIX requirements.
67019         The old names are still visible as macros.
67020         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67021         is not defined, since GNU is supposed to be a superset of POSIX as
67022         much as possible, and since we want reg_errcode_t to be a signed
67023         type for implementation consistency.
67024         (_REG_NOERROR): Renamed from REG_NOERROR.
67025         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67026         (_REG_BADPAT): Renamed from REG_BADPAT.
67027         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67028         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67029         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67030         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67031         (_REG_EBRACK): Renamed from REG_EBRACK.
67032         (_REG_EPAREN): Renamed from REG_EPAREN.
67033         (_REG_EBRACE): Renamed from REG_EBRACE.
67034         (_REG_BADBR): Renamed from REG_BADBR.
67035         (_REG_ERANGE): Renamed from REG_ERANGE.
67036         (_REG_ESPACE): Renamed from REG_ESPACE.
67037         (_REG_BADRPT): Renamed from REG_BADRPT.
67038         (_REG_EEND): Renamed from REG_EEND.
67039         (_REG_ESIZE): Renamed from REG_ESIZE.
67040         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67041         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67042         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67043         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67044         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67045
67046         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67047         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67048         changed.  But support the old name if the new one is not defined
67049         and if _REGEX_SOURCE.
67050
67051         Change the following member names in struct re_pattern_buffer.
67052         The old names are still supported if !_REGEX_SOURCE.
67053         The new names are always supported, regardless of _REGEX_SOURCE.
67054         (re_buffer): Renamed from buffer.
67055         (re_allocated): Renamed from allocated.
67056         (re_used): Renamed from used.
67057         (re_syntax): Renamed from syntax.
67058         (re_fastmap): Renamed from fastmap.
67059         (re_translate): Renamed from translate.
67060         (re_can_be_null): Renamed from can_be_null.
67061         (re_regs_allocated): Renamed from regs_allocated.
67062         (re_fastmap_accurate): Renamed from fastmap_accurate.
67063         (re_no_sub): Renamed from no_sub.
67064         (re_not_bol): Renamed from not_bol.
67065         (re_not_eol): Renamed from not_eol.
67066         (re_newline_anchor): Renamed from newline_anchor.
67067
67068         Change the following member names in struct re_registers.
67069         The old names are still supported if !_REGEX_SOURCE.
67070         The new names are always supported, regardless of _REGEX_SOURCE.
67071         (rm_num_regs): Renamed from num_regs.
67072         (rm_start): Renamed from start.
67073         (rm_end): Renamed from end.
67074
67075         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67076         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67077         Prepend __ to parameter names.
67078
67079         Undo yesterday's changes.
67080
67081 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67082
67083         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67084         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67085         lib/regex.c.
67086
67087 2005-08-24  Jim Meyering  <jim@meyering.net>
67088
67089         Sync from coreutils.
67090         * m4/fcntl-safer.m4: New file.
67091
67092         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67093         and object files for this module.
67094
67095 2005-08-24  Jim Meyering  <jim@meyering.net>
67096
67097         Sync from coreutils.
67098         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67099
67100 2005-08-24  Jim Meyering  <jim@meyering.net>
67101
67102         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67103         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67104
67105 2005-08-24  Jim Meyering  <jim@meyering.net>
67106
67107         * modules/fcntl-safer: New module.
67108         * modules/fts (Depends-on): Add fcntl-safer.
67109         * MODULES.html.sh (File descriptor based Input/Output):
67110         Add fcntl-safer.
67111
67112 2005-08-24  Bruno Haible  <bruno@clisp.org>
67113
67114         Support for unit test modules.
67115         * modules/README: Mention tests modules.
67116         * modules/TEMPLATE-TESTS: New file.
67117         * gnulib-tool: New options --extract-tests-module, --with-tests and
67118         --tests-base (unused for the moment).
67119         (testsbase, inctests): New variables.
67120         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67121         (func_verify_module): Exclude TEMPLATE-TESTS.
67122         (func_verify_nontests_module, func_verify_tests_module): New functions.
67123         (func_get_dependencies): Add implicit dependency for tests modules.
67124         (func_get_tests_module): New function.
67125         (func_modules_transitive_closure): When --with-tests was specified,
67126         include the unit tests as well, unless explicitly avoided.
67127         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67128         (func_emit_tests_Makefile_am): New function.
67129         (func_create_testdir): When --with-tests was specified, emit a
67130         tests/ directory.
67131         * MODULES.html.sh (Future developments): Update.
67132
67133 2005-08-24  Bruno Haible  <bruno@clisp.org>
67134
67135         * modules/tls-tests: New file.
67136         * tests/test-tls.c: New file, from GNU gettext.
67137
67138 2005-08-24  Bruno Haible  <bruno@clisp.org>
67139
67140         * modules/lock-tests: New file.
67141         * tests/test-lock.c: New file, from GNU gettext.
67142
67143 2005-08-24  Bruno Haible  <bruno@clisp.org>
67144
67145         * lib/lock.h: Add multiple inclusion guard.
67146         * lib/tls.h: Add multiple inclusion guard.
67147
67148 2005-08-24  Bruno Haible  <bruno@clisp.org>
67149
67150         * gnulib-tool: Add support for the --aux-dir option to
67151         --create-testdir, --create-megatestdir, --test, --megatest.
67152         (func_create_testdir, func_create_megatestdir): Optionally emit a
67153         AC_CONFIG_AUX_DIR directive.
67154         (create-testdir, create-megatestdir, test, megatest): Provide a
67155         default value for $auxdir.
67156
67157 2005-08-24  Bruno Haible  <bruno@clisp.org>
67158
67159         * gnulib-tool (import): Use compound statement instead of subshell
67160         where possible.
67161
67162 2005-08-24  Bruno Haible  <bruno@clisp.org>
67163
67164         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67165
67166 2005-08-24  Bruno Haible  <bruno@clisp.org>
67167
67168         * gnulib-tool (func_version): Update.
67169
67170 2005-08-24  Bruno Haible  <bruno@clisp.org>
67171
67172         * gnulib-tool (func_import, func_create_testdir,
67173         func_create_megatestdir): Quote all autoconf macro arguments.
67174
67175 2005-08-24  Bruno Haible  <bruno@clisp.org>
67176
67177         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67178         option --force, because --force causes the aclocal.m4 of each
67179         subdirectory to be newer than the corresponding config.h.in.
67180
67181 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67182
67183         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67184         All contents moved to gl_REGEX.
67185         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67186         assume that it does.
67187
67188 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67189
67190         * lib/regex.h (REG_NOSYS)
67191         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67192         Define, since POSIX requires it as of 2001.
67193         (_REG_ENOSYS)
67194         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67195         New private symbol, used to keep the enum signed in all cases.
67196         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67197         Youngman in
67198         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
67199
67200         * lib/regex_internal.c (re_string_skip_chars, register_state):
67201         (calc_state_hash):
67202         Remove forward decls; no longer needed now that we use prototypes.
67203         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
67204         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
67205         (clean_state_log_if_needed): Likewise.
67206
67207 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         * config/srclist.txt: Add glibc bugs 1231-1233.
67210
67211 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67212
67213         Fix problems reported by Sam Steingold in
67214         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
67215         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
67216         assumed that reg_errcode_t is a signed type, which is not
67217         necessarily true if _XOPEN_SOURCE is not defined.
67218         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
67219         since some compilers warn about it otherwise.
67220
67221 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67222
67223         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
67224         (init_word_char, create_initial_state, duplicate_node_closure):
67225         (fetch_token, peek_token_bracket, build_range_exp):
67226         (build_collating_symbol): Remove forward decls; no longer needed
67227         now that we use prototypes.
67228
67229         * lib/regcomp.c:
67230         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
67231         (re_compile_fastmap_iter, regcomp, regerror, regfree):
67232         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
67233         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
67234         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
67235         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
67236         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
67237         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
67238         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
67239         (build_range_exp, build_collating_symbol, parse_bracket_exp):
67240         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
67241         (build_charclass, build_charclass_op, fetch_number, create_tree):
67242         (create_token_tree, mark_opt_subexp, duplicate_tree):
67243         Use prototypes rather than old-style definitions.
67244
67245         * lib/regex_internal.c:
67246         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
67247         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
67248         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67249         (re_string_reconstruct, re_string_peek_byte_case):
67250         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
67251         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67252         (re_node_set_init_copy, re_node_set_add_intersect):
67253         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67254         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67255         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67256         (re_acquire_state, re_acquire_state_context, register_state):
67257         (create_ci_newstate, create_cd_newstate, free_state):
67258         Likewise.
67259         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
67260         re_search_2):
67261         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
67262         (re_search_internal, prune_impossible_nodes):
67263         (acquire_init_state_context, check_matching, static):
67264         (check_halt_node_context, check_halt_state_context, proceed_next_node):
67265         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
67266         (update_regs, sift_states_backward, build_sifted_states):
67267         (clean_state_log_if_needed, merge_state_array):
67268         (update_cur_sifted_state, add_epsilon_src_nodes):
67269         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
67270         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
67271         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
67272         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67273         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67274         (check_arrival, check_arrival_add_next_nodes):
67275         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67276         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67277         (check_node_accept_bytes, check_node_accept, extend_buffers):
67278         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67279         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67280         (sift_ctx_init):
67281         Likewise.
67282
67283         * lib/regex_internal.h:
67284         (re_string_allocate, re_string_construct, re_string_reconstruct):
67285         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67286         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67287         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67288         (re_string_context_at, re_string_peek_byte_case):
67289         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67290         is defined, since we now use prototypes always.
67291
67292         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67293         C89 or better.  All uses removed.
67294
67295 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67296
67297         * config/srclist.txt: Add glibc bugs 1220-1227.
67298
67299 2005-08-20  Jim Meyering  <jim@meyering.net>
67300
67301         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67302         of unused local, dfa.
67303
67304 2005-08-20  Bruno Haible  <bruno@clisp.org>
67305
67306         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67307
67308 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67309
67310         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
67311         (re_node_set_insert_last, re_dfa_add_node):
67312         Rename local variables to avoid GCC shadowing warnings.
67313
67314 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67315
67316         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67317         [defined lint]: Suppress bogus uninitialized-variable warnings.
67318
67319         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
67320         and let the caller return REG_ESPACE if out of space.  This
67321         removes an uninitialied-variable warning with GCC 4.0.1, and also
67322         avoids taking the address of a local variable.  All callers
67323         changed.
67324
67325 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67326
67327         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
67328         $LIBCSRC/posix/regexec.c.
67329         Add glibc bug 1217 for regcomp.c.
67330
67331 2005-08-19  Jim Meyering  <jim@meyering.net>
67332
67333         * lib/regexec.c (proceed_next_node): Redo local variables to
67334         avoid GCC shadowing warnings.
67335
67336 2005-08-18  Bruno Haible  <bruno@clisp.org>
67337
67338         * lib/strstr.c (strstr): Fix return value in multibyte case.
67339         * lib/strcasestr.c (strcasestr): Likewise.
67340
67341 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
67344
67345 2005-08-17  Jim Meyering  <jim@meyering.net>
67346
67347         Make the %s format (seconds since the epoch) work for a negative
67348         number and when used with a zero-padded field width, e.g. %015s.
67349
67350         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
67351         label so that it precedes the code to set `digits'.  Otherwise,
67352         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
67353         print `00-22'.  Now, it prints `-0022', as it should.
67354
67355 2005-08-17  Bruno Haible  <bruno@clisp.org>
67356
67357         * modules/strstr (Files): Add m4/mbrtowc.m4.
67358         (Depends-on): Add mbuiter.
67359
67360 2005-08-17  Bruno Haible  <bruno@clisp.org>
67361
67362         * modules/strcasestr: New file.
67363         * MODULES.html.sh (String handling, based on ANSI C 89): Add
67364         strcasestr.
67365
67366 2005-08-17  Bruno Haible  <bruno@clisp.org>
67367
67368         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
67369
67370 2005-08-17  Bruno Haible  <bruno@clisp.org>
67371
67372         * modules/mbuiter: New file.
67373         * MODULES.html.sh (Extended multibyte and wide character utilities):
67374         Add mbuiter.
67375
67376 2005-08-17  Bruno Haible  <bruno@clisp.org>
67377
67378         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67379         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67380
67381 2005-08-17  Bruno Haible  <bruno@clisp.org>
67382
67383         * m4/strcasestr.m4: New file.
67384
67385 2005-08-17  Bruno Haible  <bruno@clisp.org>
67386
67387         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67388         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67389
67390 2005-08-17  Bruno Haible  <bruno@clisp.org>
67391
67392         * lib/strcasestr.h: New file.
67393         * lib/strcasestr.c: New file.
67394
67395 2005-08-17  Bruno Haible  <bruno@clisp.org>
67396
67397         * lib/strcasecmp.c: Use mbuiter.h.
67398
67399 2005-08-17  Bruno Haible  <bruno@clisp.org>
67400
67401         * lib/mbuiter.h: New file.
67402
67403 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67404
67405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67406         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67407         and gl_GETOPT are both invoked via different paths (as happens
67408         with GNU tar CVS because it uses both argp and getopt), the former
67409         wins.
67410
67411 2005-08-16  Bruno Haible  <bruno@clisp.org>
67412
67413         * modules/tls: New file.
67414         * MODULES.html.sh (Multithreading): Add tls.
67415
67416 2005-08-16  Bruno Haible  <bruno@clisp.org>
67417
67418         * modules/strnlen1: New file.
67419         * MODULES.html.sh (String handling): Add strnlen1.
67420
67421 2005-08-16  Bruno Haible  <bruno@clisp.org>
67422
67423         * modules/strcase (Files): Add m4/mbrtowc.m4.
67424         (Depends-on): Add strnlen1, mbchar.
67425
67426 2005-08-16  Bruno Haible  <bruno@clisp.org>
67427
67428         * modules/mbiter: New file.
67429         * MODULES.html.sh (Extended multibyte and wide character utilities):
67430         Add mbiter.
67431
67432 2005-08-16  Bruno Haible  <bruno@clisp.org>
67433
67434         * modules/mbfile: New file.
67435         * MODULES.html.sh (Extended multibyte and wide character utilities):
67436         Add mbfile.
67437
67438 2005-08-16  Bruno Haible  <bruno@clisp.org>
67439
67440         * modules/mbchar: New file.
67441         * MODULES.html.sh (Extended multibyte and wide character utilities):
67442         New section.
67443
67444 2005-08-16  Bruno Haible  <bruno@clisp.org>
67445
67446         * m4/tls.m4: New file, from GNU gettext.
67447
67448 2005-08-16  Bruno Haible  <bruno@clisp.org>
67449
67450         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67451         always.
67452         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67453
67454 2005-08-16  Bruno Haible  <bruno@clisp.org>
67455
67456         * m4/mbiter.m4: New file.
67457
67458 2005-08-16  Bruno Haible  <bruno@clisp.org>
67459
67460         * m4/mbfile.m4: New file.
67461
67462 2005-08-16  Bruno Haible  <bruno@clisp.org>
67463
67464         * m4/mbchar.m4: New file.
67465
67466 2005-08-16  Bruno Haible  <bruno@clisp.org>
67467
67468         * lib/tls.h: New file, from GNU gettext.
67469         * lib/tls.c: New file, from GNU gettext.
67470
67471 2005-08-16  Bruno Haible  <bruno@clisp.org>
67472
67473         * lib/strnlen1.h: New file.
67474         * lib/strnlen1.c: New file.
67475
67476 2005-08-16  Bruno Haible  <bruno@clisp.org>
67477
67478         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67479         (mbi_init): Update.
67480         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67481         NUL byte, not after it.
67482
67483 2005-08-16  Bruno Haible  <bruno@clisp.org>
67484
67485         * lib/strcase.h (strcasecmp): Add note in comments.
67486         * lib/strncasecmp.c: Use code from strcasecmp.c.
67487         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67488         (strcasecmp): Work correctly in multibyte locales.
67489
67490 2005-08-16  Bruno Haible  <bruno@clisp.org>
67491
67492         * lib/mbiter.h: New file.
67493
67494 2005-08-16  Bruno Haible  <bruno@clisp.org>
67495
67496         * lib/mbfile.h: New file.
67497
67498 2005-08-16  Bruno Haible  <bruno@clisp.org>
67499
67500         * lib/mbchar.h: New file.
67501         * lib/mbchar.c: New file.
67502
67503 2005-08-16  Bruno Haible  <bruno@clisp.org>
67504
67505         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67506         the valid ones. Makes the comparison operations transitive:
67507         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67508         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67509
67510 2005-08-15  Simon Josefsson  <jas@extundo.com>
67511
67512         * modules/ssize_t (License): Change to 'unlimited'.
67513
67514         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67515
67516 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67517
67518         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67519         Add comments for each pending glibc patch.
67520
67521 2005-08-15  Bruno Haible  <bruno@clisp.org>
67522
67523         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67524         __cplusplus is defined.
67525
67526 2005-08-14  Jim Meyering  <jim@meyering.net>
67527
67528         Sync from coreutils.
67529
67530         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67531         Use the hash-table-based cycle-detection code not just when
67532         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67533         Reported by James Youngman in
67534         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67535         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67536         FTS_TIGHT_CYCLE_CHECK.
67537         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67538         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67539         once again.
67540         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67541         * lib/fts.c (fd_safer): Remove decl.
67542         Include fcntl--.h rather than unistd-safer.h
67543         (fts_safe_changedir): Don't call fd_safer; no longer needed
67544         now that we include fcntl--.h.
67545
67546 2005-08-12  Simon Josefsson  <jas@extundo.com>
67547
67548         * modules/getndelim2: Use ssize_t module.
67549         * modules/getnline: Likewise.
67550         * modules/safe-read: Likewise.
67551         * modules/xreadlink: Likewise.
67552
67553         * modules/ssize_t: New file.
67554
67555 2005-08-12  Simon Josefsson  <jas@extundo.com>
67556
67557         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67558
67559 2005-08-12  Simon Josefsson  <jas@extundo.com>
67560
67561         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67562         ssize_t.
67563
67564 2005-08-12  Simon Josefsson  <jas@extundo.com>
67565
67566         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67567         readline, getdelim and check_version.
67568         (Support for systems lacking ISO C 99: Sizes of integer types):
67569         Add size_max.
67570
67571 2005-08-12  Bruno Haible  <bruno@clisp.org>
67572
67573         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67574
67575 2005-08-11  Simon Josefsson  <jas@extundo.com>
67576
67577         * modules/readline: New file.
67578
67579         * modules/strnlen (Files): Add strnlen.h.
67580
67581 2005-08-11  Simon Josefsson  <jas@extundo.com>
67582
67583         * m4/readline.m4: New file.
67584
67585 2005-08-11  Simon Josefsson  <jas@extundo.com>
67586
67587         * lib/readline.h, readline.c: New file.
67588
67589 2005-08-11  Simon Josefsson  <jas@extundo.com>
67590
67591         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67592         gl_AVOID.
67593
67594 2005-08-11  Bruno Haible  <bruno@clisp.org>
67595
67596         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67597
67598 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67599
67600         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67601
67602 2005-08-10  Simon Josefsson  <jas@extundo.com>
67603
67604         * tests/test-iconvme.c: New file.
67605
67606 2005-08-10  Simon Josefsson  <jas@extundo.com>
67607
67608         * m4/strnlen.m4: New file.
67609
67610         * m4/strndup.m4: Don't check for strnlen declaration, done in
67611         strnlen.m4.
67612
67613 2005-08-10  Simon Josefsson  <jas@extundo.com>
67614
67615         * lib/strndup.c: Use strnlen.h.
67616
67617         * lib/strnlen.h: New file.
67618
67619 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67620
67621         * README: Typos.
67622
67623 2005-08-02  Simon Josefsson  <jas@extundo.com>
67624
67625         * modules/readline: New file.
67626
67627 2005-08-02  Simon Josefsson  <jas@extundo.com>
67628
67629         * modules/getdelim: New file.
67630
67631         * modules/getline: Rewrite, don't use getndelim2.
67632
67633 2005-08-02  Simon Josefsson  <jas@extundo.com>
67634
67635         * m4/getline.m4: Separate out getdelim stuff into separate module.
67636
67637         * m4/getdelim.m4: New file.
67638
67639 2005-08-02  Simon Josefsson  <jas@extundo.com>
67640
67641         * lib/getline.h, getline.c: Rewrite.
67642
67643         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67644
67645 2005-07-31  Bruno Haible  <bruno@clisp.org>
67646
67647         * lib/lock.h (gl_lock_initializer): New macro.
67648         (gl_lock_define_initialized): Use it.
67649         (gl_rwlock_initializer): New macro.
67650         (gl_rwlock_define_initialized): Use it.
67651         (gl_recursive_lock_initializer): New macro.
67652         (gl_recursive_lock_define_initialized): Use it.
67653
67654 2005-07-30  Karl Berry  <karl@gnu.org>
67655
67656         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67657         Report from Ben Pfaff, regarding getopt.
67658
67659 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67660
67661         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67662         normal way.
67663         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67664         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67665         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67666         (gl_GETOPT): Use the new macros.  Most of the implementation
67667         is moved to the new macros.  This is for programs like Emacs
67668         that don't want all the functionality of gl_GETOPT.
67669
67670 2005-07-26  Bruno Haible  <bruno@clisp.org>
67671
67672         * m4/lock.m4: Update from GNU gettext.
67673
67674 2005-07-26  Bruno Haible  <bruno@clisp.org>
67675
67676         * lib/lock.h: Update from GNU gettext.
67677         * lib/lock.c: Update from GNU gettext.
67678
67679 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67680
67681         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67682         obsolescent AC_TRY_RUN.  Include the default includes files, for
67683         'exit'.
67684
67685 2005-07-24  Bruno Haible  <bruno@clisp.org>
67686
67687         * modules/visibility: New file.
67688         * MODULES.html.sh (Misc): Add visibility.
67689
67690 2005-07-24  Bruno Haible  <bruno@clisp.org>
67691
67692         * m4/visibility.m4: New file.
67693
67694 2005-07-24  Bruno Haible  <bruno@clisp.org>
67695
67696         * doc/visibility.texi: New file.
67697
67698 2005-07-22  Bruno Haible  <bruno@clisp.org>
67699
67700         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67701         $(ALLOCA_H), redundant through BUILT_SOURCES.
67702         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67703         redundant through BUILT_SOURCES.
67704         * modules/byteswap (Makefile.am): Remove explicit dependency on
67705         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67706         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67707         $(FNMATCH_H), redundant through BUILT_SOURCES.
67708         * modules/getopt (Makefile.am): Remove explicit dependency on
67709         $(GETOPT_H), redundant through BUILT_SOURCES.
67710         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67711         redundant through BUILT_SOURCES.
67712         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67713         redundant through BUILT_SOURCES.
67714         * modules/stdbool (Makefile.am): Remove explicit dependency on
67715         $(STDBOOL_H), redundant through BUILT_SOURCES.
67716         * modules/stdint (Makefile.am): Remove explicit dependency on
67717         $(STDINT_H), redundant through BUILT_SOURCES.
67718         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67719         Remove explicit dependency on $(SYSEXITS_H).
67720         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67721
67722 2005-07-18  Simon Josefsson  <jas@extundo.com>
67723
67724         * lib/check-version.c (check_version): Accept identical versions too.
67725
67726 2005-07-18  Bruno Haible  <bruno@clisp.org>
67727
67728         * modules/lock: New file.
67729         * MODULES.html.sh (Multithreading): New section.
67730
67731 2005-07-18  Bruno Haible  <bruno@clisp.org>
67732
67733         * m4/lock.m4: New file, from GNU gettext.
67734
67735 2005-07-18  Bruno Haible  <bruno@clisp.org>
67736
67737         * lib/lock.h: New file, from GNU gettext.
67738         * lib/lock.c: New file, from GNU gettext.
67739
67740 2005-07-18  Bruno Haible  <bruno@clisp.org>
67741
67742         * lib/lock.h (gl_once_t): New type.
67743         (gl_once_define, gl_once): New macros.
67744         * lib/lock.c (fresh_once): New variable.
67745         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67746         functions.
67747
67748 2005-07-16  Simon Josefsson  <jas@extundo.com>
67749
67750         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67751         workaround, suggested by Bruno.
67752
67753 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67754
67755         * modules/xalloc (Depends-on): Add xalloc-die.
67756         * modules/xvasprintf (Depends-on): Add xalloc-die.
67757
67758 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67759
67760         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67761         with a minor change.
67762
67763 2005-07-15  Bruno Haible  <bruno@clisp.org>
67764
67765         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67766         When using lib/poll.c, define poll as rpl_poll.
67767
67768 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67769
67770         * modules/argp (Depends-on): Remove unlocked-io.
67771
67772 2005-07-14  Derek Price  <derek@ximbiot.com>
67773
67774         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67775         for glob symlink bug.
67776
67777 2005-07-14  Bruno Haible  <bruno@clisp.org>
67778
67779         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67780         Instead, test for *_unlocked function declarations directly.
67781
67782 2005-07-11  Simon Josefsson  <jas@extundo.com>
67783
67784         * modules/size_max: New file.
67785
67786         * modules/xsize: Depend on size_max module for size_max.m4.
67787
67788 2005-07-11  Simon Josefsson  <jas@extundo.com>
67789
67790         * lib/size_max.h: New file.
67791
67792 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67795         copyright symbol and the year.
67796         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67797         (version_etc_va): Use parameterized copyright notice.
67798         Reword to conform to the current GNU coding standards.
67799
67800 2005-07-11  Karl Berry  <karl@gnu.org>
67801
67802         * doc/gnulib.texi (Quoting): new node.
67803         (Initial import): more info, from Patrice.
67804
67805 2005-07-11  Bruno Haible  <bruno@clisp.org>
67806
67807         * gnulib-tool (func_usage): Document option --avoid.
67808         (Command line options): Handle --avoid.
67809         (func_acceptable): New function.
67810         (func_modules_transitive_closure): Use it.
67811
67812 2005-07-11  Bruno Haible  <bruno@clisp.org>
67813
67814         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67815         Reported by Jim Meyering.
67816
67817 2005-07-10  Bruno Haible  <bruno@clisp.org>
67818
67819         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67820         Needed when size_t is smaller than 'unsigned int'.
67821         Reported by Paul Eggert.
67822
67823 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67824
67825         * modules/argp (Depends-on): Add unlocked-io
67826
67827 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67828
67829         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67830         block of defines.
67831
67832 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67833
67834         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67835         fix now.
67836
67837 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67838         and Paul Eggert  <eggert@cs.ucla.edu>
67839
67840         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67841         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67842
67843 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67844
67845         * modules/regex (Files): Add lib/regex_internal.c,
67846         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67847         (Depends-on): Add extensions.
67848         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67849
67850 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67851
67852         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67853         pathconf.
67854         * m4/same.m4 (gl_SAME): Likewise.
67855         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67856
67857         * m4/regex.m4: Adjust to new libc regex implementation.
67858         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67859         all the .c and .h parts of (the new) regex.
67860         Quote the m4 stuff better.
67861         Check for RE_ICASE bug of old gnulib.
67862         Check for REG_STARTEND of recent libc.
67863         Rename local variables from jm_* to gl_*.
67864         Quote operand of "test -f".
67865         Say "recent enough" version of libc, not "version 2".
67866         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67867         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67868         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67869         Remove check for btowc, isascii.
67870         Require AM_LANGINFO_CODESET.
67871
67872 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * lib/regex.c, regex.h: Sync from libc.
67875         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67876         * lib/regexec.c:
67877         New files, synced from libc, except that regex_internal.h
67878         currently has a small porting fix.
67879
67880 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67883         regex_internal.c, regexec.c.
67884         Add regex_internal.h too, but as a comment, since the libc version
67885         is currently broken in gnulib mode.
67886
67887 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67888
67889         Support programs like Emacs that use gnulib but not gettext.
67890         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67891         * modules/gettext-h: New file.
67892         * modules/gettext (Files): Remove lib/gettext.h.
67893         (Depends-on): Add gettext-h.
67894         (Makefile.am): Remove lib_SOURCES.
67895         * modules/argmatch, modules/c-stack, modules/closeout:
67896         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67897         * modules/execute, modules/file-type, modules/getaddrinfo:
67898         * modules/getopt, modules/human, modules/javacomp:
67899         * modules/javaexec, modules/mkdir-p, modules/obstack:
67900         * modules/openat, modules/pagealign_alloc, modules/pipe:
67901         * modules/quotearg, modules/regex, modules/rpmatch:
67902         * modules/unicodeio, modules/userspec, modules/version-etc:
67903         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67904         * modules/xsetenv:
67905         Depend on gettext-h, not gettext.
67906
67907 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         * gnulib-tool (func_import): Add support for 'public domain' license.
67910         * modules/alloca, modules/atexit, modules/memmove:
67911         Now public domain, not GPL.
67912         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67913         * modules/realloc, modules/strerror, modules/strtod:
67914         Now LGPL, not GPL.
67915
67916 2005-07-05  Bruno Haible  <bruno@clisp.org>
67917
67918         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67919         autoconf CVS. Needed for mingw.
67920
67921 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67922
67923         Remove the dependency of the strftime module on the tzset module.
67924         * modules/strftime (Depends-on): Remove dependency on tzset.
67925
67926 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         Remove the dependency of the strftime module on the tzset module.
67929         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67930         gl_FUNC_TZSET_CLOBBER.
67931
67932 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67933
67934         Remove the dependency of the strftime module on the tzset module.
67935         * lib/strftime.c (my_strftime)
67936         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67937         Copy the input structure, to work around some of the bug with
67938         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67939         Solaris releases, you should also use the tzset module, but we won't
67940         require it as a dependency any more since we don't want LGPLed code
67941         to depend on GPLed code.
67942
67943 2005-07-02  Jim Meyering  <jim@meyering.net>
67944
67945         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67946         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67947         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67948         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67949
67950 2005-07-02  Jim Meyering  <jim@meyering.net>
67951
67952         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67953
67954 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67955
67956         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67957         declares only 'struct timespec;' (!).
67958
67959 2005-07-01  Jim Meyering  <jim@meyering.net>
67960
67961         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67962         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67963         * lib/save-cwd.c, tempname.c:
67964         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67965         and don't include <sys/file.h>).
67966
67967 2005-06-29  Jim Meyering  <jim@meyering.net>
67968
67969         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67970         type name.  Use the variable name instead.
67971         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67972         Likewise.
67973
67974 2005-06-28  Simon Josefsson  <jas@extundo.com>
67975
67976         * modules/check-version (Files): Add check-version.m4.
67977
67978 2005-06-28  Simon Josefsson  <jas@extundo.com>
67979
67980         * m4/check-version.m4: New file, suggested by Jim Meyering
67981         <jim@meyering.net>.
67982
67983 2005-06-28  Simon Josefsson  <jas@extundo.com>
67984
67985         * lib/check-version.h, lib/check-version.c: New files.
67986
67987 2005-06-28  Simon Josefsson  <jas@extundo.com>
67988
67989         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67990         collision with global variable.  Better indentation.  Don't
67991         increment buffer pointer beyond buffer end.  Based on comments
67992         from Paul Eggert <eggert@cs.ucla.edu>.
67993
67994         * lib/base64.h: Indent.
67995
67996 2005-06-28  Simon Josefsson  <jas@extundo.com>
67997
67998         * doc/gnulib.texi (Library version handling): New section.
67999
68000 2005-06-28  Jim Meyering  <jim@meyering.net>
68001
68002         * check-module (find_included_lib_files): Hard-code another
68003         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68004         but modules/fts-lgpl (correctly) does not list those files.
68005
68006         * modules/canonicalize (Files): Add lib/pathmax.h.
68007
68008 2005-06-25  Simon Josefsson  <jas@extundo.com>
68009
68010         * modules/check-version: New file.
68011
68012 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68013
68014         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68015         initializer of struct addrinfo, as an indication that we don't
68016         care how many members the structure has.
68017
68018 2005-06-24  Derek Price  <derek@ximbiot.com>
68019         and Bruno Haible  <bruno@clisp.org>
68020
68021         Remove stat module & update lstat.
68022         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68023         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68024         * m4/stat.m4: Remove this file.
68025
68026 2005-06-24  Derek Price  <derek@ximbiot.com>
68027         and Bruno Haible  <bruno@clisp.org>
68028
68029         Remove stat module & update lstat.
68030         * lib/stat.c: Remove this file...
68031         (slash_aware_lstat): ...moving this content and its support...
68032         * lib/lstat.c (rpl_lstat): ...into here.
68033         * lib/lstat.h: New file.
68034
68035 2005-06-24  Derek Price  <derek@ximbiot.com>
68036         and Bruno Haible  <bruno@clisp.org>
68037
68038         Remove stat module & update lstat.
68039         * config/srclist.txt (libc sources): Remove stat.
68040
68041 2005-06-24  Derek Price  <derek@ximbiot.com>
68042         and Bruno Haible  <bruno@clisp.org>
68043
68044         Remove stat module & update lstat.
68045         * MODULES.html.sh (stat): Remove.
68046         * MODULES.html: Regenerated.
68047         * modules/lstat (Description): Correct function name.
68048         (Files): Add "lstat.h".
68049         (Depends-on): Remove stat, add xalloc, stat-macros.
68050         * modules/stat: Remove this file.
68051         (Include): Add "lstat.h", remove <sys/stat.h>.
68052
68053 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68054
68055         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68056         (ranged_convert): Don't save conversion in a temporary struct.
68057         This causes a warning with GCC 4.0.0, and anyway in the typical
68058         case it's not worth the extra 100 bytes or so of code.
68059         (ranged_convert, __mktime_internal): When calling a function via a
68060         pointer P, use P () rather than (*P) (), as we now assume C89 or
68061         better.
68062
68063 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68066         "who -r" failed to give output.  Problem reported by Tim Waugh.
68067
68068         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68069         (xcalloc): Use it to avoid needless tests.
68070         Problem reported by Jim Meyering.
68071
68072 2005-06-20  Derek Price  <derek@ximbiot.com>
68073
68074         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68075         unnecessary for Autoconfs > 2.59c.
68076
68077 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68078
68079         * lib/argp.h (__option_is_short): Check upper limit of
68080         __key. Isprint() requires its argument to have the value
68081         of an unsigned char or EOF.
68082
68083 2005-06-16  Jim Meyering  <jim@meyering.net>
68084
68085         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68086         when either N or S is zero.
68087
68088 2005-06-16  Derek Price  <derek@ximbiot.com>
68089
68090         * m4/bison.m4: Declare YACC & YFLAGS precious.
68091
68092 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68093
68094         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68095         multibyte string or pattern, fall back on unibyte matching.
68096         Problem reported by James Youngman.
68097
68098 2005-06-08  Bruno Haible  <bruno@clisp.org>
68099
68100         * modules/csharpcomp: New file.
68101         * MODULES.html.sh (C#): Add csharpcomp.
68102
68103 2005-06-08  Bruno Haible  <bruno@clisp.org>
68104
68105         * m4/csharpcomp.m4: New file, from GNU gettext.
68106
68107 2005-06-08  Bruno Haible  <bruno@clisp.org>
68108
68109         * lib/csharpcomp.h: New file, from GNU gettext.
68110         * lib/csharpcomp.c: New file, from GNU gettext.
68111         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68112
68113 2005-06-08  Bruno Haible  <bruno@clisp.org>
68114
68115         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68116         warning on mingw.
68117
68118 2005-06-07  Derek Price  <derek@ximbiot.com>
68119
68120         Sync from CVS.
68121         * lib/glob_.h: Indent nested #ifdef.
68122
68123 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68124
68125         Sync from coreutils.
68126         Use "file name" when talking about file names, instead of "filename"
68127         or "path", as per the GNU coding standards.
68128         * lib/mkdir-p.c: Renamed from makepath.c.
68129         (make_dir_parents): Renamed from make_path.  All callers changed.
68130         * lib/mkdir-p.h: Likewise.  All includers changed.
68131         * lib/filenamecat.c: Renamed from path-concat.c.
68132         (file_name_concat): Renamed from path_concat.  All callers changed.
68133         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68134         * lib/filenamecat.h: Likewise.  All includers changed.
68135         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68136         in comments or local variable names.
68137         * lib/basename.c: Likewise.
68138         * lib/canonicalize.c, canonicalize.h: Likewise.
68139         * lib/dirname.c, dirname.h: Likewise.
68140         * lib/euidaccess.c: Likewise.
68141         * lib/exclude.c: Likewise
68142         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68143         * lib/fsusage.c, fsuage.h: Likewise.
68144         * lib/fts.c, fts_.h: Likewise.
68145         * lib/getcwd.c: Likewise.
68146         * lib/getloadavg.c: Likewise.
68147         * lib/mkstemp.c: Likewise.
68148         * lib/mountlist.c, mountlist.h: Likewise.
68149         * lib/openat.c, openat.h: Likewise.
68150         * lib/readlink-stub.c: Likewise.
68151         * lib/readutmp.c, readutmp.h: Likewise.
68152         * lib/rename.c: Likewise.
68153         * lib/rmdir.c: Likewise.
68154         * lib/same.c: Likewise.
68155         * lib/savedir.c: Likewise.
68156         * lib/stripslash.c: Likewise.
68157         * lib/tempname.c: Likewise.
68158         * lib/xreadlink.c: Likewise.
68159         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68160         All uses changed.
68161         * lib/exclude.h: Likewise.
68162
68163         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68164         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68165         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68166         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68167         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68168         files have been getting away with it for years (MORE/BSD 4.3
68169         is extinct now).
68170         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68171         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68172
68173         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68174         Define to 256, not 255, as per modern POSIX.
68175
68176 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68177
68178         Sync from coreutils.
68179         Use "file name" when talking about file names, instead of "filename"
68180         or "path", as per the GNU coding standards.
68181         * MODULES.html.sh: mkdir-p renamed from makepath.
68182         filenamecat renamed from path-concat.
68183         * modules/filenamecat: Renamed from modules/path-concat.
68184         (Files): filenamecat.h and filenamecat.c renamed from
68185         path-concat.h and path-concat.c.
68186         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68187         (Include): filenamecat.h, not path-concat.h.
68188         * modules/mkdir-p: Renamed from modules/makepath.
68189         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68190         makepath.c.
68191         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68192         (Include): mkdir-p.h, not makepath.h.
68193
68194 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68195
68196         Sync from coreutils.
68197         * m4/mkdir-p.m4: Renamed from makepath.m4.
68198         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
68199         Rename files from makepath.c to mkdir-p.c, and from
68200         makepath.h to mkdir-p.h.
68201         * m4/filenamecat.m4: Renamed from path-concat.m4.
68202         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
68203         Rename files from path-concat.c to filenamecat.c,
68204         and from path-concat.h to filenamecat.h.
68205         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
68206         "file name" in local variables or comments.
68207         * m4/rename.m4: Likewise.
68208
68209 2005-06-01  Bruno Haible  <bruno@clisp.org>
68210
68211         * modules/csharpexec: New file.
68212         * MODULES.html.sh (C#): New section.
68213
68214 2005-06-01  Bruno Haible  <bruno@clisp.org>
68215
68216         * m4/csharp.m4: New file, from GNU gettext.
68217         * m4/csharpexec.m4: New file, from GNU gettext.
68218
68219 2005-06-01  Bruno Haible  <bruno@clisp.org>
68220
68221         * lib/csharpexec.h: New file, from GNU gettext.
68222         * lib/csharpexec.c: New file, from GNU gettext.
68223         * lib/csharpexec.sh.in: New file, from GNU gettext.
68224
68225 2005-05-31  Derek Price  <derek@ximbiot.com>
68226             Paul Eggert  <eggert@cs.ucla.edu>
68227
68228         Sync from cvs.
68229         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68230
68231 2005-05-31  Derek Price  <derek@ximbiot.com>
68232             Paul Eggert  <eggert@cs.ucla.edu>
68233
68234         Sync from cvs.
68235         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68236
68237 2005-05-29  Derek Price  <derek@ximbiot.com>
68238
68239         * config/srclist.txt (glob_.h, glob.c): Add these files.
68240
68241 2005-05-29  Derek Price  <derek@ximbiot.com>
68242
68243         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
68244         * modules/glob: New file.
68245         * modules/getlogin_r: Add link to POSIX spec in description.
68246
68247 2005-05-29  Derek Price  <derek@ximbiot.com>
68248             Paul Eggert  <eggert@cs.ucla.edu>
68249
68250         * m4/glob.m4: New file.
68251
68252 2005-05-29  Derek Price  <derek@ximbiot.com>
68253             Paul Eggert  <eggert@cs.ucla.edu>
68254
68255         * lib/glob_.h, lib/glob.c: New files.
68256
68257 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68258
68259         * modules/fts (Files): Remove m4/inttypes-pri.m4.
68260         * modules/fts-lgpl (Depends-on): Remove gettext.
68261
68262 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68263
68264         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
68265         and don't require gt_INTTYPES_PRI.
68266
68267 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68268
68269         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
68270
68271         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
68272         the configuration hassle isn't worth it.
68273         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68274         (LONGEST_MODIFIER, PRIuMAX): Remove.
68275
68276 2005-05-27  Bruno Haible  <bruno@clisp.org>
68277
68278         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68279
68280 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68281
68282         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68283         _POSIX_PTHREAD_SEMANTICS for Solaris.
68284
68285 2005-05-25  Derek Price  <derek@ximbiot.com>
68286
68287         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68288
68289 2005-05-25  Derek Price  <derek@ximbiot.com>
68290             Paul Eggert  <eggert@cs.ucla.edu>
68291
68292         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68293         * lib/getlogin_r.c, getlogin_r.h: New files.
68294
68295 2005-05-25  Bruno Haible  <bruno@clisp.org>
68296             Derek Price  <derek@ximbiot.com>
68297
68298         * lib/getlogin_r.h: Simplify API documentation.
68299
68300 2005-05-23  Derek Price  <derek@ximbiot.com>
68301
68302         * modules/minmax (Files): Add m4/minmax.m4.
68303         (configure.ac): Add gl_MINMAX.
68304
68305 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68306
68307         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68308         so that unistd-safer.h (GPL'ed code) need not be included.
68309
68310 2005-05-22  Bruno Haible  <bruno@clisp.org>
68311
68312         * m4/minmax.m4: New file.
68313         Based on a patch by Derek Price <derek@ximbiot.com>.
68314
68315 2005-05-22  Bruno Haible  <bruno@clisp.org>
68316
68317         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
68318         (INT64_MIN): Fix definition.
68319         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
68320
68321         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
68322         NEED_SIGNED_INT_TYPES.
68323
68324         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
68325         HAVE_SYSTEM_INTTYPES.
68326
68327 2005-05-22  Bruno Haible  <bruno@clisp.org>
68328
68329         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
68330         Also include <sys/param.h> if it defines MIN, MAX.
68331         Based on a patch by Derek Price <derek@ximbiot.com>.
68332
68333 2005-05-21  Jim Meyering  <jim@meyering.net>
68334
68335         * modules/fts (Files): Add m4/inttypes-pri.m4.
68336         (Depends-on): Add lstat and remove gettext.  Alphabetize.
68337
68338 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68339
68340         New fts module.
68341         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
68342         (setup_dir, free_dir): New functions.
68343         (enter_dir, leave_dir): Define trivial
68344         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
68345         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
68346         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
68347         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
68348         Move to fts-cycle.c.
68349         (fts_open): Use setup_dir.
68350         (fts_close): Use free_dir.
68351         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
68352         This adds a label and some gotos, but the alternatives were messier.
68353         Check for memory allocation failure when entering a dir.
68354         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
68355         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
68356         (FTS): New member fts_cycle, that is a union that contains the
68357         old active_dir_ht and cycle_state.  All uses changed to mention
68358         fts_cycle.ht and fts_cycle.state.
68359         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
68360         fts.c, with the following changes:
68361         (setup_dir, free_dir): New functions.
68362         (enter_dir): Now returns bool.  Return true if successful, false
68363         if memory exhausted.  All callers changed.
68364         Do not bother partly cleaning up on
68365         memory allocation failure; that is free_dir's job.
68366         However, free ad if hash_insert fails, to avoid memory leak.
68367         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
68368         fts->fts_options to see which union member to use.
68369
68370 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68371
68372         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
68373         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
68374
68375 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68376
68377         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68378
68379 2005-05-20  Jim Meyering  <jim@meyering.net>
68380
68381         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68382         Now a macro, to pacify GCC.
68383
68384 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68385
68386         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68387         of -1.
68388
68389 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68390
68391         * lib/chown.c (rpl_chown): Return -1 on failure.
68392
68393 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68394
68395         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68396         Don't check for stddef.h.
68397         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68398         don't use its results.
68399         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68400         since we include them unconditionally.  Don't require
68401         AM_STDBOOL_H, since stdbool is a prerequisite.
68402         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68403         since we assume C89 or better.
68404         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68405         as we don't use their results.
68406         Don't check for fchdir, memmove, memset, strrchr, as we use
68407         them unconditionally.
68408         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68409         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68410
68411 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68412
68413         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68414         Include <stddef.h> unconditionally, since we assume C89 now.
68415         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68416         * lib/fts.c: Include fts_.h first, to check interface.
68417         Do not include intprops.h; no longer needed.
68418         Include cycle-check.h and hash.h, since fts_.h no longer does.
68419         Remove unnecessary casts of closedir to void.
68420         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68421         decide whether to decrement nlinks.
68422         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68423         (FTS): Use struct hash_table * instead of Hash_table, so that
68424         we no longer need to include hash.h here.
68425
68426 2005-05-18  Jim Meyering  <jim@meyering.net>
68427
68428         * modules/dirfd (License): Change to LGPL.  Most of the code
68429         is already in the public domain.
68430
68431 2005-05-18  Jim Meyering  <jim@meyering.net>
68432
68433         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68434         Reported by Yoann Vandoorselaere.
68435
68436 2005-05-17  Jim Meyering  <jim@meyering.net>
68437
68438         * m4/fts.m4: New file, from coreutils.
68439
68440 2005-05-17  Jim Meyering  <jim@meyering.net>
68441
68442         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68443
68444 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68445
68446         Sync from coreutils.
68447         * m4/unlinkdir.m4: New file.
68448
68449 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68450
68451         Sync from coreutils.
68452         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68453         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68454         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68455         White space changes only.
68456         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68457         special.
68458         * lib/yesno.c: Include getline.h, not ctype.h.
68459         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68460         Use getline to remove arbitrary restriction on response length.
68461
68462 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68463
68464         * config/srclist-update: Spell out "Street" in FSF postal
68465         mail address; this is the style the FSF seems to prefer.
68466
68467         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68468         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68469         this updates FSF postal mail address.
68470
68471         Sync from coreutils.
68472         * modules/unlinkdir: New file.
68473         * modules/yesno (Depends-on): Add getline.
68474         * MODULES.html.sh (File system functions): Add unlinkdir.
68475
68476 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68477
68478         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68479         lib/strsep.h:
68480         Change the initial comment to refer to GPL, not LGPL.
68481         gnulib-tool will change it to LGPL as needed.
68482
68483         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68484         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68485         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68486         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68487         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68488         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68489         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68490         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68491         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68492         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68493         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68494         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68495         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68496         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68497         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68498         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68499         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68500         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68501         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68502         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68503         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68504         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68505         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68506         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68507         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68508         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68509         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68510         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68511         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68512         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68513         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68514         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68515         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68516         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68517         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68518         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68519         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68520         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68521         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68522         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68523         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68524         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68525         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68526         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68527         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68528         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68529         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68530         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68531         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68532         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68533         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68534         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68535         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68536         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68537         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68538         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68539         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68540         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68541         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68542         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68543         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68544         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68545         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68546         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68547         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68548         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68549         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68550         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68551         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68552         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68553         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68554         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68555         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68556         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68557         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68558         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68559         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68560         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68561         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68562         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68563         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68564         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68565         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68566         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68567         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68568         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68569         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68570         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68571         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68572         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68573         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68574         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68575         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68576         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68577         lib/yesno.c, lib/yesno.h:
68578         Update FSF postal mail address.
68579
68580 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68581
68582         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68583         tests/test-memmem.c, tests/test-stpncpy.c:
68584         Update FSF postal mail address.
68585
68586 2005-05-13  Bruno Haible  <bruno@clisp.org>
68587
68588         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68589         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68590         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68591         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68592         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68593         Add support for 64-bit integers in the MSVC compiler.
68594
68595 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68596
68597         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68598
68599 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68600
68601         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68602
68603 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         * doc/getdate.texi (General date syntax): Don't say that date
68606         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68607         Problem reported by Nic Ferrier.
68608
68609 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68610
68611         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68612         specified in ai_socktype. Fix invalid ai_protocol
68613         check. ai_protocol is usually set to 0 or depending on
68614         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68615         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68616         ai_socktype / ai_protocol in the returned addrinfo structure.
68617
68618 2005-05-10  Simon Josefsson  <jas@extundo.com>
68619
68620         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68621         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68622
68623 2005-05-10  Karl Berry  <karl@gnu.org>
68624
68625         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68626         (from http://www.gnu.org/licenses).
68627         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68628         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68629         fdl.texi suffices.
68630
68631 2005-05-10  Karl Berry  <karl@gnu.org>
68632
68633         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68634         (COPYING.DOC): remove.
68635
68636         * config/srclist-update: new FSF address.
68637
68638 2005-05-10  Derek Price  <derek@ximbiot.com>
68639
68640         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68641         possible.
68642
68643 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68644             Bruno Haible  <bruno@clisp.org>
68645
68646         * modules/inet_ntop: New file.
68647         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68648         inet_ntop.
68649
68650 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68651             Bruno Haible  <bruno@clisp.org>
68652
68653         * m4/inet_ntop.m4: New file.
68654
68655 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68656             Bruno Haible  <bruno@clisp.org>
68657
68658         * lib/inet_ntop.h: New file.
68659         * lib/inet_ntop.c: New file, from glibc with modifications.
68660
68661 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68662
68663         * modules/time_r (License): Change to LGPL.
68664         * modules/extensions (License): Change to LGPL.  Actually,
68665         the license is more permissive than that, but currently gnulib-tool
68666         doesn't know how to handle more-permissive licenses.
68667
68668         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68669         Problem reported by Dave Love.
68670
68671 2005-05-08  Jim Meyering  <jim@meyering.net>
68672
68673         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68674         blank.
68675
68676 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68677
68678         * modules/argmatch (Depends-on): Add stdbool.
68679         * modules/backupfile (Depends-on): Likewise.
68680         * modules/chdir-long (Depends-on): Likewise.
68681         * modules/closeout (Depends-on): Likewise.
68682         * modules/cycle-check (Depends-on): Likewise.
68683         * modules/dirname (Depends-on): Likewise.
68684         * modules/fnmatch (Depends-on): Likewise.
68685         * modules/fsusage (Depends-on): Likewise.
68686         * modules/fwriteerror (Depends-on): Likewise.
68687         * modules/getcwd (Depends-on): Likewise.
68688         * modules/getloadavg (Depends-on): Likewise.
68689         * modules/hard-locale (Depends-on): Likewise.
68690         * modules/makepath (Depends-on): Likewise.
68691         * modules/mountlist (Depends-on): Likewise.
68692         * modules/nanosleep (Depends-on): Likewise.
68693         * modules/posixtm (Depends-on): Likewise.
68694         * modules/quotearg (Depends-on): Likewise.
68695         * modules/readtokens (Depends-on): Likewise.
68696         * modules/readtokens0 (Depends-on): Likewise.
68697         * modules/readutmp (Depends-on): Likewise.
68698         * modules/save-cwd (Depends-on): Likewise.
68699         * modules/strftime (Depends-on): Likewise.
68700         * modules/userspec (Depends-on): Likewise.
68701         * modules/utimecmp (Depends-on): Likewise.
68702         * modules/xgetcwd (Depends-on): Likewise.
68703         * modules/xnanosleep (Depends-on): Likewise.
68704         * modules/xstrtod (Depends-on): Likewise.
68705         * modules/yesno (Depends-on): Likewise.
68706
68707 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68708
68709         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68710         needless checks.
68711
68712 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         Merge from coreutils.  Among other things,
68715         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68716         * lib/fd-safer.c: New file.
68717         * lib/fcntl-safer.h, open-safer.c: Remove.
68718         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68719         * lib/dup-safer.c: Include unistd-safer.h first.
68720         Don't include errno.h.
68721         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68722         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68723         * lib/file-type.c: Rely on file-type.h change.
68724         * lib/getloadavg.c: Include unistd-safer.h.
68725         (getloadavg): Use safer open.
68726         * lib/getusershell.c: Include "stdio-safer.h".
68727         (getusershell): Use safer fopen.
68728         * lib/long-options.c (long_options): Use NULL rather than 0.
68729         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68730         'free'.
68731         * lib/modechange.c: Likewise.
68732         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68733         (MODE_DONE): New constant.
68734         (struct mode_change): Remove 'next' member.
68735         (make_node_op_equals): New function; like the old one of the
68736         same name, except it allocates an array.
68737         (mode_compile, mode_create_from_ref): Use it.
68738         (mode_compile): Allocate result as an array, not a linked list.
68739         Parse octal string ourself, so that we catch mistakes like "+0".
68740         (mode_adjust): Arg is an array, not a linked list.
68741         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68742         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68743         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68744         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68745         Remove.  This is now stat-macros.h's job.
68746         (talloc): Remove.  All callers replaced by xalloc, so that
68747         our invokers don't have to worry about reporting memory failures.
68748         (make_node_op_equals): Remove.
68749         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68750         New constants.
68751         (struct mode_change): Moved here from modechange.h.
68752         (mode_append_entry): Remove.
68753         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68754         apps to have incorrect behavior.  Use simpler algorithm for head
68755         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68756         Detect more invalid usages rather than having somewhat-random behavior.
68757         Don't insert an "a=" action, as that leads to incorrect behavior.
68758         (mode_compile, mode_create_from_ref): Return NULL on error instead
68759         of an enum, since now there's only one way to have an error.  All
68760         callers changed.
68761         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68762         at the correct time.  Simplify calculation of "+u" and its ilk.
68763         Don't mishandle "+X".
68764         (mode_free): Remove "register" and localize decls.
68765         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68766         (struct mode_change): Move to modechange.c; callers don't
68767         need to see this stuff.
68768         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68769         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68770         (mode_change, mode_adjust): Reflect the new signatures noted above.
68771         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68772         that might redefine system include files.
68773         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68774         (my_usleep): Use NULL rather than (void *) 0.
68775         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68776         Use siginterrupt to specify that system calls should be interrupted.
68777         (rpl_nanosleep): Move initialization of suspended closer to call of
68778         my_usleep.
68779         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68780         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68781         (desirable_utmp_entry): New function.
68782         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68783         using x2nrealloc, to simplify logic.
68784         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68785         size calculation.  Do not assume utmp file is a regular file.
68786         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68787         (READ_UTMP_CHECK_PIDS): New constant.
68788         * lib/save-cwd.c: Include unistd-safer.h.
68789         (save_cwd): Use fd_safer.
68790         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68791         [!_LIBC] Include "stat-macros.h" instead.
68792         * lib/unistd-safer.h (fd_safer): New decl.
68793
68794 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68795
68796         * modules/getloadavg (Depends-on): Add unistd-safer.
68797         * modules/getusershell (Depends-on): Add stdio-safer.
68798         * modules/lstat (Depends-on): Remove xalloc.
68799         * modules/mkstemp (Depends-on): Add stat-macros.
68800         * modules/modechange (Depends-on): Remove xstrtol.
68801         Add stat-macros, xalloc.
68802         * modules/save-cwd (Depends-on): Add unistd-safer.
68803         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68804         * modules/unistd-safer (Files): Add lib/fd-safer.c
68805         (Makefile.am): Remove lib_SOURCES.
68806
68807         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68808         Remove fcntl-safer; unistd-safer supersedes it.
68809
68810 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68811
68812         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68813         AC_HEADER_STAT.
68814         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68815         (gl_PREREQ_CHOWN): Remove.
68816         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68817         it.  Don't require AC_HEADER_STAT.
68818         (gl_PREREQ_LSTAT): Remove.
68819         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68820         Don't require AC_HEADER_STAT.
68821         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68822         (gl_PREREQ_RMDIR): Remove.
68823         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68824         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68825         the stat-macros module a prerequisite.
68826         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68827         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68828         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68829         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68830         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68831         variable names.
68832         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68833         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68834         variable prefixes.
68835         * m4/fcntl-safer.m4: Remove.
68836         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68837         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68838         Invoke gl_PREREQ_FD_SAFER.
68839         (gl_PREREQ_FD_SAFER): New macro.
68840         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68841         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68842         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68843         Remove duplicate call to AC_LIBOBJ(readutmp).
68844         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68845
68846         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68847         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68848
68849 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68850
68851         * MODULES.html.sh (Misc): Add byteswap.
68852
68853 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68854
68855         * modules/getcwd (Depends-on): Add extensions.
68856         * modules/openat (Depends-on): Likewise.
68857
68858 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68859
68860         * modules/byteswap: New file.
68861
68862 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68863
68864         * m4/byteswap.m4: New file.
68865
68866 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68867
68868         * lib/byteswap_.h: New file.
68869
68870 2005-04-25  Karl Berry  <karl@gnu.org>
68871
68872         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68873
68874 2005-04-25  Albert Chin  <china@thewrittenword.com>
68875
68876         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68877         Toolkit C bug.
68878
68879 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68880
68881         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68882         (func_ln_if_changed): Remove forcibly for no error message
68883         in case file does not exist.
68884
68885 2005-04-19  Simon Josefsson  <jas@extundo.com>
68886
68887         * gnulib-tool (Options): Make --symlink mean --symbolic.
68888
68889 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68890
68891         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68892
68893 2005-04-16  Simon Josefsson  <jas@extundo.com>
68894
68895         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68896
68897 2005-04-15  Simon Josefsson  <jas@extundo.com>
68898
68899         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68900
68901 2005-04-15  Simon Josefsson  <jas@extundo.com>
68902
68903         * gnulib-tool: Rename --symlink to --symbolic.
68904
68905 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68906
68907         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68908         symbolic links to files instead of copying/moving.  Add --aux-dir,
68909         specifying directory relative --dir where auxiliary build tools
68910         are placed.
68911
68912 2005-04-14  Bruno Haible  <bruno@clisp.org>
68913
68914         * modules/allocsa (License): Change to LGPL.
68915         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68916
68917 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68918
68919         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68920         that "UTC +1 second" continues to work.  Problem reported
68921         by Dmitry V. Levin.
68922         (relunit_snumber): New rule.
68923         (relunit): Use it.
68924
68925 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68926
68927         * lib/getdate.y (universal_time_zone_table): New constant.
68928         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68929         universal_time_zone_table.
68930         (lookup_zone): Prefer universal_time_zone_table to
68931         local_time_zone_table, so that "GMT" time stamps are allowed in
68932         London during the summer.  Problem reported by Ian Abbott.
68933
68934 2005-04-12  Jim Meyering  <jim@meyering.net>
68935
68936         * lib/human.c (humblock): Set *options even when returning due to
68937         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68938         warning from gcc-4.
68939
68940 2005-04-09  Jim Meyering  <jim@meyering.net>
68941
68942         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68943         -Wuninitialized: initialize tm0.tm_year.
68944
68945 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68948         count, since there's no maximum.  All uses changed.
68949         Add member dsts_seen.
68950         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68951         not being INT_MAX.
68952         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68953         Use pc_rels_seen to decide whther a date is absolute.
68954
68955         * lib/getdate.y (number): Don't overwrite year.
68956         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68957         check.
68958
68959 2005-04-02  Simon Josefsson  <jas@extundo.com>
68960
68961         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68962         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68963
68964 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68965
68966         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68967         where no absolute path name can be longer than PATH_MAX.
68968
68969 2005-03-27  Jim Meyering  <jim@meyering.net>
68970
68971         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68972
68973 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68974
68975         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68976         "one's complement" -> "ones' complement" in comment, as per Knuth.
68977         "value of type" -> "type or expression" in comment.
68978         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68979
68980 2005-03-26  Jim Meyering  <jim@meyering.net>
68981
68982         Comment nits.
68983         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68984         Correct typos: s/or/of/.
68985
68986 2005-03-26  Jim Meyering  <jim@meyering.net>
68987
68988         * modules/check-include-files: Move to ../ and rename to...
68989         * check-module: ...this.
68990
68991 2005-03-25  Jim Meyering  <jim@meyering.net>
68992
68993         * modules/xvasprintf (Files): Add xalloc.h.
68994
68995 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         * modules/gettext (Files): config/config.rpath ->
68998         build-aux/config.rpath
68999         * modules/iconv (Files): Likewise.
69000         Problem reported by Oskar Liljeblad.
69001
69002 2005-03-23  Jim Meyering  <jim@meyering.net>
69003
69004         * modules/check-include-files: New script to check for
69005         missing dependencies, multiple includes, etc.
69006
69007         * modules/c-strtold (Depends-on): Add xalloc.
69008         * modules/c-strtod (Depends-on): Add xalloc.
69009         * modules/hash (Depends-on): Add xalloc.
69010         (Files): Remove lib/xalloc.h.
69011
69012         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69013         * modules/userspec (Files): Add lib/inttostr.h.
69014
69015 2005-03-23  Jim Meyering  <jim@meyering.net>
69016
69017         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69018
69019 2005-03-22  Jim Meyering  <jim@meyering.net>
69020
69021         * modules/stat-macros: New module.
69022         * modules/canonicalize, modules/euidaccess, modules/file-type,
69023         * modules/filemode, modules/lchown, modules/makepath,
69024         * modules/rmdir, modules/stat: Depend on new stat-macros module
69025         rather than listing lib/stat-macros.h manually.
69026         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69027
69028 2005-03-22  Jim Meyering  <jim@meyering.net>
69029
69030         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69031
69032 2005-03-22  Bruno Haible  <bruno@clisp.org>
69033
69034         * config/srclist.txt: Replace target directory 'config' with
69035         'build-aux'.
69036         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69037         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69038         ../build-aux/.
69039
69040 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69041
69042         * modules/chdir-long (Depends-on): Add mempcpy.
69043
69044         * modules/acl, modules/backupfile, modules/c-strtod,
69045         modules/c-strtold, modules/canon-host, modules/canonicalize,
69046         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69047         modules/exclude, modules/exitfail, modules/file-type,
69048         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69049         modules/getdate, modules/getline, modules/getpagesize,
69050         modules/getpass, modules/getugroups, modules/group-member,
69051         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69052         modules/inttostr, modules/long-options, modules/makepath,
69053         modules/md5, modules/memcasecmp, modules/memcoll,
69054         modules/modechange, modules/mountlist, modules/path-concat,
69055         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69056         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69057         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69058         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69059         modules/strftime, modules/strndup, modules/strverscmp,
69060         modules/timespec, modules/unlocked-io, modules/userspec,
69061         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69062         modules/yesno:
69063         Remove lib_SOURCES line from Makefile.am section, as this is now
69064         done automatically by the corresponding Autoconf macro.
69065
69066 2005-03-21  Jim Meyering  <jim@meyering.net>
69067
69068         Changes imported from coreutils.
69069
69070         * lib/cycle-check.c: Don't include xalloc.h.
69071
69072         * lib/path-concat.c: Don't include assert.h.
69073         (path_concat): Remove assertion that would have triggered
69074         for ABASE starting with more than one slash.
69075         Reported by Andreas Schwab.
69076
69077         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69078         properly when ABASE is an absolute file name.
69079         Correct the description of this function.
69080         Include <assert.h>.
69081         Add an assertion and a test driver.
69082         This fixes a bug introduced on 2004-07-02.
69083         Andreas Schwab reported the resulting failure of cp --parents:
69084         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69085
69086 2005-03-21  Jim Meyering  <jim@meyering.net>
69087
69088         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69089         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69090
69091 2005-03-21  Jim Meyering  <jim@meyering.net>
69092         and  Paul Eggert  <eggert@cs.ucla.edu>
69093
69094         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69095         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69096         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69097         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69098         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69099         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69100         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69101         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69102         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69103         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69104         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69105         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69106         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69107         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69108         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69109         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69110         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69111         for these modules.
69112
69113 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69116         (which shouldn't happen), generate nothing instead of returning 0
69117         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69118
69119 2005-03-16  Bruno Haible  <bruno@clisp.org>
69120
69121         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69122         HAVE_LONGLONG_64BIT.
69123
69124 2005-03-16  Bruno Haible  <bruno@clisp.org>
69125
69126         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69127         HAVE_LONGLONG_64BIT.
69128
69129 2005-03-16  Bruno Haible  <bruno@clisp.org>
69130
69131         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69132         HAVE_LONGLONG_64BIT.
69133
69134 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69135
69136         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69137         reliably distinguish strftime failure from empty output on POSIX
69138         hosts.
69139
69140 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69141
69142         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69143         (iconv_string): Don't guess a size-zero buffer, as that might cause
69144         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69145         result would be 'too large', where 'too large' is (heuristically)
69146         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69147         overflow concerns.  This will prevent some unwanted malloc failures
69148         when the inputs are very large.
69149
69150 2005-03-15  Karl Berry  <karl@gnu.org>
69151
69152         * config/srclist.txt (config.rpath): from gettext.
69153         * config/config.rpath: update.
69154
69155 2005-03-15  Bruno Haible  <bruno@clisp.org>
69156
69157         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69158         to 'negate'.
69159
69160         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69161         variable.
69162
69163         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69164         results.
69165
69166 2005-03-14  Simon Josefsson  <jas@extundo.com>
69167
69168         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69169         <fx@gnu.org>.
69170
69171 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69172
69173         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69174         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69175         intprops.h.
69176         * lib/strtol.c: Likewise.
69177
69178 2005-03-14  Jim Meyering  <jim@meyering.net>
69179
69180         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69181         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69182         to be nonzero so that we (and caller) can detect the difference
69183         between a valid zero-length expansion and an error return, even
69184         when the underlying strftime fails before writing anything into
69185         that location.
69186
69187 2005-03-14  Bruno Haible  <bruno@clisp.org>
69188
69189         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69190         Update from GNU gettext 0.14.3.
69191
69192 2005-03-10  Jim Meyering  <jim@meyering.net>
69193
69194         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69195
69196 2005-03-10  Jim Meyering  <jim@meyering.net>
69197
69198         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
69199         so that this module works on systems without fchdir.
69200
69201 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         Factor int-properties macros into a single file, except for
69204         glibc-related files.
69205         * lib/intprops.h: New file.
69206         * lib/getloadavg.c: Include it instead of limits.h.
69207         (INT_STRLEN_BOUND): Remove.
69208         * lib/human.c: Include intprops.h.
69209         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
69210         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
69211         302/1000.
69212         * lib/inttostr.h: Include intprops.h instead of limits.h.
69213         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
69214         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
69215         for consistency with intprops.h.
69216         (time_t_is_integer, twos_complement_arithmetic): Use them.
69217         * lib/sig2str.h: Include <signal.h>, intprops.h.
69218         (INT_STRLEN_BOUND): Remove.
69219         * lib/strftime.c (TYPE_SIGNED): Remove.
69220         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
69221         * lib/strtol.c: Adjust comments to match intprops.h.
69222         * lib/userspec.c: Include intprops.h.
69223         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
69224         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
69225         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
69226         instead of rolling our own expressions.
69227         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
69228
69229         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
69230         instead of int.
69231         (my_strftime): Do not mishandle years close to INT_MAX, by doing
69232         the right thing even if adding 1900 would overflow.  Similarly
69233         for tm_mon + 1 and tm_yday + 1.
69234         Make %Y always equivalent to %C%y, and similarly for %G and %g.
69235         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
69236         (DO_SIGNED_NUMBER): New macro.
69237         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
69238
69239 2005-03-07  Bruno Haible  <bruno@clisp.org>
69240
69241         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
69242
69243 2005-03-07  Bruno Haible  <bruno@clisp.org>
69244
69245         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
69246
69247 2005-03-04  Derek R. Price  <derek@ximbiot.com>
69248
69249         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
69250         (func_import): Only replace files via --import when they have actually
69251         changed.
69252
69253 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69254
69255         * m4/mmap-anon.m4: New file.
69256         * m4/pagealign_alloc.m4: New file.
69257
69258 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69259             Bruno Haible  <bruno@clisp.org>
69260
69261         * modules/pagealign_alloc: New file.
69262         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
69263
69264 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69265             Bruno Haible  <bruno@clisp.org>
69266
69267         * lib/pagealign_alloc.h: New file.
69268         * lib/pagealign_alloc.c: New file.
69269
69270 2005-03-03  Bruno Haible  <bruno@clisp.org>
69271
69272         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69273         Use an all-permissive copyright notice, recommended by RMS.
69274
69275 2005-03-02  Bruno Haible  <bruno@clisp.org>
69276
69277         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69278         of AIX, the replacement has to be done only after <string.h> is
69279         included, therefore not in config.h. stpncpy.h does the replacement,
69280         and stpncpy.c uses it.
69281
69282 2005-03-02  Bruno Haible  <bruno@clisp.org>
69283
69284         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69285         stpncpy.c uses it.
69286
69287 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69288
69289         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69290         The workaround isn't strictly needed for POSIX conformance, and
69291         it's too much of a pain to configure and maintain.  We'll ask
69292         people to fix their kernels instead.
69293         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69294         (NANOSLEEP_BUG_WORKAROUND): Remove.
69295         (xnanosleep): Remove the workaround.
69296
69297 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69298
69299         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69300         Reported by Derek Price.
69301         (Include): Add "timespec.h".
69302
69303         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69304
69305 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69306
69307         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69308         to detect nanosleep bug.
69309
69310 2005-03-01  Bruno Haible  <bruno@clisp.org>
69311
69312         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
69313
69314 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69315
69316         * modules/gethrxtime: New file.
69317         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
69318         (Depends-on): Add gethrxtime.
69319         (configure.ac): Add gl_XNANOSLEEP.
69320         (Makefile.am): Remove lib_SOURCES line.
69321
69322 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69323
69324         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
69325         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
69326
69327 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69328
69329         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
69330         * lib/timespec.h (gettime): Return void, since it always
69331         succeeds now.  All uses changed.
69332         * lib/gettime.c (gettime): Likewise.
69333         [HAVE_NANOTIME]: Prefer nanotime.
69334         Assume gettimeofday succeeds, as POSIX requires.
69335         Assime time () succeeds, since other code already does.
69336         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
69337         (timespec_subtract): Remove.
69338         (NANOSLEEP_BUG_WORKAROUND): New constant.
69339         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
69340         things considerably.  Use it only on GNU/Linux hosts, since the
69341         workaround shouldn't be needed elsewhere.
69342
69343 2005-02-24  Bruno Haible  <bruno@clisp.org>
69344
69345         * modules/gettext (Files): Add m4/glibc2.m4.
69346
69347 2005-02-24  Bruno Haible  <bruno@clisp.org>
69348
69349         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
69350         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
69351         * m4/progtest.m4:
69352         Update from GNU gettext 0.14.2.
69353         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
69354
69355 2005-02-24  Bruno Haible  <bruno@clisp.org>
69356
69357         * lib/localcharset.c: Update from GNU gettext 0.14.2.
69358         * lib/config.charset: Update from GNU gettext 0.14.2.
69359
69360 2005-02-24  Bruno Haible  <bruno@clisp.org>
69361
69362         * lib/gettext.h: Update from GNU gettext 0.14.2.
69363
69364 2005-02-23  Simon Josefsson  <jas@extundo.com>
69365
69366         * m4/iconvme.m4: New file.
69367
69368 2005-02-23  Jim Meyering  <jim@meyering.net>
69369
69370         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
69371         change.
69372         Thanks to Bruno Haible for catching it.
69373
69374 2005-02-22  Simon Josefsson  <jas@extundo.com>
69375
69376         * modules/iconvme: New file.
69377
69378         * MODULES.html.sh: Add iconvme.
69379
69380 2005-02-22  Simon Josefsson  <jas@extundo.com>
69381
69382         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69383
69384 2005-02-22  Simon Josefsson  <jas@extundo.com>
69385
69386         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69387
69388 2005-02-22  Jim Meyering  <jim@meyering.net>
69389
69390         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69391         s/ifndef/ifdef/.
69392
69393 2005-02-20  Neil Conway  <neilc@samurai.com>
69394
69395         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69396         returned by OSX/Darwin if the specified buffer is not large
69397         enough for the hostname.
69398
69399 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69400
69401         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69402         pass it to _help, otherwise the latter coredumps trying to
69403         dereference state.root_argp.
69404
69405 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         * modules/chdir-long (Depends-on): Add memrchr.
69408         * modules/memrchr (Files): Add lib/memrchr.h.
69409         (Include): "memrchr.h".
69410
69411 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69414
69415 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69416
69417         * lib/memrchr.h: New file.
69418         * lib/chdir-long.c: Include it.
69419         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69420         Don't bother including stddef.h.
69421
69422 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69423
69424         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69425         inclusion.
69426         Include <sys/types.h>, for dev_t.
69427         (ME_DUMMY, ME_REMOTE): Move from here....
69428         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69429         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69430         Dmitry V. Levin.
69431         Include mountlist.h first, to test the interface.
69432
69433 2005-01-29  Bruno Haible  <bruno@clisp.org>
69434
69435         * lib/progname.c (program_name): Initialize.
69436         Needed when linking statically on MacOS X.
69437
69438 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69439
69440         Sync from coreutils.
69441         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69442         (Depends-on): Add c-strtod.
69443         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69444
69445 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69446
69447         Sync from coreutils.
69448         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69449
69450         Remove files that are specific to coreutils.
69451         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69452
69453 2005-01-28  Bruno Haible  <bruno@clisp.org>
69454
69455         * modules/javacomp: New file.
69456         * MODULES.html.sh (Java): Add javacomp.
69457
69458 2005-01-28  Bruno Haible  <bruno@clisp.org>
69459
69460         * m4/javacomp.m4: New file, from GNU gettext.
69461
69462 2005-01-28  Bruno Haible  <bruno@clisp.org>
69463
69464         * lib/javacomp.sh.in: New file, from GNU gettext.
69465         * lib/javacomp.h: New file, from GNU gettext.
69466         * lib/javacomp.c: New file, from GNU gettext.
69467
69468 2005-01-26  Simon Josefsson  <jas@extundo.com>
69469
69470         * lib/gai_strerror.c: Use GPL in header.
69471
69472 2005-01-26  Bruno Haible  <bruno@clisp.org>
69473
69474         * modules/javaexec: New file.
69475         * MODULES.html.sh (Java): Add javaexec.
69476
69477 2005-01-26  Bruno Haible  <bruno@clisp.org>
69478
69479         * m4/javaexec.m4: New file, from GNU gettext.
69480
69481 2005-01-26  Bruno Haible  <bruno@clisp.org>
69482
69483         * lib/javaexec.sh.in: New file, from GNU gettext.
69484         * lib/javaexec.h: New file, from GNU gettext.
69485         * lib/javaexec.c: New file, from GNU gettext.
69486
69487 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69488
69489         * modules/lchown (Depends-on): Remove lchown.h
69490
69491 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69492
69493         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69494         must be defined if the header file was not found, in order
69495         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69496
69497 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69498
69499         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69500         initializers for struct pentry_state.
69501         (__argp_error): Check return value of __asprintf
69502         (__argp_failure): Translate error message
69503
69504         * lib/argp-parse.c: Removed braces around the expansion of N_()
69505
69506 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69507
69508         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69509         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69510         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69511         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69512         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69513         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69514         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69515         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69516         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69517         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69518         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69519         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69520         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69521         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69522         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69523         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69524         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69525         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69526         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69527         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69528         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69529         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69530         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69531         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69532         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69533         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69534         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69535         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69536         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69537         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69538         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69539         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69540         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69541         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69542         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69543         Use an all-permissive copyright notice, recommended by RMS.
69544
69545 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69546
69547         * modules/chdir-long (Depends-on): Remove mempcpy.
69548
69549 2005-01-21  Jim Meyering  <jim@meyering.net>
69550
69551         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69552         same value as for Solaris 9.
69553
69554         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69555         component length.  This included changing the parameter to be
69556         of type `char *' rather than `char const *'.
69557         * lib/chdir-long.h (chdir_long): Update prototype.
69558
69559         * lib/openat.c (fdopendir, fstatat): New functions.
69560         * lib/openat.h: Include headers required for use of DIR and struct
69561         stat.
69562         [AT_SYMLINK_NOFOLLOW]: Define.
69563         (fdopendir, fstatat): Add prototypes.
69564
69565 2005-01-21  Bruno Haible  <bruno@clisp.org>
69566
69567         * modules/classpath: New file.
69568         * MODULES.html.sh (Java): Add classpath.
69569
69570 2005-01-21  Bruno Haible  <bruno@clisp.org>
69571
69572         * lib/classpath.h: New file, from GNU gettext.
69573         * lib/classpath.c: New file, from GNU gettext.
69574
69575 2005-01-20  Simon Josefsson  <jas@extundo.com>
69576
69577         * modules/version-etc-fsf: New file.
69578
69579 2005-01-20  Simon Josefsson  <jas@extundo.com>
69580
69581         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69582         * lib/version-etc.c: Remove version_etc_copyright.
69583         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69584         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69585
69586 2005-01-20  Simon Josefsson  <jas@extundo.com>
69587
69588         * lib/base64.h (isbase64): Add.
69589
69590         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69591         using a unsigned prototype, don't inline.
69592         (base64_decode): Use it.
69593
69594 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69595
69596         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69597         it.
69598
69599 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69600
69601         * lib/save-cwd.c (save_cwd): Remove code to support the case
69602         where fchdir is missing or flaky.
69603
69604 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69605
69606         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69607
69608 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69609
69610         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69611         AC_LIBSOURCES now does this.
69612         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69613         with new ullong_max module.
69614
69615 2005-01-19  Bruno Haible  <bruno@clisp.org>
69616
69617         * modules/sh-quote: New file.
69618         * MODULES.html.sh (Executing programs): Add sh-quote.
69619
69620 2005-01-19  Bruno Haible  <bruno@clisp.org>
69621
69622         * lib/sh-quote.h: New file, from GNU gettext.
69623         * lib/sh-quote.c: New file, from GNU gettext.
69624
69625 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69626
69627         Merge from coreutils.
69628         * m4/ullong_max.m4: New file.
69629         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69630         (gl_MACROS): Assume localeconv exists.
69631
69632 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69633
69634         Merge changes from coreutils, as described below in several
69635         changelogs dated today.
69636
69637         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69638         (O_DIRECTORY): Remove; not needed here, since "." must be
69639         a directory.  All uses removed.
69640         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69641         universal on Suns, and we also need to test for IRIX.
69642         Revamp code to use 'if' rather than '#if'.
69643         Avoid unnecessary comparison of cwd->desc to 0.
69644
69645         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69646         for known valid error numbers rather than observed invalid ones.
69647
69648 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69649
69650         * modules/ullong_max: New file.
69651
69652         * modules/chdir-long, modules/openat: New files.
69653         * modules/save-cwd (Depends-on): Depend on chdir-long.
69654         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69655
69656 2005-01-18  Jim Meyering  <jim@meyering.net>
69657
69658         Merge from coreutils.
69659         * m4/chdir-long.m4, m4/openat.m4: New files.
69660         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69661         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69662         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69663         is sane and DOES follow symlinks.  Besides, testing 20 different
69664         systems found no broken chown implementations.
69665         Prompted by a change in rsync's copy of this macro.
69666         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69667
69668         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69669
69670         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69671         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69672         NULL-means-set-to-current-time semantics.
69673         Remove temporary file immediately, rather than waiting
69674         for configure's at-exit trap code to do it.
69675
69676 2005-01-18  Jim Meyering  <jim@meyering.net>
69677
69678         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69679
69680         * lib/utimens.c (futimens): Account for the fact that futimes
69681         can also fail with errno == ENOSYS or errno == ENOENT.
69682         Patch from Dmitry V. Levin.
69683
69684         Change the name of the robust chdir function from chdir to chdir_long.
69685         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69686         (restore_cwd): Use chdir_long, not chdir.
69687         * lib/chdir-long.c: Renamed from chdir.c.
69688         * lib/chdir-long.h: Renamed from chdir.h.
69689         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69690         Hurd.
69691
69692 2005-01-18  Bruno Haible  <bruno@clisp.org>
69693
69694         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69695         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69696         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69697         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69698         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69699         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69700         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69701         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69702         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69703         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69704         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69705         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69706         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69707         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69708         Use an all-permissive copyright notice, recommended by RMS.
69709
69710 2005-01-18  Bob Proulx  <bob@proulx.com>
69711
69712         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69713         simplify offsetof() macro construct to avoid compile failure with
69714         native HP-UX 11.0 ANSI C compiler.
69715
69716 2005-01-17  Bruno Haible  <bruno@clisp.org>
69717
69718         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69719         redundant because stpncpy.m4 takes care of it.
69720
69721 2005-01-17  Bruno Haible  <bruno@clisp.org>
69722
69723         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69724
69725 2005-01-17  Bruno Haible  <bruno@clisp.org>
69726
69727         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69728         used.
69729
69730 2005-01-17  Bruno Haible  <bruno@clisp.org>
69731
69732         * lib/fwriteerror.h (fwriteerror): Change specification to include
69733         fclose.
69734         * lib/fwriteerror.c: Include <stdbool.h>.
69735         (fwriteerror): At the end, close the file stream. Record whether
69736         stdout was already closed.
69737
69738 2005-01-17  Bruno Haible  <bruno@clisp.org>
69739
69740         * lib/execute.c (environ): Declare if needed.
69741         * lib/pipe.c (environ): Likewise.
69742         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69743
69744 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69745
69746         * modules/argp: Depend on vsnprintf
69747
69748 2005-01-10  Jim Meyering  <jim@meyering.net>
69749
69750         * modules/closeout (Depends-on): Add atexit.
69751
69752 2005-01-06  Bruno Haible  <bruno@clisp.org>
69753
69754         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69755
69756 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69757
69758         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69759         definitions to be after all include files, to avoid collisions.
69760         Problem reported by Bob Proulx.
69761
69762 2005-01-04  Jim Meyering  <jim@meyering.net>
69763
69764         Changes imported from coreutils.
69765         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69766         as the mkstemp template, use a temporary directory and an
69767         8.3-friendly template to avoid trouble on systems like DJGPP.
69768         Reported by Juan M. Guerrero via Stepan Kasal.
69769         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69770         close. Remove the temporary directory right away, rather than waiting
69771         for configure's at-exit trap code to do it.
69772         Suggestion from Stepan Kasal.
69773
69774 2005-01-01  Simon Josefsson  <jas@extundo.com>
69775
69776         * gnulib-tool: Print #include directives when --import'ing.
69777
69778 2004-12-28  Simon Josefsson  <jas@extundo.com>
69779
69780         * tests/test-base64.c: Include required header files.  Remove
69781         unused variables.
69782
69783 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69784
69785         * modules/error (Depends-on): Remove gettext.
69786
69787 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69788
69789         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69790         not needed.  This removes a dependency on the gettext module.
69791         [defined _LIBC]: Do not include <libintl.h>; not needed.
69792
69793 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69796         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69797
69798 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69799
69800         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69801         HAVE_DECL_STRTOLD.
69802
69803 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69804
69805         * modules/getdate (Depends-on): Remove alloca-opt.
69806
69807 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69808
69809         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69810
69811 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69812
69813         * lib/argp-parse.c: Include <stddef.h>.
69814         (alignof, alignto): New macros.
69815         (parser_init): Don't assume that void * is aligned sufficiently
69816         for struct option.
69817
69818         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69819         need to extend the stack.
69820         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69821         large.
69822
69823 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69824
69825         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69826
69827 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69828
69829         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69830         (2004-10-24) change.  Apparently this was a false alarm.
69831
69832         * modules/getdate: Depend on alloca-opt, not alloca.
69833
69834 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69835
69836         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69837         Remove now-obsolete comment about AIX.
69838         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69839         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69840         (YYMAXDEPTH): New macro.
69841
69842 2004-12-18  Simon Josefsson  <jas@extundo.com>
69843
69844         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69845
69846 2004-12-18  Bruno Haible  <bruno@clisp.org>
69847
69848         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69849
69850 2004-12-18  Bruno Haible  <bruno@clisp.org>
69851
69852         * lib/fatal-signal.c (fatal_signals): Make non-const.
69853         (init_fatal_signals): New function.
69854         (uninstall_handlers, install_handlers): Ignore signals that were set to
69855         SIG_IGN.
69856         (at_fatal_signal): Call init_fatal_signals.
69857         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69858         SIG_IGN.
69859         Reported by Paul Eggert.
69860
69861 2004-12-18  Bruno Haible  <bruno@clisp.org>
69862
69863         * doc/alloca.texi: New file.
69864         * doc/alloca-opt.texi: New file.
69865
69866 2004-12-17  Jim Meyering  <jim@meyering.net>
69867
69868         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69869         Otherwise, install-sh could exit with improper exit status when
69870         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69871
69872 2004-12-16  Simon Josefsson  <jas@extundo.com>
69873
69874         * tests/test-base64.c: Add license.
69875
69876 2004-12-15  Stepan Kasal  <address@hidden>
69877
69878         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69879
69880 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69881
69882         * modules/getcwd (Files): Add m4/d-ino.m4.
69883         Suggested by Mark D. Baushke.
69884
69885 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69886
69887         * lib/getdate.y (textint): New member "negative".
69888         (time_zone_hhmm): New function.
69889         Expect 14 shift-reduce conflicts, not 13.
69890         (o_colon_minutes): New rule.
69891         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69892         (yylex): Set the "negative" member of signed numbers.
69893
69894 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69895
69896         * doc/getdate.texi (Time of day items, Time zone items):
69897         Describe new formats +00:00, UTC+00:00.
69898
69899 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69900
69901         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69902         spurious "-l"s.  Problem reported by Stepan Kasal.
69903
69904 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69905
69906         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69907         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69908
69909 2004-12-04  Simon Josefsson  <jas@extundo.com>
69910
69911         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69912         Vandoorselaere <yoann@prelude-ids.org>.
69913
69914 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69915
69916         Changes imported from coreutils.
69917         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69918         exist.
69919         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69920
69921 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69922
69923         Changes imported from coreutils.
69924         * lib/hard-locale.c: Assume <locale.h> exists.
69925         Include "strdup.h".
69926         (GLIBC_VERSION): New macro.
69927         (hard_locale): Assume setlocale exists.
69928         Rewrite to avoid #ifdef.
69929         Use strdup rather than malloc + strcpy.
69930         * lib/human.c: Assume <locale.h> exists.
69931         (human_readable): Assume localeconv exists.
69932
69933 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69934
69935         * modules/hard-locale (Depends-on): Add strdup.
69936
69937 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69938
69939         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69940         convert T2, not T.  (Imported from libc.)
69941
69942 2004-11-30  Simon Josefsson  <jas@extundo.com>
69943
69944         * modules/restrict (License): Change to LGPL.
69945
69946 2004-11-30  Simon Josefsson  <jas@extundo.com>
69947
69948         * m4/restrict.m4: Add copyright and copying conditions.
69949
69950 2004-11-30  Simon Josefsson  <jas@extundo.com>
69951
69952         * m4/base64.m4: New file.
69953
69954 2004-11-30  Simon Josefsson  <jas@extundo.com>
69955
69956         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69957         base64.
69958
69959         * tests/test-base64.c: New file.
69960
69961         * modules/base64: New file.
69962
69963 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69964
69965         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69966         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69967
69968         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69969
69970 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69971
69972         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69973         (__getcwd.c): Don't restore errno; glibc doesn't.
69974         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69975         first, falling back to our code only if its results look suspicious.
69976         Ensure that the resulting buffer is only as large as necessary.
69977
69978         * lib/readutmp.c: Include readutmp.h first.
69979         Include <errno.h>, since readutmp.h no longer does that.
69980         * lib/readutmp.h: Don't include <errno.h>,
69981         <sys/param.h>, <time.h>; not needed to establish interface.
69982         (errno): Remove decl.
69983         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69984         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69985         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69986
69987 2004-11-28  Simon Josefsson  <jas@extundo.com>
69988
69989         * lib/base64.h, base64.c: New file.
69990
69991 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69994
69995 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69998         (Depends-on): Remove pathmax, same.  Add mempcpy.
69999         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70000         (Makefile.am): Append getcwd.h to lib_SOURCES.
70001         (Include): Add getcwd.h.
70002         (Maintainer): Change from Jim Meyering to "all, glibc",
70003         since getdate now uses intended-for-glibc code.
70004         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70005         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70006
70007 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70008
70009         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70010         HP's ANSI C compiler.
70011         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70012         Declaring int functions causes warnings on some modern systems and
70013         shouldn't be needed to compile on ancient ones.
70014         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70015         defined.
70016
70017         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70018         with the following changes.
70019         (__set_errno): Parenthesize properly.
70020         Include <stdbool.h>.
70021         (MIN, MAX, MATCHING_INO): New macros.
70022         (__getcwd): Define with prototype, not K&R form.
70023         Use heuristics to allocate default buffer on stack if possible.
70024         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70025         behavior, and to avoid the PATH_MAX limit when computing
70026         ../../../../...
70027         Use MATCHING_INO to compare inode number to file.
70028         Check for arithmetic overflow in size calculations.
70029         Fix bug in reallocation of dot array that caused getcwd to fail
70030         on directories nested deeper than 75.
70031         Be more careful about saving errno on error.
70032         Do not use realloc; use only free+malloc, as this is a bit
70033         more flexible and avoids a needless copy operation.
70034         Do not inspect st_dev and st_ino for symbolic links; POSIX
70035         doesn't specify the latter.
70036         Check for closedir errors.
70037         Avoid needless casts.
70038         Use "#ifdef weak_alias" around weak_alias, to be like other
70039         glibc code.
70040         The following changes to getcwd.c have effect only when used in
70041         gnulib; they have no effect inside glibc proper.
70042         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70043         as alloca isn't used.
70044         (alloca, __alloca): Likewise.
70045         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70046         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70047         unconditionally, as gnulib assumes C89 or better.
70048         Do not include <sys/param.h>.
70049         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70050         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70051         better.
70052         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70053         Include <dirent.h> in a way that is compatible with modern Autoconf.
70054         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70055         New macros, if not already defined.
70056         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70057         Use "_LIBC", not "defined _LIBC", for consistency.
70058         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70059         a mempcpy module.
70060         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70061         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70062         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70063         credit only to Jim Meyering and adjust the copyright dates.
70064         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70065         <stdlib.h>, <unistd.h>, "pathmax.h".
70066         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70067         (INITIAL_BUFFER_SIZE): Remove.
70068         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70069
70070 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70071
70072         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70073         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70074         Use the _ONCE methods, for efficiency.
70075         Check for fcntl.h.  In test program, include <errno.h>
70076         and <fcntl.h> if available.  Remove old K&R cruft from
70077         test program.  Check for common errors in GNU/Linux,
70078         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70079         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70080         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70081         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70082         name accordingly.
70083         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70084         accommodate new getcwd.c.
70085         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70086         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70087         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70088         that's all we need now.
70089
70090 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70091
70092         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70093         argp-parse.c depends on getopt internals, that means we should
70094         always use our getopt, to be on the safe side.
70095         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70096         order not to spoil the result of an eventual previous invocation
70097         of gl_GETOPT_SUBSTITUTE.
70098
70099 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70100
70101         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70102         redefinition warnings. To avoid them, include the defines
70103         in `#if !defined __need_getopt ... #endif'. The only place
70104         where __getopt_argv_const is used is in definitions
70105         of getopt_long and getopt_long_only below, which are as well
70106         protected by `#ifndef __need_getopt'.
70107         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70108         __need_getopt after including <stdio.h> and <unistd.h> These
70109         headers might have defined it.
70110
70111 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70114
70115 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70116
70117         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70118         (futimens): New function, which uses futimes if available.
70119         (futimens, utimens): Support timespec==NULL, with same semantics
70120         as utime and utimens.
70121         * lib/utimens.h (futimens): New decl.
70122
70123 2004-11-23  Jim Meyering  <jim@meyering.net>
70124
70125         * lib/getopt_.h: Remove trailing blanks.
70126
70127 2004-11-23  Jim Meyering  <jim@meyering.net>
70128
70129         * lib/__fpending.c: Add comment.
70130
70131 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70132
70133         * modules/canonicalize (Depends-on): Add xreadlink.
70134         Problem reported by James Youngman.
70135
70136 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70137
70138         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70139         New macros.
70140         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70141         optopt): Use them instead of invoking ## directly; otherwise, the
70142         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70143
70144 2004-11-19  Bruno Haible  <bruno@clisp.org>
70145
70146         * lib/strtok_r.c: Move comments from here...
70147         * lib/strtok_r.h: ... to here.
70148
70149 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70150
70151         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70152         implementations that mishandle size_t overflow.
70153
70154 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70155
70156         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70157         might fail.  Problem reported by Yoann Vandoorselaere.
70158         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70159         implementations that mishandle size_t overflow.
70160
70161 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70162
70163         * modules/canon-host (Depends-on): Add strdup.
70164
70165 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70168
70169 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70170
70171         * lib/canon-host.c: Include "strdup.h".
70172         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70173         Use strdup instead of malloc/strcpy to duplicate strings.
70174
70175         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70176         (human_space_before_unit): New constant.
70177         * lib/human.c (human_readable): Support it.
70178
70179         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70180         (xgetcwd): Set errno correctly when failing.
70181         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70182         the failure is actually due to a PATH_MAX problem.
70183
70184         Further getopt changes to make it more likely that glibc will
70185         buy the changes back.
70186         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70187         (getopt): Use it, so to preserve glibc semantic
70188         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70189         when compiling for libc.
70190         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70191         (getopt_long, getopt_long_only): Use it.
70192
70193         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70194         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70195         (getopt): Argv is now char * const *, as per standard.
70196         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70197         not char *__getopt_argv_const *.
70198         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70199         _getopt_long_only_r): Likewise.
70200         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
70201         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70202         _getopt_long_r, _getopt_long_only_r): Likewise.
70203         * lib/getopt_.h (__getopt_argv_const): Remove.
70204         (getopt): Argv is now char * const *, as per standard.
70205
70206         * lib/getdate.y (tORDINAL): New token.
70207         (day, relunit): Allow it for relative times.
70208         (relative_time_table): Use tORDINAL for ordinals.
70209
70210 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70211
70212         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
70213         Document that "second" isn't allowed as an ordinal number.
70214
70215 2004-11-16  Jim Meyering  <jim@meyering.net>
70216
70217         * modules/closeout (Depends-on): Add fpending.
70218
70219 2004-11-15  Jim Meyering  <jim@meyering.net>
70220
70221         * lib/closeout.c: Include "__fpending.h" once again.
70222         Include <stdbool.h>.
70223         (close_stdout): Don't fail just because stdout was closed initially,
70224         since some programs don't write to stdout in the normal course of
70225         operation (other than --version and --help), and we don't want this
70226         function to make e.g. `touch file >&-' fail.
70227         But do fail if it was closed and someone has tried to write to it.
70228         E.g., `printf foo >&-' must fail.
70229
70230 2004-11-13  Jim Meyering  <jim@meyering.net>
70231
70232         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
70233
70234 2004-11-12  Simon Josefsson  <jas@extundo.com>
70235
70236         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
70237         small doc fix is still pending.
70238
70239 2004-11-11  Simon Josefsson  <jas@extundo.com>
70240
70241         * modules/strtok_r: New file.
70242
70243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70244         strtok_r.
70245
70246 2004-11-11  Simon Josefsson  <jas@extundo.com>
70247
70248         * m4/strtok_r.m4: New file.
70249
70250         * m4/getopt.m4: Replace opterr.
70251
70252 2004-11-11  Simon Josefsson  <jas@extundo.com>
70253
70254         * lib/strtok_r.h, strtok_r.c: New file.
70255
70256 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70257
70258         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
70259         of replacing opterr, getopt, etc.  This should handle the
70260         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
70261
70262 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70263
70264         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
70265         we can stop lying to compilers about the constness of argv when we
70266         are compiled outside glibc.
70267         (getopt, getopt_long, getopt_long_only): Use it.
70268         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70269         _getopt_internal, getopt): Likewise.
70270         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70271         _getopt_long_only_r): Likewise.
70272         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70273         _getopt_long_r, _getopt_long_only_r): Likewise.
70274
70275         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70276         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70277         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70278         the other external symbols.
70279         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70280         declaration, since the above renaming now works around collisions.
70281
70282 2004-11-11  Jim Meyering  <jim@meyering.net>
70283
70284         * lib/linebreak.c: Remove trailing blanks.
70285         * lib/alloca_.h: Likewise.
70286         * lib/acosl.c: Likewise.
70287         * lib/euidaccess.c: Likewise.
70288         * lib/allocsa.h: Likewise.
70289
70290 2004-11-10  Simon Josefsson  <jas@extundo.com>
70291
70292         * m4/getaddrinfo.m4: New file.
70293
70294 2004-11-10  Simon Josefsson  <jas@extundo.com>
70295
70296         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70297
70298 2004-11-10  Simon Josefsson  <jas@extundo.com>
70299
70300         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70301         getaddrinfo.
70302
70303         * modules/getaddrinfo: New file.
70304
70305 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70306
70307         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70308
70309 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70310
70311         * lib/mktime.c (SHR): New macro, which is a portable
70312         substitute for >> that should work even on Crays.
70313         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70314         Problem reported by Mark D. Baushke in
70315         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70316         * lib/getdate.y (SHR): Likewise.
70317         (tm_diff): Use it.
70318         * lib/strftime.c (SHR): Likewise.
70319         (tm_diff): Use it.
70320         * lib/quotearg.c (struct quoting_options): Use unsigned int for
70321         quote_these_too, so that right shifts are well defined.  All uses
70322         changed.
70323
70324 2004-11-10  Jim Meyering  <jim@meyering.net>
70325
70326         Ensure that no close failure goes unreported.
70327         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
70328         return early when it seems there's nothing to flush.
70329         Don't include __fpending.h.
70330
70331 2004-11-10  Jim Meyering  <jim@meyering.net>
70332
70333         * modules/closeout (Depends-on): Remove fpending.
70334
70335 2004-11-10  Jim Meyering  <jim@meyering.net>
70336
70337         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70338
70339 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70340
70341         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
70342         gl_FUNC_STRFTIME.
70343         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
70344         and AC_REQUIRE when possible, to avoid duplicate checks.
70345         Check for <wchar.h>.
70346
70347 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70348
70349         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
70350
70351 2004-11-09  Bruno Haible  <bruno@clisp.org>
70352
70353         * m4/sockpfaf.m4: New file.
70354
70355 2004-11-05  Bruno Haible  <bruno@clisp.org>
70356
70357         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
70358         Reported by Mark D. Baushke <mdb@cvshome.org>.
70359
70360 2004-11-04  Bruno Haible  <bruno@clisp.org>
70361
70362         2004-09-11  Bruno Haible  <bruno@clisp.org>
70363                 * allocsa.valgrind: New file.
70364         2004-02-06  Bruno Haible  <bruno@clisp.org>
70365                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
70366                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
70367                 Reported by Christopher Seip <chris.seip@hp.com>.
70368
70369 2004-11-04  Bruno Haible  <bruno@clisp.org>
70370
70371         * modules/allocsa (Files): Add lib/allocsa.valgrind.
70372         (Makefile.am): Distribute it.
70373
70374 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70375
70376         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70377         with errno == ERANGE if the buffer is too small.
70378         Problem reported by Mark D. Baushke.
70379
70380 2004-11-03  Albert Chin  <china@thewrittenword.com>
70381             Paul Eggert  <eggert@cs.ucla.edu>
70382
70383         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70384         equivalent, substitute $ac_type for equivalent type rather than
70385         blindly using uint32_t *always* which won't work if uint32_t is not
70386         available.  Define _UINT32_T to work around typedef of uint32_t if
70387         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70388         2.5.1.
70389
70390 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70391
70392         * m4/jm-macros.m4: Sync from coreutils.
70393         (gl_MACROS): Check for mbrlen, for pathchk.
70394         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70395
70396 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70397
70398         * lib/xreadlink.c (MAXSIZE): New macro.
70399         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70400         size does not exceed MAXSIZE.  Avoid cast.
70401         As suggested by Mark D. Baushke in
70402         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70403         if readlink fails with buffer size just under MAXSIZE, try again
70404         with MAXSIZE.
70405
70406 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70407
70408         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70409
70410 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70411         and  Paul Eggert  <eggert@cs.ucla.edu>
70412
70413         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70414         (get_date): Overparenthesize to avoid GCC warning.
70415
70416 2004-11-02  Bruno Haible  <bruno@clisp.org>
70417
70418         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70419         returns void.
70420
70421 2004-11-02  Bruno Haible  <bruno@clisp.org>
70422
70423         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70424         function returns void.
70425
70426 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70429         fflush_unlocked, flockfile, funlockfile, funlockfile,
70430         fputs_unlocked, putc_unlocked.
70431
70432 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70433
70434         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70435         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70436         already declared.
70437
70438 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * modules/getdate (Files): Add doc/getdate.texi.
70441         (Depends-on): Add setenv, xalloc.
70442
70443 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70444
70445         * lib/getdate.y: Add support for TZ="foo" within a date string.
70446         Fix some bugs near time_t boundaries.  Reject dates with
70447         out-of-range components, e.g., "Sept 31".
70448         Include <stdlib.h>, "setenv.h", "xalloc.h".
70449         (ISDIGIT_LOCALE): Remove; unused.
70450         Note that the TZ and time functions used here are not reentrant.
70451         (mktime_ok, get_tz): New functions.
70452         (TZBUFSIZE): New constant.
70453         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70454         This requires that we sometimes generate our own TZ="XXX..." setting.
70455
70456 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70457
70458         * doc/getdate.texi: New file, from coreutils with modifications for
70459         the new TZ parsing.
70460
70461 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70462
70463         * lib/mktime.c (not_equal_tm): Remove redundant check.
70464
70465 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70466
70467         * modules/regex (lib_SOURCES): Add regex.c.
70468         Reported by James Youngman in
70469         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70470
70471 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         * lib/getdate.y: Use Bison 1.875 features, and some minor
70474         code cleanups.  This change does not affect semantics.
70475         Don't include <stdlib.h>; no longer needed.
70476         Don't include unlocked-io.h; only the "#if TEST" code uses
70477         stdio, and performance isn't crucial there.
70478         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70479         Bison 1.875 features as described below.
70480         All uses of "PC." replaced by "pc->".
70481         (YYSTYPE): Add a forward declaration.
70482         (yylex, yyerror): Use full prototypes in forward decls.
70483         Use "%pure-parser" rather than obsolescent "%pure_parser".
70484         Use %parse-param and %lex-param instead of obsolescent
70485         YYPARSE_PARAM and YYLEX_PARAM.
70486         (meridian_table, month_and_day_table, time_units_table,
70487         relative_time_table, time_zone_table, military_table,
70488         lookup_zone, lookup_word, get_date):
70489         Use NULL instead of 0 where appropriate.
70490         (to_hour): Avoid abort (), to avoid a dependency on
70491         stdlib.h.
70492         (yyerror, yylex): Now accepts parser_control * arg.
70493         (main) [TEST]: Use '\0' rather than 0 for char.
70494
70495 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70496
70497         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70498
70499 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70500
70501         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70502         It's now the caller's responsibility to handle the case where
70503         !HAVE_GETPAGESIZE && !defined getpagesize.
70504
70505         * lib/mktime.c (leapyear): Arg is long int, not int.
70506
70507 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70508
70509         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70510
70511 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70514         missing.  Problem reported by James Youngman.
70515
70516 2004-10-16  Simon Josefsson  <jas@extundo.com>
70517
70518         * gnulib-tool: Fix comments.  Fix parse problem.
70519         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70520
70521 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70522
70523         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70524         implementation of getopt_long.  Problem reported by Alexander Taler in:
70525         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70526
70527 2004-10-15  Bruno Haible  <bruno@clisp.org>
70528
70529         * gnulib-tool: Untabify. Initialize supplied_libname.
70530         (func_usage): More homogenous output.
70531         (func_modules_transitive_closure, func_modules_to_filelist,
70532         func_emit_lib_Makefile_am): New functions.
70533         (func_import): New function, extracted from big case statement. Use
70534         func_get_license, func_modules_transitive_closure,
70535         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70536         opt_lgpl. Don't use test -a, as it's not portable.
70537         (func_create_testdir): Use func_modules_transitive_closure,
70538         func_modules_to_filelist, func_emit_lib_Makefile_am.
70539
70540 2004-10-15  Bruno Haible  <bruno@clisp.org>
70541
70542         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70543
70544 2004-10-15  Bruno Haible  <bruno@clisp.org>
70545
70546         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70547         the portions belonging to each module.
70548         Suggested by Derek Robert Price <derek@ximbiot.com>.
70549
70550 2004-10-12  Simon Josefsson  <jas@extundo.com>
70551
70552         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70553         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70554         to real functions.
70555
70556 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70557
70558         * modules/vsnprintf: New file.
70559
70560 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70561
70562         * m4/vsnprintf.m4: New file.
70563
70564 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70565
70566         * lib/vsnprintf.h: New file.
70567         * lib/vsnprintf.c: New file.
70568
70569 2004-10-11  Bruno Haible  <bruno@clisp.org>
70570
70571         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70572         vsnprintf.
70573
70574 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70575
70576         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70577
70578 2004-10-07  Bruno Haible  <bruno@clisp.org>
70579
70580         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70581         fits into the provided buffer.
70582
70583 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70584
70585         * lib/diacrit.c, diacrit.h: Add GPL notice.
70586
70587         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70588         notice.
70589         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70590         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70591         This avoids a potential constant-folding bug.
70592
70593 2004-10-05  Bruno Haible  <bruno@clisp.org>
70594
70595         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70596         for the declaration of strsep.
70597
70598 2004-10-05  Bruno Haible  <bruno@clisp.org>
70599
70600         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70601
70602 2004-10-04  Simon Josefsson  <jas@extundo.com>
70603
70604         * modules/memmem: New file.
70605         * tests/test-memmem.c: New file.
70606         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70607
70608 2004-10-04  Simon Josefsson  <jas@extundo.com>
70609
70610         * m4/memmem.m4: New file.
70611
70612 2004-10-04  Simon Josefsson  <jas@extundo.com>
70613
70614         * lib/memmem.h: New file.
70615         * lib/memmem.c: New file, taken from glibc.
70616
70617 2004-10-04  Simon Josefsson  <jas@extundo.com>
70618
70619         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70620         '#ifdef USE_UNLOCKED_IO'.
70621
70622 2004-10-04  Simon Josefsson  <jas@extundo.com>
70623
70624         * config/srclist.txt: Add memmem from glibc.
70625
70626 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70629
70630         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70631         modules/exclude, modules/getdate, modules/getline,
70632         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70633         modules/getusershell, modules/linebuffer, modules/md5,
70634         modules/mountlist, modules/posixtm, modules/readtokens,
70635         modules/readutmp, modules/regex, modules/sha1,
70636         modules/version-etc, modules/yesno:
70637         Remove dependency on unlocked-io.
70638
70639 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70640
70641         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70642
70643         * m4/unlocked-io.m4: Add copyright notice.
70644         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70645
70646 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70647
70648         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70649         * lib/xmalloc.c (xmemdup): Likewise.
70650         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70651         XFREE): Remove these long-obsolescent macros.
70652         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70653         * lib/xstrdup.c: Remove.
70654
70655         * lib/regex.c (re_comp): Cast gettext return value to char *,
70656         Problem reported by Martin Neitzel via Mark D. Baushke.
70657
70658 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70659
70660         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70661         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70662         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70663         regex.c, sha1.c, version-etc.c, yesno.c:
70664         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70665         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70666         the includer's responsibility.
70667
70668         Sync from coreutils.
70669
70670         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70671         points to the start of a string, as the C Standard says the
70672         resulting behavior is undefined.
70673
70674         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70675         simple -> simple_backups, numbered_existing ->
70676         numbered_existing_backups, numbered -> numbered_backups
70677         to avoid shadowing problems.  All uses changed.
70678         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70679         * lib/backupfile.c (check_extension, numbered_backup):
70680         Rename locals to avoid shadowing 'basename'.
70681         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70682         once.
70683
70684         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70685         * lib/.cvsignore: Add getopt.h.
70686
70687 2004-10-04  Bruno Haible  <bruno@clisp.org>
70688
70689         * modules/README: New file.
70690         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70691         not a module.
70692
70693 2004-10-02  Jim Meyering  <jim@meyering.net>
70694
70695         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70696
70697 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70698
70699         * modules/strsep: New file.
70700
70701 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70702
70703         * m4/strsep.m4: New file.
70704
70705 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70706
70707         * lib/strsep.h: New file.
70708         * lib/strsep.c: New file.
70709
70710 2004-10-01  Simon Josefsson  <jas@extundo.com>
70711
70712         * lib/snprintf.c (snprintf): Handle size==0.
70713
70714 2004-10-01  Simon Josefsson  <jas@extundo.com>
70715             Bruno Haible  <bruno@clisp.org>
70716
70717         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70718         (snprintf): Declare 'args'.
70719
70720 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         * lib/snprintf.c: Remove comments as to why each header is needed.
70723
70724 2004-10-01  Bruno Haible  <bruno@clisp.org>
70725
70726         * MODULES.html.sh: Add strsep.
70727
70728 2004-09-30  Simon Josefsson  <jas@extundo.com>
70729
70730         * modules/snprintf: New file.
70731
70732 2004-09-30  Simon Josefsson  <jas@extundo.com>
70733
70734         * m4/snprintf.m4: New file.
70735
70736 2004-09-30  Simon Josefsson  <jas@extundo.com>
70737
70738         * lib/snprintf.h, lib/snprintf.c: New files.
70739
70740 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70741
70742         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70743         (hol_entry_help): Never translate an empty string.
70744         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70745         * lib/argp.h (OPTION_NO_TRANS): New option.
70746
70747 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70748
70749         * modules/argp (Maintainer): Replace Simon Josefsson
70750         by Sergey Poznyakoff.
70751
70752 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70753
70754         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70755         changes merged back into glibc.
70756
70757 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70758
70759         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70760
70761 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70762
70763         * lib/xvasprintf.c: Include xalloc.h.
70764         (xvasprintf): Use xalloc_die, not xmalloc_die.
70765
70766 2004-09-29  Bruno Haible  <bruno@clisp.org>
70767
70768         * modules/alloca-opt: New file, derived from modules/alloca.
70769         * modules/allocsa: Depend on alloca-opt instead of alloca.
70770         * modules/setenv: Likewise.
70771         * modules/vasnprintf: Likewise.
70772         * MODULES.html.sh: Add alloca-opt.
70773
70774 2004-09-28  Simon Josefsson  <jas@extundo.com>
70775
70776         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70777         LGPL, and to replace license template from GPL to LGPL.
70778
70779 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70780
70781         * modules/dummy: Change license to LGPL.
70782
70783 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70784
70785         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70786
70787 2004-09-24  Simon Josefsson  <jas@extundo.com>
70788
70789         * modules/minmax (License): Change from GPL to LGPL.
70790
70791 2004-09-23  Simon Josefsson  <jas@extundo.com>
70792
70793         * gnulib-tool (--import): Typo.
70794
70795 2004-09-23  Simon Josefsson  <jas@extundo.com>
70796
70797         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70798
70799 2004-09-22  Bruno Haible  <bruno@clisp.org>
70800
70801         * modules/*: Add 'License' field.
70802         * gnulib-tool: Accept --extract-license option.
70803         (func_get_license): New function.
70804
70805 2004-09-21  Bruno Haible  <bruno@clisp.org>
70806
70807         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70808         Reported by Simon Josefsson.
70809
70810 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70811
70812         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70813         gl_AC_TYPE_LONG_LONG.
70814
70815 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70818
70819 2004-09-18  Simon Josefsson  <jas@extundo.com>
70820         and  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70823         calls with autoreconf.  Define GL_LIB.
70824
70825 2004-09-14  Karl Berry  <karl@gnu.org>
70826
70827         * config/srclist.txt: unsync setenv.c, sigh.
70828
70829 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70830
70831         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70832         Problem reported by Bruno Haible in:
70833         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70834
70835 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70836
70837         * config/srclist.txt: Comment out argp-pvh.c.
70838
70839 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70840
70841         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70842         in case some system header has #define'd it.  Problem reported by
70843         Soeren D. Schulze in
70844         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70845
70846 2004-09-09  Karl Berry  <karl@gnu.org>
70847
70848         * regex.[ch]: delete from the root.  These were supposed to be
70849                 synced with emacs cvs, but this has not happened for about
70850                 a year, and anyway nothing else uses emacs regex.[ch].
70851                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70852                 lib/regex[.ch] is untouched.
70853
70854 2004-09-09  Bruno Haible  <bruno@clisp.org>
70855
70856         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70857
70858 2004-09-09  Bruno Haible  <bruno@clisp.org>
70859
70860         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70861         modifications.
70862         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70863
70864 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70865
70866         * modules/xvasprintf: New file.
70867         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70868
70869 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70870
70871         * lib/xvasprintf.h: New file.
70872         * lib/xvasprintf.c: New file.
70873         * lib/xasprintf.c: New file.
70874
70875 2004-09-08  Bruno Haible  <bruno@clisp.org>
70876
70877         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70878
70879 2004-09-08  Bruno Haible  <bruno@clisp.org>
70880
70881         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70882         length is > INT_MAX.
70883         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70884         more.
70885
70886 2004-09-08  Bruno Haible  <bruno@clisp.org>
70887
70888         * lib/stdint_.h: New file, taken from GNU clisp.
70889
70890 2004-09-08  Bruno Haible  <bruno@clisp.org>
70891             Oskar Liljeblad  <oskar@osk.mine.nu>
70892
70893         * modules/stdint: New file.
70894         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70895
70896 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70897
70898         Import from coreutils.
70899         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70900         strings on unbounded length.  alloca's performance benefits aren't
70901         that important here.
70902         (V_STRDUP): Remove.
70903         (parse_with_separator): New function, with most of the internals
70904         of the old parse_user_spec.  Allow user to omit both user and group,
70905         for compatibility with FreeBSD.
70906         Clone only the user name, not the entire spec.
70907         Do not set *uid, *gid unless entirely successful.
70908         Avoid memory leak in some failing cases.
70909         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70910         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70911         (parse_user_spec): Rewrite to use parse_with_separator.
70912
70913 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70914
70915         * modules/userspec: Don't depend on alloca.
70916
70917 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70918
70919         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70920
70921 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70922
70923         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70924         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70925         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70926
70927 2004-08-16  Simon Josefsson  <jas@extundo.com>
70928
70929         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70930         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70931         Add --dry-run for --import.
70932         Let user provided command line parameters override configure.ac
70933         settings.
70934
70935 2004-08-12  Simon Josefsson  <jas@extundo.com>
70936
70937         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70938         as discussed with Paul Eggert in threads rooted at
70939         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70940         and
70941         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70942         Before, the test was empty, and relied on ELIDE_CODE in source
70943         code.)
70944         (gl_PREREQ_GETOPT): New macro.
70945         (gl_GETOPT): Use them.
70946
70947 2004-08-12  Simon Josefsson  <jas@extundo.com>
70948
70949         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70950         * lib/getopt_.h: Renamed from getopt.h.
70951
70952 2004-08-12  Simon Josefsson  <jas@extundo.com>
70953
70954         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70955         Change default library name from libfoo to libgnu.
70956         Now, if you have a configure.ac that says:
70957                 gl_SOURCE_BASE(gl)
70958                 gl_M4_BASE(gl/m4)
70959                 gl_MODULES(error getopt etcetera)
70960                 gl_INIT
70961         you can import all you need by running:
70962                 ../gnulib/gnulib-tool --import
70963
70964         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70965         (Makefile.am): Rewrite, use logic from argz.
70966         (Include): Use <getopt.h> instead of "getopt.h".
70967
70968 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70969
70970         * modules/argp (Files): Add m4/unlocked-io.m4.
70971         (Depends-on): Add extensions.
70972
70973 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70974
70975         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70976         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70977         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70978         Check for program_invocation_name, program_invocation_short_name,
70979         flockfile, funlockfile, features.h, _getopt_long_only_r.
70980
70981 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70984         its complicated substitute.
70985         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70986         and program_invocation_name.
70987         (__argp_basename) [!_LIBC]: Remove; the only use was
70988         replaced by its body.
70989         (__argp_short_program_name): Change condition from
70990         !defined __argp_short_program_name to
70991         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70992         to match argp-namefrob.h.
70993         (__argp_failure): Don't assume strerror_r returns char *.
70994         * lib/argp-parse.c (N_): Define unconditionally.
70995         (argp_default_options): Fill out initializers with 0 to avoid
70996         gcc warnings.
70997
70998 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70999
71000         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71001         getopt1.c.
71002
71003 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71004
71005         Merge from coreutils.
71006
71007         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71008
71009         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71010         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71011
71012 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71013
71014         Merge from coreutils.
71015
71016         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71017         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71018         for Reliant Unix 5.43.
71019
71020         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71021         (union fooround): Use uintmax_t, not long int.
71022         The rest is a merge from libc:
71023         [defined _LIBC]: Include <shlib-compat.h>.
71024         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71025
71026         * lib/settime.c (settime): Recode to avoid warning with
71027         Sun Forte C 6U2.
71028
71029         * lib/strverscmp.c: Convert to UTF-8.
71030
71031 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71032
71033         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71034         m4/uintmax_t.m4.
71035
71036 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71037
71038         * modules/xalloc-die: New file.
71039         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71040
71041         * modules/md5 (Files): Add m4/uint32_t.m4.
71042         * modules/sha1: Renamed from modules/sha.
71043         (Files):
71044         Rename lib/sha.h to lib/sha1.h.
71045         Rename lib/sha.c to lib/sha1.c.
71046         Rename m4/sha.m4 to m4/sha1.m4.
71047         (lib_SOURCES): Likewise.
71048         (configure.ac): Rename gl_SHA to gl_SHA1.
71049         (Include): sha.h -> sha1.h.
71050
71051 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71052
71053         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71054         * m4/sha1.m4: Renamed from sha.m4.
71055         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71056
71057 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71058
71059         * lib/obstack.h (obstack_empty_p):
71060         Don't assume that chunk->contents is suitably aligned.
71061         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71062         Likewise. Problem reported by Benno in
71063         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71064
71065         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71066         readable.  This could be improved further but it'd take some work.
71067
71068 2004-08-08  Simon Josefsson  <jas@extundo.com>
71069
71070         * modules/xgethostname (Depends-on): Remove exit and error (not
71071         used).
71072
71073         * modules/getpass-gnu: Add getpass.h.
71074         (Depends-on): Add stdbool.
71075         * modules/getpass: Add getpass.h.
71076
71077 2004-08-08  Simon Josefsson  <jas@extundo.com>
71078
71079         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71080         Check getpass declaration.
71081
71082 2004-08-08  Simon Josefsson  <jas@extundo.com>
71083
71084         * lib/xgethostname.c: Don't include error.h (not used).
71085
71086         * lib/getpass.h: Add.
71087         * lib/getpass.c: Include getpass.h first.
71088
71089 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71090
71091         * lib/xalloc-die.c: New file.
71092         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71093         All uses removed.
71094         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71095         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71096         xalloc-die.c.
71097         (_, N_, xalloc_die): Move to xalloc-die.c.
71098         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71099         so that we needn't mess with xalloc_msg_memory_exhausted.
71100
71101         * lib/sha1.h: Renamed from sha.h.
71102         (SHA1_H): Renamed from _SHA_H.
71103         (sha1_ctx): Renamed from sha_ctx.
71104         (sha1_init_ctx): Renamed from sha_init_ctx.
71105         (sha1_process_block): Renamed from sha_process_block.
71106         (sha1_process_bytes): Renamed from sha_process_bytes.
71107         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71108         (sha1_read_ctx): Renamed from sha_read_ctx.
71109         (sha1_stream): Renamed from sha_stream.
71110         (sha1_buffer): Renamed from sha_buffer.
71111         * lib/sha1.c: Likewise; renamed from sha.c.
71112         Do not include <sys/types.h>.
71113         Include <stddef.h> rather than <stdlib.h>.
71114
71115 2004-08-08  Bruno Haible  <bruno@clisp.org>
71116
71117         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71118         FILESYSTEM_PREFIX_LEN.
71119         * lib/progreloc.c: Likewise.
71120         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71121
71122 2004-08-06  Simon Josefsson  <jas@extundo.com>
71123
71124         * modules/progname (Depends-on): Don't depend on stdbool.
71125
71126 2004-08-06  Simon Josefsson  <jas@extundo.com>
71127
71128         * modules/getsubopt: New file.
71129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71130         getsubopt.
71131
71132 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71133
71134         More merge from coreutils.
71135
71136         * m4/utimens.m4, m4/utimecmp.m4: New files.
71137         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71138         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71139         prereq.m4, sha.m4: Import changes from coreutils.
71140
71141 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71142
71143         More merge from coreutils.
71144         * modules/raise, modules/readtokens0, modules/utimens:
71145         * modules/utimecmp, module/xnanosleep: New files.
71146         * modules/strftime: Add lib/strftime.h.
71147         Change include from <time.h> to "strftime.h".
71148         * modules/yesno: Add lib/yesno.h.
71149         * modules/backupfile: Remove lib/addext.c.
71150         * modules/euidaccess: Add stat-macros.h.
71151         * modules/canonicalize, modules/euidaccess,
71152         modules/filemode, modules/lchown, modules/makepath,
71153         modules/rmdir, modules/stat: Likewise.
71154
71155 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71156
71157         Merge from tar.
71158         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71159         SIZE_MAX is a valid preprocessor constant.
71160         (__argp_basename): Change from "#ifndef _LIBC"
71161         to "#ifndef __argp_short_program_name", so that
71162         we don't compile these functions for tar.
71163
71164         More merges from coreutils.
71165         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71166         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71167         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71168         * lib/addext.c: Remove; no longer needed.
71169         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71170         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71171         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71172         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71173         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71174         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71175         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71176         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71177         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71178         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71179         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71180         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71181         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71182         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71183         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71184         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71185         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71186         Import changes from coreutils.
71187
71188 2004-08-05  Simon Josefsson  <jas@extundo.com>
71189
71190         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71191
71192 2004-08-05  Simon Josefsson  <jas@extundo.com>
71193
71194         * m4/getsubopt.m4: New file.
71195
71196 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71197
71198         Merge from coreutils.
71199
71200         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
71201         * m4/getcwd-path-max.m4: New files.
71202
71203         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
71204         FILESYSTEM_PREFIX_LEN ->
71205         FILE_SYSTEM_PREFIX_LEN.
71206         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
71207         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
71208         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
71209         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
71210
71211         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
71212         prerequisite modules now handle the DOS stuff.
71213         Don't check for unistd.h.
71214
71215 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         Merge from coreutils.
71218
71219         * lib/.gdb-history: Remove; this doesn't belong here.
71220
71221         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
71222         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
71223         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
71224         * lib/getcwd.c: New files.
71225
71226         * lib/dirname.h: Include <stdbool.h>.
71227         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
71228         for consistency with POSIX terminology.  All uses changed.
71229         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
71230         (strip_trailing_slashes): Use bool for booleans.
71231         * lib/stripslash.c (strip_trailing_slashes): Likewise.
71232
71233         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
71234         sometimes returns a positive errno value even when it succeeds.
71235         (print_errno_message) [!LIBC]: Fall back on strerror if
71236         __strerror_r fails.
71237
71238         * lib/path-concat.c (mempcpy): Don't define if a system header defines
71239         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
71240         (longest_relative_suffix): New function.
71241         (path_concat): Use it.  Assume first argument is not NULL.
71242         Port to DOS.  Omit redundant separators.
71243         Report an error instead of returning NULL.
71244         Use mempcpy instead of memcpy.
71245         (xpath_concat): Remove: not declared or used.
71246
71247         * lib/same.h: Include <stdbool.h>
71248         (same_name): Return bool, not int.
71249         * lib/same.c (same_name): Likewise.
71250         (errno): Don't declare; we assume C89 or better now.
71251
71252         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
71253         if not already defined.
71254
71255         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
71256         * lib/dup-safer.c (errno): Likewise.
71257
71258 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71259
71260         Merge from coreutils.
71261         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
71262         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
71263         * modules/path-concat: Don't depend on strdup.
71264
71265 2004-08-03  Simon Josefsson  <jas@extundo.com>
71266
71267         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
71268         * lib/progname.h: Don't include stdbool.h.
71269
71270 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71271
71272         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71273         * MODULES.html.sh (func_all_modules): Remove fatal.
71274
71275 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71276
71277         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71278
71279 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71280
71281         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71282         working.
71283
71284 2004-08-02  Simon Josefsson  <jas@extundo.com>
71285
71286         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71287         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71288         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71289
71290 2004-08-01  Simon Josefsson  <jas@extundo.com>
71291
71292         * lib/xgetdomainname.c: Include stdlib.h, for free().
71293
71294 2004-07-19  Bruno Haible  <bruno@clisp.org>
71295
71296         * MODULES.html.sh (func_all_modules): Add dummy.
71297
71298 2004-07-16  Simon Josefsson  <jas@extundo.com>
71299
71300         * modules/dummy: New file.
71301
71302 2004-07-16  Simon Josefsson  <jas@extundo.com>
71303
71304         * lib/dummy.c: New file.
71305
71306 2004-07-16  Bruno Haible  <bruno@clisp.org>
71307
71308         * lib/backupfile.h: Add extern "C" for C++.
71309         * lib/closeout.h: Likewise.
71310         * lib/copy-file.h: Likewise.
71311         * lib/findprog.h: Likewise.
71312         * lib/full-write.h: Likewise.
71313         * lib/pathname.h: Likewise.
71314         * lib/progname.h: Likewise.
71315         * lib/stpcpy.h: Likewise.
71316         * lib/stpncpy.h: Likewise.
71317         * lib/strcase.h: Likewise.
71318         * lib/strstr.h: Likewise.
71319         * lib/xalloc.h: Likewise.
71320
71321         * lib/mbswidth.h: Add extern "C" for C++.
71322         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
71323
71324 2004-07-13  Robert Millan  <robertmh@gnu.org>
71325
71326         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
71327
71328 2004-07-09  Simon Josefsson  <jas@extundo.com>
71329
71330         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
71331         failed without this.)
71332
71333 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71334
71335         * modules/chown (Files): Add lib/fchown-stub.c, since
71336         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
71337
71338 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71339
71340         * lib/fchown-stub.c: New file.
71341
71342 2004-06-24  Jim Meyering  <jim@meyering.net>
71343
71344         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
71345
71346 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71347
71348         * modules/argz: Omit "#include".
71349
71350         * MODULES.html.sh (func_all_modules): Add calloc, to match
71351         2004-06-01 addition of calloc module.
71352
71353 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71354
71355         * m4/argz.m4: New file, which is autoupdated from libtool.
71356
71357 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
71360         libtool.
71361
71362 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71363
71364         * config/srclist-update: Don't insist on "USA." before the
71365         close-comment, as libtool omits the period and puts the */ on a
71366         separate line.
71367         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
71368         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
71369
71370 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
71371
71372         * modules/argz: New file.
71373         * MODULES.html.sh (func_all_modules): Add argz.
71374
71375 2004-06-12  Jim Meyering  <jim@meyering.net>
71376         and  Paul Eggert  <eggert@cs.ucla.edu>
71377
71378         * modules/hash (Files): Add lib/xalloc.h.
71379         * modules/pipe (Depends-on): Add wait-process.
71380         * modules/stat (Depends-on): Add xalloc.
71381         * modules/userspec (Files): Add lib/userspec.h.
71382         * modules/xstrto
71383
71384         Upgrade from gettext-0.13.
71385         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71386         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71387         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71388
71389 2004-06-10  Jim Meyering  <jim@meyering.net>
71390
71391         * lib/calloc.c: New file.
71392
71393 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71394
71395         * lib/getdate.y (yylex): Allow space between sign and number.
71396         Problem reported by Dan Jacobson.
71397
71398 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         Merge from coreutils CVS.
71401
71402         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71403         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71404         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71405         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71406         xstrtol.m4: Fix copyright date and/or serial number.
71407
71408         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71409         See if we need an fchown replacement.
71410         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71411         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71412         and use the replacement function if we detect either defect.
71413
71414         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71415         gl_UTIMECMP.
71416
71417 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71418         and  Jim Meyering  <jim@meyering.net>
71419
71420         Merge from coreutils CVS.
71421
71422         * lib/stat-macros.h: New file, with contents from file-type.h
71423         and coreutils' system.h.
71424         * lib/file-type.c: Include "stat-macros.h".
71425         * lib/file-type.h (file_type): Move all macro definitions to new file,
71426         stat-macros.h.
71427
71428         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71429         Wrap old code with this conditional.
71430         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71431         function that does not dereference symlinks.
71432         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71433
71434         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71435         dependency problems.
71436         (xreadlink): Accept new arg SIZE, for efficiency.
71437         All decls and uses changed.
71438         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71439
71440         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71441         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71442
71443         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71444         sysexits.h.
71445
71446 2004-06-01  Jim Meyering  <jim@meyering.net>
71447
71448         * m4/calloc.m4: New file.
71449
71450 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71451
71452         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71453         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71454         Also, fix a typo in a diagnostic.
71455
71456 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71457
71458         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71459         or AC_FUNC_REALLOC.
71460
71461 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71462
71463         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71464         macros to be defined.
71465         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71466         the allocator returns NULL because the requested size is zero.
71467
71468 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71469
71470         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71471         var.  Add comment explaining why libc still defines it.  This
71472         merges the following patch from glibc:
71473         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71474
71475 2004-05-20  Andreas Schwab  <schwab@suse.de>
71476
71477         * m4/free.m4: Replace free if it not known to work, not the other
71478         way round.
71479
71480 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71481
71482         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71483         present in glibc since revision 1.1 of this file.
71484         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71485         obstack_alignment_mask, obstack_alloc, obstack_base,
71486         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71487         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71488         obstack_grow0, obstack_init, obstack_int_grow,
71489         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71490         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71491         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71492         nonexistent functions.
71493
71494 2004-05-18  Karl Berry  <karl@gnu.org>
71495
71496         * config/srclist.txt: break link for vasnprintf.c.
71497
71498 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71499
71500         Port obstack to the AS/400, where pointers are 16 bytes wide and
71501         you cannot cast an integer to a valid pointer.  This patch is
71502         currently waiting to be integrated into glibc; see
71503         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71504
71505         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71506         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71507         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71508         (struct obstack): temp member is now a union of a pointer and
71509         an integer, instead of an integer.  All integer uses changed.
71510         This does not affect the physical layout of struct obstack,
71511         except on hosts (like the AS/400) where the size or alignment of
71512         void * is greater than that of ptrdiff_t.
71513         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71514         __STDC__)]: Store temporary in pointer member of union, not
71515         integer member.
71516         * lib/obstack.c: Include <stddef.h>, for offsetof.
71517         (struct fooalign): Remove; it doesn't need a name.
71518         (union fooround): Change double to long double, and add void *.
71519         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71520         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71521         not a macro.  Hence the values are always int; so remove all
71522         casts-to-int in uses.
71523
71524 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71525
71526         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71527         we can get this patch merged into glibc.
71528
71529 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71530             Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         * m4/argp: Depend on alloca.
71533
71534 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71535             Paul Eggert  <eggert@cs.ucla.edu>
71536
71537         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71538         freecoding.
71539
71540 2004-05-17  Bruno Haible  <bruno@clisp.org>
71541
71542         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71543         precision that consists of a '.' followed by an empty digit string.
71544         Patch by Tor Lillqvist <tml@iki.fi>.
71545
71546 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71549         for backward compatibility with older code.  We need our own
71550         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71551         it under some other name, and our alloca.h will define it.
71552
71553 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71554             Derek Price  <derek@ximbiot.com>
71555
71556         * lib/alloca.c: Include <alloca.h>, to get our interface.
71557         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71558         include <alloca.h> first.  Use C89 prototype for alloca; this
71559         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71560         Use #elif for simplicity, since we can assume C89 now.
71561         Don't try to source the system alloca.h since it will not be found
71562         and to prevent recursively including its replacement.
71563         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71564         * lib/regex.c: Likewise.
71565
71566 2004-05-16  Derek Price  <derek@ximbiot.com>
71567             Paul Eggert  <eggert@cs.ucla.edu>
71568
71569         getline cleanup.  This changes the getndelim2 API: both order of
71570         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71571         no delimiter).
71572
71573         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71574         interface does that.
71575         (getline): Always use getdelim, so that we don't have two
71576         copies of this code.
71577         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71578         if available.
71579         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71580         (GETNDELIM2_MAXIMUM): New macro.
71581         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71582         instead of the old practice of delim2==0.  All callers changed.
71583         Return -1 on overflow, instead of returning junk.
71584         Do not set *linesize unless allocation succeeds.
71585         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71586         that we include sys/types.h.
71587         * lib/getnline.h: Likewise.
71588         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71589         (getndelim2): Reorder arguments.
71590         * lib/getnline.c (getnline, getndelim):
71591         Don't discard the NMAX argument.
71592         (getnline): Invoke getndelim, to avoid code duplication.
71593         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71594         of (size_t) -1 by callers of the getnline family.
71595
71596 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71599         Check for gettimeofday.
71600         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71601         Check for settimeofday, stime.
71602
71603 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         * lib/nanosleep.c (suspended): Change its type from int to
71606         sig_atomic_t volatile.
71607         (first_call): Make it private to rpl_nanosleep, and have it
71608         be zero initially as that's a bit faster.
71609         (my_usleep): Round up fractional times instead of truncating them,
71610         as this is the usual meaning for 'sleep'.
71611
71612         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71613         doesn't work.
71614         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71615         (ENOSYS): Define if not defined.
71616         (settime): Fall back on stime if it exists and settimeofday fails.
71617         But don't bother with fallbacks if a method fails with errno == EPERM.
71618
71619 2004-05-11  Jim Meyering  <jim@meyering.net>
71620
71621         Prior to this change, the save_cwd caller required read access to the
71622         current directory on most systems (ones with the fchdir function).
71623
71624         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71625         fails, try write-only, and finally, resort to using xgetcwd.
71626
71627 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71628
71629         * lib/obstack.c, obstack.h: Import changes from libc.
71630
71631 2004-04-28  Bruno Haible  <bruno@clisp.org>
71632
71633         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71634         also implicitly appends .exe to executables.
71635         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71636         accepts Windows pathnames.
71637         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71638         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71639         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71640         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71641         Reported by Derek Robert Price <derek@ximbiot.com>.
71642
71643 2004-04-21  Karl Berry  <karl@gnu.org>
71644
71645         * config/srclist.txt (localcharset.c): break sync.
71646
71647 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71648
71649         * m4/host-os.m4: Add a copyright notice.
71650
71651 2004-04-20  Jim Meyering  <jim@meyering.net>
71652
71653         Change UTILS_ to gl_ in AC_DEFINE'd names.
71654         Change utils_- and jm_-prefixed variables, too.
71655         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71656         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71657         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71658
71659         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71660         Don't emit trailing blanks.
71661         Also rename jm_-prefixed variables to have gl_ prefix.
71662
71663         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71664         Also rename jm_-prefixed variables to have gl_ prefix.
71665
71666         * m4/jm-macros.m4: Reflect the renamings.
71667         * m4/prereq.m4: Likewise.
71668
71669 2004-04-20  Jim Meyering  <jim@meyering.net>
71670
71671         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71672         memory.
71673
71674 2004-04-20  Jim Meyering  <jim@meyering.net>
71675             Bruno Haible  <bruno@clisp.org>
71676
71677         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71678         memory when realloc fails.
71679
71680 2004-04-19  Jim Meyering  <jim@meyering.net>
71681
71682         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71683         now that readutmp.c may call `free (0)'.
71684
71685 2004-04-19  Bruno Haible  <bruno@clisp.org>
71686
71687         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71688         * m4/inttypes_h.m4: Likewise.
71689         * m4/stdint_h.m4: Likewise.
71690         * m4/intmax_t.m4: Likewise.
71691         * m4/uintmax_t.m4: Likewise.
71692
71693 2004-04-18  Jim Meyering  <jim@meyering.net>
71694
71695         * m4/prereq.m4: Don't forbid jm_ prefix.
71696
71697         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71698         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71699         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71700         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71701         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71702         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71703         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71704         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71705         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71706         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71707         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71708         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71709         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71710         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71711         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71712         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71713         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71714         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71715         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71716
71717 2004-04-18  Jim Meyering  <jim@meyering.net>
71718
71719         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71720         failure, don't leak memory and do call END_UTMP_ENT.
71721
71722 2004-04-16  Jim Meyering  <jim@meyering.net>
71723
71724         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71725         coreutils' stat program.
71726         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71727
71728 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71729
71730         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71731         C89.
71732         (CHAR_BIT): Remove, since we assume C89.
71733         Include <stdint.h> if available, as per current Autoconf CVS advice.
71734
71735 2004-03-31  Jim Meyering  <jim@meyering.net>
71736
71737         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71738         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71739         * m4/xalloc.m4: Likewise.
71740
71741 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71742
71743         Merge from coreutils.
71744
71745         * m4/inttostr.m4: New file.
71746         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71747         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71748         Require gl_CLOCK_TIME.
71749         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71750
71751 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71752
71753         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71754         not bool, to be more consistent with Unix conventions.
71755         Suggested by Bruno Haible.
71756
71757         Merge from coreutils.
71758
71759         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71760         * lib/umaxtostr.c: New files.
71761
71762         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71763         the usual <time.h> dance.
71764         (get_date): Change signature to support fractional time stamps.
71765         All callers changed.
71766         * lib/getdate.y: Include "getdate.h" first, as we can now
71767         assume C89 and don't need to worry about 'const'.
71768         Similarly, include "unlocked-io.h" near start, not in middle.
71769         Include <limits.h>.
71770         (textint.value): Use long int rather than int.
71771         (textint.digits): Use size_t rather than int.
71772         (BILLION, LOG10_BILLION): New constants.
71773         (parser_control): New member rel_ns.  Members day_ordinal,
71774         time_zone, month, day, hour, minutes, rel_year, rel_month,
71775         rel_day, rel_hour, rel_minutes, rel_seconds
71776         are now long int, not int.  Member seconds is now struct timespec,
71777         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71778         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71779         not int.
71780         (%union.intval): Now long int, not int.
71781         New member timespec.
71782         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71783         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71784         (spec): Now is a timespec or an item list.
71785         (timespec, items): New nonterminals.
71786         (time, rel, relunit, number, get_date):
71787         Add support for fractional seconds.
71788         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71789         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71790         (to_hour): First arg is now long int, not int.
71791         (to_year): Returns long int, not int.
71792         Don't treat year -70 like 70.
71793         (tm_diff): Returns long int, not int.
71794         (lookup_word): Use bool instead of int when appropriate.
71795         (yylex): Use size_t for count, not int.
71796         Detect overflow when parsing large integer constants.
71797         Add support for fractions.
71798         (get_date): Make pointers 'const' if possible.
71799         Use more-portable code to detect integer overflow.
71800         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71801         Don't use ctime; it's not reliable if the year has >4 digits.
71802
71803         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71804         This is for compatibility with BSD.
71805
71806         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71807         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71808         From coreutils' system.h.
71809
71810         * lib/userspec.c: Don't include "posixver.h".
71811         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71812         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71813         compatible extension.  Simplify code by removing a boolean int
71814         that was always nonzero if a string was nonnull.
71815
71816 2004-03-30  Jim Meyering  <jim@meyering.net>
71817
71818         Merge from coreutils.
71819
71820         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71821         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71822         on some systems one must include <grp.h> before it.
71823         Reported by Christian Krackowizer.
71824
71825 2004-03-30  Jim Meyering  <jim@meyering.net>
71826
71827         Merge from coreutils.
71828
71829         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71830
71831         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71832         an empty input stream.
71833
71834         * lib/readtokens.c: Include <stdbool.h>.
71835         (readtoken): Use `size_t' rather than int/long.
71836         All callers adjusted.
71837         Use `bool' rather than `int' where appropriate.
71838         Use memset rather than an explicit loop.
71839         Use x2nrealloc rather than xrealloc.
71840         Allow the use of `\0' as a delimiter.
71841         (readtokens): Likewise.
71842         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71843
71844 2004-03-30  Jim Meyering  <jim@meyering.net>
71845
71846         * m4/realloc.m4: Remove file, since now it does no more than
71847         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71848         the `configure.ac' section of module/realloc.
71849         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71850
71851 2004-03-30  Bruno Haible  <bruno@clisp.org>
71852
71853         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71854         nonnull.
71855
71856 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71857
71858         Merge changes to getloadavg.c from coreutils and Emacs.
71859
71860         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71861         Define to an expression, not to the empty string.
71862         Include cloexec.h and xalloc.h.
71863         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71864         Use set_cloexec_flag rather than rolling our own.
71865         * lib/cloexec.c, lib/cloexec.h: New files.
71866
71867 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71868
71869         * m4/cloexec.m4: New file.
71870
71871 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71872
71873         * lib/getopt.h: Sync with libc CVS.
71874
71875 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71876             Bruno Haible  <bruno@clisp.org>
71877
71878         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71879         mbswidth.
71880
71881 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71882             Bruno Haible  <bruno@clisp.org>
71883
71884         * lib/mbswidth.h: Include <wchar.h> only if
71885         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71886         <wchar.h>.
71887         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71888
71889 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71890
71891         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71892         Sync with libc CVS.
71893         * lib/getopt_int.h: New file, also synced from libc.
71894
71895 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71896
71897         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71898         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71899         Bring back getopt.c, getopt.h, getopt1.c.
71900
71901 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71902
71903         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71904         All uses changed.  Check for sa_sigaction member; this fixes
71905         a bug first reported by Jason Andrade in
71906         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71907
71908 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71909
71910         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71911         '#if' expressions.  Unlike the code it replaces, it does not
71912         depend on (defined _SC_PAGESIZE).  However, it does depend on
71913         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71914         first reported by Jason Andrade in
71915         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71916
71917 2004-02-25  Simon Josefsson  <jas@extundo.com>
71918
71919         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71920
71921 2004-02-25  Simon Josefsson  <jas@extundo.com>
71922
71923         * lib/strdup.h: New file.
71924         * lib/strdup.c: Include it.
71925         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71926         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71927
71928 2004-02-23  Karl Berry  <karl@gnu.org>
71929
71930         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71931         (from fencepost.gnu.org:/gd/gnuorg).
71932
71933 2004-02-23  Karl Berry  <karl@gnu.org>
71934
71935         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71936         * config/srclist.txt: add maintain/standards documents.
71937
71938 2004-02-18  Bruno Haible  <bruno@clisp.org>
71939
71940         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71941         Reported by Derek Robert Price <derek@ximbiot.com>.
71942
71943 2004-02-16  Karl Berry  <karl@gnu.org>
71944
71945         * config/mkinstalldirs, install-sh: update from automake.
71946
71947 2004-02-06  Karl Berry  <karl@gnu.org>
71948
71949         * m4/po.m4: update from gettext 0.14.1.
71950
71951 2004-02-06  Karl Berry  <karl@gnu.org>
71952
71953         * lib/config.charset: update from gettext 0.14.1.
71954
71955 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71956
71957         Add comments and code, prompted by suggestions from Bruno Haible
71958         for sh-quote.
71959         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71960         describing the enum quoting_style values.
71961         * lib/quotearg.c (quotearg_alloc): New function.
71962         (quotearg_buffer_restyled): Treat lone { and } as special.
71963         Treat = as special.  Work around bug with older shells
71964         that "see" a '\' that is really the 2nd byte of a multibyte char.
71965         Quote empty string with shell_quoting_style.
71966
71967 2004-02-03  Bruno Haible  <bruno@clisp.org>
71968
71969         * m4/pipe.m4: New file, from GNU gettext.
71970
71971 2004-02-03  Bruno Haible  <bruno@clisp.org>
71972
71973         * lib/pipe.h: New file, from GNU gettext.
71974         * lib/pipe.c: New file, from GNU gettext.
71975
71976 2004-01-27  Bruno Haible  <bruno@clisp.org>
71977
71978         * m4/execute.m4: New file, from GNU gettext.
71979
71980 2004-01-27  Bruno Haible  <bruno@clisp.org>
71981
71982         * lib/execute.h: New file, from GNU gettext.
71983         * lib/execute.c: New file, from GNU gettext.
71984         * lib/w32spawn.h: New file, from GNU gettext.
71985
71986 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71987
71988         Merge from diffutils.
71989
71990         * lib/file-type.c (file_type): Add typed memory objects.
71991         * lib/file-type.h (S_TYPEISTMO): New macro.
71992
71993         * lib/c-stack.h (c_stack_action): Remove argv argument.
71994         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71995         (die): Don't calculate message unless segv_action returns.
71996         (get_stack_location, min_address_from_argv, max_address_from_argv,
71997         volatile stack_base, volatile_stack_size): Remove.
71998         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71999         that every segmentation violation is a stack overflow.  (Ouch!)
72000         See Debian bug 136249 (still outstanding) for more info about why
72001         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72002
72003 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72004
72005         Exit-status fix from coreutils.
72006
72007         Use exit_failure consistently in place of EXIT_FAILURE,
72008         so that program exit statuses are consistent on failure.
72009
72010         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72011         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72012         * lib/argmatch.h: Comment fix to match the above.
72013         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72014         Now a macro referring to exit_failure, instead of a separate
72015         variable.  Include "exitfail.h" to get it.
72016         * lib/xstrtol.h: Include "exitfail.h".
72017         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72018
72019         * lib/long-options.c (parse_long_options): Use prototype
72020         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72021         for clarity.
72022
72023 2004-01-21  Jim Meyering  <jim@meyering.net>
72024
72025         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72026         so as not to conflict with a different-sized __mktime_internal
72027         function in GNU libc.
72028         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72029         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72030
72031 2004-01-20  Karl Berry  <karl@gnu.org>
72032
72033         * config/config.guess: update from config.
72034
72035         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72036
72037 2004-01-20  Bruno Haible  <bruno@clisp.org>
72038
72039         Safer stack allocation.
72040         * lib/setenv.c: Include allocsa.h.
72041         (alloca): Remove fallback definition.
72042         (freea): Remove macro.
72043         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72044         instead of freea.
72045
72046 2004-01-20  Bruno Haible  <bruno@clisp.org>
72047
72048         * m4/eealloc.m4: New file, from GNU gettext.
72049
72050 2004-01-20  Bruno Haible  <bruno@clisp.org>
72051
72052         * m4/allocsa.m4: New file, from GNU gettext.
72053
72054 2004-01-20  Bruno Haible  <bruno@clisp.org>
72055
72056         * lib/xallocsa.h: New file, from GNU gettext.
72057         * lib/xallocsa.c: New file, from GNU gettext.
72058
72059 2004-01-20  Bruno Haible  <bruno@clisp.org>
72060
72061         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72062
72063 2004-01-20  Bruno Haible  <bruno@clisp.org>
72064
72065         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72066         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72067         specially.
72068
72069 2004-01-20  Bruno Haible  <bruno@clisp.org>
72070
72071         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72072         patch.
72073
72074 2004-01-20  Bruno Haible  <bruno@clisp.org>
72075
72076         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72077
72078 2004-01-20  Bruno Haible  <bruno@clisp.org>
72079
72080         * lib/eealloc.h: New file.
72081
72082 2004-01-20  Bruno Haible  <bruno@clisp.org>
72083
72084         * lib/binary-io.h: Avoid warnings on Cygwin.
72085
72086 2004-01-20  Bruno Haible  <bruno@clisp.org>
72087
72088         * lib/allocsa.h: New file, from GNU gettext.
72089         * lib/allocsa.c: New file, from GNU gettext.
72090
72091 2004-01-18  Karl Berry  <karl@gnu.org>
72092
72093         * doc/gpl.texi, doc/lgpl.texi: new files.
72094
72095 2004-01-18  Karl Berry  <karl@gnu.org>
72096
72097         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72098         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72099
72100 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72101
72102         Merge from coreutils.
72103
72104         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72105         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72106         (gl_DEFAULT_POSIX2_VERSION): Move
72107         the documentation from 'configure' into 'config.hin',
72108         so that 'configure --help' isn't burdened by it and
72109         we don't have to worry about its formatting there.
72110         Reword the documentation so that it's more succinct
72111         and can be run together into a single paragraph.
72112         * m4/same.m4 (gl_SAME): Check for pathconf.
72113
72114 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72115
72116         Merge from coreutils.
72117
72118         * lib/posixver.c: Include posixver.h.
72119
72120         * lib/same.c: Include <stdbool.h>, <limits.h>.
72121         (_POSIX_NAME_MAX): Define if not defined.
72122         (MIN): New macro.
72123         (same_name): If file names are silently truncated, report
72124         that the file names are the same if they are the same after
72125         the silent truncation.
72126
72127         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72128         conversion function.
72129         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72130         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72131         longer needed.
72132
72133 2004-01-15  Jim Meyering  <jim@meyering.net>
72134
72135         Merge from coreutils.
72136
72137         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72138         if no library is required.
72139         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72140         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72141         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72142         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72143         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72144         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72145         value, $ac_cv_search_crypt, if it's "none required".
72146         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72147         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72148         not gl_FUNC_GETLOADAVG.
72149         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72150         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72151
72152 2004-01-15  Jim Meyering  <jim@meyering.net>
72153
72154         Merge from coreutils.
72155
72156         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72157         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72158         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72159
72160         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72161         optional configure-time default.
72162
72163         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72164
72165         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72166
72167 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72168
72169         Merge from coreutils.
72170
72171         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72172         value, $ac_cv_search_nanosleep, if it's "none required".
72173
72174 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72175
72176         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72177         with like-named macro in fnmatch.c.
72178         (EXT): Use an internal constant instead.
72179
72180         Merge fnmatch patches from glibc.
72181         * lib/fnmatch.c (mbsinit): Remove define.
72182         Add libc_hidden_ver (__fnmatch, fnmatch).
72183         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72184         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72185
72186 2004-01-14  Karl Berry  <karl@gnu.org>
72187
72188         * config/install-sh: update from automake.
72189
72190 2004-01-13  Karl Berry  <karl@gnu.org>
72191
72192         * config/install-sh: update from automake.
72193
72194 2004-01-09  Karl Berry  <karl@gnu.org>
72195
72196         * config/install-sh: update from automake.
72197
72198 2004-01-05  Karl Berry  <karl@gnu.org>
72199
72200         * config/config.{sub,guess}: update from config.
72201
72202 2003-12-31  Karl Berry  <karl@gnu.org>
72203
72204         * config/depcomp: update from automake.
72205
72206 2003-12-14  Karl Berry  <karl@gnu.org>
72207
72208         * lib/config.charset: update from gettext-runtime.
72209
72210 2003-12-03  Paul Eggert  <eggert@twinsun.com>
72211
72212         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
72213         Bug reported by Alfred M. Szmidt.
72214
72215 2003-12-03  Bruno Haible  <bruno@clisp.org>
72216
72217         * m4/gettext.m4: Upgrade from gettext-0.13.
72218         * m4/po.m4: Upgrade from gettext-0.13.
72219         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
72220         * m4/intmax.m4: New file, from gettext-0.13.
72221         * m4/printf-posix.m4: New file, from gettext-0.13.
72222
72223 2003-11-29  Karl Berry  <karl@gnu.org>
72224
72225         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
72226
72227 2003-11-25  Paul Eggert  <eggert@twinsun.com>
72228             Bruno Haible  <bruno@clisp.org>
72229
72230         * lib/printf-parse.h: Don't include sys/types.h.
72231         (ARG_NONE): New macro.
72232         (char_directive): Change type of *arg_index fields to size_t.
72233         * lib/printf-parse.c: Don't include sys/types.h.
72234         (SSIZE_MAX): Remove macro.
72235         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
72236         Remove unnecessary overflow check.
72237         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
72238         fields.
72239
72240 2003-11-25  Bruno Haible  <bruno@clisp.org>
72241
72242         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
72243
72244 2003-11-25  Bruno Haible  <bruno@clisp.org>
72245
72246         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
72247         gt_TYPE_SSIZE_T.
72248
72249 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72250
72251         * modules/alloca: Remove dependency on xalloc.
72252
72253 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72254
72255         * lib/alloca.c: Remove dependency on xalloc module.
72256         (xalloc_die): Remove.
72257         (memory_full) [!defined emacs]: New macro.
72258         [!defined emacs]: Don't include xalloc.h.
72259         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
72260         address arithmetic overflows.  Change datatypes a bit to avoid
72261         unnecessary casts.
72262
72263 2003-11-22  Jim Meyering  <jim@meyering.net>
72264
72265         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
72266         s/size/size_t/.
72267
72268 2003-11-21  Karl Berry  <karl@gnu.org>
72269
72270         * config/config.{sub,guess}: update from config.
72271
72272 2003-11-18  Karl Berry  <karl@gnu.org>
72273
72274         * config/config.{sub,guess}: update from config.
72275
72276         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72277
72278 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72279
72280         * README: Mention that S+T cannot overflow if S is the size of
72281         an existing object and T is sufficiently small.
72282
72283 2003-11-17  Jim Meyering  <jim@meyering.net>
72284
72285         On systems without utime and without a utimes function capable of
72286         dealing with a NULL struct utimbuf* argument, this utime replacement
72287         could -- in unusual circumstances -- leak a file descriptor.
72288         * lib/utime.c: Include <unistd.h> and <errno.h>.
72289         (utime_null): Be sure to close `fd' and to preserve errno.
72290         Reported by Geoff Collyer via Arnold Robbins.
72291
72292 2003-11-17  Bruno Haible  <bruno@clisp.org>
72293
72294         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72295         (Depends-on): Add xsize.
72296
72297 2003-11-17  Bruno Haible  <bruno@clisp.org>
72298
72299         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72300
72301 2003-11-17  Bruno Haible  <bruno@clisp.org>
72302
72303         * lib/vasnprintf.c (alloca): Remove fallback definition.
72304         (freea): Remove definition.
72305         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72306         Reported by Paul Eggert.
72307
72308 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72309             Bruno Haible  <bruno@clisp.org>
72310
72311         Protect against address arithmetic overflow.
72312         * lib/printf-args.h: Include stddef.h.
72313         (arguments): Change type of field 'count' to size_t.
72314         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72315         'unsigned int' where appropriate.
72316         * lib/printf-parse.h: Include sys/types.h.
72317         (char_directive): Change type of *arg_index fields to ssize_t.
72318         (char_directives): Change type of fields 'count', max_*_length to
72319         size_t.
72320         * lib/printf-parse.c: Include sys/types.h and xsize.h.
72321         (SSIZE_MAX): Define fallback value.
72322         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
72323         instead of 'int' where appropriate. Check a_allocated, d_allocated
72324         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
72325         * lib/vasnprintf.c: Include xsize.h.
72326         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
72327         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
72328         overflow. Avoid wraparound when converting a width or precision from
72329         decimal to binary.
72330
72331 2003-11-16  Bruno Haible  <bruno@clisp.org>
72332
72333         Update from GNU gettext.
72334         * lib/printf-parse.c: Generalize to it can be compiled for wide
72335         strings.
72336         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
72337         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
72338         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
72339         SNPRINTF): New macros.
72340         Don't include <alloca.h> if the file is used inside libintl.
72341         (local_wcslen): New function, for Solaris 2.5.1.
72342         (VASNPRINTF): Use it instead of wcslen.
72343
72344 2003-11-16  Bruno Haible  <bruno@clisp.org>
72345
72346         * lib/xsize.h (xmax): New function.
72347         (xsum, xsum3, xsum4): Declare as "pure" functions.
72348
72349 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72350
72351         * modules/xalloc (Files): Undo latest change, since xalloc.h
72352         no longer needs SIZE_MAX or PTRDIFF_MAX.
72353
72354 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72355
72356         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
72357         gl_PTRDIFF_MAX.
72358
72359 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72360
72361         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
72362         "return", to pacify some unknown compiler.  Problem reported
72363         by Joerg Schilling.
72364
72365 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72366
72367         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
72368         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
72369         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
72370         heuristic is just as accurate as far as we know, and it removes a
72371         dependency on size_max.m4 and ptrdiff_max.m4.
72372
72373 2003-11-11  Bruno Haible  <bruno@clisp.org>
72374
72375         * modules/xsize (Files): Add m4/size_max.m4.
72376         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72377
72378 2003-11-11  Bruno Haible  <bruno@clisp.org>
72379
72380         * m4/size_max.m4: New file.
72381         * m4/ptrdiff_max.m4: New file.
72382         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72383         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72384         (gl_XALLOC): Invoke it.
72385
72386 2003-11-11  Bruno Haible  <bruno@clisp.org>
72387
72388         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72389         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72390         defined.
72391
72392 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72393
72394         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72395         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72396         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72397         From Bruno Haible.
72398         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72399         not (size_t) -1, since it's defined here.
72400
72401 2003-11-09  Karl Berry  <karl@gnu.org>
72402
72403         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72404
72405 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72406
72407         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72408         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72409         Reject sizes of exactly SIZE_MAX bytes.
72410         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72411         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72412
72413 2003-11-05  Bruno Haible  <bruno@clisp.org>
72414
72415         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72416         SIZE_MAX defined in <limits.h> on Solaris.
72417
72418 2003-11-04  Jim Meyering  <jim@meyering.net>
72419
72420         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72421         variable names, rather than @VAR@.
72422         * modules/poll: Likewise.
72423
72424 2003-11-04  Bruno Haible  <bruno@clisp.org>
72425
72426         * modules/xsize: New file.
72427         * modules/linebreak: Depend on xsize.
72428         * MODULES.html.sh (func_all_modules): Add xsize.
72429
72430 2003-11-04  Bruno Haible  <bruno@clisp.org>
72431
72432         * m4/xsize.m4: New file.
72433
72434 2003-11-04  Bruno Haible  <bruno@clisp.org>
72435
72436         * lib/xsize.h: New file.
72437         * lib/linebreak.c: Include xsize.h.
72438         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72439         argument for overflow.
72440         Suggested by Paul Eggert.
72441
72442 2003-11-03  Karl Berry  <karl@gnu.org>
72443
72444         * config/config.{guess,sub}: update from config.
72445
72446 2003-11-03  Jim Meyering  <jim@meyering.net>
72447
72448         * modules/userspec (lib_SOURCES): Add userspec.h.
72449         (Include): Add "userspec.h".
72450         Improve description.
72451
72452 2003-11-03  Jim Meyering  <jim@meyering.net>
72453
72454         * lib/userspec.c: Include "userspec.h".
72455         * lib/userspec.h: New file.
72456
72457 2003-11-03  Bruno Haible  <bruno@clisp.org>
72458
72459         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72460
72461 2003-11-03  Bruno Haible  <bruno@clisp.org>
72462
72463         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72464         available, to avoid (extremely rare) race condition.
72465         Suggested by Paul Eggert.
72466
72467 2003-11-02  Karl Berry  <karl@gnu.org>
72468
72469         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72470
72471 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72472
72473         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72474         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72475         (read_filesystem_list): Set and use me_type_malloced.
72476         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72477         whatever the type happens to be), for brevity and consistency.
72478         Check for size calculation overflow on Alphas running OSF/1.
72479
72480 2003-10-31  Jim Meyering  <jim@meyering.net>
72481
72482         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72483
72484         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72485
72486 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72487             Bruno Haible  <bruno@clisp.org>
72488
72489         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72490         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72491
72492 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72495         netbsd*-gnu*.  Suggested by Robert Millan.
72496
72497 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72498
72499         * modules/group-member: Depend on stdbool.
72500
72501 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72502
72503         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72504
72505 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72506
72507         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72508         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72509         after the 'gnu' in these cases.  This fixes some bugs in the
72510         previous change, and is based on suggestions by Robert Millan.
72511
72512 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72513
72514         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72515         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72516         no longer needed.
72517         * lib/quotearg.c (quotearg_n_options): Use it.
72518         * lib/group-member.c: Include <stdbool.h>.
72519         (free_group_info): Arg is now const *; don't free arg.
72520         (get_group_info): Now returns bool and accepts struct group_info *,
72521         rather than returning a malloc'ed struct group_info *.
72522         All uses changed.  Check for overflow in internal size calculation.
72523
72524         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72525         rather than xmalloc/xrealloc.
72526         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72527         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72528         conformance bug: the old code used a pointer after freeing the
72529         storage that it addressed.
72530         * lib/hash.c (hash_initialize): Simplify the code by using
72531         xalloc_oversized rather than doing it by hand.
72532         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72533         the buffer preserved.  Use free and xmalloc instead.
72534         * lib/quotearg.c (quotearg_n_options): Likewise.
72535         Use a simpler test for size overflow.  Don't use xalloc_oversized
72536         because unsigned int might be wider than size_t (!); this suggests
72537         that we should switch from unsigned int to size_t for slot numbers.
72538
72539 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72540
72541         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72542         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72543         NetBSD kernels.  Requested by Richard Stallman.
72544
72545 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72546
72547         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72548         to allocate the returned structure.  Do not allocate a subarray,
72549         as x2nrealloc will do that.
72550         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72551         instead of xnrealloc.
72552         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72553
72554 2003-10-27  Bruno Haible  <bruno@clisp.org>
72555
72556         * lib/stdbool_.h: Better support for BeOS.
72557
72558 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72559
72560         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72561         now uses inline.
72562
72563 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72564
72565         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72566         callers that want to do their own size-overflow checking.  Include
72567         <stdbool.h>, since xalloc_oversized returns bool.
72568         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72569         to use xalloc_oversized.
72570
72571         Add two functions x2realloc, x2nrealloc, for programs that grow
72572         arrays dynamically by doubling their sizes.
72573         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72574         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72575         New functions.
72576
72577         Port to C99 semantics for 'inline' of external functions.
72578         Bug reported by Bruno Haible.
72579         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72580         with the old contents of xnmalloc.
72581         (xnmalloc, xmalloc): Use it.
72582         (xnrealloc_inline): New static inline function,
72583         with the old contents of xnrealloc.
72584         (xnrealloc, xrealloc): Use it.
72585
72586         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72587         that.
72588
72589 2003-10-26  Karl Berry  <karl@gnu.org>
72590
72591         * config/srclist.txt (COPYING.DOC): no longer available from
72592         /gd/gnuorg; don't know where the ultimate source is.
72593
72594 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72595
72596         Fix several address-calculation bugs in the hash modules,
72597         plus some minor code cleanup.
72598
72599         * lib/hash.h: Include <stdbool.h>, for bool.
72600         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72601         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72602         hash_get_n_entries, hash_get_max_bucket_length,
72603         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72604         hash_rehash): Use size_t rather than unsigned.
72605         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72606         hash_get_n_buckets_used, hash_get_n_entries,
72607         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72608         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72609         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72610         Likewise.
72611         (SIZE_MAX): Define if not defined.
72612         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72613         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72614         hash_print):
72615         Use const * when possible.
72616         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72617         (check_tuning): Fix bug: if tuning parameters were very close to
72618         0 or 1, rounding errors could have caused subscript violations.
72619         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72620         (hash_initialize): Add 'fail:' label
72621         to free table and return NULL, and use it to simplify code.
72622         Use calloc rather than clearing the storage ourself.
72623         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72624         buffer size calculations.
72625         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72626         Include <stddef.h>, for size_t.
72627         * lib/hash-pjw.c (hash_pjw): Likewise.
72628         Switch to method described by Bruno Haible.
72629         Include <limits.h>, for CHAR_BIT.
72630         (SIZE_BITS): New macro.
72631
72632 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72633
72634         * m4/getline.m4 (AM_FUNC_GETLINE):
72635         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72636         hosts.  Problem reported by Derek Robert Price in
72637         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72638         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72639         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72640
72641 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72642
72643         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72644         ceiling the allocation at NMAX bytes rather than silently
72645         discarding input bytes before NMAX is reached.  This makes
72646         a difference only if NMAX exceeds SIZE_MAX / 2.
72647
72648         * lib/obstack.c: Merge from glibc.
72649         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72650         Add libc_hidden_def (_obstack_newchunk).
72651         (_obstack_free) [! defined _LIBC]: Remove.
72652         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72653         a clone of the function body.
72654         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72655         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72656
72657         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72658         glibc.
72659         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72660         arg to memcpy.
72661
72662         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72663         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72664         Don't use lvalue casts, as GCC plans to remove support for them
72665         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72666         was also present in the non-GCC version, indicating that this
72667         code had always been buggy and had never been widely used.
72668         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72669         Use the fast variant of each macro, rather than copying the
72670         definiens of the fast variant; that way, we'll be more likely to
72671         catch future bugs in the fast variants.
72672
72673 2003-10-20  Bruno Haible  <bruno@clisp.org>
72674
72675         * modules/wait-process: New file.
72676         * MODULES.html.sh (func_all_modules): Add wait-process.
72677
72678 2003-10-20  Bruno Haible  <bruno@clisp.org>
72679
72680         * m4/wait-process.m4: New file.
72681
72682 2003-10-20  Bruno Haible  <bruno@clisp.org>
72683
72684         * lib/wait-process.h: New file, from GNU gettext.
72685         * lib/wait-process.c: New file, from GNU gettext.
72686
72687 2003-10-19  Jim Meyering  <jim@meyering.net>
72688
72689         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72690         HPUX 10.20.
72691
72692 2003-10-18  Karl Berry  <karl@gnu.org>
72693
72694         * config/config.guess: update from config.
72695
72696 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72697
72698         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72699         (getgroups): First arg is int, not size_t.
72700         Don't let 'free' mangle errno.
72701
72702 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72703
72704         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72705
72706 2003-10-16  Karl Berry  <karl@gnu.org>
72707
72708         * config/config.{guess,sub}: update from config.
72709
72710 2003-10-16  Jim Meyering  <jim@meyering.net>
72711
72712         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72713         memcpy.
72714
72715 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72716
72717         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72718         (SIZE_MAX): Remove.
72719         (new_exclude, add_exclude_file): Initial size no longer needs to
72720         be a power of 2.
72721         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72722         our own address arithmetic overflow checking.
72723
72724         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72725         (fnmatch): Do not alloca more than 2000 wide characters;
72726         instead, use malloc for large buffers.
72727         Check for address arithmetic overflow, and return -1
72728         with errno set to ENOMEM in that case.
72729         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72730         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72731         instead, return -1.  Check for address arithmetic overflow.
72732
72733 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72734
72735         Handle invalid suffixes and overflow independently, so that
72736         callers can treat them independently as needed.  Fix some bugs in
72737         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72738         suffix for a human-readable blocksize.  The major caller-visible
72739         change is the addition of a new
72740         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72741         that both overflow and suffix chars were found.
72742
72743         * lib/human.c (humblock): Don't check separately for invalid suffix
72744         char; that is xstrtoumax's job (now that its bug is fixed).
72745         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72746         INTMAX_MAX]: New macros.
72747         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72748         TYPE_MAXIMUM): New macros.
72749         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72750         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72751         if overflow occurs, as it's what __strtol does and it's more useful
72752         in practice.
72753         (__xstrtol): If __strtol reports some error other than ERANGE,
72754         reflect it to the caller as LONGINT_INVALID.  If it reports
72755         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72756         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72757         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72758         value.
72759         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72760         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72761         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72762         [defined UINTMAX_MAX]: New macros.
72763
72764 2003-10-14  Bruno Haible  <bruno@clisp.org>
72765
72766         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72767
72768 2003-10-14  Bruno Haible  <bruno@clisp.org>
72769
72770         * m4/sig_atomic_t: New file, from GNU gettext.
72771         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72772
72773 2003-10-14  Bruno Haible  <bruno@clisp.org>
72774
72775         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72776         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72777         Also use volatile where needed.
72778
72779 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72780
72781         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72782         Change maintainer from Bruno Haible to 'all'.
72783
72784 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72785
72786         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72787
72788 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72789
72790         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72791         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72792         and define in terms of the other primitives.
72793         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72794         (SIZE_MAX): Define if not already defined.
72795         (array_size_overflow): New function.
72796         (xalloc_die): Abort instead of exiting if 'error' returns.
72797         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72798         (xmalloc, xrealloc): Use them.
72799         (xcalloc): Check for address arithmetic overflow.
72800         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72801         a bit faster than strcpy.
72802
72803 2003-10-10  Simon Josefsson  <jas@extundo.com>
72804
72805         * modules/argp (Depends-on): Add restrict and strcase.
72806
72807 2003-10-10  Simon Josefsson  <jas@extundo.com>
72808
72809         * m4/argp.m4: Add AC_C_INLINE.
72810
72811 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72812
72813         Merge getpass from libc, plus a few fixes.
72814
72815         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72816         Include <stdbool.h>.
72817         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72818         __fsetlocking to empty.
72819         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72820         do include <bits/libc-lock.h>.
72821         Do not include <fcntl.h>; not needed.
72822         [_LIBC]: Include <wchar.h>.
72823         (NOTCANCEL_MODE): New macro.
72824         (flockfile, funlockfile) [_LIBC]: New macros.
72825         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72826         [!_LIBC]: New macros.
72827         (call_fclose): New function.
72828         (getpass): Use it.  Save tty stream separately; this simplifies the
72829         code and makes it more reliable if stdin happens to equal stdout.
72830         Invoke __fsetlocking on tty.
72831         Handle thread cancellation if needed.
72832         Namespace cleanup (use __tcgetattr, __getline).
72833         Use bool for Booleans.
72834         [USE_IN_LIBIO]: Handle wide streams.
72835         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72836         stream might go where.
72837
72838         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72839         doesn't have to include <stdio.h> before us.
72840         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72841         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72842         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72843         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72844         if not declared, so that we can use getpass.c code from libc without
72845         rewriting it.
72846         (flockfile, ftrylockfile, funlockfile): New macros.
72847
72848 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72849
72850         * modules/getpass: Depend on stdbool.
72851
72852 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72853
72854         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72855
72856 2003-10-07  Karl Berry  <karl@gnu.org>
72857
72858         * config/config.{guess,sub}: update from config.
72859
72860 2003-10-06  Jim Meyering  <jim@meyering.net>
72861             Bruno Haible  <bruno@clisp.org>
72862
72863         This lets translators provide better translations for the
72864         "Written by ..." part of --version output.
72865         * lib/version-etc.h: Include stdarg.h.
72866         (version_etc_copyright): Declare as readonly.
72867         (version_etc): Make this function variadic with a NULL-terminated list
72868         of author name strings.
72869         (version_etc_va): New declaration.
72870         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72871         (version_etc_copyright): Declare as readonly.
72872         (version_etc_va): New function. Provide a different translatable string
72873         for each possible number of authors < 10. Abbreviate when there are 10
72874         authors or more.
72875         (version_etc): Make this function variadic. Call version_etc_va.
72876         Suggestion from Gary V. Vaughan.
72877
72878         * lib/long-options.h (parse_long_options): Change prototype: the
72879         authors string is moved to the end and becomes variadic.
72880         * lib/long-options.c: Include stdarg.h.
72881         (parse_long_options): Make this function variadic, too.
72882         Call version_etc_va, not version_etc.
72883
72884 2003-10-06  Bruno Haible  <bruno@clisp.org>
72885
72886         * modules/version-etc-2: Remove file.
72887         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72888
72889 2003-10-06  Bruno Haible  <bruno@clisp.org>
72890
72891         * modules/fatal-signal: New file.
72892         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72893
72894 2003-10-06  Bruno Haible  <bruno@clisp.org>
72895
72896         * m4/fatal-signal.m4: New file.
72897         * m4/signalblocking.m4: New file, from GNU gettext.
72898
72899 2003-10-06  Bruno Haible  <bruno@clisp.org>
72900
72901         * lib/version-etc-2.h: Remove file.
72902         * lib/version-etc-2.c: Remove file.
72903
72904 2003-10-06  Bruno Haible  <bruno@clisp.org>
72905
72906         * lib/fatal-signal.h: New file, from GNU gettext.
72907         * lib/fatal-signal.c: New file, from GNU gettext.
72908
72909 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72910
72911         * README: Rework advice for preventing empty .o files.
72912         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72913         not <sys/types.h>.
72914
72915 2003-10-04  Karl Berry  <karl@gnu.org>
72916
72917         * lib/argp*: update from libc.
72918
72919 2003-10-04  Karl Berry  <karl@gnu.org>
72920
72921         * config/config.{guess,sub}: update from config.
72922
72923 2003-10-02  Bruno Haible  <bruno@clisp.org>
72924
72925         * modules/lchown (Include): Add lchown.h.
72926         * modules/time_r (Include): Use "..." syntax.
72927         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72928
72929 2003-10-01  Simon Josefsson  <jas@extundo.com>
72930
72931         * MODULES.html.sh (func_all_modules): Move gethostname from section
72932         'based on' to section 'lacking' POSIX:2001.
72933
72934 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72935
72936         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72937         to output mode on the same stream.
72938
72939 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72940
72941         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72942         Fix arg typo in previous patch.
72943
72944 2003-09-28  Jim Meyering  <jim@meyering.net>
72945
72946         * lib/error.c: Correct cpp indentation.
72947
72948 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72949
72950         * modules/free: New file.
72951
72952 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72953
72954         * m4/free.m4: New file.
72955
72956 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72957
72958         * lib/minmax.h (MIN, MAX)
72959         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72960         Omit the special code that used __typeof__, since we worry that
72961         it could be more trouble than it's worth.  See:
72962         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72963         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72964
72965         * lib/free.c: New file.
72966
72967 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72968
72969         Trivial fixes to Makefile.am parts of module listings.
72970         * modules/strstr: Append strstr.h to lib_SOURCES.
72971         * modules/strcase: Likewise, for strcase.h.
72972
72973 2003-09-27  Karl Berry  <karl@gnu.org>
72974
72975         * config/mkinstalldirs: update from automake.
72976
72977 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72978
72979         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72980         (error_tail): Do not loop, reallocating temporary buffer, since
72981         the output cannot contain more wide characters than the input
72982         contains bytes, the size must be big enough already.  This avoids
72983         one potential size overflow calculation.  Check for size overflow
72984         when calculating temporary buffer size.  Free temporary buffer
72985         when done, if it was allocated with malloc; this plugs a memory
72986         leak.  Remove casts from void * to pointers, that are no longer
72987         needed now that we're assuming C89 or better.
72988
72989         Merge error changes from glibc.
72990
72991         * lib/error.c, error.h: Update copyright notice header to match glibc.
72992         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72993         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72994         Disable cancellation while printing error.
72995         * lib/error.h: Prepend __ to parameter names.
72996
72997 2003-09-26  Jim Meyering  <jim@meyering.net>
72998
72999         * lib/error.c (error_tail): Move some declarations
73000         into inner scope where the local variables are used.
73001
73002 2003-09-26  Bruno Haible  <bruno@clisp.org>
73003
73004         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73005         stpncpy().
73006         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73007
73008 2003-09-26  Bruno Haible  <bruno@clisp.org>
73009
73010         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73011         (stpncpy): Define as alias for gnu_stpncpy.
73012         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73013
73014 2003-09-25  Simon Josefsson  <jas@extundo.com>
73015
73016         * lib/xgetdomainname.h: New file.
73017         * lib/xgetdomainname.c: New file.
73018
73019 2003-09-25  Simon Josefsson  <jas@extundo.com>
73020             Bruno Haible  <bruno@clisp.org>
73021
73022         * modules/getdomainname: New file.
73023         * modules/xgetdomainname: New file.
73024         * MODULES.html.sh (func_all_modules): Add getdomainname,
73025         xgetdomainname.
73026
73027 2003-09-25  Simon Josefsson  <jas@extundo.com>
73028             Bruno Haible  <bruno@clisp.org>
73029
73030         * m4/getdomainname.m4: New file.
73031
73032 2003-09-25  Simon Josefsson  <jas@extundo.com>
73033             Bruno Haible  <bruno@clisp.org>
73034
73035         * lib/getdomainname.h: New file.
73036         * lib/getdomainname.c: New file.
73037
73038 2003-09-25  Karl Berry  <karl@gnu.org>
73039
73040         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73041
73042 2003-09-25  Karl Berry  <karl@gnu.org>
73043
73044         * config/install-sh: update from automake.
73045
73046 2003-09-25  Bruno Haible  <bruno@clisp.org>
73047
73048         * modules/version-etc-2: New file, from modules/version-etc with
73049         modifications.
73050         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73051
73052 2003-09-25  Bruno Haible  <bruno@clisp.org>
73053
73054         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73055         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73056
73057 2003-09-24  Simon Josefsson  <jas@extundo.com>
73058
73059         * modules/xgethostname: Add xgethostname.h.
73060
73061 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73062
73063         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73064         the buffer associated with the argument.  Bug reported by
73065         Simon Josefsson.
73066
73067 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73068
73069         * README: Document assumptions that 'int' is at least 32 bits
73070         wide, that integer arithmetic is 2's complement without overflow,
73071         that there are no holes in integer values, that adding sizes of
73072         two nonoverlapping objects can't overflow, and that all-bits-zero
73073         yields scalar zero.  Fix spelling and capitalization typos.
73074
73075 2003-09-19  Karl Berry  <karl@gnu.org>
73076
73077         * lib/argp.h: update from libc.
73078
73079 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73080
73081         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73082         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73083         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73084
73085 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73086
73087         * gnulib-tool: Use "test -h", not "test -L", for portability
73088         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73089         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73090         (sed_extract_prog): Issue s commands one-by-one, rather than
73091         using \| in one s command.
73092
73093 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73094
73095         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73096         input error, instead of returning NULL the next time we are called
73097         (and therefore losing track of errno).
73098
73099 2003-09-16  Bruno Haible  <bruno@clisp.org>
73100
73101         * gnulib-tool (func_create_testdir): Warn about duplicated
73102         dependencies.
73103
73104 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73105
73106         * modules/argmatch, modules/fatal, modules/obstack,
73107         modules/xalloc, modules/xgethostname: Sort dependencies by
73108         importance, not alphabetically.
73109
73110 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73111
73112         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73113         fails, so that the caller gets the proper errno.
73114
73115         * lib/readutmp.c (read_utmp): Likewise.
73116         Check for fstat error.  Close stream and free storage
73117         when failing.
73118
73119 2003-09-14  Karl Berry  <karl@gnu.org>
73120
73121         * config/srclist.txt (strdup.c): disable for c89 changes.
73122
73123 2003-09-14  Jim Meyering  <jim@meyering.net>
73124
73125         * lib/getloadavg.c: Correct cpp indentation.
73126         * lib/strdup.c: Likewise.
73127         * lib/vasnprintf.c: Likewise.
73128
73129 2003-09-14  Bruno Haible  <bruno@clisp.org>
73130
73131         * modules/fwriteerror: New file.
73132         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73133
73134 2003-09-14  Bruno Haible  <bruno@clisp.org>
73135
73136         * lib/fwriteerror.h: New file.
73137         * lib/fwriteerror.c: New file.
73138
73139 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73140
73141         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73142         modules/xgethostname, modules/xalloc: Depend on exit.
73143
73144 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73145
73146         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73147
73148         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73149         and AC_MINIX, too, so that their extensions are available.
73150
73151         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73152         This macro has been superseded by gl_BACKUPFILE.
73153
73154         More patches to assume C89 or better.
73155
73156         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73157
73158         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73159         unconditionally.
73160         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73161         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73162         Include <string.h>, <stdlib.h> unconditionally.
73163         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73164         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73165         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73166         headers or for string.h.
73167         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73168         or strtoul.
73169
73170         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73171         headers.
73172         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73173         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73174         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73175         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73176         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73177         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73178         memcpy, memset.
73179         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73180         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73181         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73182         strtol.
73183         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73184         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73185         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73186         strtoul.
73187
73188 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73189
73190         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73191         * lib/obstack.c [!defined _LIBC]: Likewise.
73192         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73193         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73194         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73195
73196         More changes to assume C89 or better.
73197
73198         * lib/error.c (error_tail): Assume vprintf.
73199
73200         * lib/argmatch.c (getenv): Remove decl.
73201         * lib/progreloc.c (get_full_program_name): Define via prototype.
73202         * lib/setenv.c (clearenv): Likewise.
73203         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
73204         needed.
73205         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
73206         (malloc, memcpy): Remove decls.
73207         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
73208         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
73209         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73210         (memcpy): Remove macro.
73211         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
73212         (__P): Remove.  All uses removed.
73213         (PTR): Remove.  All uses changed to void *.
73214         (CHAR_BIT, NULL): Remove.
73215         (spaces, zeros, memset_space, memset_zero)
73216         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
73217         Remove.
73218         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
73219         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
73220         Define with prototype.
73221         Remove now-unnecessary prototype decl.
73222         (extra_args_spec): Assume ANSI C.  All uses changed.
73223         (extra_args_spec_iso): Remove.
73224         (my_strftime, emacs_strftimeu): Define via prototype.
73225         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
73226         unconditionally.
73227         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
73228         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
73229         (strtoul, strtol): Remove decls.
73230         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
73231         LONG_MAX): Remove.
73232         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73233         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
73234         (LOCALE_PARAM_PROTO): New macro.
73235         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
73236         (INTERNAL (strtol), strtol): Define with a prototype.
73237         (PARAMS): Remove.  All uses removed.
73238         * lib/tempname.c: Include <string.h> unconditionally.
73239         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
73240         * lib/xgethostname.c (main): Define with a prototype.
73241         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
73242         Include <stdlib.h> unconditionally.
73243         (calloc, malloc, realloc, free): Remove decls.
73244         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
73245         Include <stdlib.h> unconditionally.  Sort include file names.
73246         (strtod): Remove.
73247         (xstrtod): Define with a prototype.
73248         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
73249         (strtol, strtoul): Remove decls.
73250
73251 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73252
73253         More patches to assume C89 or better.
73254         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
73255         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
73256         string.h, memchr, STDC_HEADERS.
73257
73258 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73259
73260         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
73261         Include <stdlib.h>, <string.h> unconditionally.
73262         Remove now-unnecessary cast to char *.
73263         * lib/strnlen.c: Include <string.h> unconditionally.
73264         * lib/yesno.c (yesno): Define with a prototype.
73265
73266 2003-09-11  Bruno Haible  <bruno@clisp.org>
73267
73268         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
73269
73270 2003-09-10  Jim Meyering  <jim@meyering.net>
73271
73272         * lib/error.c: Correct indentation of cpp directives.
73273
73274 2003-09-10  Bruno Haible  <bruno@clisp.org>
73275
73276         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73277         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73278         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73279         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73280         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73281         <stdlib.h> and <string.h> checks.
73282         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73283         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73284
73285 2003-09-10  Bruno Haible  <bruno@clisp.org>
73286
73287         * lib/strcspn.c: Include <string.h> unconditionally.
73288         * lib/strpbrk.c: Include <string.h> unconditionally.
73289         * lib/strstr.c: Include <string.h> unconditionally.
73290         * lib/unicodeio.c: Include <string.h> unconditionally.
73291         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73292         * lib/unsetenv.c: Likewise.
73293         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73294         * lib/yesno.c: Include <stdlib.h> unconditionally.
73295         (rpmatch): Add prototype.
73296
73297 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73298
73299         More patches to assume C89 or better.
73300         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73301         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73302         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73303         or for string.h.
73304         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73305         stdlib.h.
73306         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73307         C headers.
73308         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73309         string.h.
73310         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
73311         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
73312         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
73313         or for string.h.
73314         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73315         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73316         C headers.
73317         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
73318         memcpy.
73319         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
73320         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
73321         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
73322         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
73323         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
73324         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
73325         string.h, free.
73326         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
73327         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
73328         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
73329         C headers, or for string.h.
73330         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
73331         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
73332         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
73333         headers, memory.h, stdlib.h, string.h, strings.h.
73334         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
73335         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
73336         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
73337         strchr.
73338         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
73339         headers, memory.h, string.h.
73340         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
73341         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
73342         free.
73343         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
73344         headers.
73345         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
73346         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
73347         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
73348         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
73349         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
73350
73351 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73352
73353         More K&R removal.
73354
73355         * lib/acosl.c (main): Use a prototype.
73356         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
73357         tanl.c: Likewise.
73358
73359         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
73360
73361         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
73362         (getopt, etopt_long, getopt_long_only, _getopt_internal)
73363         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
73364         with a prototype.
73365         * lib/getopt.c (const): Remove macro.
73366         Include <string.h> unconditionally.
73367         (my_index): Remove; all uses changed to strchr.
73368         (strlen): Remove decl.
73369         (exchange): Remove forward decl; no longer needed.
73370         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
73371         Define with prototype.
73372         * lib/getopt1.c (const): Remove macro.
73373         (getopt_long, getopt_long_only, main): Define with prototype.
73374
73375         * lib/getugroups.c: Include <string.h> unconditionally.
73376
73377         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73378         (getusershell, setusershell, endusershell, readname, main):
73379         Define with prototypes.
73380
73381         * lib/group-member.c: Include group-member.h first.
73382         Include <stdlib.h> unconditionally.
73383
73384         * lib/hard-locale.c: Include hard-locale.h first.
73385         Include <stdlib.h>, <string.h> unconditionally.
73386
73387         * lib/hash.c (free, malloc): Remove decls.
73388         Include <stdlib.h> unconditionally.
73389
73390         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73391         (getenv): Do not declare.
73392
73393         * lib/idcache.c: Include <string.h> unconditionally.
73394
73395         * lib/long-options.c: Include long-options.h first, to test interface.
73396         Include <stdlib.h> unconditionally.
73397
73398         * lib/makepath.c: Include makepath.h first, to test interface.
73399         Include <stdlib.h> and <string.h> unconditionally.
73400
73401         * lib/linebuffer.c: Include <stdlib.h>.
73402         (free): Remove decl.
73403
73404         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73405         stddef.h. rpl_malloc returns void *, not char *.
73406         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73407         prototype.
73408
73409         * lib/md5.h: Include <limits.h> unconditionally.
73410         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73411         (__P): Remove; all uses removed.
73412         * lib/md5.c: Include "md5.h" first.
73413         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73414         md5_buffer, md5_process_bytes, md5_process_block):
73415         Define with prototypes.
73416         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73417         * lib/sha.c: Include "sha.h" first.
73418         Include <stdlib.h>, <string.h> unconditionally.
73419
73420         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73421         * lib/memcmp.c (__ptr_t): Likewise.
73422         * lib/memrchr.c (__ptr_t): Likewise.
73423         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73424         Include <string.h> unconditionally.
73425         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73426         * lib/memchr.c: Include <stdlib.h> unconditionally.
73427         * lib/memchr.c (LONG_MAX): Remove.
73428         * lib/memrchr.c (LONG_MAX): Likewise.
73429         * lib/memchr.c (__memchr): Define via a prototype.
73430         * lib/memrchr.c (__memrchr): Likewise.
73431         * lib/memcmp.c (__P): Remove, and remove all uses.
73432         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73433         Remove forward decls; no longer needed.
73434         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73435         Use types required by C89 in prototype.
73436
73437         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73438         * lib/savedir.c: Likewise.
73439         * lib/mkdir.c (free): Remove decl.
73440         * lib/rmdir.c (rmdir): Define with a prototype.
73441         * lib/savedir.c: Include savedir.h first, to test interface.
73442
73443         * lib/mktime.c (STDC_HEADERS): Remove.
73444         Include <stdlib.h>, <string.h> unconditionally.
73445
73446         * lib/modechange.c: Include <stdlib.h> unconditionally.
73447         (malloc): Remove decl.
73448
73449         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73450         (free): Remove decl.
73451
73452         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73453         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73454         (This type really should be intptr_t, but that's a C99ism.)
73455         (_obstack_memcpy): Remove: all uses changed to memcpy.
73456         Include <string.h> unconditionally.
73457         (struct obstack): Assume __STDC__ for types of members
73458         chunkfun, freefun, extra_arg.
73459         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73460         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73461         obstack_begin, obstack_specify_allocation,
73462         obstack_specify_allocation_with_arg, obstack_chunkfun,
73463         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73464         Remove unprototyped decls and the macros that use them.
73465         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73466         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73467         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73468         (defined __STDC__ && __STDC__)]:
73469         Remove nonprototyped code.
73470         Include <stdlib.h> unconditionally.
73471         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73472         _obstack_allocated_p, _obstack_free, obstack_free,
73473         _obstack_memory_used, print_and_abort):
73474         Define using prototypes.
73475         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73476         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73477         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73478         obstack_next_free, obstack_object_size, obstack_room) [0]:
73479         Remove unused, unprototyped code.
73480
73481         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73482
73483         * lib/physmem.c (physmem_total, physmem_available, main): Define
73484         with prototypes.
73485
73486         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73487         (main): Define with a prototype.
73488
73489         * lib/posixver.c (getenv): Remove decl.
73490
73491         * lib/putenv.c (malloc): Returns void *, not char *.
73492         Include <string.h> unconditionally.
73493         (strchr, memcpy, NULL): Do not define.
73494
73495         * lib/readtokens.c: Include readtokens.h first, to test interface.
73496         Include <stdlib.h>, <string.h> unconditionally.
73497         (init_tokenbuffer): Define with a prototype.
73498
73499         * lib/regex.c (PARAMS): Remove.  All uses removed.
73500         All uses of _RE_ARGS removed, too.
73501         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73502         unconditionally.
73503         (bzero): Assume memset exists.
73504         (memcmp, memcpy, NULL): Remove.
73505         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73506         char, or assignments to local vars of type signed char.
73507         (init_syntax_once, PREFIX(extract_number_and_incr),
73508         PREFIX(print_partial_compiled_pattern),
73509         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73510         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73511         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73512         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73513         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73514         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73515         wcs_compile_range, byte_compile_range, truncate_wchar,
73516         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73517         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73518         count_mbs_length, wcs_re_match_2_internal,
73519         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73520         PREFIX(alt_match_null_string_p),
73521         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73522         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73523         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73524         now-unnecessary declaration, if any.
73525         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73526         regcomp, regexec):
73527         Remove now-unnecessary casts among pointer types.
73528         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73529
73530         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73531         (free): Remove decl.
73532
73533         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73534
73535         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73536         (free): Remove decl.
73537
73538         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73539         * lib/xgetcwd.c: Likewise.
73540
73541         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73542         (free): Remove decl.
73543
73544         * lib/strchrnul.c (strchrnul): Define with a prototype.
73545         Fix bug: c_in was not converted to char before searching.
73546
73547         The following changes are not K&R related:
73548
73549         * lib/group-member.h: Include <sys/types.h>, so that this file is
73550         self-contained.
73551         * lib/makepath.h: Likewise.
73552
73553         * lib/getusershell.c (readname, default_index, line_size, readname):
73554         Use size_t, not int, for sizes.
73555         (readname): If the size overflows, report an error instead of
73556         looping forever.
73557
73558 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73559
73560         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73561         libc.
73562
73563 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73564
73565         * README: New section: portability guidelines.
73566
73567 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73568
73569         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73570         C89 spec.
73571
73572 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73573
73574         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73575
73576 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73577
73578         Assume C89 or better; remove K&R cruft.
73579         A few of these changes were first proposed by Derek Robert Price
73580         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73581
73582         * lib/addext.c: Include <string.h> unconditionally.
73583         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73584         Don't declare getenv or malloc.
73585
73586         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73587         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73588         (NULL): Remove.
73589         (find_stack_direction, alloca): Use prototypes.
73590
73591         * lib/atexit.c (atexit): Define using a prototype.
73592
73593         * lib/basename.c, dirname.c, stripslash.c:
73594         Include <string.h> unconditionally.
73595
73596         * lib/bcopy.c: Include <stddef.h>.
73597         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73598
73599         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73600
73601         * lib/error.h (error, error_at_line, error_print_progname)
73602         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73603         * lib/error.c: Include error.h first, to check interface.
73604         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73605         (VA_START): Remove; all uses changeed to va_start.
73606         (exit, strerror): Remove decls.
73607         (error_print_progname): Prototype uncondionally.
73608         Don't include <errno.h>; no longer needed.
73609         (private_strerror): Remove.
73610         (error_tail): Always define.
73611         (error, error_at_line): Assume C89 or better; always use prototypes.
73612         * lib/fatal.c: Include "fatal.h" first, to test interface.
73613         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73614         (VA_START): Remove; all uses changed to va_start.
73615         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73616         this case.
73617         (exit): Remove decl.
73618         (fatal): Prototype unconditionally.  Assume va_start works.
73619         Abort at end, to pacify gcc.
73620
73621         * lib/euidaccess.c (main): Define with a prototype.
73622
73623         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73624
73625         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73626
73627         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73628         prototypes.
73629         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73630         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73631         (getenv): Remove decl.
73632         (fnmatch): Define using a prototype.
73633         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73634         (FCT): Define using a prototype.
73635
73636         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73637
73638         * lib/gethostname.c: Include <stddef.h>.
73639         (gethostname): Define with prototype.  Length is size_t, not int.
73640
73641 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73642
73643         Assume C89 or better; remove K&R cruft.
73644         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73645         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73646         string.h, getenv, malloc.
73647         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73648         headers.
73649         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73650         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73651         do not check for strerror.
73652         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73653         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73654         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73655         do not check for doprnt or vprintf.
73656         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73657         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73658
73659 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73660
73661         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73662         getversion.c should have been removed then, but was accidentally
73663         preserved.
73664
73665         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73666         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73667
73668 2003-09-08  Karl Berry  <karl@gnu.org>
73669
73670         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73671                 config, forget about prep.
73672
73673         * config/depcomp, missing: update from automake.
73674
73675 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73676
73677         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73678         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73679
73680 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73681
73682         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73683         copy_tm_result.  Bug reported by Simon Josefsson in
73684         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73685
73686 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73687
73688         * m4/time_r.m4: New file.
73689         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73690         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73691         is. Check for timegm declaration.
73692         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73693         Do not check for gmtime_r.
73694         Replace mktime if __mktime_internal does not exist and if mktime
73695         hasn't been replaced already.
73696
73697 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73698
73699         * lib/time_r.c, lib/time_r.h: New files.
73700
73701         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73702         __localtime_r.
73703         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73704         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73705
73706         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73707         __gmtime_r.
73708         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73709         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73710         Include <time_r.h>.
73711
73712         * lib/timegm.c: Switch to glibc implementation, with the following
73713         changes:
73714         [defined HAVE_CONFIG_H]: Include <config.h>.
73715         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73716         (__mktime_internal) [!defined _LIBC]: New decl.
73717         (__gmtime_r) [!defined _LIBC]: New macro and function.
73718         (timegm): Use a prototype, since gnulib assumes C89.
73719         Do not bother declaring tmp to be const, as it's not really usefu.
73720         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73721         (timegm): Declare only if HAVE_DECL_TIMEGM.
73722
73723 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73724
73725         * MODULES.html.sh (func_all_modules): Add time_r.
73726         * modules/time_r: New file.
73727         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73728         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73729
73730 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73731
73732         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73733         Bug reported by Lute Kamstra in
73734         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73735
73736         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73737         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73738         course with correspondingly smaller numbers for tomorrow and
73739         yesterday.  From Tadayoshi Funaba.  Originally installed into
73740         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73741         coreutils merge?).
73742
73743 2003-08-31  Simon Josefsson  <jas@extundo.com>
73744
73745         * modules/timegm: New file.
73746         * MODULES.html.sh (func_all_modules): Add timegm.
73747
73748 2003-08-31  Simon Josefsson  <jas@extundo.com>
73749
73750         * m4/timegm.m4: New file.
73751
73752 2003-08-31  Simon Josefsson  <jas@extundo.com>
73753
73754         * lib/timegm.h: New file.
73755         * lib/timegm.c: New file.  Based on
73756         wget-1.8.2/src/http.c:mktime_from_utc.
73757
73758 2003-08-31  Karl Berry  <karl@gnu.org>
73759
73760         * lib/argp.h: update from libc.
73761
73762 2003-08-28  Bruno Haible  <bruno@clisp.org>
73763
73764         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73765         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73766         followed by '#define fnmatch fnmatch_posix' gives an error.
73767
73768 2003-08-28  Bruno Haible  <bruno@clisp.org>
73769
73770         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73771         warning on QNX, which defines O_BINARY to 000000.
73772
73773 2003-08-27  Jim Meyering  <jim@meyering.net>
73774
73775         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73776         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73777         would fail after 32.  Reported by Danny Levinson.  Details here:
73778         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73779
73780 2003-08-24  Bruno Haible  <bruno@clisp.org>
73781
73782         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73783         MSVC7 <stdio.h> is included later.
73784
73785 2003-08-22  Simon Josefsson  <jas@extundo.com>
73786
73787         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73788
73789 2003-08-20  Karl Berry  <karl@gnu.org>
73790
73791         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73792
73793 2003-08-20  Bruno Haible  <bruno@clisp.org>
73794
73795         * modules/progname: New file.
73796         * MODULES.html.sh (func_all_modules): Add progname.
73797
73798 2003-08-20  Bruno Haible  <bruno@clisp.org>
73799
73800         * lib/progname.h: New file, from GNU gettext.
73801         * lib/progname.c: New file, from GNU gettext.
73802         * lib/progreloc.c: New file, from GNU gettext.
73803
73804 2003-08-19  Jim Meyering  <jim@meyering.net>
73805
73806         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73807         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73808
73809 2003-08-19  Bruno Haible  <bruno@clisp.org>
73810
73811         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73812         more.
73813
73814 2003-08-19  Bruno Haible  <bruno@clisp.org>
73815
73816         * lib/xstrdup.c: Assume <string.h> exists.
73817
73818 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73819
73820         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73821         in makefile rules.
73822
73823 2003-08-18  Jim Meyering  <jim@meyering.net>
73824
73825         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73826         * m4/lib-ld.m4: Likewise.
73827
73828 2003-08-18  Jim Meyering  <jim@meyering.net>
73829
73830         * lib/setenv.h: Indent nested cpp directive.
73831         * lib/vasnprintf.c: Remove trailing blanks.
73832
73833 2003-08-17  Simon Josefsson  <jas@extundo.com>
73834
73835         * modules/xstrndup: New file.
73836         * MODULES.html.sh (func_all_modules): Add xstrndup.
73837
73838 2003-08-17  Simon Josefsson  <jas@extundo.com>
73839
73840         * modules/argp: Fix autoconf macro name. Add more dependencies.
73841
73842 2003-08-17  Simon Josefsson  <jas@extundo.com>
73843
73844         * m4/xstrndup.m4: New file.
73845
73846 2003-08-17  Simon Josefsson  <jas@extundo.com>
73847
73848         * m4/argp.m4: New file.
73849
73850 2003-08-17  Simon Josefsson  <jas@extundo.com>
73851             Bruno Haible  <bruno@clisp.org>
73852
73853         * lib/xstrndup.h: New file.
73854         * lib/xstrndup.c: New file.
73855
73856 2003-08-17  Bruno Haible  <bruno@clisp.org>
73857
73858         * modules/strndup (Files, Include): Add lib/strndup.h.
73859
73860 2003-08-17  Bruno Haible  <bruno@clisp.org>
73861
73862         * modules/euidaccess (Files): Add lib/euidaccess.h.
73863
73864 2003-08-17  Bruno Haible  <bruno@clisp.org>
73865
73866         * lib/strndup.h: New file.
73867
73868 2003-08-17  Bruno Haible  <bruno@clisp.org>
73869
73870         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73871         like AC_GNU_SOURCE.
73872         * modules/extensions (configure.ac): Comment out the invocation of
73873         gl_USE_SYSTEM_EXTENSIONS.
73874
73875 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73876
73877         Merges from coreutils, etc.
73878         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73879         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73880         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73881         fixing a typo.
73882         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73883         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73884
73885 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73886
73887         Document merge from coreutils.
73888         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73889         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73890         * modules/utime: Add m4/utimes-null.m4.
73891
73892 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73893
73894         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73895         space, undoing this 2003-08-12 change:
73896         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73897
73898 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73899
73900         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73901         strtoul.c from libc, undoing this 2003-08-12 change:
73902         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73903
73904 2003-08-16  Jim Meyering  <jim@meyering.net>
73905
73906         Merges from coreutils.
73907         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73908         prefix.  Adjust cache variables similarly.  Create 500 rather than
73909         just 300 files, to exercise bug on Darwin6.5, too.
73910         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73911         $missing_dir.
73912         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73913         AM_SYS_POSIX_TERMIOS.
73914         Reported by mkc@mathdogs.com.
73915         Also change use of $am_cv_sys_posix_termios
73916         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73917         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73918         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73919         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73920         in /proc/mounts until it finds one with matching device number.  This
73921         is unnecessary when the FILE argument *is* a mount point.  No stat call
73922         is necessary in that case.  So, disable the statvfs-testing code on
73923         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73924         as RedHat bug# 84846.
73925         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73926         to 1MB, so as not to render systems with no stack size limit (e.g.,
73927         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73928         Include <unistd.h>.  On some systems,
73929         it is required for the definition of _SC_PAGESIZE.
73930
73931 2003-08-16  Jim Meyering  <jim@meyering.net>
73932
73933         Merge from coreutils.
73934         * lib/xstrtoimax.c: #else #if -> #elif.
73935         * lib/xstrtoumax.c: Likewise.
73936
73937 2003-08-16  Jim Meyering  <jim@meyering.net>
73938
73939         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73940         * m4/utimes.m4: Removed.
73941         * m4/utimes-null.m4: Renamed from utimes.m4.
73942
73943         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73944         to 1MB, so as not to render systems with no stack size limit (e.g.,
73945         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73946         Include <unistd.h>.  On some systems,
73947         it is required for the definition of _SC_PAGESIZE.
73948
73949 2003-08-16  Jim Meyering  <jim@meyering.net>
73950         and Paul Eggert  <eggert@cs.ucla.edu>
73951
73952         Merges from coreutils, etc.
73953
73954         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73955         using the latest version from cvs.  This avoids problems with #line
73956         directives using a vendor (Sun) compiler.
73957         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73958         Don't set GETGROUPS_LIB here; now it's
73959         done via getgroups.m4's wrapper function.
73960         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73961         rather than just in sh-util/configure.in, so that the
73962         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73963         same.
73964         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73965         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73966         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73967         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73968         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73969         Remove code that is now done by the newly-required macros.
73970         Append $(EXEEXT) to DF_PROG.
73971         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73972         Do not invoke or require the following here,
73973         since prereq.m4 or some gnulib .m4 now does this for us:
73974         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73975         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73976         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73977         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73978         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73979         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73980         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73981         AC_FUNC_OBSTACK.
73982         Do not replace the following functions, as this is now the job
73983         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73984         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73985         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73986         atexit getpass, strdup, getpagesize.
73987         Replace 'raise'.
73988         Do not check for the following functions, as this is now the job
73989         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73990         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73991         setregid.
73992         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73993         Check for sys/sysctl.h.
73994         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73995         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73996         of checking for ssize_t ourselves.
73997
73998         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73999         Require every macro that gnulib/modules/* suggests for us.
74000         (jm_PREREQ_ADDEXT): New macro.
74001         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74002         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74003
74004         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74005         (gl_PHYSMEM): Use it.
74006         Also check for `table' function.
74007         Check for new headers and functions.
74008         Add check for sys/sysmp.h.
74009         With suggestions from Kaveh Ghazi.
74010         Ignore headers that are present but cannot be compiled.  This
74011         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74012         C 5.4.
74013
74014 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74015
74016         Document merge from coreutils.
74017         * modules/userspec: Depend on posixver.
74018         * modules/strftime: Depend on tzset.
74019
74020 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74021
74022         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74023         rather than tab, after '#' in shell-script copyright notices.
74024         Suggested by Bruno Haible.
74025
74026 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74027
74028         * config/srclist-update: Use three spaces, rather than tab, after '#'
74029         in shell-script copyright notices.  Suggested by Bruno Haible.
74030         Remove unnecessary parenthesization in regular expression.
74031
74032 2003-08-15  Jim Meyering  <jim@meyering.net>
74033
74034         Merge from coreutils.
74035         * lib/xgethostname.c: Include <stdlib.h>.
74036         (xghostname): Don't exit for anything other than memory-related
74037         failure; just return NULL.
74038         * lib/userspec.c: Include "posixver.h".
74039         (parse_user_spec): Accept `.' as a separator only
74040         in pre-POSIX-200112 mode.
74041         * lib/strtoimax.c: Use #elif rather than #else #if.
74042         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74043         Remove function, now that we can rely on a working tzset function.
74044         [!_LIBC]: Ensure that the required autoconf test has been run.
74045         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74046         Use underlying_strftime for %r.
74047         * lib/sha.c: Merge in some clean-up and optimization changes from
74048         glibc.
74049         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74050         Ensure that it is a multiple of 64.
74051         Rearrange loop exit tests so as to avoid performing an
74052         additional fread after encountering an error or EOF.
74053         * lib/realloc.c: Update copyright date.
74054
74055 2003-08-15  Jim Meyering  <jim@meyering.net>
74056         and Paul Eggert  <eggert@twinsun.com>
74057
74058         Merge from coreutils.
74059         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74060         member but strut utmpx does not.  Needed for AIX 4.3.3.
74061         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74062
74063 2003-08-15  Jim Meyering  <jim@meyering.net>
74064         and Paul Eggert  <eggert@cs.ucla.edu>
74065
74066         Merges from coreutils, etc.
74067         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74068         Require gl_FUNC_TZSET_CLOBBER.
74069         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74070         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74071         members.
74072
74073 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74074
74075         Help the merge from coreutils.
74076         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74077         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74078         * m4/tzset.m4: Use it too.
74079
74080 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74081
74082         * modules/tzset: New file.
74083
74084 2003-08-14  Jim Meyering  <jim@meyering.net>
74085
74086         Merges from coreutils.
74087         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74088         variable names, rather than @FNMATCH_H@.
74089         * modules/alloca: Likewise for $(ALLOCA_H).
74090
74091         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74092         the three copies of the literal target, `fnmatch.h'.
74093         * modules/alloca (alloca.h): Likewise.
74094
74095 2003-08-14  Jim Meyering  <jim@meyering.net>
74096
74097         Merge from coreutils.
74098         * m4/tzset.m4: New file.
74099         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74100         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74101         otherwise, AIX 5.1 systems would end up using the latter.
74102         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74103         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74104         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74105         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74106
74107 2003-08-14  Jim Meyering  <jim@meyering.net>
74108
74109         Merge from coreutils.
74110         * lib/obstack.h: Whitespace changes.
74111         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74112         and xcalloc return values.
74113         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74114         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74115         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74116         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74117         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74118         error from mntctl.
74119         Use mntctl's return value to drive the entry-processing loop, since
74120         we can't rely on the value of the vmt_length member in the last
74121         entry.  On some systems doing so could result in exhausting
74122         virtual memory.  Based in part on a patch from Mike Jetzer.
74123
74124 2003-08-14  Jim Meyering  <jim@meyering.net>
74125         and Paul Eggert  <eggert@twinsun.com>
74126
74127         Merges from coreutils, plus other fixes.
74128         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74129         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74130         for credits and details.  Thanks to Kaveh Ghazi for helping
74131         to keep these files in sync.
74132         (ARRAY_SIZE): Define it.
74133         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74134         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74135         (memcasecmp): Don't assume size_t fits in unsigned int.
74136         Remove casts and duplicate code.
74137         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74138         (memcpy): Remove definition.
74139         Merge in some clean-up and optimization changes from glibc.
74140         [BLOCKSIZE]: Move definition to top of file.
74141         Ensure that it is a multiple of 64.
74142         Rearrange loop exit tests so as to avoid performing an
74143         additional fread after encountering an error or EOF.
74144         * lib/md5.h (md5_uintptr): Define.
74145         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74146         return to the initial working directory.  Preserve errno
74147         for caller.
74148         * lib/idcache.c: Include "xalloc.h".
74149         (xmalloc, xrealloc): Remove decls.
74150         (getuser): Remove casts no longer required in C89.
74151         * lib/human.c: Include stdio.h, for sprintf.
74152         * lib/group-member.c: Include "xalloc.h".
74153         (xmalloc, xrealloc): Remove decls.
74154         (get_group_info): Remove casts no longer required in C89.
74155         * lib/getusershell.c (readname): Remove casts no longer required in
74156         C89.
74157         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74158         * lib/getline.c: Whitespace fix, from coreutils.
74159
74160 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74161
74162         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74163         Check for isascii.
74164
74165         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74166         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74167         Undo previous (whitespace-only) change.
74168
74169 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74170
74171         * lib/exclude.c: Include <ctype.h>
74172         (IN_CTYPE_DOMAIN): New macro.
74173         (is_space): New fn.
74174         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74175         and empty lines.
74176
74177         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74178         Undo previous (whitespace-only) change.
74179
74180 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74181
74182         * config/srclist-update: Change update back to the old behavior,
74183         leaving whitespace alone.  Use one 'sed' command rather than a
74184         pipeline.
74185         (fixlicense): Now a variable, not a function.
74186         (remove_trailing_blanks): Remove.
74187         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74188         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74189         Undo previous (whitespace-only) change.
74190
74191 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74192
74193         Merge from coreutils.
74194         * modules/euidaccess: Add lib_SOURCES, include for new
74195         file euidaccess.h
74196
74197 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74198
74199         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74200         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74201         Normalize leading white space and remove trailing white space.
74202
74203         Merge from coreutils
74204         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
74205
74206         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
74207         0.12.1.  These files are now being upgraded automatically by
74208         ../config/srclist-update.
74209
74210 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74211
74212         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74213         Normalize leading white space and remove trailing white space.
74214         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
74215         notice, as per ../config/srclist-update.
74216
74217         Merge from coreutils.
74218         * lib/euidaccess.h: New file.
74219         * lib/euidaccess.c: Include it.
74220         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
74221         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
74222         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
74223
74224 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74225
74226         * config/srclist-update: Add copyright notice.
74227         (remove_id_lines, remove_trailing_blanks): New constants.
74228         (fixfile): Use them to normalize spacing a bit in copied files.
74229         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74230         Normalize leading white space and remove trailing white space.
74231
74232         * config/texinfo.tex: Sync with texinfo.
74233
74234         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
74235         strtoul.c from libc, to merge coreutils whitespace changes.
74236
74237         * config/srclist.txt: Get the following m4 files from gettext:
74238         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
74239         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
74240         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
74241         wint_t.m4.
74242
74243 2003-08-12  Karl Berry  <karl@gnu.org>
74244
74245         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
74246         been made.
74247
74248 2003-08-11  Paul Eggert  <eggert@twinsun.com>
74249
74250         * modules/gnu-source, m4/gnu-source.m4:
74251         Remove; we're assuming Autoconf 2.54 or later now.
74252         Suggested by Bruno Haible.
74253         * MODULES.html.sh (func_all_modules): Remove gnu-source.
74254
74255 2003-08-11  Bruno Haible  <bruno@clisp.org>
74256
74257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
74258
74259 2003-08-11  Bruno Haible  <bruno@clisp.org>
74260
74261         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
74262         (vasnprintf): Use it instead of wcslen.
74263
74264 2003-08-11  Bruno Haible  <bruno@clisp.org>
74265
74266         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
74267         value to ensure that _Bool promotes to int. Use #define for _Bool when
74268         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
74269
74270 2003-08-10  Karl Berry  <karl@gnu.org>
74271
74272         * lib/regex.h: update from libc (whitespace fix).
74273
74274 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74275
74276         Merge some files from coreutils.  These changes were
74277         originally made by Jim Meyering.
74278         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74279         many older Unixes require this.
74280         * lib/alloca.c (alloca): Remove cast to argument of free;
74281         no longer needed in C89.
74282         * lib/alloca_.h, regex.h: Fix white space to match
74283         what GNU indent does.
74284
74285 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74286
74287         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74288         apparently Emacs's Unicode mode got confused before my 2003-08-05
74289         checkin.
74290
74291 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74292
74293         * m4/extensions.m4: New file.
74294         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74295         Require gl_USE_SYSTEM_EXTENSIONS.
74296         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74297         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74298
74299 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74300
74301         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74302         * modules/extensions, modules/gnu-source: New files.
74303         * modules/timespec, modules/unlocked-io: Depend on extensions.
74304
74305 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74306
74307         * modules/restrict: New file.
74308         * MODULES.html.sh (func_all_modules): Add restrict.
74309         * modules/regex: Depend on restrict.
74310
74311 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74312
74313         * m4/restrict.m4: New file.
74314         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74315
74316 2003-08-07  Bruno Haible  <bruno@clisp.org>
74317
74318         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
74319         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
74320
74321 2003-08-07  Bruno Haible  <bruno@clisp.org>
74322
74323         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
74324         makes the module 'getndelim2' compatible with the module 'getline'.
74325
74326 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74327
74328         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
74329         byte with "\201" to avoid glitches when editing that source file
74330         with multi-gnome-terminal.
74331
74332 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74333
74334         * lib/bumpalloc.h: Remove.
74335
74336 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74337
74338         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
74339         * modules/bumpalloc: Remove.
74340
74341 2003-08-04  Paul Eggert  <eggert@twinsun.com>
74342
74343         * lib/getloadavg.c: Change copyright notice and spacing to conform to
74344         GNU coding style.
74345
74346         Merge from coreutils.
74347         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
74348         1. From glibc.
74349         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
74350         from Karl Berry, implemented by Jim Meyering.
74351         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
74352         from Dmitry V. Levin.
74353         Remove anachronistic cast of xrealloc.
74354         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
74355         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
74356         type. Otherwise, it wouldn't compile with at least /bin/cc on
74357         ymp-cray-unicos9.0.2.X.
74358         Combine two mostly-identical uses of alloca into one.
74359         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
74360
74361 2003-08-04  Dave Love  <d.love@dl.ac.uk>
74362
74363         [From Emacs.]
74364
74365         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
74366         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
74367         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
74368         obsolete NLIST_NAME_UNION.
74369         [__GNU__]: Undef BSD and FSCALE.
74370         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
74371
74372 2003-08-03  Paul Eggert  <eggert@twinsun.com>
74373
74374         * lib/stdbool_.h (_Bool): Make it signed char, instead of
74375         an enum type, so that it's guaranteed to promote to int.  See:
74376         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74377
74378 2003-08-03  Karl Berry  <karl@gnu.org>
74379
74380         * config/depcomp: update from automake.
74381
74382 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74383
74384         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74385         (strerror): Don't assume that a printable int fits in 14 bytes.
74386
74387 2003-07-31  Bruno Haible  <bruno@clisp.org>
74388
74389         * modules/getpass-gnu: New file.
74390         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74391
74392 2003-07-31  Bruno Haible  <bruno@clisp.org>
74393
74394         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74395
74396 2003-07-24  Karl Berry  <karl@gnu.org>
74397
74398         * config/missing: update from automake.
74399
74400 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74401             Bruno Haible  <bruno@clisp.org>
74402
74403         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74404         * lib/getline.c (getline, getdelim): Likewise.
74405         Remove _GNU_SOURCE define; now it's defined in config.h through
74406         m4/getline.m4.
74407
74408 2003-07-23  Karl Berry  <karl@gnu.org>
74409
74410         * config/config.sub: update from prep.
74411
74412 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74413
74414         * modules/xalloc (Depends-on): Add exitfail.
74415         * modules/xmemcoll: Likewise.
74416
74417 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74418
74419         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74420         over-parenthesization in macros.
74421
74422         Sync with coreutils.
74423
74424         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74425         required by C99.
74426
74427         Use `exit_failure' for xalloc and xmemcoll instead of their own
74428         private exit-failure variables.
74429         * lib/xalloc.h (xalloc_exit_failure): Remove.
74430         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74431         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74432         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74433         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74434         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74435
74436 2003-07-20  Jim Meyering  <jim@meyering.net>
74437
74438         * modules/closeout (Depends-on): Add exitfail.
74439         Suggestion from Bruno Haible.
74440
74441 2003-07-19  Karl Berry  <karl@gnu.org>
74442
74443         * config/config.sub: update from prep.
74444
74445 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74446
74447         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74448         Remove.
74449         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74450         to test that it can stand by itself.  Include "exitfail.h".
74451         Clients should set exit_failure instead.
74452         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74453
74454 2003-07-18  Bruno Haible  <bruno@clisp.org>
74455
74456         * modules/getndelim2: New file.
74457         * modules/getline: Share files with module getndelim2.
74458         * modules/getnline: Depend on getndelim2 instead of sharing files with
74459         it. Add getnline.c to lib_SOURCES.
74460         * MODULES.html.sh (func_all_modules): Add getndelim2.
74461
74462 2003-07-18  Bruno Haible  <bruno@clisp.org>
74463
74464         * m4/getndelim2.m4: New file.
74465         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74466         invoke gl_PREREQ_GETNDELIM2.
74467         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74468         gl_PREREQ_GETNDELIM2.
74469         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74470         gl_GETNDELIM2.
74471
74472 2003-07-18  Bruno Haible  <bruno@clisp.org>
74473
74474         * lib/getndelim2.h: New file.
74475         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74476         getndelim2.h.
74477         (getndelim2): Make non-static. Change return type to ssize_t.
74478         * lib/getline.h: Change argument names.
74479         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74480         * lib/getnline.c: Include getndelim2.h.
74481
74482 2003-07-18  Andreas Schwab  <schwab@suse.de>
74483
74484         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74485
74486 2003-07-17  Karl Berry  <karl@gnu.org>
74487
74488         * config/config.sub: update from prep.
74489
74490 2003-07-17  Bruno Haible  <bruno@clisp.org>
74491
74492         * modules/getnline: New file.
74493         * modules/getline: Add lib/getndelim2.c to source file list.
74494         * MODULES.html.sh (func_all_modules): Add getnline.
74495
74496 2003-07-17  Bruno Haible  <bruno@clisp.org>
74497
74498         * m4/getnline.m4: New file.
74499
74500 2003-07-17  Bruno Haible  <bruno@clisp.org>
74501
74502         * m4/Makefile.am.in: Remove file.
74503         * m4/Makefile.am: Remove file.
74504         * m4/Makefile.in: Remove file.
74505
74506 2003-07-17  Bruno Haible  <bruno@clisp.org>
74507
74508         * lib/getnline.h: New file.
74509         * lib/getnline.c: New file.
74510         * lib/getndelim2.c: New file, extracted from getline.c.
74511         (getndelim2): Renamed from getdelim2, with added nmax argument.
74512         * lib/getline.c: Include getndelim2.c.
74513         (getdelim2): Moved out to getndelim2.c.
74514         (getline, getdelim): Update.
74515
74516 2003-07-17  Bruno Haible  <bruno@clisp.org>
74517
74518         * lib/Makefile.am: Remove file.
74519         * lib/Makefile.in: Remove file.
74520
74521 2003-07-17  Bruno Haible  <bruno@clisp.org>
74522
74523         * configure.in: Remove file.
74524         * Makefile.in: Remove file.
74525
74526 2003-07-17  Bruno Haible  <bruno@clisp.org>
74527
74528         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74529
74530 2003-07-16  Karl Berry  <karl@gnu.org>
74531
74532         * config/srclist-update: was running fixlicense twice, which caused
74533                 texinfo.tex to be nullified for some reason.  Simplify,
74534                 $gplsrc is no longer needed as far as I can see?
74535
74536 2003-07-16  Jim Meyering  <jim@meyering.net>
74537
74538         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74539
74540 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74541
74542         * config/srclist.txt: Get the following files from gettext-runtime/intl
74543         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74544         ref-del.sin.  From Bruno Haible.
74545         * config/srclist-update (fixfile): Change grep pattern again, since the
74546         previous fix didn't work (there was another trailing $).  Use
74547         '[$]' to escape the $s.
74548
74549 2003-07-15  Karl Berry  <karl@gnu.org>
74550
74551         * lib/vasnprintf.c: update from gettext.
74552
74553 2003-07-15  Karl Berry  <karl@gnu.org>
74554
74555         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74556         gets expanded when surrounded by '$'.
74557
74558 2003-07-15  Jim Meyering  <jim@meyering.net>
74559
74560         * modules/save-cwd: Don't depend on error.  From Derek Price.
74561
74562 2003-07-15  Jim Meyering  <jim@meyering.net>
74563
74564         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74565
74566 2003-07-14  Simon Josefsson  <jas@extundo.com>
74567
74568         * modules/mempcpy: New file.
74569         * MODULES.html.sh (func_all_modules): Add mempcpy.
74570
74571 2003-07-14  Simon Josefsson  <jas@extundo.com>
74572
74573         * m4/mempcpy.m4: New file.
74574
74575 2003-07-14  Simon Josefsson  <jas@extundo.com>
74576
74577         * lib/mempcpy.h: New file.
74578         * lib/mempcpy.c: New file.
74579
74580 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74581
74582         * modules/getdate, modules/posixtm: Depend on mktime.
74583
74584 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74585
74586         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74587         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74588         unicodeio.c, unicodeio.h, unlocked-io.h:
74589         Switch from LGPL to GPL.
74590
74591 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74592
74593         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74594         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74595         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74596         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74597         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74598         updated automatically by ../config/srclist-update.  This changes
74599         their license from LPGL to GPL.
74600
74601 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74602
74603         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74604         assumed to refer to the root of the most recent stable gettext version.
74605         * config/srclistvars.sh: Add defaults for eggert.
74606         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74607         Match "This program" as well as "The program".  This is needed
74608         for gettext.
74609
74610 2003-07-14  Jim Meyering  <jim@meyering.net>
74611
74612         Don't emit diagnostics.  Let callers do that.
74613         * lib/save-cwd.c: Don't include "error.h".
74614         (save_cwd): Don't call error.  Ensure that errno is valid
74615         when returning nonzero.
74616
74617         * lib/save-cwd.h (restore_cwd): Update prototype.
74618         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74619         Simplify.  Don't call error upon failure.  Let callers do that.
74620         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74621         when auditing is enabled.  But don't bother updating the #if.
74622
74623 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74624
74625         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74626         it breaks C++ compilation.
74627         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74628
74629 2003-07-10  Simon Josefsson  <jas@extundo.com>
74630
74631         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74632
74633 2003-07-10  Jim Meyering  <jim@meyering.net>
74634
74635         * m4/clock_time.m4: Remove trailing blank.
74636         * m4/intmax_t.m4: Likewise.
74637
74638 2003-07-10  Jim Meyering  <jim@meyering.net>
74639
74640         * lib/vasnprintf.c: Remove trailing blanks.
74641         Make cpp indentation consistent.
74642
74643 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74644
74645         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74646         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74647         Switch from LGPL to GPL.
74648
74649 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74650
74651         * config/srclist.txt: Sort sublists.  Add
74652         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74653         that differ from gnulib for one reason or another; we'd like this list
74654         to be smaller but for now let's document what we have.
74655
74656 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74657
74658         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74659         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74660         and sweeter "eval x=$x".
74661         * config/srclist.txt: Get lib/argp* from glibc.
74662
74663 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74664
74665         * lib/mktime.c: Fix some boundary cases and remove need for floating
74666         point.
74667
74668         Issue a compile-time diagnostic if time_t is floating point, or if
74669         two's complement arithmetic is not in effect, or if arithmetic
74670         right shift does not propagate the sign.  These assumptions were
74671         all in the original code but they weren't checked.
74672
74673         (TIME_T_MIDPOINT, verify): New macros.
74674         (__isleap): Remove; it has integer overflow problems.
74675         (leapyear): New function, without those problems.
74676         (ydhms_tm_diff): Remove; splitting into two parts.
74677         (ydhms_diff): New function, containing the arithmetic part of
74678         the old ydhms_tm_diff function.  Issue a compile-time
74679         diagnostic if we are not using C99 integer division.
74680         Avoid casts when possible.
74681         (guess_time_tm): New function, containing the checking part of
74682         the old ydhms_tm_diff function.  Return the new value, rather than
74683         the difference between it and the old.  Accept a new argument T
74684         so that *T specifies the old value.  Check for overflow in the result.
74685
74686         (__mktime_internal): Use a time_t offset, not a long int offset.
74687         This undoes the 2003-06-04 change, which is no longer needed now
74688         that we have better overflow checking.
74689         (localtime_offset): Likewise.
74690
74691         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74692         and long are 64-bit but int is only 32-bit.
74693         (ydhms_diff): Use long int to store year1 and yday1.
74694         Issue a compile-time diagnostic if long int is not wide enough.
74695
74696         (__mktime_internal): Use long int to store adjusted year and yday.
74697         Use plain C rather than preprocessor commands, if that doesn't
74698         affect efficiency.
74699         Check for overflow (and try to repair) after each probe
74700         rather than checking only at the very end.  This avoids some bugs
74701         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74702         does not equal GMT offset at maximum time).
74703         Use integer to check for overflow rather than floating point; this
74704         is more portable to non-IEEE hosts, and is a tad faster.
74705         When we detect that we are oscillating between two values,
74706         don't check whether tm_isdst has the requested value, since
74707         we already know the answer.  When tm_isdst has the wrong value,
74708         use a different heuristic to find the right one, based on the
74709         extreme values actually observed in practice in tz2003a,
74710         rather than the (overly optimistic) "previous 3 calendar quarters".
74711
74712         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74713         "T const" to accommodate glibc style.
74714         (check_result): Use less-confusing report format.  "long" -> "long int.
74715         (main): Likewise.
74716         Don't loop if the iteration overflows time_t.
74717         Allow a negative step in the iteration.
74718
74719 2003-07-06  Karl Berry  <karl@gnu.org>
74720
74721         * config/depcomp: update from automake.
74722         * config/config.sub: update from prep.
74723
74724 2003-07-03  Karl Berry  <karl@gnu.org>
74725
74726         * config/config.guess: update from prep.
74727
74728 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74729
74730         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74731         xreadlink.c now includes it unconditionally.
74732
74733 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74734
74735         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74736         having it depend on HAVE_SYS_TYPES_H.
74737
74738 2003-07-01  Bruno Haible  <bruno@clisp.org>
74739
74740         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74741         <sys/types.h> should be sufficient.
74742         Reported by Paul Eggert.
74743
74744 2003-06-26  Karl Berry  <karl@gnu.org>
74745
74746         * config/depcomp: update from automake.
74747
74748 2003-06-26  Bruno Haible  <bruno@clisp.org>
74749
74750         * modules/human: Depend on module stdbool.
74751
74752 2003-06-25  Bruno Haible  <bruno@clisp.org>
74753
74754         * modules/readlink: New file.
74755         * modules/xreadlink: Depend on it.
74756         * MODULES.html.sh (func_all_modules): Add readlink.
74757
74758 2003-06-25  Bruno Haible  <bruno@clisp.org>
74759
74760         * m4/readlink.m4: New file.
74761
74762 2003-06-25  Bruno Haible  <bruno@clisp.org>
74763
74764         * lib/readlink.c: New file.
74765
74766 2003-06-22  Karl Berry  <karl@gnu.org>
74767
74768         * config/srclist.txt: update mkinstalldirs from automake.
74769         * config/mkinstalldirs: update.
74770
74771 2003-06-22  Bruno Haible  <bruno@clisp.org>
74772
74773         Portability to mingw32.
74774         * m4/ssize_t.m4: New file, from GNU gettext.
74775         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74776         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74777
74778 2003-06-22  Bruno Haible  <bruno@clisp.org>
74779
74780         * modules/safe-read: Add m4/ssize_t.m4.
74781         * modules/xreadlink: Add m4/ssize_t.m4.
74782
74783 2003-06-20  Bruno Haible  <bruno@clisp.org>
74784
74785         Assume C89, so PARAMS isn't needed.
74786         * lib/unicodeio.h (PARAMS): Remove.
74787         * lib/unicodeio.c: Don't use PARAMS.
74788
74789 2003-06-18  Karl Berry  <karl@gnu.org>
74790
74791         * config/config.{guess,sub}: update from prep.
74792
74793 2003-06-18  Jim Meyering  <jim@meyering.net>
74794
74795         Merge changes from coreutils.
74796         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74797         Remove explicit declarations of xmalloc and realloc.
74798         Include xalloc.h.
74799         (read_utmp): Remove anachronistic cast of xmalloc.
74800
74801 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74802
74803         Assume C89, so PARAMS isn't needed.
74804         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74805         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74806         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74807         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74808         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74809         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74810         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74811         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74812         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74813         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74814         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74815         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74816         no longer needed. Anyway, config.h should always be included before any
74817         other file.
74818
74819 2003-06-11  Simon Josefsson  <jas@extundo.com>
74820
74821         * modules/sysexits: New file.
74822         * MODULES.html.sh (func_all_modules): Add sysexits.
74823
74824 2003-06-11  Simon Josefsson  <jas@extundo.com>
74825
74826         * lib/sysexit_.h: New file.
74827
74828 2003-06-11  Derek Price  <derek@ximbiot.com>
74829
74830         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74831         necessary.
74832
74833 2003-06-11  Bruno Haible  <bruno@clisp.org>
74834
74835         * m4/sysexits.m4: New file.
74836
74837 2003-06-10  Simon Josefsson  <jas@extundo.com>
74838
74839         * lib/argp.h: New file, from glibc.
74840         * lib/argp-ba.c: New file, from glibc.
74841         * lib/argp-eexst.c: New file, from glibc.
74842         * lib/argp-fmtstream.c: New file, from glibc.
74843         * lib/argp-fmtstream.h: New file, from glibc.
74844         * lib/argp-fs-xinl.c: New file, from glibc.
74845         * lib/argp-help.c: New file, from glibc.
74846         * lib/argp-namefrob.h: New file, from glibc.
74847         * lib/argp-parse.c: New file, from glibc.
74848         * lib/argp-pv.c: New file, from glibc.
74849         * lib/argp-pvh.c: New file, from glibc.
74850         * lib/argp-xinl.c: New file, from glibc.
74851
74852 2003-06-10  Simon Josefsson  <jas@extundo.com>
74853
74854         * modules/strchrnul: New file.
74855
74856 2003-06-10  Simon Josefsson  <jas@extundo.com>
74857
74858         * modules/argp: New file.
74859
74860 2003-06-10  Simon Josefsson  <jas@extundo.com>
74861
74862         * m4/strchrnul.m4: New file.
74863
74864 2003-06-10  Simon Josefsson  <jas@extundo.com>
74865
74866         * lib/strchrnul.h: New file.
74867         * lib/strchrnul.c: New file.
74868
74869 2003-06-10  Bruno Haible  <bruno@clisp.org>
74870
74871         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74872
74873 2003-06-07  Karl Berry  <karl@gnu.org>
74874
74875         * config/config.{guess,sub}: update from prep.
74876
74877 2003-06-07  Jim Meyering  <jim@meyering.net>
74878
74879         * modules/strtod: Use $(...) notation, not @...@ for
74880         AC_REPLACE'd variables.
74881         * modules/localcharset: Likewise.
74882
74883 2003-06-07  Jim Meyering  <jim@meyering.net>
74884
74885         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74886         in place of my name in the copyright comment.
74887         Remove definition and uses of __P.
74888
74889         From coreutils.
74890         * lib/stat.c: Don't declare xmalloc explicitly.
74891         Instead, include "xalloc.h".
74892         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74893         xrealloc, and xcalloc return values.
74894         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74895         Improve comment.
74896         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74897
74898 2003-06-07  Bruno Haible  <bruno@clisp.org>
74899
74900         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74901         avoid AC_CONFIG_LINKS.
74902         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74903         fnmatch.h, to avoid AC_CONFIG_LINKS.
74904         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74905
74906 2003-06-07  Bruno Haible  <bruno@clisp.org>
74907
74908         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74909         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74910         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74911         directory.
74912         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74913         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74914         directory.
74915
74916 2003-06-06  Jim Meyering  <jim@meyering.net>
74917
74918         Merge from coreutils.
74919         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74920         Consolidate declarations and initializations of *_base* locals.
74921
74922         Merge from coreutils.
74923         This avoids a core dump on systems without GNU putenv,
74924         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74925         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74926         (unsetenv): New static function, from GNU libc.
74927         (rpl_putenv): Use it.
74928
74929         * lib/modechange.c: Remove trailing blanks.
74930
74931         Merge from coreutils.
74932         * lib/fsusage.c: Remove declaration of statfs.
74933         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74934
74935         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74936
74937 2003-06-06  Jim Meyering  <jim@meyering.net>
74938
74939         * lib/stdbool_.h: Renamed from stdbool.h.in.
74940
74941 2003-06-06  Jim Meyering  <jim@meyering.net>
74942             Bruno Haible  <bruno@clisp.org>
74943
74944         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74945         Adjust Makefile.am snippet not to redirect directly to target.
74946         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74947
74948 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74949
74950         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74951         mismatch, look in future quarters as well as past.  This fixes a
74952         bug when processing fall-backwards gaps immediately after a long
74953         period of daylight-saving time.
74954
74955         * lib/mktime.c: Assume freestanding C89 or better.
74956         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74957         (__P): Remove; not used.
74958         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74959         (mktime, not_equal_tm, print_tm, check_result,
74960         main): Use prototypes.  Use const * where appropriate.
74961         (main): Fix typo in testing code that uncovered by above changes.
74962         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74963
74964 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74965
74966         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74967         locale.h, localeconv.  This merges changes from coreutils.
74968
74969         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74970         It can be removed after the next Autoconf is released.
74971         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74972         needed.
74973
74974 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74975
74976         * lib/mktime.c: Fix Debian bug 177940
74977         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74978         (localtime_offset): Now long int, not time_t, because we want it
74979         to be guaranteed to be signed.  All uses changed.
74980         (__mktime_internal): If overflow would occur when adding offset,
74981         don't add it.
74982
74983         Merge 'human' changes from coreutils.  Rewrite to support
74984         locale-specific notations like thousands separators.
74985         * lib/human.c: Simplify authorship notice.
74986         Include human.h immediately after config.h.
74987         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74988         <limits.h>: Do not include, since human.h does.
74989         (SIZE_MAX, UINTMAX_MAX): New macros.
74990         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74991         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74992         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74993         (power_letter): Renamed from suffixes.
74994         (generate_suffix_backwards): Remove.
74995         (adjust_value): Now takes int style (because of human.h changes)
74996         and long double value (for greater precision on some platforms).
74997         (group_number): New function.
74998         (human_readable): Use it.  Use integer options, not enum.
74999         Put the options before the sizes in the arg list.
75000         Support all the new options.
75001         The old human_readable function has been removed;
75002         use inttostr.h instead.
75003         (human_readable, default_block_size, humblock):
75004         Use uintmax_t, not int, for block sizes.
75005         (human_readable_inexact, block_size_types): Remove.
75006         (block_size_opts): New constant.
75007         (human_options): Renamed from human_block_size, with new signature
75008         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75009         * lib/human.h: Add copyright and authorship notice.
75010         Include <limits.h> and <stdbool.h> unconditionally.
75011         (PARAMS): Remove.  All uses removed.
75012         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75013         (enum human_inexact_style): Remove tag; now a nameless enum.
75014         (human_floor, human_ceiling, human_round_to_even): Now have
75015         values 2, 0, 1 rather than -1, 1, 0.
75016         (human_group_digits, human_suppress_point_zero, human_autoscale,
75017         human_base_1024, human_SI, human_B): New constants.
75018         (human_readable_inexact, human_block_size): Remove.
75019         (human_readable): Size args are now uintmax_t, not int.
75020         (human_options): New decl.
75021
75022         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75023         unnecessary now that we assume C89 or better.  This change
75024         imported from coreutils.
75025
75026         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75027         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75028         in the 2003-05-30 sync from glibc.
75029
75030         .h files should stand alone, but we shouldn't include <sys/types.h>
75031         if we can get away with just <stddef.h>.
75032
75033         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75034         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75035         rather than <sys/types.h>, as we merely need size_t.
75036         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75037         to get size_t.
75038         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75039         Include <stdio.h>, to get FILE.
75040         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75041         memcasecmp.h has included <stddef.h> and all we need is size_t.
75042         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75043         our interface, instead of including <sys/types.h>
75044
75045 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75046
75047         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75048         now, as glibc mktime is buggy on non-glibc systems.
75049
75050 2003-06-03  Karl Berry  <karl@gnu.org>
75051
75052         * config/config.sub: update from prep.
75053
75054 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75055
75056         [from coreutils]
75057         Fix some minor time-related bugs with POSIX time arguments.
75058         Some valid time stamps were being rejected (notably -1, and
75059         time stamps before 1900 on 64-bit hosts).  And some invalid
75060         time stamps were being accepted, e.g. September 31.
75061
75062         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75063         that we can return (time_t) -1 successfully.
75064         * lib/posixtm.c: Likewise.
75065         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75066         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75067         (t): Remove static var.
75068         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75069         of static var.  All uses changed.
75070         (year): Do not reject years before 1900; they can occur with
75071         64-bit time_t.
75072         (posix_time_parse): Do not check for out-of-range components;
75073         that is now the caller's responsibility, since our checks were
75074         only approximations.
75075         (posixtime): Use mktime to check for out-of-range components,
75076         since it knows them exactly.
75077         If mktime returns (time_t) -1, check whether an error actually occurred
75078         by invoking localtime on -1.
75079         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75080         posixtime failures better.
75081         Improve the test data (in comments only).
75082
75083 2003-06-02  Karl Berry  <karl@gnu.org>
75084
75085         * config/mkinstalldirs (version): new variable.
75086         (--version): new option.
75087         (usage): improve message.
75088
75089 2003-05-30  Karl Berry  <karl@gnu.org>
75090
75091         * lib/mktime.c: update from libc.
75092
75093 2003-05-30  Bruno Haible  <bruno@clisp.org>
75094
75095         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75096         * config/config.rpath: Upgrade to gettext-0.12.1.
75097
75098 2003-05-30  Bruno Haible  <bruno@clisp.org>
75099
75100         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75101         * m4/nls.m4: New file, from gettext-0.12.1.
75102         * m4/po.m4: New file, from gettext-0.12.1.
75103         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75104
75105 2003-05-30  Bruno Haible  <bruno@clisp.org>
75106
75107         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75108         * lib/localcharset.h: Likewise.
75109         * lib/localcharset.c: Likewise.
75110
75111 2003-05-29  Karl Berry  <karl@gnu.org>
75112
75113         * config/config.rpath: update from gettext.
75114
75115 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75116
75117         Assume the headers required for C89 freestanding compilers.
75118         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75119         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75120         * m4/human.m4 (gl_HUMAN): Likewise.
75121         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75122         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75123         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75124         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75125         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75126         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75127
75128 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75129
75130         Assume the headers required for C89 freestanding compilers.
75131         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75132         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75133         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75134         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75135         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75136         define, since <limits.h> is guaranteed to do that.
75137         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75138         * lib/exclude.c: Include <stdbool.h> unconditionally.
75139         * lib/tempname.c: Include <stddef.h> unconditionally.
75140         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75141         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75142         <stddef.h> does that.
75143         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75144         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75145         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75146         needed.
75147         * lib/xstrtol.c: Likewise.
75148         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75149         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75150
75151         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75152         warnings on some platforms.
75153
75154         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75155         arbitrarily.
75156
75157 2003-05-26  Jim Meyering  <jim@meyering.net>
75158
75159         Merge in a change from coreutils:
75160         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75161         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75162         that condition, rather than `-1' which is slightly misleading.
75163         Change the name of the cache variable to have the gl_ prefix.
75164         Prompted by a patch from Richard Dawe for DJGPP.
75165
75166 2003-05-24  Karl Berry  <karl@gnu.org>
75167
75168         * config/config.guess: update from prep.
75169
75170 2003-05-22  Karl Berry  <karl@gnu.org>
75171
75172         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75173
75174 2003-05-20  Karl Berry  <karl@gnu.org>
75175
75176         * config/config.guess: update from prep.
75177
75178 2003-05-18  Karl Berry  <karl@gnu.org>
75179
75180         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75181         might actually be set by the user.
75182
75183         * config/depcomp, install-sh, mdate-sh: update from automake.
75184
75185 2003-05-17  Bruno Haible  <bruno@clisp.org>
75186
75187         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75188         invalid expansion for AC_EGREP_CPP.
75189         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75190         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75191         Suggested by Akim Demaille <akim@epita.fr> in
75192         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75193
75194 2003-05-12  Jim Meyering  <jim@meyering.net>
75195
75196         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75197         the space-padded-by-default conversion specifiers, %e, %k, %l.
75198
75199 2003-05-12  Bruno Haible  <bruno@clisp.org>
75200
75201         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
75202         the string is longer than 4 KB.
75203
75204 2003-05-11  Karl Berry  <karl@gnu.org>
75205
75206         * config/config.{guess,sub}: update from prep.
75207
75208 2003-05-09  Bruno Haible  <bruno@clisp.org>
75209
75210         * modules/error: Add m4/strerror_r.m4 to file list.
75211
75212 2003-05-03  Bruno Haible  <bruno@clisp.org>
75213
75214         Upgrade to Unicode-4.0.
75215         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
75216         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
75217         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
75218         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
75219         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
75220         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
75221         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
75222         Change width of U+E0100..U+E01EF from 1 to 0.
75223
75224 2003-04-25  Jim Meyering  <jim@meyering.net>
75225
75226         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
75227         of type size_t, not int.
75228
75229 2003-04-25  Bruno Haible  <bruno@clisp.org>
75230
75231         * lib/copy-file.c: Include <stddef.h>, for size_t.
75232
75233 2003-04-21  Paul Eggert  <eggert@twinsun.com>
75234
75235         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
75236         code which expansion is under static control.  Patch imported from
75237         Akim Demaille's patch to Bison; see
75238         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
75239
75240 2003-04-14  Bruno Haible  <bruno@clisp.org>
75241
75242         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
75243
75244 2003-04-11  Jim Meyering  <jim@meyering.net>
75245
75246         Merge changes from Coreutils.
75247
75248         2003-03-22  Jim Meyering  <jim@meyering.net>
75249
75250         * lib/strftime.c (widen): Cast alloca return value to proper type.
75251
75252         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
75253
75254         From GNU libc.
75255         * lib/strftime.c (my_strftime): Handle very large width
75256         specifications for numeric values correctly.  Improve checks for
75257         overflow.
75258
75259         2003-01-19  Jim Meyering  <jim@meyering.net>
75260
75261         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
75262         definitions.
75263         (nl_get_alt_digit) [! defined my_strftime]: Define.
75264         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
75265         _nl_get_alt_digit and _nl_get_walt_digit.
75266
75267         * lib/strftime.c (my_strftime): Merge in locale-related changes from
75268         libc. These changes have no effect outside of _LIBC.
75269
75270 2003-04-10  Bruno Haible  <bruno@clisp.org>
75271
75272         * modules/findprog: New file.
75273         * MODULES.html.sh (func_all_modules): Add it.
75274
75275 2003-04-10  Bruno Haible  <bruno@clisp.org>
75276
75277         * m4/findprog.m4: New file.
75278         * m4/eaccess.m4: New file.
75279
75280 2003-04-10  Bruno Haible  <bruno@clisp.org>
75281
75282         * lib/findprog.h: New file, from GNU gettext.
75283         * lib/findprog.c: New file, from GNU gettext.
75284
75285 2003-04-05  Jim Meyering  <jim@meyering.net>
75286
75287         Merge changes from Coreutils.
75288
75289         * lib/exclude.h (PARAMS): Remove definition and uses.
75290         * lib/exclude.c: Remove uses of `PARAMS'.
75291
75292         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75293         Add test-cases for DOS filenames. Declare program_name.
75294         (main): Set up program_name.  Patch by Rich Dawe.
75295
75296         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75297         error from mntctl.
75298         Use mntctl's return value to drive the entry-processing loop, since
75299         we can't rely on the value of the vmt_length member in the last
75300         entry.  On some systems doing so could result in exhausting
75301         virtual memory.  Based in part on a patch from Mike Jetzer.
75302
75303 2003-04-04  Bruno Haible  <bruno@clisp.org>
75304
75305         * modules/linebreak: New file.
75306         * MODULES.html.sh (func_all_modules): Add it.
75307
75308 2003-04-04  Bruno Haible  <bruno@clisp.org>
75309
75310         * m4/linebreak.m4: New file.
75311
75312 2003-04-04  Bruno Haible  <bruno@clisp.org>
75313
75314         * lib/linebreak.h: New file, from GNU gettext.
75315         * lib/linebreak.c: New file, from GNU gettext with slight
75316         modifications.
75317         * lib/lbrkprop.h: New file, from GNU gettext.
75318
75319 2003-04-03  Bruno Haible  <bruno@clisp.org>
75320
75321         * modules/utf8-ucs4: New file.
75322         * modules/utf16-ucs4: New file.
75323         * modules/ucs4-utf8: New file.
75324         * modules/ucs4-utf16: New file.
75325         * MODULES.html.sh (func_all_modules): Add them.
75326
75327 2003-04-03  Bruno Haible  <bruno@clisp.org>
75328
75329         * m4/utf-ucs4.m4: New file.
75330         * m4/ucs4-utf.m4: New file.
75331
75332 2003-04-03  Bruno Haible  <bruno@clisp.org>
75333
75334         * lib/utf8-ucs4.h: New file, from GNU gettext.
75335         * lib/utf16-ucs4.h: New file, from GNU gettext.
75336         * lib/ucs4-utf8.h: New file, from GNU gettext.
75337         * lib/ucs4-utf16.h: New file, from GNU gettext.
75338
75339 2003-04-02  Bruno Haible  <bruno@clisp.org>
75340
75341         * modules/binary-io: New file.
75342         * MODULES.html.sh (func_all_modules): Add it.
75343
75344 2003-04-02  Bruno Haible  <bruno@clisp.org>
75345
75346         * lib/binary-io.h: New file, from GNU gettext.
75347
75348 2003-04-01  Bruno Haible  <bruno@clisp.org>
75349
75350         * modules/pathname: New file.
75351         * MODULES.html.sh (func_all_modules): Add it.
75352
75353 2003-04-01  Bruno Haible  <bruno@clisp.org>
75354
75355         * lib/pathname.h: New file, from GNU gettext.
75356         * lib/concatpath.c: New file, from GNU gettext.
75357
75358 2003-03-30  Bruno Haible  <bruno@clisp.org>
75359
75360         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
75361
75362 2003-03-30  Bruno Haible  <bruno@clisp.org>
75363
75364         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
75365         function chown() doesn't exist.
75366
75367 2003-03-28  Bruno Haible  <bruno@clisp.org>
75368
75369         * modules/copy-file: New file.
75370         * MODULES.html.sh (func_all_modules): Add it.
75371
75372 2003-03-28  Bruno Haible  <bruno@clisp.org>
75373
75374         * m4/copy-file.m4: New file.
75375
75376 2003-03-28  Bruno Haible  <bruno@clisp.org>
75377
75378         * lib/copy-file.h: New file, from GNU gettext.
75379         * lib/copy-file.c: New file, from GNU gettext.
75380
75381 2003-03-18  Jim Meyering  <jim@meyering.net>
75382
75383         * lib/quote.c (quote_n): Fix typo in comment.
75384
75385 2003-03-18  Bruno Haible  <bruno@clisp.org>
75386
75387         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75388         checking.
75389         * m4/onceonly_2_57.m4: Likewise.
75390
75391 2003-03-17  Bruno Haible  <bruno@clisp.org>
75392
75393         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75394         (m4_quote): Remove macro.
75395         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75396
75397 2003-03-14  Jim Meyering  <jim@meyering.net>
75398
75399         Merge changes from Coreutils.
75400         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75401         to be const, in order to avoid warnings.
75402         (obstack_room): Likewise.
75403         (obstack_empty_p): Likewise.
75404
75405 2003-03-14  Bruno Haible  <bruno@clisp.org>
75406
75407         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75408         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75409
75410 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75411
75412         Merge changes from Bison.
75413         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75414         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75415         when compiling Bison 1.875's `bitset bset = obstack_alloc
75416         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75417         * lib/hash.c: Include <stdbool.h> unconditionally.
75418
75419 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75420
75421         * m4/onceonly.m4 (m4_quote): New macro.
75422         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75423         Quote AC_FOREACH variable-expansions properly.
75424
75425 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75426
75427         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75428
75429 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75430
75431         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75432         Reported by Bruce Becker; see:
75433         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75434
75435 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75436             Bruno Haible  <bruno@clisp.org>
75437
75438         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75439         Reported by John Hughes, see
75440         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75441
75442 2003-02-20  Bruno Haible  <bruno@clisp.org>
75443
75444         * MODULES.html.sh (func_all_modules): Add poll.
75445
75446 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75447
75448         * modules/poll: New file.
75449
75450 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75451
75452         * lib/poll_.h: New file.
75453         * lib/poll.c: New file.
75454
75455 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75456
75457         * m4/poll.m4: New file.
75458
75459 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75460
75461         * modules/mathl: New file.
75462
75463 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75464
75465         * lib/mathl.h: New file.
75466         * lib/acosl.c: New file.
75467         * lib/asinl.c: New file.
75468         * lib/atanl.c: New file.
75469         * lib/ceill.c: New file.
75470         * lib/cosl.c: New file.
75471         * lib/expl.c: New file.
75472         * lib/floorl.c: New file.
75473         * lib/frexpl.c: New file.
75474         * lib/ldexpl.c: New file.
75475         * lib/logl.c: New file.
75476         * lib/sincosl.c: New file.
75477         * lib/sinl.c: New file.
75478         * lib/sqrtl.c: New file.
75479         * lib/tanl.c: New file.
75480         * lib/trigl.c: New file.
75481         * lib/trigl.h: New file.
75482
75483 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75484
75485         * m4/mathl.m4: New file.
75486
75487 2003-02-18  Bruno Haible  <bruno@clisp.org>
75488
75489         * MODULES.html.sh (func_all_modules): Add mathl.
75490
75491 2003-02-17  Bruno Haible  <bruno@clisp.org>
75492
75493         * modules/mkdtemp: New module.
75494         * MODULES.html.sh (func_all_modules): Add it.
75495
75496 2003-02-17  Bruno Haible  <bruno@clisp.org>
75497
75498         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75499
75500 2003-02-17  Bruno Haible  <bruno@clisp.org>
75501
75502         * lib/mkdtemp.h: New file, from GNU gettext.
75503         * lib/mkdtemp.c: New file, from GNU gettext.
75504
75505 2003-02-02  Jim Meyering  <jim@meyering.net>
75506
75507         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75508         e.g. glibc-2.2.93.
75509
75510 2003-01-31  Bruno Haible  <bruno@clisp.org>
75511
75512         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75513         'rpl_rename'.
75514         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75515         'rpl_strnlen'.
75516         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75517         'rpl_strtod'.
75518         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75519         'rpl_utime'.
75520
75521 2003-01-31  Bruno Haible  <bruno@clisp.org>
75522
75523         * lib/rename.c: #undef rename before defining rpl_rename.
75524         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75525
75526 2003-01-30  Bruno Haible  <bruno@clisp.org>
75527
75528         * modules/vasnprintf, modules/vasprintf: New modules.
75529         * MODULES.html.sh (func_all_modules): Add them.
75530
75531 2003-01-30  Bruno Haible  <bruno@clisp.org>
75532
75533         * m4/signed.m4: New file, from GNU gettext.
75534         * m4/longdouble.m4: New file, from GNU gettext.
75535         * m4/wchar_t.m4: New file, from GNU gettext.
75536         * m4/wint_t.m4: New file, from GNU gettext.
75537         * m4/vasnprintf.m4: New file.
75538         * m4/vasprintf.m4: New file.
75539
75540 2003-01-30  Bruno Haible  <bruno@clisp.org>
75541
75542         * lib/printf-args.h: New file, from GNU gettext.
75543         * lib/printf-args.c: New file, from GNU gettext.
75544         * lib/printf-parse.h: New file, from GNU gettext.
75545         * lib/printf-parse.c: New file, from GNU gettext.
75546         * lib/vasnprintf.h: New file, from GNU gettext.
75547         * lib/vasnprintf.c: New file, from GNU gettext.
75548         * lib/asnprintf.c: New file, from GNU gettext.
75549         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75550         * lib/vasprintf.c: New file, from GNU gettext.
75551         * lib/asprintf.c: New file, from GNU gettext.
75552
75553 2003-01-29  Bruno Haible  <bruno@clisp.org>
75554
75555         * modules/stpncpy: New module.
75556         * MODULES.html.sh (func_all_modules): Add it.
75557
75558 2003-01-29  Bruno Haible  <bruno@clisp.org>
75559
75560         * m4/stpncpy.m4: New file.
75561
75562 2003-01-29  Bruno Haible  <bruno@clisp.org>
75563
75564         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75565         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75566
75567 2003-01-28  Bruno Haible  <bruno@clisp.org>
75568
75569         * modules/c-ctype: New module.
75570         * MODULES.html.sh (func_all_modules): Add it.
75571
75572 2003-01-28  Bruno Haible  <bruno@clisp.org>
75573
75574         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75575         Paul Eggert.
75576         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75577         Paul Eggert.
75578
75579 2003-01-27  Bruno Haible  <bruno@clisp.org>
75580
75581         * modules/xsetenv: New module.
75582         * MODULES.html.sh (func_all_modules): Add it.
75583
75584 2003-01-27  Bruno Haible  <bruno@clisp.org>
75585
75586         * lib/xsetenv.h: New file, from GNU gettext.
75587         * lib/xsetenv.c: New file, from GNU gettext.
75588
75589 2003-01-23  Jim Meyering  <jim@meyering.net>
75590
75591         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75592         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75593
75594 2003-01-23  Bruno Haible  <bruno@clisp.org>
75595
75596         * modules/minmax: New module.
75597         * MODULES.html.sh (func_all_modules): Add it.
75598
75599 2003-01-23  Bruno Haible  <bruno@clisp.org>
75600
75601         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75602         Eggert.
75603
75604 2003-01-22  Bruno Haible  <bruno@clisp.org>
75605
75606         * modules/exit: New module.
75607         * MODULES.html.sh (func_all_modules): Add it.
75608
75609 2003-01-22  Bruno Haible  <bruno@clisp.org>
75610
75611         * lib/exit.h: New file, from GNU gettext.
75612
75613 2003-01-19  Bruno Haible  <bruno@clisp.org>
75614
75615         * gnulib-tool: Recognize option --extract-maintainer.
75616         (func_get_maintainer): New function.
75617         * modules/*: Add Maintainer entry.
75618
75619 2003-01-16  Jim Meyering  <jim@meyering.net>
75620
75621         * m4/regex.m4: The `regex' struct is both input and output.
75622         Initialize it before each use.  Patch by Tim Waugh.
75623
75624 2003-01-16  Bruno Haible  <bruno@clisp.org>
75625
75626         * MODULES.html.sh: Add a table of contents. Add the module name as
75627         leftmost column. Add hyperlinks.
75628
75629 2003-01-15  Bruno Haible  <bruno@clisp.org>
75630
75631         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75632
75633 2003-01-15  Bruno Haible  <bruno@clisp.org>
75634
75635         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75636         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75637         suffix.
75638
75639 2003-01-15  Bruno Haible  <bruno@clisp.org>
75640
75641         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75642
75643 2003-01-15  Bruno Haible  <bruno@clisp.org>
75644
75645         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75646         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75647
75648 2003-01-14  Jim Meyering  <jim@meyering.net>
75649
75650         * lib/same.c (same_name): Tweak a comment.
75651
75652 2003-01-14  Bruno Haible  <bruno@clisp.org>
75653
75654         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75655         when a string comparison is sufficient.
75656
75657 2003-01-14  Bruno Haible  <bruno@clisp.org>
75658
75659         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75660         'unsigned int'.
75661
75662 2003-01-14  Bruno Haible  <bruno@clisp.org>
75663
75664         * lib/hash-pjw.c: Add comment about low quality of this function.
75665
75666 2003-01-13  Bruno Haible  <bruno@clisp.org>
75667
75668         * modules/stpcpy: Distribute lib/stpcpy.h.
75669         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75670
75671 2003-01-13  Bruno Haible  <bruno@clisp.org>
75672
75673         * modules/*: Add a description.
75674         * modules/strpbrk: Fix Makefile.am snippet.
75675         * modules/strtoimax: Fix dependencies.
75676         * modules/strtoumax: Likewise.
75677
75678 2003-01-13  Bruno Haible  <bruno@clisp.org>
75679
75680         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75681         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75682         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75683
75684 2003-01-13  Bruno Haible  <bruno@clisp.org>
75685
75686         * gnulib-tool (func_create_testdir): Store config/* files in the main
75687         directory.
75688         * config.rpath: Move to ...
75689         * config/config.rpath: ... here.
75690         * modules/gettext: Contains config/config.rpath, not config.rpath.
75691         * modules/iconv: Likewise.
75692
75693 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75694
75695         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75696         to avoid collisions with libcurses and libreadline.
75697
75698         * m4/getstr.m4: Remove.
75699         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75700
75701 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75702
75703         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75704         to avoid collisions with libcurses and libreadline.
75705
75706         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75707         * lib/getstr.h, getstr.c: Remove.
75708         * lib/getline.c: Include "getline.h", to check interface.
75709         Move body of old getstr.c here: this defines MIN_CHUNK and
75710         declares getdelim2, which is renamed from getstr.
75711         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75712
75713         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75714         All uses changed.
75715         * lib/linebuffer.h: Likewise.
75716         (readline): Remove backward-compatibility macro.
75717
75718 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75719
75720         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75721         to avoid collisions with libcurses and libreadline.
75722         * getstr: Remove.
75723         * MODULES.html.sh: Remove getstr.
75724         * modules/getline: Depend on unlocked-io, not getstr.
75725
75726 2003-01-12  Jim Meyering  <jim@meyering.net>
75727
75728         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75729
75730 2003-01-10  Bruno Haible  <bruno@clisp.org>
75731
75732         * modules/alloca: Change Makefile.am requirements. Simplify Include
75733         requirements. Add lib/alloca_.h to file list.
75734
75735 2003-01-10  Bruno Haible  <bruno@clisp.org>
75736
75737         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75738
75739 2003-01-10  Bruno Haible  <bruno@clisp.org>
75740
75741         * lib/alloca_.h: New file.
75742         * lib/getdate.y: Unconditionally include alloca.h.
75743         * lib/makepath.c: Likewise.
75744         * lib/setenv.c: Likewise.
75745         * lib/userspec.c: Likewise.
75746
75747 2003-01-09  Karl Berry  <karl@gnu.org>
75748
75749         * MODULES.html.sh: include `dirname $0` in PATH, to find
75750         gnulib-tool.
75751
75752 2003-01-09  Bruno Haible  <bruno@clisp.org>
75753
75754         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75755         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75756
75757 2003-01-09  Bruno Haible  <bruno@clisp.org>
75758
75759         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75760
75761 2003-01-09  Bruno Haible  <bruno@clisp.org>
75762
75763         * lib/stdbool.h.in: New file.
75764
75765 2003-01-09  Bruno Haible  <bruno@clisp.org>
75766
75767         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75768         * MODULES.html.sh: Likewise.
75769
75770 2003-01-08  Jim Meyering  <jim@meyering.net>
75771
75772         * lib/full-write.c: Undefine and define-away `const' after inclusion
75773         of errno.h, not before.  Suggestion from Bruno Haible.
75774
75775 2003-01-08  Bruno Haible  <bruno@clisp.org>
75776
75777         * modules/full-read: Depend on full-write.
75778
75779 2003-01-08  Bruno Haible  <bruno@clisp.org>
75780
75781         * lib/safe-read.c: Include specification header first, to ensure its
75782         selfcontainedness.
75783         * lib/full-write.c: Likewise.
75784
75785 2003-01-07  Jim Meyering  <jim@meyering.net>
75786
75787         * lib/full-write.c: Rework so that it may serve to define full_read,
75788         too.
75789         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75790
75791 2003-01-07  Bruno Haible  <bruno@clisp.org>
75792
75793         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75794         <inttypes.h>.
75795         * lib/xstrtol.h: Likewise.
75796         * lib/xstrtoimax.c: Likewise.
75797         * lib/xstrtoumax.c: Likewise.
75798         * lib/human.h: Likewise.
75799
75800         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75801         on systems that have <inttypes.h> but not <stdint.h>.
75802
75803 2003-01-07  Bruno Haible  <bruno@clisp.org>
75804
75805         * MODULES.html.sh: Add copyright notice.
75806         (missed_files): Omit CVS directory entries.
75807         (func_module): Make it work with sed-3.02.
75808         * MODULES.txt: Remove file.
75809
75810 2003-01-06  Jim Meyering  <jim@meyering.net>
75811
75812         * lib/version-etc.c: Update year in translatable copyright string.
75813
75814 2003-01-03  Karl Berry  <karl@gnu.org>
75815
75816         * config/config.{guess,sub}: update from prep.
75817
75818 2003-01-02  Karl Berry  <karl@gnu.org>
75819
75820         * doc/COPYING.DOC: belatedly updated to 1.2.
75821
75822 2003-01-01  Karl Berry  <karl@gnu.org>
75823
75824         * gnulib-tool (func_verify_module): report module name $module in
75825         error message, not $1.
75826         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75827         be created, only if it doesn't exist.
75828         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75829
75830 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75831
75832         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75833
75834 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75835
75836         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75837         memcmp if strcoll doesn't work.
75838
75839 2002-12-31  Bruno Haible  <bruno@clisp.org>
75840
75841         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75842         nonempty.
75843
75844 2002-12-31  Bruno Haible  <bruno@clisp.org>
75845
75846         * lib/memcoll.c (STRCOLL): New macro.
75847         (memcoll): Use it.
75848
75849 2002-12-31  Bruno Haible  <bruno@clisp.org>
75850
75851         * lib/localcharset.h: New file.
75852         * lib/localcharset.c: Include it.
75853         * lib/unicodeio.c: Likewise.
75854
75855 2002-12-31  Bruno Haible  <bruno@clisp.org>
75856
75857         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75858         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75859
75860 2002-12-31  Bruno Haible  <bruno@clisp.org>
75861
75862         * lib/getline.h: Include <stddef.h>, for size_t.
75863
75864         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75865         * lib/unicodeio.c: Don't include <stddef.h>.
75866
75867 2002-12-31  Bruno Haible  <bruno@clisp.org>
75868
75869         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75870         HAVE_TM_ZONE.
75871
75872 2002-12-24  Karl Berry  <karl@gnu.org>
75873
75874         * config/config.guess: update from prep.
75875
75876 2002-12-24  Bruno Haible  <bruno@clisp.org>
75877
75878         General infrasructure.
75879         * m4/README: Rewritten.
75880         * m4/onceonly.m4: New file.
75881         * m4/onceonly_2_57.m4: New file.
75882
75883         Module atexit.
75884         * m4/atexit.m4: New file.
75885
75886         Module strtod.
75887         * m4/strtod.m4: New file.
75888
75889         Module strtol.
75890         * m4/strtol.m4: New file.
75891
75892         Module strtoul.
75893         * m4/strtoul.m4: New file.
75894
75895         Module memchr.
75896         * m4/memchr.m4: New file.
75897
75898         Module memcmp.
75899         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75900         (jm_FUNC_MEMCMP): Invoke it.
75901
75902         Module memcpy.
75903         * m4/memcpy.m4: New file.
75904
75905         Module memmove.
75906         * m4/memmove.m4: New file.
75907
75908         Module memset.
75909         * m4/memset.m4: New file.
75910
75911         Module strcspn.
75912         * m4/strcspn.m4: New file.
75913
75914         Module strpbrk.
75915         * m4/strpbrk.m4: New file.
75916
75917         Module strstr.
75918         * m4/strstr.m4: New file.
75919
75920         Module strerror.
75921         * m4/strerror.m4: New file.
75922
75923         Module mktime.
75924         * m4/mktime.m4: Renamed from jm-mktime.m4.
75925         (gl_PREREQ_MKTIME): New macro.
75926         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75927
75928         Module malloc.
75929         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75930         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75931         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75932
75933         Module realloc.
75934         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75935         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75936         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75937
75938         Module strftime.
75939         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75940         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75941         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75942         gl_TM_GMTOFF.
75943         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75944
75945         Module xalloc.
75946         * m4/xalloc.m4: New file.
75947
75948         Module alloca.
75949         * m4/alloca.m4: New file.
75950
75951         Module putenv.
75952         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75953         (jm_FUNC_PUTENV): Invoke it.
75954
75955         Module setenv.
75956         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75957         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75958         when invoked twice.
75959         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75960         gt_FUNC_SETENV.
75961
75962         Module memrchr.
75963         * m4/memrchr.m4: New file.
75964
75965         Module stpcpy.
75966         * m4/stpcpy.m4: New file.
75967
75968         Module strcase.
75969         * m4/strcase.m4: New file.
75970
75971         Module strdup.
75972         * m4/strdup.m4: New file.
75973
75974         Module strnlen.
75975         * m4/strnlen.m4: New file.
75976
75977         Module strndup.
75978         * m4/strndup.m4: New file.
75979
75980         Module xstrtod.
75981         * m4/xstrtod.m4: New file.
75982
75983         Module xstrtol.
75984         * m4/xstrtol.m4: New file.
75985
75986         Module getdate.
75987         * m4/getdate.m4: New file.
75988
75989         Module unlocked-io.
75990         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75991         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75992         * m4/jm-glibc-io.m4n: Remove file.
75993
75994         Module long-options.
75995         * m4/long-options.m4: New file.
75996
75997         Module md5.
75998         * m4/md5.m4: New file.
75999
76000         Module sha.
76001         * m4/sha.m4: New file.
76002
76003         Module getstr.
76004         * m4/getstr.m4: New file.
76005
76006         Module getline.
76007         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76008         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76009         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76010         simply getline. Infoke gl_PREREQ_GETLINE.
76011
76012         Module obstack.
76013         * m4/obstack.m4: New file.
76014
76015         Module hash.
76016         * m4/hash.m4: New file.
76017
76018         Module readtokens.
76019         * m4/readtokens.m4: New file.
76020
76021         Module strverscmp.
76022         * m4/strverscmp.m4: New file.
76023
76024         Module stdbool.
76025         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76026         OSF/1.
76027
76028         Module strtoll.
76029         * m4/strtoll.m4: New file.
76030
76031         Module strtoull.
76032         * m4/strtoull.m4: New file.
76033
76034         Module strtoimax.
76035         * m4/strtoimax.m4: New file.
76036
76037         Module strtoumax.
76038         * m4/strtoumax.m4: New file.
76039
76040         Module xstrtoimax.
76041         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76042         jm_AC_PREREQ_XSTRTOIMAX.
76043         Moved the strtol prerequisites to strtol.m4.
76044         Moved the strtoll prerequisites to strtoll.m4.
76045         Moved the strtoimax prerequisites to strtoimax.m4.
76046
76047         Module xstrtoumax.
76048         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76049         jm_AC_PREREQ_XSTRTOUMAX.
76050         Moved the strtoul prerequisites to strtoul.m4.
76051         Moved the strtoull prerequisites to strtoull.m4.
76052         Moved the strtoumax prerequisites to strtoumax.m4.
76053
76054         Module chown.
76055         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76056         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76057
76058         Module dup2.
76059         * m4/dup2.m4: New file.
76060
76061         Module ftruncate.
76062         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76063         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76064
76065         Module getgroups.
76066         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76067         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76068
76069         Module gettimeofday.
76070         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76071         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76072         gl_PREREQ_GETTIMEOFDAY.
76073
76074         Module mkdir.
76075         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76076         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76077
76078         Module mkstemp.
76079         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76080         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76081         jm_AC_TYPE_UINTMAX_T.
76082         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76083
76084         Module stat.
76085         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76086         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76087
76088         Module lstat.
76089         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76090         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76091
76092         Module timespec.
76093         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76094         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76095         * m4/st_mtim.m4: Indentation.
76096
76097         Module nanosleep.
76098         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76099         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76100         gl_PREREQ_NANOSLEEP.
76101
76102         Module regex.
76103         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76104         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76105         (gl_REGEX): New macro.
76106
76107         Module rename.
76108         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76109         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76110
76111         Module rmdir.
76112         * m4/rmdir.m4: New file.
76113
76114         Module utime.
76115         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76116         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76117         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76118
76119         Module dirname.
76120         * m4/dirname.m4: New file.
76121
76122         Module getopt.
76123         * m4/getopt.m4: New file.
76124
76125         Module unistd-safer.
76126         * m4/unistd-safer.m4: New file.
76127
76128         Module fnmatch.
76129         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76130         declaration.
76131         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76132         (gl_FUNC_FNMATCH_POSIX): New macro.
76133         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76134         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76135         simply fnmatch.
76136
76137         Module exclude.
76138         * m4/exclude.m4: New file.
76139
76140         Module human.
76141         * m4/human.m4: New file.
76142
76143         Module acl.
76144         * m4/acl.m4: Nop.
76145
76146         Module backupfile.
76147         * m4/backupfile.m4: New file.
76148         * m4/d-ino.m4: Indentation.
76149
76150         Module fsusage.
76151         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76152         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76153         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76154
76155         Module dirfd.
76156         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76157         requirements.
76158
76159         Module euidaccess.
76160         * m4/euidaccess.m4: New file.
76161
76162         Module file-type.
76163         * m4/file-type.m4: New file.
76164
76165         Module fileblocks.
76166         * m4/fileblocks.m4: New file.
76167
76168         Module filemode.
76169         * m4/filemode.m4: New file.
76170
76171         Module isdir.
76172         * m4/isdir.m4: New file.
76173
76174         Module lchown.
76175         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76176         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76177
76178         Module makepath.
76179         * m4/makepath.m4: New file.
76180
76181         Module modechange.
76182         * m4/modechange.m4: New file.
76183
76184         Module mountlist.
76185         * m4/mountlist.m4: New file.
76186         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76187         Indentation.
76188
76189         Module path-concat.
76190         * m4/path-concat.m4: New file.
76191
76192         Module pathmax.
76193         * m4/pathmax.m4: New file.
76194
76195         Module same.
76196         * m4/same.m4: New file.
76197
76198         Module save-cwd.
76199         * m4/save-cwd.m4: New file.
76200
76201         Module savedir.
76202         * m4/savedir.m4: New file.
76203
76204         Module xgetcwd.
76205         * m4/xgetcwd.m4: New file.
76206         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
76207
76208         Module xreadlink.
76209         * m4/xreadlink.m4: New file.
76210
76211         Module safe-read.
76212         * m4/safe-read.m4: New file.
76213
76214         Module safe-write.
76215         * m4/safe-write.m4: New file.
76216
76217         Module closeout.
76218         * m4/closeout.m4: New file.
76219
76220         Module stdio-safer.
76221         * m4/stdio-safer.m4: New file.
76222
76223         Module getpass.
76224         * m4/getpass.m4: New file.
76225
76226         Module getugroups.
76227         * m4/getugroups.m4: New file.
76228
76229         Module group-member.
76230         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
76231         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
76232
76233         Module idcache.
76234         * m4/idcache.m4: New file.
76235
76236         Module userspec.
76237         * m4/userspec.m4: New file.
76238
76239         Module gettime.
76240         * m4/clock_time.m4: New file.
76241         * m4/gettime.m4: New file.
76242
76243         Module settime.
76244         * m4/settime.m4: New file.
76245
76246         Module posixtm.
76247         * m4/posixtm.m4: New file.
76248
76249         Module gethostname.
76250         * m4/gethostname.m4: New file.
76251
76252         Module canon-host.
76253         * m4/canon-host.m4: New file.
76254
76255         Module gettext.
76256         * m4/codeset.m4: New file, from gettext-0.11.5.
76257         * m4/gettext.m4: New file, from gettext-0.11.5.
76258         * m4/glibc21.m4: New file, from gettext-0.11.5.
76259         * m4/iconv.m4: New file, from gettext-0.11.5.
76260         * m4/intdiv0.m4: New file, from gettext-0.11.5.
76261         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
76262         * m4/inttypes.m4: New file, from gettext-0.11.5.
76263         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
76264         * m4/isc-posix.m4: New file, from gettext-0.11.5.
76265         * m4/lcmessage.m4: New file, from gettext-0.11.5.
76266         * m4/lib-ld.m4: New file, from gettext-0.11.5.
76267         * m4/lib-link.m4: New file, from gettext-0.11.5.
76268         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
76269         * m4/progtest.m4: New file, from gettext-0.11.5.
76270         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
76271         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
76272         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76273
76274         Module localcharset.
76275         * m4/localcharset.m4: New file.
76276
76277         Module hard-locale.
76278         * m4/hard-locale.m4: New file.
76279
76280         Module mbswidth.
76281         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76282         onceonly macros.
76283         * m4/mbrtowc.m4: Add comment.
76284
76285         Module memcasecmp.
76286         * m4/memcasecmp.m4: New file.
76287
76288         Module memcoll.
76289         * m4/memcoll.m4: New file.
76290
76291         Module unicodeio.
76292         * m4/unicodeio.m4: New file.
76293
76294         Module rpmatch.
76295         * m4/rpmatch.m4: New file.
76296
76297         Module yesno.
76298         * m4/yesno.m4: New file.
76299
76300         Module exitfail.
76301         * m4/exitfail.m4: New file.
76302
76303         Module c-stack.
76304         * m4/c-stack.m4 (gl_C_STACK): New macro.
76305         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76306
76307         Module error.
76308         * m4/error.m4 (gl_ERROR): New macro.
76309         (jm_PREREQ_ERROR): Use onceonly macros.
76310
76311         Module fatal.
76312         * m4/fatal.m4: New file.
76313
76314         Module getloadavg.
76315         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76316         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76317
76318         Module getpagesize.
76319         * m4/getpagesize.m4: New file.
76320
76321         Module getusershell.
76322         * m4/getusershell.m4: New file.
76323
76324         Module physmem.
76325         * m4/physmem.m4: New file.
76326
76327         Module posixver.
76328         * m4/posixver.m4: New file.
76329
76330         Module quotearg.
76331         * m4/quotearg.m4: New file.
76332
76333         Module quote.
76334         * m4/quote.m4: New file.
76335
76336         Module readutmp.
76337         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
76338
76339         Module sig2str.
76340         * m4/sig2str.m4: New file.
76341
76342         Other.
76343         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
76344         ulonglong.m4.
76345         * m4/intmax_t.m4: New file.
76346         * m4/d-type.m4: Indentation.
76347         * m4/jm-macros.m4: Update.
76348         * m4/prereq.m4 (jm_PREREQ): Update.
76349         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
76350         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
76351         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
76352         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
76353         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
76354         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
76355         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
76356         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
76357         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
76358         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
76359         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
76360         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
76361         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
76362         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
76363         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
76364         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
76365         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
76366         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
76367         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
76368
76369 2002-12-24  Bruno Haible  <bruno@clisp.org>
76370
76371         * MODULES.txt: Update according to m4/ changes.
76372
76373         Module gettext.
76374         * config.rpath: New file, from gettext-0.11.5.
76375
76376         * modules/*: New module descriptions.
76377         * gnulib-tool: New file.
76378         * MODULES.html.sh: New file.
76379
76380 2002-12-21  Karl Berry  <karl@gnu.org>
76381
76382         * doc/fdl.texi: update to version 1.2.
76383
76384 2002-12-19  Karl Berry  <karl@gnu.org>
76385
76386         * config/config.guess: update from prep.
76387
76388 2002-12-18  Bruno Haible  <bruno@clisp.org>
76389
76390         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76391         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76392
76393 2002-12-17  Bruno Haible  <bruno@clisp.org>
76394
76395         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76396         stdlib.h, string.h.
76397
76398 2002-12-17  Bruno Haible  <bruno@clisp.org>
76399
76400         * lib/canon-host.c (strdup): Remove unused declaration.
76401
76402         * lib/fsusage.c: Include full_read.h.
76403         (get_fs_usage): Use full_read instead of safe_read.
76404
76405         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76406
76407 2002-12-12  Karl Berry  <karl@gnu.org>
76408
76409         * config/config.guess: update from prep.
76410
76411 2002-12-11  Bruno Haible  <bruno@clisp.org>
76412
76413         * m4/setenv.m4: New file, from gettext-0.11.5.
76414
76415 2002-12-11  Bruno Haible  <bruno@clisp.org>
76416
76417         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76418         not unsetenv().
76419         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76420         modifications:
76421
76422         2002-12-11  Bruno Haible  <bruno@clisp.org>
76423
76424                 * setenv.c (alloca): Fall back to malloc.
76425                 (freea): New macro.
76426                 (setenv): Use freea() to free memory allocated with alloca().
76427
76428         2002-11-13  Bruno Haible  <bruno@clisp.org>
76429
76430                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76431                 function declarations.
76432                 * unsetenv.c (unsetenv): Likewise.
76433
76434         2002-03-04  Bruno Haible  <bruno@clisp.org>
76435
76436                 Portability to AIX 4.3.3.
76437                 * unsetenv.c: New file, extracted from setenv.c.
76438                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76439
76440         2001-12-20  Bruno Haible  <bruno@clisp.org>
76441
76442                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76443                 use malloc instead. For SunOS 4.
76444
76445         2001-12-11  Bruno Haible  <bruno@clisp.org>
76446
76447                 * setenv.c: Declare alloca.
76448                 (compar_fn_t): New typedef.
76449                 (KNOWN_VALUE, STORE_VALUE): Use it.
76450
76451         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76452         setenv.h.
76453
76454 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76455
76456         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76457         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76458         Choose values that are less likely to collide with system fnmatch
76459         options.
76460         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76461         defined (e.g., a pure POSIX system).
76462         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76463         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76464
76465 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76466
76467         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76468         a pain in practice to deal with generated m4 files.  This change
76469         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76470
76471         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76472         and jm-glibc-io.m4, as they are no longer a special case.
76473         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76474         kludge and the auto-generation stuff.  Check only whether the
76475         functions are declared, not whether they exist, since older hosts
76476         that don't declare the functions can't use the optimization anyway.
76477
76478 2002-12-06  Jim Meyering  <jim@meyering.net>
76479
76480         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76481
76482         Merge in changes from libc's misc/error.c, in preparation
76483         for the merge of gnulib's changes back into libc.
76484
76485         * lib/error.c (_): Define only if not already defined.
76486         Move definition to follow all #include directives.
76487         Include unlocked-io.h only if !_LIBC.
76488         [_LIBC]: Include <libio/libioP.h>.
76489         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76490         (fflush): Tweak definition to use INTUSE.
76491         (putc): Define.
76492
76493 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76494
76495         * lib/alloca.c [defined emacs]: Include "lisp.h".
76496         (xalloc_die) [defined emacs]: New macro.
76497         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76498         [! defined emacs]: Include <xalloc.h>.
76499         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76500         (pointer): Typedef to POINTER_TYPE *.
76501         (malloc): Remove decl; we now always use xmalloc.
76502         (alloca): Use old-style definition, since Emacs needs this.
76503         Check for arithmetic overflow when computing combined size.
76504
76505 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76506
76507         Do not generate unlocked-io.h automatically, since it's easier to
76508         maintain it by hand.
76509
76510         * lib/unlocked-io.h: New file, from GNU diffutils,
76511         but with proper copyright notice and attribution.
76512         * lib/gen-uio: Remove.
76513         * lib/Makefile.am: Add copyright notice.
76514         (libfetish_a_SOURCES): Add unlocked-io.h.
76515         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76516         (DISTCLEANFILES, io_functions): Remove macros.
76517         (EXTRA_DIST): Remove gen_uio.
76518         (unlocked-io.h): Remove rule.
76519
76520 2002-12-04  Jim Meyering  <jim@meyering.net>
76521
76522         Reflect the fact that stat.c and lstat.c are no longer generated.
76523         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76524         (DISTCLEANFILES): Likewise.
76525         (EXTRA_DIST): Likewise.
76526         (all_local): Don't depend on stat.c or lstat.c.
76527         (stat.c, lstat.c): Remove rules.
76528         (EXTRA_DIST): Remove xstat.in.
76529
76530         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76531         * lib/stat.c: New file.  Contents mostly from xstat.in.
76532         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76533         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76534
76535         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76536         too.
76537         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76538
76539 2002-12-03  Jim Meyering  <jim@meyering.net>
76540
76541         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76542         but not semantics, to minimize the differences between these two files.
76543         (safe_read): Change comment to mention SAFE_READ_ERROR.
76544
76545         * lib/safe-read.c (IS_EINTR): Define.
76546         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76547
76548 2002-12-02  Jim Meyering  <jim@meyering.net>
76549
76550         * lib/safe-read.c (EINTR): Define.
76551         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76552         (INT_MAX): Provide fallback.
76553         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76554
76555         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76556
76557 2002-12-02  Bruno Haible  <bruno@clisp.org>
76558
76559         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76560         Define, taken from safe-read.c.
76561         (INT_MAX): Provide fallback.
76562         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76563         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76564
76565         * lib/safe-read.c (EINTR): Remove definition.
76566         (safe_read): Don't use EINTR if it is absent.
76567
76568 2002-12-01  Jim Meyering  <jim@meyering.net>
76569
76570         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76571         zero.
76572         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76573
76574 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76575
76576         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76577         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76578         with `if (! (value < limit)) abort ();', for readability.
76579
76580 2002-11-26  Karl Berry  <karl@gnu.org>
76581
76582         * lib/strdup.c: copy from libc again, with jim's ok.
76583         * lib/.cppi-disable: re-add strdup.c
76584
76585 2002-11-25  Karl Berry  <karl@gnu.org>
76586
76587         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76588         instead of "strtol.c".
76589
76590 2002-11-25  Karl Berry  <karl@gnu.org>
76591
76592         * config/install-sh: update from automake for variable quoting, $0 in
76593         error msgs, etc.
76594
76595         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76596         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76597         entry.
76598
76599 2002-11-25  Jim Meyering  <jim@meyering.net>
76600
76601         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76602
76603 2002-11-24  Karl Berry  <karl@gnu.org>
76604
76605         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76606         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76607
76608 2002-11-24  Jim Meyering  <jim@meyering.net>
76609
76610         Update from coreutils:
76611
76612         * lib/mktime.c: Merge in changes from libc.
76613
76614         Avoid a link-time failure on some Linux systems.
76615         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76616         (otherwise).
76617         (__mon_yday): Declare with the STATIC attribute.
76618         (__mktime_internal): Likewise.
76619         Based on a report from Greg Schafer.
76620
76621 2002-11-23  Jim Meyering  <jim@meyering.net>
76622
76623         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76624         Use `unsigned', not `int', as type of index.
76625
76626         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76627
76628         * lib/fsusage.c: Remove unneeded parentheses around operands of
76629         `defined'.
76630
76631 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76632
76633         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76634         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76635         so that we can be included first.
76636         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76637         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76638         No need to include stddef.h or sys/types.h any more.
76639         Surround local include files with "", not "<>".
76640         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76641         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76642         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76643         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76644         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76645         (ISPRINT): Remove; no longer needed now that we assume C89.
76646
76647         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76648         Preserve errno.
76649
76650         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76651         quotearg_char): Use SIZE_MAX rather than
76652         (size_t) -1 when we are talking about "infinity".
76653
76654         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76655
76656 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76657
76658         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76659         hint that one should use `if (! x) abort ();' rather than `assert
76660         (x);', and anyway it's one less thing to worry about configuring.
76661         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76662         hash_rehash, hash_insert): Use abort rather than assert.
76663
76664 2002-11-22  Bruno Haible  <bruno@clisp.org>
76665
76666         * lib/safe-read.h: Assume C89. Add comments.
76667         (safe_read): Change return type to size_t.
76668         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76669         byte counts > SSIZE_MAX correctly.
76670         * lib/safe-write.h: New file.
76671         * lib/safe-write.c: New file.
76672         * lib/full-read.h: New file.
76673         * lib/full-read.c: New file.
76674         * lib/full-write.h: Assume C89. Add comments.
76675         * lib/full-write.c: Include safe-write.h.
76676         (full_write): Rewritten to use safe_write.
76677         Suggested by Jim Meyering and Paul Eggert.
76678
76679 2002-11-21  Jim Meyering  <jim@meyering.net>
76680
76681         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76682
76683         Merge in changes from the coreutils.
76684
76685         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76686         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76687         <stdint.h>.
76688         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76689         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76690         int.  Work more efficiently if X is the same width as uintmax_t.
76691         Do not compare X to -1, to avoid bogus compiler warning.
76692         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76693         Don't assume that f_frsize and f_bsize are the same type.
76694
76695         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76696         warning on FreeBSD.
76697
76698         * lib/makepath.c (make_path): Restore umask *before* creating the final
76699         component.
76700         (make_path): Minor reformatting.
76701
76702         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76703         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76704         HAVE_MALLOC/HAVE_REALLOC.
76705
76706         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76707         dummy ones.  At least on GNU/Linux systems, `auto' means something
76708         else.
76709         From Michael Stone.
76710
76711 2002-11-21  Bruno Haible  <bruno@clisp.org>
76712
76713         Remove case insensitive option matching.
76714         * lib/argmatch.h (argcasematch): Remove declaration.
76715         (ARGCASEMATCH): Remove macro.
76716         (__xargmatch_internal): Remove case_sensitive argument.
76717         (XARGMATCH): Update.
76718         (XARGCASEMATCH): Remove macro.
76719         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76720         case_sensitive argument.
76721         (argcasematch): Remove function.
76722         (__xargmatch_internal): Remove case_sensitive argument.
76723         (main): Use XARGMATCH instead of XARGCASEMATCH.
76724
76725         * lib/xmalloc.c: Change compile-time error message. Add comment about
76726         required autoconf version.
76727
76728 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76729
76730         Merge argmatch cleanups from Bison.  Assume C89.
76731
76732         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76733         Include stdlib.h, for EXIT_FAILURE.
76734         Always include <string.h>, since we assume C89.
76735         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76736         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76737         Include <stddef.h> instead, since it's all we need for size_t.
76738         (PARAMS): Remove.  All uses removed.
76739         (ARRAY_CARDINALITY): Do not bother to #undef.
76740         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76741         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76742         Remove unnecessary parentheses.
76743         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76744         Insert necessary parentheses.
76745         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76746         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76747
76748 2002-11-19  Bruno Haible  <bruno@clisp.org>
76749
76750         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76751         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76752
76753         * lib/mbswidth.h (PARAMS): Remove macro.
76754         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76755         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76756
76757         * lib/gcd.h (PARAMS): Remove macro.
76758         (gcd): Use ANSI C function declarations.
76759         * lib/gcd.c (gcd): Likewise.
76760
76761 2002-11-15  Bruno Haible  <bruno@clisp.org>
76762
76763         * lib/strcspn.c: Include <stddef.h>.
76764         (strcspn): Use ANSI C function declaration. Change return type to
76765         size_t. Use NULL.
76766         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76767         (strpbrk): Use NULL.
76768         * lib/strpbrk.h (PARAMS): Remove macro.
76769         (strpbrk): Use ANSI C function declaration.
76770         * lib/strstr.c: Don't include <sys/types.h>.
76771         * lib/strstr.h (PARAMS): Remove macro.
76772         (strstr): Use ANSI C function declarations.
76773
76774 2002-11-14  Karl Berry  <karl@gnu.org>
76775
76776         * config/mkinstalldirs: `do' on separate line, instead of
76777         `for var; do'.
76778
76779 2002-11-06  Bruno Haible  <bruno@clisp.org>
76780
76781         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76782         * lib/gcd.c (gcd): Likewise.
76783
76784 2002-11-05  Bruno Haible  <bruno@clisp.org>
76785
76786         * lib/gcd.h: New file, from gettext-0.11.5.
76787         * lib/gcd.c: New file, from gettext-0.11.5.
76788
76789 2002-11-05  Bruno Haible  <bruno@clisp.org>
76790
76791         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76792         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76793         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76794         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76795
76796         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76797         <libintl.h>.
76798         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76799         <libintl.h>.
76800
76801         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76802         * lib/human.c: Include gettext.h instead of <libintl.h>.
76803         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76804         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76805         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76806         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76807         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76808         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76809         (textdomain): Remove definition.
76810         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76811
76812         * lib/long-options.c: Remove include of <libintl.h> and definition of
76813         _.
76814         * lib/same.c: Remove include of <libintl.h> and definition of _.
76815
76816 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76817
76818         * lib/config.charset: A few additions for Solaris.
76819
76820 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76821
76822         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76823         * lib/localcharset.c (locale_charset): Declare as extern "C".
76824
76825 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76826
76827         * lib/config.charset: msdos in uk_UA uses CP1125.
76828
76829 2002-11-04  Bruno Haible  <bruno@clisp.org>
76830
76831         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76832         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76833         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76834         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76835         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76836
76837 2002-11-04  Bruno Haible  <bruno@clisp.org>
76838
76839         * lib/localcharset.c (locale_charset): Don't return an empty string.
76840
76841 2002-11-04  Bruno Haible  <bruno@clisp.org>
76842
76843         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76844         aliases.
76845
76846 2002-11-04  Bruno Haible  <bruno@clisp.org>
76847
76848         * lib/config.charset: Update for newest glibc. Add canonical names
76849         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76850
76851 2002-11-04  Bruno Haible  <bruno@clisp.org>
76852
76853         * lib/config.charset: Add support for NetBSD.
76854
76855 2002-11-04  Bruno Haible  <bruno@clisp.org>
76856
76857         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76858
76859 2002-11-01  Bruno Haible  <bruno@clisp.org>
76860
76861         * configure.in: Add AC_CONFIG_AUX_DIR call.
76862         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76863         test/Makefile.
76864         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76865
76866 2002-09-28  Karl Berry  <karl@gnu.org>
76867
76868         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76869         installed automake until the next release, since changes have been
76870         made.
76871
76872 2002-09-25  Karl Berry  <karl@gnu.org>
76873
76874         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76875         * lib/getopt*: copy from libc/posix.
76876         * lib/gettext.h: copy from gettext.
76877         * lib/.cppi-disable: add strdup.c, gettext.h.
76878
76879 2002-09-25  Karl Berry  <karl@gnu.org>
76880
76881         * config/srclist.txt: enable gettext.h check.
76882         * config/config.{guess,sub}: update from prep.
76883         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76884                 from automake 1.6.3.
76885         See srclist*.
76886
76887 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76888
76889         * regex.c (PATFETCH): Remove the translating fetch.
76890         (PATFETCH_RAW): Rename to PATFETCH.
76891         (set_image_of_range): New fun.
76892         (SET_RANGE_TABLE_WORK_AREA): Use it.
76893         (regex_compile): Don't translate the pattern chars so eagerly.
76894         Only do it when inserting an `exactn' bytecode or when handling
76895         a char-range.
76896         (mutually_exclusive_p): Avoid empty statement.
76897
76898 2002-07-06  Jim Meyering  <meyering@lucent.com>
76899
76900         * m4/README: Don't mention Makefile.am.in.
76901         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76902
76903 2002-07-01  Jim Meyering  <meyering@lucent.com>
76904
76905         * lib/c-stack.c: Include sys/time.h.
76906         From Volker Borchert.
76907
76908 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76909
76910         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76911
76912 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76913
76914         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76915         New macro.  Use it uniformly instead of
76916         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76917         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76918         reported by Vin Shelton.
76919
76920 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76921
76922         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76923         Do not assume SA_SIGINFO behavior.
76924         Bug reported by Jim Meyering on NetBSD 1.5.2.
76925
76926 2002-06-22  Jim Meyering  <meyering@lucent.com>
76927
76928         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76929         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76930
76931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76932         now that configure.ac uses AC_GNU_SOURCE.
76933         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76934         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76935
76936         Update to latest tools.  Suggestions from Paul Eggert.
76937         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76938         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76939         * m4/fnmatch.m4: Likewise.
76940         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76941         to AC_HEADER_STDBOOL
76942
76943 2002-06-22  Jim Meyering  <meyering@lucent.com>
76944
76945         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76946         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76947
76948 2002-06-22  Jim Meyering  <meyering@lucent.com>
76949
76950         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76951
76952         * lib/exitfail.c, exitfail.h: Likewise.
76953         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76954
76955         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76956         of fnmatch.h.
76957         (EXTRA_DIST): Add fnmatch_loop.c.
76958         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76959
76960         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76961         * lib/fnmatch.c: Update from diffutils-2.8.2.
76962         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76963         * lib/fnmatch.h: Remove file.
76964
76965 2002-06-21  Jim Meyering  <meyering@lucent.com>
76966
76967         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76968         * m4/mbrtowc.m4: Likewise.
76969
76970         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76971         * m4/mbswidth.m4: Reflect name change:
76972         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76973         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76974
76975         * m4/lib-link.m4: Update from gettext-0.11.2.
76976         * m4/gettext.m4: Likewise.
76977
76978         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76979         From Alfred M. Szmidt.
76980
76981 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76982
76983         * lib/file-type.h: Report an error if neither S_ISREG nor
76984         S_IFREG is defined, instead of using a test specific to glibc
76985         2.2.  This should be safe, since POSIX requires S_ISREG and
76986         Unix Version 7 had S_IFREG.  We don't need to check for
76987         <sys/types.h> since we don't use any symbols that it defines.
76988
76989 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76990
76991         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76992         $@-t, so that each temporary file name is unique and valid in the first
76993         8 characters, for operation under DOS.
76994
76995 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76996
76997         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76998
76999 2002-06-15  Jim Meyering  <meyering@lucent.com>
77000
77001         Work even with DJGPP 2.03, which lacks support for symlinks.
77002         From Richard Dawe.
77003         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77004         is defined.
77005         * lib/lchown.c (S_ISLNK): Likewise.
77006
77007 2002-06-15  Jim Meyering  <meyering@lucent.com>
77008
77009         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77010         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77011         have been included before this file.
77012
77013 2002-06-14  Jim Meyering  <meyering@lucent.com>
77014
77015         * lib/file-type.h: Use the version from diffutils-2.8.2.
77016         * lib/file-type.c: Likewise.
77017
77018 2002-06-07  Jim Meyering  <meyering@lucent.com>
77019
77020         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77021         They're needed at least for NetBSD 1.5.2.
77022         ($statxfs_includes): Include those same headers.
77023         ($statxfs_includes): Include sys/vfs.h if available.
77024         ($statxfs_includes): Likewise for sys/statvfs.h.
77025         Check for the following members in both structs statfs and statvfs:
77026         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77027
77028 2002-06-01  Jim Meyering  <meyering@lucent.com>
77029
77030         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77031         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77032
77033 2002-05-28  Jim Meyering  <meyering@lucent.com>
77034
77035         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77036         Reported by Volker Borchert.
77037
77038 2002-05-27  Jim Meyering  <meyering@lucent.com>
77039
77040         Fix a problem seen only on nonconforming systems whereby ls.c's
77041         use of localtime, and then of gettimeofday would cause trouble:
77042         the localtime call used to initialize rpl_gettimeofday's save
77043         mechanism would clobber ls's current local time information so
77044         that in any long listing the first file would always be listed
77045         with date 1970-01-01.  Analysis by Volker Borchert.
77046
77047         * lib/gettimeofday.c (localtime): Undefine.
77048         (rpl_localtime): New function.
77049
77050 2002-05-27  Jim Meyering  <meyering@lucent.com>
77051
77052         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77053         localtime.
77054
77055         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77056         use the replacement function; it wouldn't resolve at link time.
77057         Reported by Volker Borchert.
77058
77059 2002-05-22  Jim Meyering  <meyering@lucent.com>
77060
77061         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77062         file-type.h.
77063         * lib/file-type.h: New file.
77064         * lib/file-type.c (file_type): New file/function.  Extracted from
77065         diffutils.
77066
77067 2002-04-30  Jim Meyering  <meyering@lucent.com>
77068
77069         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77070
77071 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77072
77073         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77074
77075 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77076
77077         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77078         Do not check for alloca.h (no longer used) or stdbool.h (was never
77079         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77080
77081 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77082
77083         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77084
77085 2002-04-29  Jim Meyering  <meyering@lucent.com>
77086
77087         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77088         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77089         Use AC_FUNC_STRNLEN here instead.
77090
77091         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77092         With autoconf-2.53a, it's part of AC_PROG_CC.
77093
77094 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77095
77096         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77097         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77098
77099 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77100
77101         * lib/sig2str.h, lib/sig2str.c: New files.
77102         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77103
77104 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77105
77106         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77107         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77108         of 127, since 64 is the largest conceivable number for ancient
77109         nonstandard hosts.
77110         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77111
77112 2002-04-28  Jim Meyering  <meyering@lucent.com>
77113
77114         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77115
77116 2002-04-24  Jim Meyering  <meyering@lucent.com>
77117
77118         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77119         (jm_PREREQ): Use it.
77120
77121         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77122         mach/mach.h fcntl.h.
77123         Check for this function: setlocale.
77124
77125 2002-04-24  Jim Meyering  <meyering@lucent.com>
77126
77127         * lib/gettext.h: New file, from Gettext.
77128         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77129         (libfetish_a_SOURCES): Add gettext.h.
77130
77131 2002-04-16  Jim Meyering  <meyering@lucent.com>
77132
77133         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77134         ut_pid, ut_id, ut_exit.
77135
77136 2002-04-16  Jim Meyering  <meyering@lucent.com>
77137
77138         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77139         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77140         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77141
77142 2002-04-12  Jim Meyering  <meyering@lucent.com>
77143
77144         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77145         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77146         existence of the getmntinfo function.  Needed for Darwin 5.3.
77147
77148         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77149         This is necessary at least on Darwin 5.3.
77150
77151         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77152         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77153         strnlen.o in the library, and that makes some versions of ranlib
77154         object.
77155
77156 2002-04-12  Jim Meyering  <meyering@lucent.com>
77157
77158         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77159
77160 2002-04-09  Jim Meyering  <meyering@lucent.com>
77161
77162         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77163         to be more precise.  Rather than saying we're checking whether the
77164         function `works', say what we're testing.
77165         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77166         Reported by Bruno Haible.
77167
77168 2002-03-10  Jim Meyering  <meyering@lucent.com>
77169
77170         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77171         Suggestion from Santiago Vila.
77172
77173 2002-03-08  Jim Meyering  <meyering@lucent.com>
77174
77175         * lib/rename.c: Mention that this wrapper is needed also on
77176         mips-dec-ultrix4.4 systems.
77177
77178 2002-03-02  Jim Meyering  <meyering@lucent.com>
77179
77180         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77181         not HAVE_CLOCK_SETTIME.
77182
77183 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77184
77185         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77186         Check for clock_settime.
77187
77188 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77189
77190         * lib/nanosleep.h: Rename to....
77191         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77192
77193         * lib/gettime.c: New file.
77194         * lib/settime.c: New file.
77195         * lib/stime.c: Remove.
77196
77197         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77198         timespec.h.  Remove nanosleep.h.
77199
77200 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77201
77202         * m4/acl.m4: New file.
77203         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
77204         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
77205
77206 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77207
77208         * lib/acl.c, lib/acl.h: New files.
77209         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
77210
77211 2002-02-24  Jim Meyering  <meyering@lucent.com>
77212
77213         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
77214         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
77215         cause trouble.  Reported by Nelson Beebe.
77216
77217 2002-02-23  Paul Eggert  <eggert@twinsun.com>
77218
77219         * lib/path-concat.c (xpath_concat): Reorder code to pacify
77220         compilers that don't know that xalloc_die never returns.
77221
77222 2002-02-20  Jim Meyering  <meyering@lucent.com>
77223
77224         * lib/getdate.c: Regenerate using bison-1.33.
77225
77226 2002-02-17  Jim Meyering  <meyering@lucent.com>
77227
77228         * config/config.guess (main): Don't use `head -1'; it's no longer
77229         portable. Use `sed 1q' instead.
77230
77231 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
77232
77233         * m4/codeset.m4: Upgrade to gettext-0.11.
77234         * m4/gettext.m4: Upgrade to gettext-0.11.
77235         * m4/glibc21.m4: Upgrade to gettext-0.11.
77236         * m4/iconv.m4: Upgrade to gettext-0.11.
77237         * m4/isc-posix.m4: Upgrade to gettext-0.11.
77238         * m4/lcmessage.m4: Upgrade to gettext-0.11.
77239         * m4/lib-ld.m4: New file, from gettext-0.11.
77240         * m4/lib-link.m4: New file, from gettext-0.11.
77241         * m4/lib-prefix.m4: New file, from gettext-0.11.
77242         * m4/progtest.m4: Upgrade to gettext-0.11.
77243
77244 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77245
77246         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
77247         (jm_PREREQ): Use it.
77248
77249 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77250
77251         * lib/posixver.c, lib/posixver.h: New files.
77252         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77253
77254 2002-02-02  Paul Eggert  <eggert@twinsun.com>
77255             Bruno Haible  <bruno@clisp.org>
77256
77257         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
77258         (fwrite_success_callback): New declaration.
77259         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
77260         print_unicode_char. Call failure callback instead of error.
77261         (fwrite_success_callback): New function.
77262         (exit_failure_callback): New function.
77263         (fallback_failure_callback): New function.
77264         (print_unicode_char): Call unicode_to_mb.
77265
77266 2002-01-26  Jim Meyering  <meyering@lucent.com>
77267
77268         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
77269         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
77270
77271 2002-01-26  Jim Meyering  <meyering@lucent.com>
77272
77273         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77274
77275 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77276
77277         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77278
77279 2002-01-22  Jim Meyering  <meyering@lucent.com>
77280
77281         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77282         Otherwise, some versions of automake would omit the rule that makes
77283         Makefile from Makefile.in.
77284
77285 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77286
77287         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77288         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77289         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77290         (memcoll): Set errno to zero if there is no error.
77291
77292         * lib/quotearg.c (quotearg_buffer_restyled):
77293         Fix bug with quoting buffers containing NUL when backslashing escapes.
77294         This bug was exposed by the other changes in this patch.
77295         (quotearg_n_options): New arg ARGSIZE.
77296         All callers changed.
77297         (quoting_options_from_style): New function.
77298         (quotearg_n_style): Use it.
77299         (quotearg_n_style_mem): New function.
77300
77301         * lib/quotearg.h (quotearg_n_style_mem): New function.
77302
77303 2002-01-19  Jim Meyering  <meyering@lucent.com>
77304
77305         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77306         Remove useless quotes: DF_PROG="df".
77307         * m4/strnlen.m4: New file.
77308
77309 2002-01-16  Paul Eggert  <eggert@twinsun.com>
77310
77311         * lib/backupfile.c (ISDIGIT): Comment fix.
77312         * lib/getdate.y (ISDIGIT): Likewise.
77313         * lib/posixtm.c (ISDIGIT, year): Likewise.
77314         * lib/strverscmp.c (ISDIGIT): Likewise.
77315         * lib/userspec.c (ISDIGIT): Likewise.
77316
77317 2002-01-16  Jim Meyering  <meyering@lucent.com>
77318
77319         * lib/getdate.y: Add three semicolons, each just before a closing
77320         brace. Bison (as of version 1.31) no longer papers over that mistake.
77321
77322 2002-01-05  Jim Meyering  <meyering@lucent.com>
77323
77324         * lib/version-etc.c (version_etc_copyright): Update copyright year.
77325
77326 2001-12-19  Paul Eggert  <eggert@twinsun.com>
77327
77328         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
77329         not silently exit merely because the output buffer happens to
77330         have nothing pending.
77331
77332 2001-12-18  Paul Eggert  <eggert@twinsun.com>
77333
77334         See the big note in ../ChangeLog.
77335         * lib/human.c (suffixes): Prefer K to k for 1024.
77336         (generate_suffix_backwards): New function.
77337         (human_readable_inexact): Use it.
77338         * lib/xstrtol.c (__xstrtol): If there is no number but there
77339         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
77340         Accept 'K' as well as 'k'.
77341
77342 2001-12-15  Jim Meyering  <meyering@lucent.com>
77343
77344         * lib/regex.h (__restrict_arr): Update from libc.
77345
77346         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
77347         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
77348         (STREQ): Define.
77349
77350 2001-12-14  Jim Meyering  <meyering@lucent.com>
77351
77352         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
77353         Suggestion from Bruno Haible.
77354
77355 2001-12-10  Jim Meyering  <meyering@lucent.com>
77356
77357         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
77358         xrealloc, Instead, include "xalloc.h".
77359         (initbuffer): Don't cast xmalloc return value to char*.
77360         (readline): Reword comment.
77361         Don't cast xrealloc return value to char*
77362         Return NULL, not 0.
77363
77364 2001-12-09  Jim Meyering  <meyering@lucent.com>
77365
77366         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
77367         about `signed and unsigned type in conditional expression'.
77368         * lib/posixtm.c (posix_time_parse): Likewise.
77369
77370         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
77371
77372         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
77373         to avoid a pedantic warning.
77374
77375         * lib/getstr.c: Don't include assert.h.
77376         (getstr): Remove warning-evoking assertions.
77377         Return -1 if offset parameter is out of bounds.
77378         Change the type of a local from int to size_t.
77379
77380         * lib/strftime.c (my_strftime_localtime_r): Include this function
77381         definition in the `#if ! HAVE_TM_GMTOFF' block.
77382
77383         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77384         Include xalloc.h instead.
77385
77386 2001-12-02  Jim Meyering  <meyering@lucent.com>
77387
77388         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77389         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77390         included.
77391
77392         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77393         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77394
77395 2001-11-30  Akim Demaille  <akim@epita.fr>
77396
77397         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77398         before being defined.
77399
77400 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77401
77402         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77403         First arg is int, not unsigned.
77404         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77405         (SIZE_MAX, UINT_MAX): New macros.
77406         (quotearg_n_options): Abort if N is negative.
77407         Avoid overflow check on hosts where size_t is 64 bits and int
77408         is 32 bits, as overflow is impossible there.
77409         Fix off-by-one typo that caused unnecessary reallocation.
77410
77411 2001-11-27  Jim Meyering  <meyering@lucent.com>
77412
77413         * lib/tempname.c: Merge with version from libc.
77414         * lib/regex.c: Likewise.
77415
77416         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77417         systems for which STDC_HEADERS is 0, it was not included, resulting in
77418         a warning about an integer-to-pointer conversion problem with getenv.
77419         Reported by Volker Borchert.
77420
77421 2001-11-26  Jim Meyering  <meyering@lucent.com>
77422
77423         * lib/gtod.h: Remove file.
77424         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77425         * lib/gettimeofday.c: Don't include gtod.h.
77426         (GTOD_init): Remove function.
77427         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77428         Suggestion from Volker Borchert.
77429
77430 2001-11-23  Jim Meyering  <meyering@lucent.com>
77431
77432         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77433         it.
77434         * lib/hash.c (struct hash_table): Define it here instead.
77435
77436 2001-11-22  Jim Meyering  <meyering@lucent.com>
77437
77438         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77439
77440 2001-11-20  Jim Meyering  <meyering@lucent.com>
77441
77442         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77443         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77444
77445 2001-11-19  Jim Meyering  <meyering@lucent.com>
77446
77447         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77448         directory.  Use "conftestXXXXXX" as the template.
77449         Suggestion from Paul Eggert.
77450
77451         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77452         immediately, so the test doesn't mistakenly hit the max-open-files
77453         limit.
77454
77455 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77456
77457         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77458         (TEMPORARIES): New macro.
77459         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77460         removes an artificial limitation (e.g. HP-UX 10.20, where
77461         TMP_MAX is 17576).
77462
77463 2001-11-18  Jim Meyering  <meyering@lucent.com>
77464
77465         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77466
77467 2001-11-18  Jim Meyering  <meyering@lucent.com>
77468
77469         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77470         on SunOS 4.
77471
77472         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77473         files will be created before anything else.
77474
77475 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77476
77477         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77478         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77479
77480 2001-11-17  Jim Meyering  <meyering@lucent.com>
77481
77482         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77483         Prompted by a report from Bob Proulx.
77484
77485         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77486         Instead, require UTILS_FUNC_MKSTEMP.
77487
77488 2001-11-17  Jim Meyering  <meyering@lucent.com>
77489
77490         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77491         Now, that's done as part of AC_FUNC_STRTOD.
77492
77493 2001-11-17  Jim Meyering  <meyering@lucent.com>
77494
77495         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77496         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77497         rather than group writable.  Patch by Juan F. Codagnone.
77498
77499         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77500         xrealloc, Instead, include "xalloc.h".
77501
77502         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77503         Remove explicit declarations of xmalloc, xrealloc,
77504         and xstrdup.  Instead, include "xalloc.h".
77505
77506         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77507         unlocked-io.h.
77508         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77509         Likewise.
77510         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77511
77512         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77513         Reported by Padraig Brady.
77514
77515         * lib/mkstemp.c: #undef mkstemp.
77516         Include config.h.
77517         (rpl_mkstemp): Rename from mkstemp.
77518         Protoize.
77519
77520 2001-11-16  Jim Meyering  <meyering@lucent.com>
77521
77522         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77523         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77524         determine the amount of total physical memory, use pstat_getstatic.
77525         HPUX-11 doesn't define _SC_PHYS_PAGES.
77526         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77527         If sysconf couldn't be used to determine the amount of available
77528         physical memory, use both pstat_getstatic and pstat_getdynamic.
77529         Based on a patch from Bob Proulx.
77530
77531 2001-11-10  Jim Meyering  <meyering@lucent.com>
77532
77533         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77534         (jm_PREREQ): Use it.
77535
77536 2001-11-09  Jim Meyering  <meyering@lucent.com>
77537
77538         * m4/jm-macros.m4: Require autoconf-2.52f.
77539         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77540         Use these AC_-prefixed names, not the AM_-prefixed ones.
77541
77542         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77543
77544 2001-11-05  Jim Meyering  <meyering@lucent.com>
77545
77546         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77547
77548 2001-11-04  Jim Meyering  <meyering@lucent.com>
77549
77550         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77551         $DEFS.
77552
77553 2001-11-03  Jim Meyering  <meyering@lucent.com>
77554
77555         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77556         of AC_DEFUN.
77557
77558         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77559         know the name of the variable in the macro definition.
77560
77561 2001-11-03  Jim Meyering  <meyering@lucent.com>
77562
77563         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77564         in argmatch_to_argument call.
77565
77566         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77567         argument.
77568
77569         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77570         e.g., a fault due to an attempt to free a NULL pointer.
77571
77572 2001-11-01  Jim Meyering  <meyering@lucent.com>
77573
77574         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77575         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77576
77577 2001-11-01  Jim Meyering  <meyering@lucent.com>
77578
77579         * lib/dirfd.c, lib/dirfd.h: New files.
77580         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77581
77582         * lib/hash.c (hash_print) [TESTING]: Clean up.
77583
77584 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77585
77586         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77587         to avoid a warning if -Wall.
77588
77589 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77590
77591         * README: New file
77592         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77593         (per RMS's instructions, this is now the canonical source)
77594         * lgpl/, gpl/: New directories.
77595
77596 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77597
77598         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77599
77600 2001-10-21  Jim Meyering  <meyering@lucent.com>
77601
77602         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77603         this code would end up calling gettext even in packages built
77604         with --disable-nls.
77605         * lib/getopt.c (_): Likewise.
77606         * lib/regex.c (_): Likewise.
77607
77608 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77609
77610         * m4/error.m4 (jm_PREREQ_ERROR):
77611         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77612         AC_FUNC_STRERROR_R does that.
77613         Check for strerror declaration.
77614
77615         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77616         are supposed to have them these days.
77617         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77618         Merge changes from latest Autoconf CVS.
77619         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77620         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77621         POSIX decided to standardize on the int flavor of strerror_r.
77622
77623 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77624
77625         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77626         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77627         Use strerror_r that is only a macro, even if it is not a function.
77628         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77629         (private_strerror): Use prototypes, not old-style function definition.
77630         (print_errno_message): New function.
77631         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77632         char*-flavored one.
77633         (error_tail, error, error_at_line): Use it.
77634
77635 2001-10-11  Jim Meyering  <meyering@lucent.com>
77636
77637         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77638         and quote_n (1, ... to avoid clobbering a buffer.
77639
77640 2001-10-05  Jim Meyering  <meyering@lucent.com>
77641
77642         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77643         hash-pjw.h.
77644         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77645         * lib/hash-pjw.h: New file.
77646
77647 2001-09-30  Jim Meyering  <meyering@lucent.com>
77648
77649         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77650         `struct fsstat' has the `f_fstypename' member.
77651         Use that to define FS_TYPE, which is now used to make
77652         the getfsstat link test tighter.
77653
77654 2001-09-30  Jim Meyering  <meyering@lucent.com>
77655
77656         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77657         Include <sys/ucred.h>, for Apple Darwin.
77658         Include sys/mount.h and sys/fs_types.h only if available.
77659         (FS_TYPE): Define.
77660         (read_filesystem_list): Use FS_TYPE.
77661
77662 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77663
77664         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77665         a boolean context.
77666
77667 2001-09-29  Jim Meyering  <meyering@lucent.com>
77668
77669         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77670         [one-argument getmntent function]): Include stdio.h before mntent.h.
77671         SunOS 4.1.x needs it for the declaration of `FILE'.
77672         Patch by Volker Borchert.
77673
77674         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77675         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77676         sys/fs_types.h, and make the link-test for getfsstat guard #include
77677         directives with appropriate #if HAVE_*_H tests so that we can
77678         detect getfsstat on Apple Darwin1.3.7 systems.
77679         Reported by Nelson Beebe.
77680         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77681
77682 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77683
77684         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77685         #defines strtoimax.  Also treat the other strto* functions
77686         like strtoimax.
77687
77688         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77689         Check for strtoul and strtoumax,
77690         as those declarations are made even in the signed case.
77691         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77692         Likewise, for strtol and strtoimax.
77693
77694 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77695
77696         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77697         #defines strtoimax.  Also treat the other strto* functions
77698         like strtoimax.
77699
77700         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77701         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77702         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77703
77704 2001-09-26  Jim Meyering  <meyering@lucent.com>
77705
77706         Most macros in unlocked-io.h had the wrong number of arguments.
77707         * lib/gen-uio: New script.
77708         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77709         * lib/unlocked-io.hin: Remove file.
77710         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77711         rather than trying to embed it here.
77712         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77713         Reported by Padraig Brady.
77714
77715 2001-09-25  Volker Borchert  <bt@teknon.de>
77716
77717         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77718         `result'.
77719
77720 2001-09-24  Jim Meyering  <meyering@lucent.com>
77721
77722         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77723
77724 2001-09-23  Jim Meyering  <meyering@lucent.com>
77725
77726         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77727         instead of the mere test for existence of mntent.h.  The latter
77728         would get a false-positive on AIX 3.4 systems.
77729         In the outer getmntent if-block, don't die if neither of the getmntent
77730         tests succeeds.  Instead, just fall through and continue with the
77731         remaining tests.
77732
77733 2001-09-23  Jim Meyering  <meyering@lucent.com>
77734
77735         * lib/mountlist.c: Remove useless parentheses in #if directives.
77736         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77737         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77738
77739 2001-09-22  Jim Meyering  <meyering@lucent.com>
77740
77741         * m4/gettext.m4: New file.  From gettext.
77742         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77743         * m4/progtest.m4: Likewise
77744         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77745         * m4/glibc21.m4: Likewise.
77746
77747         * m4/libintl.m4: Remove.  No longer used.
77748
77749 2001-09-22  Jim Meyering  <meyering@lucent.com>
77750
77751         * lib/localcharset.c: Update from latest gettext.
77752         * lib/config.charset: Likewise.
77753
77754 2001-09-20  Jim Meyering  <meyering@lucent.com>
77755
77756         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77757         strtoimax.
77758         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77759         strtoumax.
77760
77761 2001-09-20  Jim Meyering  <meyering@lucent.com>
77762
77763         * lib/xstrtol.c (strtoimax): Guard declaration with
77764         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77765         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77766         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77767         (strtoumax): Likewise, for completeness (it wasn't necessary).
77768
77769 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77770
77771         * lib/strtoimax.c (HAVE_LONG_LONG):
77772         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77773         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77774         to work around bug in IBM C compiler.
77775
77776 2001-09-17  Jim Meyering  <meyering@lucent.com>
77777
77778         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77779         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77780         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77781         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77782         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77783         whenever the right hand side need not be expanded by the shell.
77784
77785 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77786
77787         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77788         library.  It's not correct, as some older glibcs are buggy.
77789         fnmatch wasn't fixed until glibc 2.2.
77790
77791         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77792         special shell magic here.
77793
77794 2001-09-16  Jim Meyering  <meyering@lucent.com>
77795
77796         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77797         * m4/jm-macros.m4: Require it.
77798
77799 2001-09-16  Jim Meyering  <meyering@lucent.com>
77800
77801         * lib/mkdir.c: New file.
77802
77803 2001-09-15  Jim Meyering  <meyering@lucent.com>
77804
77805         * m4/jm-macros.m4: Check for help2man.
77806
77807 2001-09-11  Jim Meyering  <meyering@lucent.com>
77808
77809         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77810         The body, by Paul Eggert, was moved here from configure.in.
77811         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77812
77813 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77814
77815         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77816         (jm_PREREQ): Use it.
77817
77818 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77819
77820         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77821         Use ssize_t, not int, to store result of readlink.
77822         Check for ssize_t overflow as well as size_t overflow,
77823         as POSIX says the result of readlink is implementation-defined
77824         when ssize_t overflows.
77825         Remove unnecessary cast to char*.
77826         Use free+malloc instead of realloc, as the storage doesn't need
77827         to be preserved and it's clearer and can be more efficient that way.
77828         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77829         * lib/xreadlink.h (xreadlink): Update prototype.
77830
77831 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77832
77833         * lib/xgetcwd.c: Revert some of the previous change; intead,
77834         fix the HAVE_GETCWD_NULL code to behave more like the
77835         !HAVE_GETCWD_NULL code used to.
77836
77837         Include "xalloc.h".
77838         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77839         invoke xalloc_die.
77840
77841 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77842
77843         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77844         sys/param.h, as pathmax.h includes them.
77845
77846 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77847
77848         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77849         (jm_PREREQ_XGETCWD): New macro.
77850
77851         * m4/getcwd.m4: New file.
77852
77853 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77854
77855         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77856         like the HAVE_GETCWD_NULL code.
77857         Include pathmax.h if not HAVE_GETCWD.
77858         Do not include xalloc.h.
77859         (INITIAL_BUFFER_SIZE): New symbol.
77860         Do not use xmalloc / xrealloc, since the caller is responsible for
77861         handling errors.  Preserve errno around `free' during failure.
77862         Do not overrun buffer when using getwd.
77863
77864 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77865
77866         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77867         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77868         getcwd (NULL, 0).
77869
77870 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77871
77872         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77873         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77874         spotted by Jim Meyering.
77875
77876 2001-09-03  Jim Meyering  <meyering@lucent.com>
77877
77878         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77879         failure.
77880
77881 2001-09-02  Jim Meyering  <meyering@lucent.com>
77882
77883         * lib/error.c: Update from GNU libc.
77884
77885 2001-09-01  Jim Meyering  <meyering@lucent.com>
77886
77887         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77888         Used by df.
77889
77890 2001-09-01  Jim Meyering  <meyering@lucent.com>
77891
77892         * lib/xreadlink.c: New file.
77893         * lib/xreadlink.h: New file.
77894         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77895         xreadlink.h.
77896
77897         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77898         doesn't conflict with sparc Solaris 7's definition in
77899         /usr/include/sys/int_types.h.
77900
77901         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77902         files.
77903         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77904         and strncasecmp as r-values.  Unixware didn't have declarations.
77905
77906 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77907
77908         * lib/xstrtol.h: Add copyright notice.
77909         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77910         LONGINT_INVALID_SUFFIX_CHAR.
77911
77912 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77913
77914         * lib/xstrtol.c (strtoimax): New decl.
77915
77916 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77917
77918         * lib/xgetcwd.c: Don't include pathmax.h.
77919         Include stdlib.h and unistd.h if available.
77920         Include xalloc.h.
77921         (xmalloc, xstrdup, free): Remove decls.
77922         (xgetcwd): Don't assume sizes fit in unsigned.
77923         Check for overflow when computing sizes.
77924         Simplify reallocation code.
77925
77926 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77927
77928         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77929         a directory's st_size can have an arbitrary value, so the old
77930         usage could waste an arbitrary amount of memory.  All uses
77931         changed.
77932         * lib/savedir.h: Update prototype.
77933
77934 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77935
77936         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77937
77938         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77939         old strtoimax.c.
77940
77941         Also, make the following further changes to make this file's
77942         configuration more similar to that of strtol.c:
77943         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77944         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77945         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77946         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77947         changed to signed values.
77948
77949         And make the following changes as well:
77950         Fix copyright notice, as 1999 was missing.
77951         (verify): New macro.
77952         (strtoimax): Check sizes at compile-time, not run-time.
77953         Prefer strtol to strtoll if both work.
77954         (main): Remove; it was not that useful and was a pain to maintain.
77955
77956         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77957
77958 2001-08-31  Jim Meyering  <meyering@lucent.com>
77959
77960         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77961         Use an initial, malloc'd, buffer of length 128 rather than
77962         a statically allocated one of length 1024.
77963
77964 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77965
77966         Simplify code, partly by assuming autoconf 2.52 semantics.
77967
77968         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77969
77970         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77971         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77972         All uses removed.
77973         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77974         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77975         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77976         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77977         jm_AC_HEADER_INTTYPES_H.
77978         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77979
77980         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77981
77982         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77983         Quote first arg of AC_DEFUN.
77984         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77985         since they are needed to parse the include file even if we need
77986         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77987         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77988         but with opposite signedness.
77989
77990 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77991
77992         Merge 'exclude' changes from tar 1.13.22.
77993         This fixes one or two unlikely storage allocation overflow bugs,
77994         but doesn't change user-visible behavior otherwise.
77995
77996 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77997
77998         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77999         (jm_PREREQ_EXCLUDE): New macro.
78000
78001 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78002
78003         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78004         tm to be declared.
78005
78006 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78007
78008         * lib/hash.c: Remove '2001' from copyright notice.
78009
78010 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78011
78012         * lib/full-write.h: New file.
78013         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78014         * lib/full-write.c: Correct credits, as cccp.c no longer
78015         exists and anyway it was so heavily changed from the old cccp
78016         code as to be unrecognizable.  Include full-write.h.
78017         (full_write): Return size_t, with short writes meaning failure.
78018         All callers changed.  This fixes a bug with large buffers
78019         on 64-bit hosts.
78020         * lib/utime.c: Include full-write.h.
78021
78022 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78023
78024         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78025         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78026         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78027         Include if available.
78028         (<xalloc.h>): Include
78029         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78030         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78031         collide with FNM macros.
78032         (struct patopts): New struct.
78033         (struct exclude): Use it, as exclude patterns now come with options.
78034         (new_exclude): Support above changes.
78035         (new_exclude, add_exclude_file):
78036         Initial size must now be a power of two to simplify overflow checking.
78037         (free_exclude, fnmatch_no_wildcards): New function.
78038         (excluded_filename): No longer requires options arg, as the options
78039         are determined by add_exclude.  Now returns bool, not int.
78040         (excluded_filename, add_exclude):
78041         Add support for the fancy new exclusion options.
78042         (add_exclude, add_exclude_file): Now takes int options arg.
78043         Check for arithmetic overflow when computing sizes.
78044         (add_exclude_file): xrealloc might modify errno, so don't
78045         realloc until after errno might be used.
78046
78047         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78048         New macros.
78049         (free_exclude): New decl.
78050         (add_exclude, add_exclude_file): Now takes int options arg.
78051         (excluded_filename): No longer requires options arg, as the options
78052         are determined by add_exclude.  Now returns bool, not int.
78053
78054 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78055
78056         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78057
78058 2001-08-27  Jim Meyering  <meyering@lucent.com>
78059
78060         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78061
78062         * lib/version-etc.c (N_): Remove definition.
78063         Revert most of last change.
78064         Instead, simply don't mark the `Copyright...' string for translation.
78065         Based on advice from Paul Eggert.
78066
78067         * lib/strtoxmax.c: Tweak comment.
78068
78069 2001-08-26  Jim Meyering  <meyering@lucent.com>
78070
78071         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78072
78073         * m4/xstrtoimax.m4: New file.
78074         * m4/xstrtoumax.m4: Add comments explaining why we
78075         AC_REPLACE_FUNCS(strtol).
78076
78077 2001-08-26  Jim Meyering  <meyering@lucent.com>
78078
78079         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78080         of copyright with `%s' so translators don't get an untranslated
78081         message in 2002.
78082         (COPYRIGHT_YEAR): Define.
78083         (version_etc): Use fprintf rather than fputs.
78084         Suggestion from Ulrich Drepper.
78085
78086         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78087
78088         * lib/strtoll.c: New file, from GNU libc.
78089         * lib/xstrtoimax.c: New file.
78090
78091         * lib/xstrtol.h: Add xstrtoimax.
78092         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78093         * lib/strtoimax.c: New file.  Likewise, but first define
78094         STRTOUXMAX_SIGNED.
78095
78096         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78097         ...
78098         * lib/strtoxmax.c: ... then renamed to this.
78099
78100 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78101
78102         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78103         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78104         (jm_AC_TYPE_INTMAX_T): New macro.
78105         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78106
78107         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78108
78109         * m4/longlong.m4: Renamed from ulonglong.m4.
78110         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78111         * m4/uintmax_t.m4: Removed.
78112
78113 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78114
78115         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78116         Port to Solaris 8, where 'sed' requires a space after the 'r'
78117         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78118         Redirect output to $tmp just once.
78119
78120 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78121
78122         * lib/addext.c (<errno.h>): Include.
78123         (errno): Declare if not defined.
78124         (addext): Work correctly when pathconf returns -1 and leaves
78125         errno alone because there is no limit.  Also, work even if
78126         pathconf returns a value greater than SIZE_MAX.
78127
78128 2001-08-12  Jim Meyering  <meyering@lucent.com>
78129
78130         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78131         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78132         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78133         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78134         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78135         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78136         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78137         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78138         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78139         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78140         utime.m4, utimes.m4, xstrtoumax.m4:
78141         Quote the first argument in each use of AC_DEFUN.
78142
78143 2001-08-12  Jim Meyering  <meyering@lucent.com>
78144
78145         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78146         Simply `return getcwd (NULL, 0);'.
78147         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78148         Use 1300 as initial value for length, not PATH_MAX.
78149
78150         * lib/pathmax.h: Clean up cpp syntax.
78151
78152 2001-08-12  Jim Meyering  <meyering@lucent.com>
78153
78154         * lib/gettimeofday.c: New file.
78155         * lib/gtod.h: New file.
78156         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78157
78158 2001-08-05  Jim Meyering  <meyering@lucent.com>
78159
78160         * m4/jm-macros.m4: Require autoconf-2.52.
78161
78162 2001-08-04  Jim Meyering  <meyering@lucent.com>
78163
78164         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78165         stmt, to get in sync with glibc.
78166
78167 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78168
78169         The following changes are from gettext 0.10.39 as maintained by
78170         Bruno Haible.
78171
78172         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78173         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78174         with inverted sense.  All uses changed.
78175
78176         * lib/mbswidth.c: Don't include <limits.h>.
78177         Include <stdlib.h> and <string.h> unconditionally.
78178         (iswcntrl, mbsinit, ISCNTRL): New macros.
78179         (mbsnwidth): Use K&R style function declarations.
78180         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78181         can optimize it when MB_CUR_MAX == 1.
78182         The width of control characters is zero, not 1.
78183
78184 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78185
78186         The following changes are from gettext 0.10.39 as maintained by
78187         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78188
78189         * m4/codeset.m4: Upgrade to serial AM1.
78190         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78191         all uses changed.  Quote first arg of AC_DEFUN.
78192         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78193
78194         * m4/iconv.m4: Upgrade to serial AM2.
78195         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78196         Add --with-libconv-prefix.
78197         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78198         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
78199         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
78200         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
78201         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
78202
78203         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
78204         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
78205         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
78206         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
78207         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
78208         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
78209         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
78210         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
78211         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78212
78213         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
78214         string.h any more.
78215
78216         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
78217         not the default value.
78218
78219         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
78220         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
78221         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
78222         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
78223         Also check for iswcntrl, used for wcwidth fallback.
78224         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
78225         to Autoconf 2.13.
78226
78227 2001-08-03  Jim Meyering  <meyering@lucent.com>
78228
78229         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
78230         as it was in the original.  Reported by Paul Eggert.
78231
78232 2001-07-16  Jim Meyering  <meyering@lucent.com>
78233
78234         * m4/gettimeofday.m4: New file.
78235         Prompted by a report from Bernhard Baehr.
78236
78237 2001-07-15  Jim Meyering  <meyering@lucent.com>
78238
78239         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
78240         stuff. Now it's in ../Makefile.cfg.
78241
78242 2001-07-15  Jim Meyering  <meyering@lucent.com>
78243
78244         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
78245         (BUILT_SOURCES): Add unlocked-io.h.
78246         (io_functions): Define.
78247         (unlocked-io.h): New rule.
78248         (DISTCLEANFILES): Add unlocked-io.h.
78249         (all-local): Depend on unlocked-io.h, to ensure it is created.
78250
78251         * lib/unlocked-io.hin: New file
78252
78253         * lib/regex.c: Update from glibc.
78254
78255 2001-07-05  Jim Meyering  <meyering@lucent.com>
78256
78257         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
78258         recommendation.
78259         (libfetish_a_SOURCES): Put all .h files here instead.
78260         Remove a thus-exposed (better checks in automake) duplicate and
78261         two unnecessary .h files.
78262
78263 2001-07-04  Jim Meyering  <meyering@lucent.com>
78264
78265         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
78266         that generates jm-glibc-io.m4 so that it doesn't trigger any make
78267         distcheck failure.
78268
78269 2001-07-02  Jim Meyering  <meyering@lucent.com>
78270
78271         The following changes were prompted by suggestions from Bruno Haible.
78272
78273         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78274         is now generated.
78275         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78276         definition of EXTRA_DIST.
78277         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78278         ensure that the generated file is created/updated whenever the list
78279         of $(unlocked_functions) is changed.
78280         (jm-glibc-io.m4): New rule.
78281         (unlocked-io.h): New rule -- currently unused.
78282
78283 2001-06-24  Jim Meyering  <meyering@lucent.com>
78284
78285         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78286         unmatched right bracket, rather than kludging it with an extra,
78287         falsely-matching quote in a comment.  Patch by Akim Demaille.
78288
78289 2001-06-11  Jim Meyering  <meyering@lucent.com>
78290
78291         * lib/regex.c: Update from GNU libc.
78292
78293 2001-05-27  Jim Meyering  <meyering@lucent.com>
78294
78295         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78296         Check for ut_type in struct utmp.
78297
78298 2001-05-27  Jim Meyering  <meyering@lucent.com>
78299
78300         * lib/readutmp.h (UT_TYPE): Define.
78301
78302 2001-05-24  Jim Meyering  <meyering@lucent.com>
78303
78304         * lib/argmatch.c: Include "quote.h".
78305         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78306         quote function.  Reported by Göran Uddeborg.
78307
78308 2001-05-22  Jim Meyering  <meyering@lucent.com>
78309
78310         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
78311         now that we use the package-supplied version unconditionally.
78312         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
78313
78314 2001-05-21  Jim Meyering  <meyering@lucent.com>
78315
78316         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78317         shell syntax errors.
78318
78319 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78320
78321         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
78322
78323 2001-05-20  Paul Eggert  <eggert@twinsun.com>
78324
78325         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
78326         Don't bother to check library strftime, since
78327         we'll be using our own my_strftime function anyway.
78328         Define my_strftime instead of strftime.
78329
78330 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
78331
78332         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
78333         which is not yet declared.
78334
78335 2001-05-15  Jim Meyering  <meyering@lucent.com>
78336
78337         * m4/regex.m4: Use proper quoting so brackets appear in the test
78338         program.
78339         Reported by, and with help from, Bruno Haible.
78340
78341 2001-05-13  Jim Meyering  <meyering@lucent.com>
78342
78343         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
78344         undefined.
78345
78346 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78347
78348         dirname code cleanup.  base_name now behaves more compatibly
78349         with POSIX basename when given file names that have trailing
78350         slashes, and similarly for dir_name.  Add new primitives
78351         base_len and dir_len.  Put the directory-name-related decls
78352         into dirname.h.
78353
78354         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
78355         * lib/backupfile.c (base_name): Likewise.
78356         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
78357         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
78358         * lib/makepath.c (strip_trailing_slashes): Likewise.
78359         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
78360         ISSLASH): Likewise.
78361         * lib/rename.c (strip_trailing_slashes): Likewise.
78362         * lib/same.c (base_name): Likewise.
78363         * lib/stripslash.c (ISSLASH): Likewise.
78364
78365         * lib/addext.c: Include <dirname.h> after size_t is defined.
78366         * lib/backupfile.c: Likewise.
78367
78368         * lib/addext.c (addext): Use base_len to trim redundant
78369         trailing slashes instead of doing it ourselves.
78370         But do not trim the last slash if it is not redundant.
78371
78372         * lib/backupfile.c (find_backup_file_name,
78373         max_backup_version): Use base_len instead of rolling it ourselves.
78374         Handle the case of "" and (on DOS) "C:" correctly.
78375
78376         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78377         needed. Include <string.h>, <dirname.h>.
78378         (base_name): Allow file names ending in slashes, other than names
78379         that are all slashes.  In this case, return the basename followed
78380         by the slashes.  This is more general, and can be used in places
78381         where the original base_name purposely had an assertion failure.
78382         (base_len): New function.
78383
78384         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78385         Do not include <assert.h>; no longer needed.
78386         Include xalloc.h.
78387         (memrchr): Remove decl.
78388         (dir_name_r): Remove.
78389         (dir_len): Renamed from dirlen.  All callers changed.
78390         Rewrite in terms of base_name, for simplicity and consistency.
78391         (dir_name): Never return NULL.  All callers changed.
78392         Do not include <stdlib.h> in test program; no longer needed.
78393         return 0; is fine for test program.
78394
78395         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78396         New macros.
78397         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78398
78399         * lib/path-concat.c (path_concat): Use base_len to compute
78400         base length, not strlen; this means we cannot rely on memcpy
78401         to null-terminate.
78402
78403         * lib/same.c (STREQ): Remove.
78404         (same_name): Handle the case where the basename ends in trailing '/'.
78405
78406         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78407         a slash was stripped.  Do not strip the last slash after a
78408         file system prefix.
78409
78410 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78411
78412         * lib/Makefile.am (libfetish_a_SOURCES):
78413         Add strftime.c, since we now compile it on all hosts.
78414
78415         * lib/strftime.c (my_strftime):
78416         Define to nstrftime if emacs, but only if my_strftime is not defined.
78417         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78418         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78419         Add one more extra argument: a nanoseconds value.
78420         All uses changed.
78421         (ns): New macro.
78422         (my_strftime function): Add %N format.
78423         (emacs_strftimeu): Renamed from emacs_strftime,
78424         with extra ut argument.
78425
78426 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78427
78428         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78429
78430 2001-04-21  Jim Meyering  <meyering@lucent.com>
78431
78432         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78433         doesn't interfere.
78434
78435 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78436
78437         * m4/ftruncate.m4: Check for chsize.
78438         Link with ftruncate.o unconditionally if ftruncate is missing.
78439         This was required when cross-compiling to i586-mingw32msvc.
78440
78441 2001-04-08  Jim Meyering  <meyering@lucent.com>
78442
78443         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78444         recomputed; that's necessary when the offset spans a DST transition.
78445         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78446
78447 2001-04-02  Jim Meyering  <meyering@lucent.com>
78448
78449         * lib/regex.h, regex.c: Update from GNU libc.
78450
78451 2001-03-24  Jim Meyering  <meyering@lucent.com>
78452
78453         * m4/jm-macros.m4: Require autoconf-2.49d.
78454
78455 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78456
78457         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78458
78459 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78460
78461         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78462
78463 2001-03-17  Jim Meyering  <meyering@lucent.com>
78464
78465         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78466         now that the version in autoconf is equivalent.
78467         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78468
78469         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78470         Suggestion from Akim Demaille.
78471
78472         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78473         (jm_PREREQ_TEMPNAME): New function.
78474
78475 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78476
78477         * lib/tempname.c (uint64_t): Define to uintmax_t if
78478         not defined, and if UINT64_MAX is not defined.
78479         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78480         Reported by John David Anglin.
78481
78482 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78483
78484         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78485         resolve alias if codeset is empty.
78486         * lib/config.charset (BeOS): Use wildcard syntax.
78487
78488 2001-03-13  Jim Meyering  <meyering@lucent.com>
78489
78490         * lib/path-concat.c (path_concat)
78491         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78492         concatenating e.g., `C:' and `foo'.
78493         From Bruno Haible.
78494
78495 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78496
78497         * lib/localcharset.c (locale_charset): Don't use
78498         setlocale(LC_CTYPE,NULL). Don't return NULL.
78499         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78500
78501 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78502
78503         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78504         support for DOS/DJGPP.
78505
78506 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78507
78508         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78509         lacks mkstemp.  Compile our own tempname.c if we compile our own
78510         mkstemp.c, as mkstemp relies on tempname.
78511
78512 2001-03-01  Jim Meyering  <meyering@lucent.com>
78513
78514         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78515         AH_VERBATIM really does output its argument verbatim.
78516
78517 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78518
78519         * lib/Makefile.am (libfetish_a_SOURCES):
78520         Add dup-safer.c, fopen-safer.c.
78521         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78522
78523         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78524         * lib/unistd-safer.h: New files.
78525
78526 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78527
78528         The mkstemp replacement is taken from glibc 2.2.2, with some
78529         portability fixes for use outside glibc, as follows:
78530
78531         * lib/tempname.c (struct_stat64): New macro.
78532         (direxists, __gen_tempname): Use it.
78533         This avoids a portability problem with Solaris 8.
78534
78535         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78536         (<stddef.h>, <stdint.h>, <string.h>):
78537         Include only if STDC_HEADERS || _LIBC.
78538         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78539         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78540         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78541         (__set_errno): Define this macro if <errno.h> doesn't.
78542         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78543         Define these macros if <stdio.h> doesn't.
78544         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78545         Define these macros if <sys/stat.h>
78546         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78547         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78548         __xstat64): Define if not _LIBC.
78549         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78550         (__gen_tempname): Invoke gettimeofday only if
78551         HAVE_GETTIMEOFDAY || _LIBC;
78552         otherwise, fall back on plain "time".
78553         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78554
78555         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78556
78557         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78558
78559 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78560
78561         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78562
78563 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78564
78565         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78566         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78567         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78568         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78569
78570 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78571
78572         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78573         Remove workaround macros for hosts that have mbrtowc but not
78574         mbstate_t, as we now insist on proper declarations for both
78575         before using mbrtowc.
78576
78577 2001-02-17  Jim Meyering  <meyering@lucent.com>
78578
78579         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78580         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78581         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78582         UnixWare 7.1.1.
78583
78584         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78585         rather than AC_CACHE_VAL.
78586
78587 2001-02-17  Jim Meyering  <meyering@lucent.com>
78588
78589         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78590         around included file name.
78591
78592         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78593
78594         * lib/strftime.c: Update from GNU libc (the only changes were to
78595         comments).
78596
78597 2001-02-17  Jim Meyering  <meyering@lucent.com>
78598
78599         * lib/regex.c: Update from libc.
78600
78601 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78602
78603         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78604         clash.
78605
78606 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78607
78608         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78609         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78610         Reported by Mark Hounschell via Paul Eggert.
78611
78612 2001-02-07  Jim Meyering  <meyering@lucent.com>
78613
78614         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78615
78616 2001-02-05  Jim Meyering  <meyering@lucent.com>
78617
78618         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78619         it includes the patch required for `large file' support with at least
78620         HP-UX's 10.20 /bin/cc.
78621
78622 2001-02-03  Jim Meyering  <meyering@lucent.com>
78623
78624         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78625         AS_IF, now that it works once again (mysteriously).
78626         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78627
78628 2001-01-30  Jim Meyering  <meyering@lucent.com>
78629
78630         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78631         * m4/chown.m4: Rename conftestchown to conftest.chown.
78632         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78633         s/conftestdir2/conftest.d2/.
78634         * m4/utimes.m4: s/conftestdata/conftest.data/
78635         Inspired by Pavel Roskin's change in autoconf.
78636
78637 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78638
78639         * lib/config.charset: Update for FreeBSD 4.2.
78640
78641 2001-01-27  Jim Meyering  <meyering@lucent.com>
78642
78643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78644         a use of AS_IF.
78645         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78646
78647 2001-01-26  Jim Meyering  <meyering@lucent.com>
78648
78649         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78650         quotearg.c includes it.
78651
78652 2001-01-26  Jim Meyering  <meyering@lucent.com>
78653
78654         * lib/quotearg.c: Include stddef.h.
78655         * lib/quote.c: Include stddef.h.
78656         Reported by Axel Kittenberger.
78657
78658         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78659         line in double quotes so that it evokes a better diagnostic.
78660         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78661         Reported by Axel Kittenberger.
78662
78663 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78664
78665         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78666         as if it was a `charset'.
78667
78668 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78669
78670         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78671         has const.
78672
78673 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78674
78675         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78676         to avoid a warning.  Add back 'const' to inptr.
78677
78678 2001-01-20  Jim Meyering  <meyering@lucent.com>
78679
78680         Be sure that headers are checked before used in code compiled
78681         for the type checks.
78682         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78683         In place of that, invoke jm_CHECK_ALL_TYPES.
78684         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78685         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78686         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78687         The check for ssize_t was mistakenly run before the test for unistd.h.
78688
78689         The configure-time check for stdbool.h was missing.
78690         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78691         (jm_PREREQ_HASH): New function.
78692
78693 2001-01-17  Jim Meyering  <meyering@lucent.com>
78694
78695         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78696         for autoconf-2.49c.
78697         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78698
78699 2001-01-16  Jim Meyering  <meyering@lucent.com>
78700
78701         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78702         From Bruno Haible.
78703
78704 2001-01-14  Jim Meyering  <meyering@lucent.com>
78705
78706         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78707         foo and bar.  Create conftestdir/ in the script, not in the C code.
78708         Remove directories in the script, not in the C code.
78709         Remove conftestdir{,2} before trying to create the directory.
78710         Make the entire configure script fail if the mkdir fails.
78711
78712 2001-01-14  Jim Meyering  <meyering@lucent.com>
78713
78714         * lib/rename.c: New file.  From Volker Borchert.
78715         Include stdlib.h, string.h or strings.h, and xalloc.h.
78716         Use strip_trailing_slashes rather than open-coding it.
78717
78718 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78719
78720         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78721
78722 2001-01-03  Jim Meyering  <meyering@lucent.com>
78723
78724         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78725         of local `inptr' to avoid warning with some system declarations of
78726         iconv.
78727
78728 2001-01-02  Volker Borchert  <bt@teknon.de>
78729
78730         * m4/rename.m4: New file.
78731         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78732
78733 2001-01-01  Jim Meyering  <meyering@lucent.com>
78734
78735         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78736         even on systems with utmpx.h.  It's necessary for the declaration of
78737         utmp's ut_user member.  Reported by Andreas Jaeger.
78738
78739         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78740         available. They are required for the declarations of getgrgid and
78741         getpwuid resp.
78742         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78743         Reported by Andreas Jaeger.
78744
78745 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78746
78747         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78748         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78749         so `make install' also works in VPATH builds.
78750
78751 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78752
78753         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78754         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78755         can be used in subdirectories.
78756
78757 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78758
78759         * lib/modechange.c: Do not assume that mode_t uses the
78760         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78761         the other-execute bit of FOO even if S_IXOTH != 1.
78762
78763         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78764         WOTH, XOTH, ALLM): New macros.
78765         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78766          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78767         Use them.
78768         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78769         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78770         (mode_compile):
78771         No need to use uintmax_t; unsigned long is long enough.
78772         Don't bother to get suffix since we don't use it.
78773
78774 2000-12-26  Jim Meyering  <meyering@lucent.com>
78775
78776         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78777         better with autoheader.
78778
78779 2000-12-24  Jim Meyering  <meyering@lucent.com>
78780
78781         * lib/hash.c (is_prime): Return explicit boolean values.
78782         (hash_get_first): Return NULL to appease Irix5.6's 89.
78783         Reported by Nelson Beebe.
78784
78785 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78786
78787         * lib/localcharset.c (locale_charset): Add support for Win32.
78788
78789 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78790
78791         * lib/physmem.h, lib/physmem.c: New files.
78792
78793         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78794         (noinst_HEADERS): Add physmem.h.
78795
78796         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78797         't' for compatibility with Solaris 8 sort.
78798
78799 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78800
78801         * lib/config.charset: Add support for BeOS.
78802
78803 2000-12-17  Jim Meyering  <meyering@lucent.com>
78804
78805         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78806         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78807
78808 2000-12-16  Jim Meyering  <meyering@lucent.com>
78809
78810         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78811         N and M) would have treated it like `chown N:N FILE'.
78812
78813         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78814
78815 2000-12-16  Jim Meyering  <meyering@lucent.com>
78816
78817         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78818         SHELLS_FILE to a file name that's useful on djgpp systems.
78819         Include stdlib.h.
78820         (ADDITIONAL_DEFAULT_SHELLS): Define.
78821         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78822         Based mostly on a patch from Prashant TR.
78823
78824 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78825
78826         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78827         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78828         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78829
78830 2000-12-08  Andreas Schwab  <schwab@suse.de>
78831
78832         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78833         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78834
78835 2000-12-07  Jim Meyering  <meyering@lucent.com>
78836
78837         * lib/stripslash.c (ISSLASH): Define.
78838         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78839         `/'.
78840         From Prashant TR.
78841
78842         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78843         (dir_name_r): Declare this function as static.
78844         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78845         manifest itself on a name containing a mix of slashes and
78846         backslashes.
78847         Make this function work with names starting with a DOS-style
78848         drive letter and colon prefix.
78849         (dir_name): Append `.' if necessary.
78850         Based mostly on patches from Prashant TR and Eli Zaretskii.
78851
78852         * lib/dirname.h (dir_name_r): Remove prototype.
78853
78854 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78855
78856         * m4/off_t-format.m4: Remove this file.
78857         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78858
78859 2000-12-06  Jim Meyering  <meyering@lucent.com>
78860
78861         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78862         replacement strtoull, we may well need the replacement strtoul, too.
78863         Check for declarations of strtoul and strtoull.
78864         Check for strtol.  Mainly as a cue to cause automake to include
78865         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78866         Check for limits.h -- strtol.c needs it.
78867
78868 2000-12-05  Jim Meyering  <meyering@lucent.com>
78869
78870         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78871
78872 2000-12-04  Jim Meyering  <meyering@lucent.com>
78873
78874         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78875         Also include memory.h, stdlib.h, unistd.h if appropriate.
78876         Reported by Andreas Jaeger (conflicting declaration of malloc).
78877
78878 2000-12-02  Jim Meyering  <meyering@lucent.com>
78879
78880         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78881         * m4/jm-macros.m4 (jm_MACROS): require it.
78882
78883 2000-12-02  Jim Meyering  <meyering@lucent.com>
78884
78885         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78886
78887 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78888
78889         * lib/memrchr.c: Include <config.h> before any system include file.
78890
78891 2000-11-30  Jim Meyering  <meyering@lucent.com>
78892
78893         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78894
78895 2000-11-30  Jim Meyering  <meyering@lucent.com>
78896
78897         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78898
78899 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78900
78901         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78902
78903 2000-11-26  Jim Meyering  <meyering@lucent.com>
78904
78905         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78906
78907 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78908
78909         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78910         size of (size_t) -1; it's not portable.
78911
78912 2000-11-17  Jim Meyering  <meyering@lucent.com>
78913
78914         * lib/strstr.c: Update from GNU libc.
78915
78916 2000-11-17  Akim Demaille  <akim@epita.fr>
78917
78918         * lib/obstack.h: Formatting changes.
78919         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78920         prevent type checking.
78921         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78922         cast the value to (void *): assigning a `foo *' to a `void *'
78923         variable is valid.
78924         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78925
78926 2000-11-16  Jim Meyering  <meyering@lucent.com>
78927
78928         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78929
78930 2000-11-11  Jim Meyering  <meyering@lucent.com>
78931
78932         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78933
78934 2000-11-10  Jim Meyering  <meyering@lucent.com>
78935
78936         * lib/obstack.h: Update from GNU libc.
78937         * lib/obstack.c: Likewise.
78938
78939 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78940
78941         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78942
78943 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78944
78945         * lib/getusershell.c (setusershell): Use rewind rather than
78946         fseek/fseeko, to avoid configuration hassles with fseeko.
78947         Don't bother opening SHELLS_FILE if shellstream is NULL;
78948         it's not necessary.
78949
78950 2000-11-05  Jim Meyering  <meyering@lucent.com>
78951
78952         * lib/makepath.h (make_dir): Declare.
78953         * lib/makepath.c (make_dir): Remove `static' attribute.
78954         Tweak a comment.
78955
78956 2000-11-04  Jim Meyering  <meyering@lucent.com>
78957
78958         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78959
78960 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78961
78962         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78963         last one in a bucket, advance to the next bucket.
78964
78965 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78966
78967         * lib/fnmatch.c: Do not comment out all the code if we are using
78968         the GNU C library, because in some cases we are replacing buggy
78969         code in the GNU C library itself.
78970
78971 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78972
78973         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78974         (regex_compile): Catch bogus \(\1\).
78975
78976 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78977
78978         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78979         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78980         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78981
78982 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78983
78984         * lib/error.h, getline.h, modechange.h:
78985         Remove "2000" from Copyright line, as the file hasn't been
78986         changed this year other than in the copyright notice.
78987
78988         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78989         was changed this year.
78990
78991 2000-10-29  Jim Meyering  <meyering@lucent.com>
78992
78993         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78994         renaming.
78995         * m4/ls-mntd-fs.m4: Likewise
78996
78997 2000-10-29  Jim Meyering  <meyering@lucent.com>
78998
78999         * lib/xstat.in: Fix grammar in comment.
79000
79001 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79002
79003         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79004         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79005         doesn't define __restrict_arr.
79006
79007 2000-10-28  Jim Meyering  <meyering@lucent.com>
79008
79009         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79010         (jm_PREREQ_MEMCHR): New function.
79011
79012 2000-10-28  Jim Meyering  <meyering@lucent.com>
79013
79014         * lib/memchr.c: Update from libc.
79015         Adjust for portability:
79016         [HAVE_STDLIB_H]: Include stdlib.h.
79017         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79018         Undef __memchr, too.
79019         [!weak_alias]: Define __memchr to memchr.
79020
79021         * lib/regex.c: Update from libc.
79022         * lib/regex.h: Likewise.
79023         * lib/getopt1.c: Likewise.
79024         * lib/memcmp.c: Likewise.
79025
79026         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79027         Avoid using fseek, when possible -- it's broken by design.
79028         Patch by Ulrich Drepper.
79029
79030 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79031
79032         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79033         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79034         Giving in to popular pressure to shut up the compiler with casts.
79035
79036 2000-10-26  Jim Meyering  <meyering@lucent.com>
79037
79038         * lib/strftime.c: Update from libc.
79039
79040 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79041
79042         * regex.c: More `unsigned char' -> `re_char' changes.
79043         Also change several `int' into `re_wchar_t'.
79044         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79045         (PUSH_FAILURE_POINTER): Don't cast any more.
79046         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79047         We want GCC to complain, since this piece of code makes
79048         re_match non-reentrant, which *should* be fixed.
79049         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79050         (EXTEND_BUFFER): Use RETALLOC.
79051         (SET_LIST_BIT): Don't cast.
79052         (re_wchar_t): New type.
79053         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79054         that those two functions will always properly return.
79055         (IMMEDIATE_QUIT_CHECK): Cast to void.
79056         (analyse_first): Use recursion rather than an explicit stack.
79057         (re_compile_fastmap): Can't fail anymore.
79058         (re_search_2): Don't check re_compile_fastmap for failure.
79059         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79060         Now also sets the new value (passed in a new argument).
79061         (re_match_2_internal): Use it.
79062         Also, use a new var `reg' of type size_t when looping through regs
79063         rather than reuse the inappropriate `mcnt'.
79064
79065 2000-10-25  Jim Meyering  <meyering@lucent.com>
79066
79067         * lib/obstack.c: Update from libc.
79068
79069 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79070
79071         * regex.c (regex_compile): Change the way of handling a range from
79072         a char less than 256 to a char not less than 256.
79073
79074 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79075
79076         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79077         NT-Emacs only.
79078         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79079         so that re_search functions only quit when callers expect them to.
79080
79081 2000-10-23  Jim Meyering  <meyering@lucent.com>
79082
79083         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79084         wrong.  That set_locale call must not have any side effects.
79085         From Paul Eggert.
79086
79087 2000-10-22  Jim Meyering  <meyering@lucent.com>
79088
79089         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79090         [CYCLIC]: Remove now-unused definition.
79091
79092         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79093         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79094         Suggestion from Ulrich Drepper.
79095
79096 2000-10-21  Jim Meyering  <meyering@lucent.com>
79097
79098         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79099         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79100         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79101
79102 2000-10-21  Jim Meyering  <meyering@lucent.com>
79103
79104         * lib/dirname.c (memrchr): Declare if necessary.
79105         (dir_name): Remove the restriction that there be no
79106         trailing slashes.  Now, this code skips past them, effectively
79107         ignoring them.
79108         [TEST_DIRNAME] (main): New unit tests.
79109
79110         * lib/memrchr.c: New file from GNU libc.
79111         Undef __memrchr, too.
79112         [!weak_alias]: Define __memrchr to memrchr.
79113         Guard weak_alias use with `#ifdef weak_alias'.
79114
79115 2000-10-21  Jim Meyering  <meyering@lucent.com>
79116
79117         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79118         (dir_name): Use dir_name_r.
79119         * lib/dirname.h (dir_name_r): Declare it.
79120
79121 2000-10-17  Jim Meyering  <meyering@lucent.com>
79122
79123         * lib/quote.h (PARAMS): Define and use.
79124         Reported by Akim Demaille.
79125
79126         * lib/getopt.c: Update from libc.
79127
79128 2000-10-16  Jim Meyering  <meyering@lucent.com>
79129
79130         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79131         setlocale.
79132         From Jan Fedak.
79133
79134 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79135
79136         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79137
79138 2000-09-25  Jim Meyering  <meyering@lucent.com>
79139
79140         * lib/md5.h (rol): Define (from GnuPG).
79141
79142         * lib/sha.c: Give credit (GnuPG) where due.
79143         (M): Use rol rather than open-coding it.
79144         Add a FIXME comment.
79145
79146 2000-09-21  Jim Meyering  <meyering@lucent.com>
79147
79148         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79149         Reported by Michael Stone.
79150
79151 2000-09-20  Jim Meyering  <meyering@lucent.com>
79152
79153         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79154         (noinst_HEADERS): Add sha.h.
79155         Based on code from Scott G. Miller and from GnuPG.
79156
79157 2000-09-18  Jim Meyering  <meyering@lucent.com>
79158
79159         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79160         LIBS. Otherwise, everyone ends up linking with -lelf for some
79161         configurations.
79162         Reported by Mike Stone.
79163
79164 2000-09-15  Jim Meyering  <meyering@lucent.com>
79165
79166         * lib/regex.c: Update from libc.
79167
79168 2000-09-10  Jim Meyering  <meyering@lucent.com>
79169
79170         * lib/getopt.c (_getopt_internal): Update from glibc.
79171
79172 2000-09-09  Jim Meyering  <meyering@lucent.com>
79173
79174         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79175         think it should be used as a general replacement for isascii.
79176         * lib/fnmatch.c: Likewise.
79177         * lib/mbswidth.c: Likewise
79178         * lib/regex.c: Likewise.
79179
79180         Don't use atoi.
79181         * lib/userspec.c: Include sys/param.h and limits.h.
79182         Include xstrtol.h.
79183         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79184         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79185         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79186         UID, GID.  Check range.
79187
79188 2000-09-06  Jim Meyering  <meyering@lucent.com>
79189
79190         * lib/getopt.c (_getopt_internal): Update from glibc.
79191
79192 2000-08-30  Jim Meyering  <meyering@lucent.com>
79193
79194         * lib/strftime.c: Merge in changes from GNU libc.
79195
79196 2000-08-26  Jim Meyering  <meyering@lucent.com>
79197
79198         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
79199         * m4/fpending.m4: New file.
79200
79201 2000-08-26  Jim Meyering  <meyering@lucent.com>
79202
79203         * lib/closeout.c: Include "__fpending.h".
79204         (close_stdout_status): Return right away if there's nothing to flush.
79205
79206         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
79207         * lib/__fpending.c: New file.
79208         * lib/__fpending.h: New file.
79209
79210 2000-08-20  Jim Meyering  <meyering@lucent.com>
79211
79212         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
79213         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
79214         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
79215
79216 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
79217
79218         Improve fileutils installation on systems where running
79219         programs (like install) can't be unlinked.
79220         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
79221         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
79222
79223 2000-08-07  Paul Eggert  <eggert@twinsun.com>
79224
79225         Standardize on "memory exhausted" instead of "Memory exhausted"
79226         or "virtual memory exhausted".
79227         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
79228         "virtual memory exhausted".
79229         * lib/same.c (same_name): Invoke xalloc_die instead of printing
79230         our own message.
79231         * lib/userspec.c (parse_user_spec): Likewise.
79232         * lib/bumpalloc.h: comment fix
79233         * lib/same.c, userspec.c: Include xalloc.h.
79234
79235         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
79236         not char *const and pointing to a constant array.
79237         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
79238         (xrealloc): Comment fix.
79239
79240         * lib/userspec.c (parse_user_spec):
79241         Don't translate a message until just before returning,
79242         to avoid unnecessary translation.
79243
79244 2000-08-07  Jim Meyering  <meyering@lucent.com>
79245
79246         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
79247         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
79248         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
79249         getgroups.c, gethostname.c, getopt.h, group-member.c,
79250         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
79251         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
79252         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
79253         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
79254         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
79255         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
79256         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
79257         yesno.c: Back out Copyright date changes for each file with no change
79258         this year.  This eases coordination with other programs using the same
79259         source code modules.  From Paul Eggert.
79260
79261 2000-08-06  Paul Eggert  <eggert@twinsun.com>
79262
79263         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
79264         not char, for compatibility with glibc 2.1.3 strftime.c.
79265
79266 2000-08-03  Greg McGary  <greg@mcgary.org>
79267
79268         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
79269         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
79270         (EXTEND_BUFFER): Use them.
79271
79272 2000-08-01  Jim Meyering  <meyering@lucent.com>
79273
79274         * lib/dirname.c (ISSLASH): Define.
79275         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79276         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79277         both `\' and `/' may be use as path separators.
79278         Based on a patch from Prashant TR.
79279
79280 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79281
79282         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79283         slot vector a constant, since it might get modified.
79284
79285 2000-07-31  Jim Meyering  <meyering@lucent.com>
79286
79287         * lib/xmalloc.c: Use `virtual memory exhausted', not
79288         `Memory exhausted'.
79289         * lib/obstack.c (print_and_abort): Likewise.
79290
79291 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79292
79293         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79294         buffer, so that the caller can always quote one small
79295         component of a "memory exhausted" message in slot 0.
79296         From a suggestion by Jim Meyering.
79297
79298 2000-07-30  Jim Meyering  <meyering@lucent.com>
79299
79300         * lib/makepath.c (make_path): Quote the other instance, too.
79301
79302         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79303         (STATIC_BUF_SIZE): Define.
79304         (quotearg_n_options): Use only statically allocated storage when
79305         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79306         than STATIC_BUF_SIZE.
79307
79308 2000-07-29  Jim Meyering  <meyering@lucent.com>
79309
79310         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
79311         * lib/dirname.c (dir_name): Likewise.
79312
79313         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79314         `/'.
79315
79316         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79317         (dir_name): Assert that there are no trailing slashes.
79318
79319 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
79320
79321         * lib/mbswidth.h (mbswidth): Add a flags argument.
79322         (mbswidth): New declaration.
79323         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
79324         * lib/mbswidth.c (mbswidth): Add a flags argument.
79325         (mbsnwidth): New function.
79326
79327 2000-07-24  Jim Meyering  <meyering@lucent.com>
79328
79329         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
79330
79331 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79332
79333         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
79334
79335 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79336
79337         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
79338         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
79339         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
79340         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
79341         invoke multibyte primitives.
79342
79343 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79344
79345         * lib/quotearg.c:
79346         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
79347         so that mbstate_t is always defined.
79348
79349         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
79350         be 1 in at least one GCC installation, and this configuration
79351         error is likely to be common.  Ignoring MB_LEN_MAX hurts
79352         performance on hosts that have mbrtowc but have only unibyte
79353         locales, but I assume these hosts are rare.
79354
79355 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79356
79357         * lib/mbswidth.c (_XOPEN_SOURCE):
79358         Don't define; this causes problems on Solaris 7.
79359         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
79360
79361 2000-07-23  Jim Meyering  <meyering@lucent.com>
79362
79363         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
79364         too: getgrgid, getpwuid, getuid.
79365
79366 2000-07-23  Jim Meyering  <meyering@lucent.com>
79367
79368         * lib/basename.c (base_name): Add an assertion.
79369
79370 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
79371
79372         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
79373         shadow its mbsinit function.
79374
79375 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79376
79377         * lib/mbswidth.h: New file.
79378         * lib/mbswidth.c: New file.
79379         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79380         (noinst_HEADERS): Add mbswidth.h.
79381
79382 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79383
79384         * lib/config.charset: Add support for FreeBSD. Improve support for
79385         HP-UX and IRIX 6.
79386
79387 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79388
79389         * m4/mbswidth.m4: New file.
79390         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79391
79392 2000-07-15  Jim Meyering  <meyering@lucent.com>
79393
79394         * lib/makepath.c: Include quote.h.
79395         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79396         corresponding argument in a `quote (...)' call.
79397         Give better diagnostics.
79398
79399         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79400         (noinst_HEADERS): Add quote.h.
79401
79402         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79403         from tar's src/misc.c.
79404         * lib/quote.h: New file.  Prototypes for same.
79405
79406 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79407
79408         From a suggestion by Bruno Haible.
79409         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79410         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79411         to decide whether to define the BeOS workaround macro;
79412         this adjusts to the change to AC_MBSTATE_T.
79413
79414 2000-07-14  Jim Meyering  <meyering@lucent.com>
79415
79416         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79417         jm_AC_TYPE_UINTMAX_T.
79418
79419 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79420
79421         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79422
79423         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79424         quotearg_buffer_restyled): Add support for
79425         clocale_quoting_style.  Undo previous change to
79426         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79427         and "{RIGHT QUOTATION MARK}" msgids.
79428
79429 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79430
79431         From a suggestion by Bruno Haible.
79432         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79433         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79434         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79435         and mbstate_t, to a single-part test that simply defines mbstate_t.
79436         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79437         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79438
79439 2000-07-10  Jim Meyering  <meyering@lucent.com>
79440
79441         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79442
79443         * m4/gnu-source.m4: Output to confdefs.h directly.
79444         Suggestion from Akim Demaille.
79445
79446 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79447
79448         The old behavior of quoting `like this' doesn't look good with
79449         newer, ISO-style fonts.  See:
79450         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79451
79452         Instead, quote "like this" by default.  Let the translator
79453         tailor the locale-specific quoting behavior by providing
79454         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79455
79456         * lib/quotearg.c (N_): New macro.
79457         (gettext_default): New function.
79458         (quotearg_buffer_restyled): Use
79459         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79460         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79461
79462 2000-07-09  Jim Meyering  <meyering@lucent.com>
79463
79464         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79465         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79466
79467         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79468         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79469
79470 2000-07-09  Jim Meyering  <meyering@lucent.com>
79471
79472         * lib/Most files: Update copyright dates to include 2000.
79473
79474 2000-07-08  Jim Meyering  <meyering@lucent.com>
79475
79476         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79477         if not defined.
79478         (xgethostname): Remove now-unnecessary #ifdef.
79479         Move declaration of `err' into loop where it's used.
79480
79481 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79482         and Bruno Haible  <haible@clisp.cons.org>
79483
79484         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79485         only if the test for an object-type mbstate_t fails.  This
79486         prevents us from mistakenly reporting that mbstate_t is a
79487         system object type after we "#define mbstate_t int" to work
79488         around its lack.
79489
79490 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79491         and Bruno Haible  <haible@clisp.cons.org>
79492
79493         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79494
79495 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79496
79497         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79498         to strerror_r.
79499         Include <ctype.h> for use of isalpha.
79500
79501 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79502
79503         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79504         by allocating a larger buffer. Test the gethostname return value for
79505         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79506         returns an error and ENAMETOOLONG isn't defined.
79507
79508 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79509
79510         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79511         dimension.
79512
79513 2000-07-04  Jim Meyering  <meyering@lucent.com>
79514
79515         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79516         of the deprecated AC_CHECKING.
79517
79518 2000-07-04  Jim Meyering  <meyering@lucent.com>
79519
79520         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79521         Reported by Bruno Haible.
79522
79523 2000-07-04  Jim Meyering  <meyering@lucent.com>
79524
79525         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79526         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79527         lacks mbrtowc.
79528
79529 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79530
79531         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79532         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79533
79534 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79535         and Bruno Haible  <haible@clisp.cons.org>
79536
79537         * lib/quotearg.c (mbrtowc):
79538         Assign to *pwc, and return 1 only if result is nonzero.
79539         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79540
79541 2000-07-03  Jim Meyering  <meyering@lucent.com>
79542
79543         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79544
79545 2000-07-03  Jim Meyering  <meyering@lucent.com>
79546
79547         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79548         This is necessary to get a definition of e.g., UTMP_FILE on
79549         HP-UX 10.20.
79550         From Bob Proulx.
79551
79552 2000-07-02  Jim Meyering  <meyering@lucent.com>
79553
79554         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79555
79556         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79557         AC_LIBOBJ(function_name).
79558         * m4/chown.m4: Likewise.
79559         * m4/fnmatch.m4: Likewise.
79560         * m4/ftruncate.m4: Likewise.
79561         * m4/getgroups.m4: Likewise.
79562         * m4/getline.m4: Likewise.
79563         * m4/group-member.m4: Likewise.
79564         * m4/jm-macros.m4: Likewise.
79565         * m4/lstat.m4: Likewise.
79566         * m4/malloc.m4: Likewise.
79567         * m4/memcmp.m4: Likewise.
79568         * m4/nanosleep.m4: Likewise.
79569         * m4/putenv.m4: Likewise.
79570         * m4/realloc.m4: Likewise.
79571         * m4/regex.m4: Likewise.
79572         * m4/stat.m4: Likewise.
79573         * m4/strftime.m4: Likewise.
79574
79575 2000-07-02  Jim Meyering  <meyering@lucent.com>
79576
79577         * lib/quotearg.c (mbstate_t): Don't define here.
79578
79579 2000-07-02  Jim Meyering  <meyering@lucent.com>
79580
79581         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79582
79583 2000-07-01  Jim Meyering  <meyering@lucent.com>
79584
79585         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79586
79587 2000-07-01  Jim Meyering  <meyering@lucent.com>
79588
79589         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79590         problem.
79591
79592 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79593
79594         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79595         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79596
79597 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79598
79599         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79600         per change in ../m4/ls-mntd-fs.m4.
79601         (read_filesystem_list): Ignore symbolic links.
79602
79603 2000-06-29  Jim Meyering  <meyering@lucent.com>
79604
79605         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79606         for declaration of strcmp.
79607
79608         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79609
79610         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79611         Avoid warning by casting result to `char *' to remove `const'.
79612
79613 2000-06-28  Jim Meyering  <meyering@lucent.com>
79614
79615         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79616         included by quotearg.c, for which we perform this test.  From
79617         Bruno Haible.
79618
79619 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79620
79621         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79622         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79623         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79624
79625 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79626
79627         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79628
79629 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79630
79631         savedir now sets errno on failure and invokes xmalloc to get memory.
79632         Fix a couple of other minor bugs while we're at it.
79633
79634         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79635         (NAMLEN): Remove macro.
79636         (malloc, realloc): Remove decls.
79637         (stpcpy): Likewise.
79638         ("xalloc.h"): Include.
79639         (NAME_SIZE_DEFAULT): New macro.
79640         (savedir): Use xmalloc / xrealloc to allocate memory.
79641         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79642         Skip "" directory entries.
79643         Use strlen to calculate directory entry length, since the old method
79644         is rarely used these days and isn't worth supporting.
79645         Don't use a pointer after freeing it.
79646         Check for integer overflow when calculating allocation size.
79647         Use memcpy to copy entries, instead of stpcpy.
79648         Set errno properly when returning NULL.
79649         Check for readdir error.
79650
79651 2000-06-26  Jim Meyering  <meyering@lucent.com>
79652
79653         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79654
79655 2000-06-25  Jim Meyering  <meyering@lucent.com>
79656
79657         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79658         Linux header bug when _XOPEN_SOURCE is defined to 500.
79659
79660 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79661
79662         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79663         deficiency.
79664
79665 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79666
79667         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79668         Include xalloc.h.
79669         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79670
79671 2000-06-24  Jim Meyering  <meyering@lucent.com>
79672
79673         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79674         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79675         for which strerror does return char*, but which lacks a conveniently
79676         accessible declaration of the function.  If the compile-test says
79677         strerror_r doesn't work, then resort to a `run'-test that works on
79678         BeOS and segfaults on DEC Unix.
79679
79680 2000-06-24  Jim Meyering  <meyering@lucent.com>
79681
79682         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79683
79684 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79685
79686         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79687         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79688
79689 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79690
79691         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79692         (mbrtowc, mbstate_t): Define substitutes if
79693         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79694         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79695         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79696
79697 2000-06-23  Jim Meyering  <meyering@lucent.com>
79698
79699         * m4/afs.m4: Add missing AC_MSG_RESULT.
79700         Reported by Bruno Haible.
79701
79702         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79703         Suggestion from Bruno Haible.
79704
79705 2000-06-23  Jim Meyering  <meyering@lucent.com>
79706
79707         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79708
79709 2000-06-21  Jim Meyering  <meyering@lucent.com>
79710
79711         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79712
79713 2000-06-21  Jim Meyering  <meyering@lucent.com>
79714
79715         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79716         (noinst_HEADERS): Add getstr.h.
79717
79718         * lib/getline.c (getstr): Move into a separate file.
79719         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79720         the following changes: new parameter, delim2; both delim[12]
79721         parameters have type `int', not `char'.  The latter would lose
79722         with 8-bit delimiters.
79723         * lib/getstr.h: New file.
79724
79725 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79726
79727         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79728         than 1024, return a memory chunk of least possible size, instead
79729         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79730         Use free/xmalloc instead of xrealloc to avoid copying for very long
79731         paths.
79732
79733 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79734
79735         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79736         the empty string.
79737
79738 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79739
79740         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79741         address, not strdup.  Include <stdlib.h> and don't declare free().
79742
79743 2000-06-19  Jim Meyering  <meyering@lucent.com>
79744
79745         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79746
79747 2000-06-18  Jim Meyering  <meyering@lucent.com>
79748
79749         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79750
79751         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79752         `checking whether...' message to be consistent with that of the
79753         lstat test.
79754
79755 2000-06-18  Jim Meyering  <meyering@lucent.com>
79756
79757         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79758         Besides, these days every porting target provides a mkdir function.
79759
79760         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79761         needed. (this snippet comes from src/system.h).
79762
79763 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79764
79765         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79766
79767 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79768
79769         * lib/human.c (adjust_value): New function.
79770         (human_readable_inexact): Apply rounding style even when
79771         printing approximate values.
79772
79773 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79774
79775         * lib/human.c (human_readable_inexact): Allow an input block
79776         size that is not a multiple of the output block size, and vice versa.
79777         Reported by Piergiorgio Sartor.
79778
79779 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79780
79781         * lib/getdate.y (get_date): Apply relative times after time
79782         zone indicator, not before.  Reported by Todd A. Jacobs.
79783
79784 2000-06-13  Jim Meyering  <meyering@lucent.com>
79785
79786         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79787
79788         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79789
79790 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79791
79792         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79793
79794 2000-06-12  Jim Meyering  <meyering@lucent.com>
79795
79796         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79797         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79798         optional argument.
79799         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79800         the optional argument, `lib'.
79801
79802 2000-06-08  Jim Meyering  <meyering@lucent.com>
79803
79804         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79805
79806 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79807
79808         Rewrite largefile configuration so that we don't need to run
79809         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79810         AC_CANONICAL_HOST in configure.in -- jmm]
79811
79812         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79813         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79814         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79815         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79816         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79817         All uses changed.
79818         Instead of inspecting the output of getconf, try to compile the
79819         test program without and with the macro definition.
79820         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79821         for getconf.  Instead, check for the needed flags by compiling
79822         test programs.
79823
79824 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79825
79826         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79827
79828 2000-06-04  Jim Meyering  <meyering@lucent.com>
79829
79830         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79831         SunOS 4.1.4 for which gid_t is an unsigned type.
79832
79833 2000-06-03  Jim Meyering  <meyering@lucent.com>
79834
79835         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79836         now that autoconf requires that.
79837
79838         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79839         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79840         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79841
79842 2000-06-03  Jim Meyering  <meyering@lucent.com>
79843
79844         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79845
79846 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79847
79848         * m4/glibc21.m4: New file.
79849         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79850
79851 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79852
79853         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79854         newer, don't install charset.alias.
79855         * lib/config.charset: Change the Linux/glibc rules so they become empty
79856         on glibc-2.1 or newer.
79857
79858 2000-06-02  Jim Meyering  <meyering@lucent.com>
79859
79860         * lib/mountlist.c: Back out last change.  Instead, do this...
79861         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79862         me_dummy member using the same `ignore'-testing code.
79863         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79864         fs_type strings.
79865         From Mark D. Roth.
79866
79867 2000-05-29  Jim Meyering  <meyering@lucent.com>
79868
79869         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79870         mounts with the `ignore' attribute.  Based on a patch from
79871         Mark D. Roth.
79872
79873 2000-05-28  Jim Meyering  <meyering@lucent.com>
79874
79875         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79876         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79877         * m4/stat.m4: Likewise.
79878         * m4/lstat.m4: Likewise.
79879         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79880
79881         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79882         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79883
79884 2000-05-26  Jim Meyering  <meyering@lucent.com>
79885
79886         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79887
79888 2000-05-24  Jim Meyering  <meyering@lucent.com>
79889
79890         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79891         autoconf requires that.
79892         * m4/lib-check.m4: Likewise.
79893         * m4/jm-macros.m4: Likewise.
79894         * m4/strftime.m4: Likewise.
79895
79896         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79897         AC_CHECK_DECLS, now that autoconf requires that.
79898
79899 2000-05-22  Jim Meyering  <meyering@lucent.com>
79900
79901         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79902         * m4/lstat.m4: Likewise.
79903
79904 2000-05-22  Jim Meyering  <meyering@lucent.com>
79905
79906         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79907
79908 2000-05-20  Jim Meyering  <meyering@lucent.com>
79909
79910         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79911         (jm_PREREQ): Use it.
79912
79913 2000-05-18  Jim Meyering  <meyering@lucent.com>
79914
79915         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79916         back, too, since it may have been modified by allocate_entry.
79917         (hash_delete): Rewrite to use neither the assignment operator
79918         nor the comma operator in an if-expression.
79919
79920 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79921
79922         * lib/closeout.c:
79923         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79924         Remove; no longer needed.
79925         "quotearg.h": Add include.
79926         (file_name): Do not bother to explicitly initialize to NULL; it's less
79927         efficient on some hosts.
79928         (close_stdout_status): Remove test as to whether stdout was already
79929         closed; it breaks for the case "echo x | sort >&-".
79930         Quote file name colons.
79931         Do not assume that _("write error") lacks format strings.
79932
79933 2000-05-15  Jim Meyering  <meyering@lucent.com>
79934
79935         * lib/version-etc.c (version_etc_copyright): Update the copyright
79936         string used in all --version output.
79937
79938 2000-05-14  Jim Meyering  <meyering@lucent.com>
79939
79940         * lib/closeout.c (close_stdout_set_file_name): New function.
79941         (close_stdout_status): Use new file-scoped global.
79942         Return right away if fstat says the stdout file descriptor is invalid.
79943         * lib/closeout.h (close_stdout_set_file_name): Declare.
79944
79945 2000-05-10  Jim Meyering  <meyering@lucent.com>
79946
79947         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79948         (close_stdout_set_status): New function.
79949         * lib/closeout.h (close_stdout_set_status): Declare.
79950
79951 2000-05-09  Jim Meyering  <meyering@lucent.com>
79952
79953         * m4/gettext.m4: Rename this...
79954         * m4/libintl.m4: ...to this.
79955
79956 2000-05-08  Jim Meyering  <meyering@lucent.com>
79957
79958         * lib/long-options.c: Don't include closeout.h.
79959         (parse_long_options): Don't call close_stdout for --version.
79960
79961 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79962
79963         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79964         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79965         2.1.3 bug.  This avoids a clash when files like regex.c define
79966         _GNU_SOURCE.
79967
79968 2000-05-06  Jim Meyering  <meyering@lucent.com>
79969
79970         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79971         (AC_REPLACE_FUNCS): Add strnlen.
79972
79973         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79974         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79975
79976         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79977         AC_SEARCH_LIBS call for nanosleep.
79978         (LIB_NANOSLEEP): Set and AC_SUBST.
79979
79980 2000-05-06  Jim Meyering  <meyering@lucent.com>
79981
79982         * lib/strnlen.c: Undefine __strnlen and strnlen.
79983         [!weak_alias]: Define __strnlen to strnlen.
79984
79985         * lib/atexit.c: New file, from libiberty.
79986
79987 2000-05-06  Jim Meyering  <meyering@lucent.com>
79988
79989         * lib/closeout.c (close_stdout_status): Also check for errors on the
79990         stderr stream.
79991
79992 2000-05-05  Jim Meyering  <meyering@lucent.com>
79993
79994         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79995         AC_SEARCH_LIBS call for clock_gettime.
79996         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79997
79998         * m4/search-libs.m4: Update from autoconf.
79999
80000         su doesn't work on Solaris 2.6.
80001         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80002         <shadow.h>.  Reported by Dragos Harabor.
80003
80004 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80005
80006         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80007         memcpy instead of xmalloc, xrealloc, path_concat.
80008         (locale_charset): Treat empty environment variables as absent.
80009         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80010
80011 2000-05-04  Jim Meyering  <meyering@lucent.com>
80012
80013         * lib/getopt.c: Update from glibc.
80014         * lib/obstack.c: Likewise.
80015         * lib/obstack.h: Likewise.
80016         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80017         file
80018
80019         * lib/regex.h: Likewise.
80020         * lib/strndup.c: Likewise.
80021         * lib/strnlen.c: New file, from glibc.
80022
80023 2000-05-03  Jim Meyering  <meyering@lucent.com>
80024
80025         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80026
80027 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80028
80029         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80030         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80031         compile-time test, rather than inspecting host and OS, to
80032         decide whether to define _LARGEFILE_SOURCE.
80033
80034 2000-05-01  Jim Meyering  <meyering@lucent.com>
80035
80036         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80037
80038         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80039         Based on a patch from Bruno Haible.
80040
80041 2000-05-01  Jim Meyering  <meyering@lucent.com>
80042
80043         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80044
80045 2000-04-29  Jim Meyering  <meyering@lucent.com>
80046
80047         * lib/path-concat.c: Declare strdup only if it's not defined.
80048         * lib/canon-host.c: Likewise.
80049
80050 2000-04-28  Jim Meyering  <meyering@lucent.com>
80051
80052         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80053         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80054         is included first, then limits.h is included by locale.h by libintl.h.
80055         From John David Anglin.
80056
80057 2000-04-25  Jim Meyering  <meyering@lucent.com>
80058
80059         * lib/makepath.c (S_IRWXUGO): Define.
80060         (make_path): Always perform explicit chmod if MODE specifies any
80061         of the `special' permission bits.  Prompted by a bug report against
80062         install from Mate Wierdl and Joost van Baal.
80063
80064 2000-04-18  Jim Meyering  <meyering@lucent.com>
80065
80066         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80067         (jm_PREREQ): Use it.
80068
80069 2000-04-18  Jim Meyering  <meyering@lucent.com>
80070
80071         * lib/README: New file.
80072
80073         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80074         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80075
80076 2000-04-17  Jim Meyering  <meyering@lucent.com>
80077
80078         Get it right :-)
80079         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80080         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80081         Suggestion from Akim Demaille.
80082
80083 2000-04-17  Jim Meyering  <meyering@lucent.com>
80084
80085         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80086         the definition of it to rpl_strftime also defined-away the system's
80087         declaration.
80088
80089 2000-04-15  Jim Meyering  <meyering@lucent.com>
80090
80091         Use `C' to denote so-called `contiguous' files, the same way
80092         that tar does.
80093         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80094         (ftypelet): Use S_ISCTG.
80095         From Michael Deutschmann.
80096
80097 2000-04-14  Jim Meyering  <meyering@lucent.com>
80098
80099         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80100         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80101         clobbered.
80102
80103 2000-04-14  Jim Meyering  <meyering@lucent.com>
80104
80105         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80106
80107 2000-04-13  Jim Meyering  <meyering@lucent.com>
80108
80109         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80110         AH_VERBATIM to insert required #ifndef into config.h.in.
80111         Suggestion from Akim Demaille.
80112
80113 2000-04-12  Jim Meyering  <meyering@lucent.com>
80114
80115         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80116         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80117         Christian Krackowizer.
80118
80119         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80120         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80121         (AC_SYS_LARGEFILE): Require.
80122         (AM_C_PROTOTYPES): Require.
80123
80124 2000-04-08  Jim Meyering  <meyering@lucent.com>
80125
80126         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80127         names don't conflict.  Reported by Eli Zaretskii.
80128
80129 2000-04-07  Jim Meyering  <meyering@lucent.com>
80130
80131         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80132         sys/types.h, to work around system header problems on AIX 3.2.5.
80133         From Bruno Haible.
80134
80135 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80136
80137         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80138         bug.  Deal with the different error behavior of Irix iconv.
80139
80140 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80141
80142         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80143         IRIX if the installer said otherwise.
80144
80145 2000-04-05  Jim Meyering  <meyering@lucent.com>
80146
80147         Portability tweaks required for ultrix4.3.
80148         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80149         (jm_CHECK_DECLS): Add getutent to the list of functions.
80150         (_jm_DECL_HEADERS): Add utmpx.h.
80151         From John David Anglin.
80152
80153         * m4/strftime.m4: Back out the 2000-04-02 change.
80154         Instead of that change, simply undefine putenv in the test program.
80155
80156 2000-04-05  Jim Meyering  <meyering@lucent.com>
80157
80158         Portability tweaks required for ultrix4.3.
80159         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80160         getutent.
80161         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80162         * lib/canon-host.c: Declare strdup.
80163         * lib/path-concat.c: Likewise.
80164         From John David Anglin.
80165
80166 2000-04-04  Jim Meyering  <meyering@lucent.com>
80167
80168         Be more DOS 8.3-friendly.
80169         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80170         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80171         * lib/Makefile.am: Reflect renaming.
80172         Reported by Eli Zaretskii.
80173
80174         Use a temporary file name that won't clash with `charset.alias'
80175         in the DOS 8.3 name space.
80176         * lib/Makefile.am (charset_tmp): Define.
80177         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80178         (uninstall-local): Likewise.
80179         Reported by Eli Zaretskii.
80180
80181 2000-04-03  Jim Meyering  <meyering@lucent.com>
80182
80183         * m4/gettext.m4: Fix typo in comment.
80184
80185         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80186         textutils/configure.in).  Suggestion from Paul Eggert.
80187         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80188
80189 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80190
80191         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80192         variable in the shell rather than using putenv, which isn't
80193         portable.  This avoids the configure-time inter-test dependency
80194         on the potentially-renamed putenv function.
80195
80196 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80197
80198         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
80199         before checking struct stat.st_blksize, so that
80200         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
80201
80202 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80203
80204         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
80205         since strftime.c uses HAVE_STRFTIME to decide whether to use
80206         the underlying strftime.
80207
80208 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80209
80210         * lib/time/strftime.c (my_strftime): Make sure we call the system
80211         strftime, not ourselves, when invoking the underlying strftime.
80212
80213 2000-03-24  Jim Meyering  <meyering@lucent.com>
80214
80215         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
80216         (charset_alias): Define.
80217         (install-exec-local): Factor out common code.
80218         (uninstall-local): Split lines longer than 80.
80219         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
80220         (SUFFIXES): Define.
80221         (.sed.in.sed): New rule.  Don't redirect directly to $@.
80222         (CLEANFILES): Add ref-add.sed and ref-del.sed.
80223
80224 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
80225
80226         * lib/config.charset: Output a line containing "Packages using this
80227         file".
80228         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
80229         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
80230         ref-del.sed): New rules.
80231
80232 2000-03-17  Jim Meyering  <meyering@lucent.com>
80233
80234         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
80235         Otherwise, include <strings.h>
80236
80237 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
80238
80239         * lib/unicodeio.c (utf8_wctomb): New function.
80240         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
80241         format instead of in UCS-4 with platform dependent endianness.
80242
80243 2000-03-10  Jim Meyering  <meyering@lucent.com>
80244
80245         * m4/lib-check.m4: Look for getspnam in -lgen, too.
80246         From Marco Franzen.
80247
80248 2000-03-07  Paul Eggert  <eggert@twinsun.com>
80249
80250         * lib/savedir.c (savedir): Work even if directory size is
80251         negative; this can happen with some screwy NFS configurations.
80252
80253 2000-03-06  Jim Meyering  <meyering@lucent.com>
80254
80255         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
80256         if it's NULL (because we ran out of memory).  From Bruno Haible.
80257
80258 2000-03-05  Jim Meyering  <meyering@lucent.com>
80259
80260         * lib/localcharset.c ("path-concat.h"): Include.
80261         (get_charset_aliases): Use path_concat instead of ANSI string
80262         concatenation.
80263
80264         * lib/unicodeio.h (PARAMS): Define.
80265         Use it to guard prototype.
80266
80267 2000-03-04  Jim Meyering  <meyering@lucent.com>
80268
80269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
80270         for lib/localcharset.c.
80271
80272 2000-03-04  Jim Meyering  <meyering@lucent.com>
80273
80274         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80275         installing into it.
80276         (uninstall-local): Uncomment this rule so `make distcheck' works
80277         once again.
80278
80279         * lib/unicodeio.c (<errno.h>): Include it.
80280         (errno): Declare if not defined.
80281
80282         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80283
80284         * lib/config.charset: New version, incorporating remarks from a linux
80285         i18n mailing list.  From Bruno Haible.
80286
80287 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80288
80289         * m4/codeset.m4: New file.
80290         * m4/iconv.m4: New file.
80291         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80292
80293 2000-03-03  Jim Meyering  <meyering@lucent.com>
80294
80295         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80296
80297 2000-03-02  Jim Meyering  <meyering@lucent.com>
80298
80299         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80300         the messages come out on separate lines.
80301
80302         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80303         rather than jm_CHECK_DECLARATIONS.
80304         * m4/decl.m4: Remove now-unused file.
80305
80306         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80307         geteuid.
80308
80309 2000-03-02  Jim Meyering  <meyering@lucent.com>
80310
80311         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
80312
80313 2000-03-01  Jim Meyering  <meyering@lucent.com>
80314
80315         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80316         * lib/unicodeio.c: Likewise.
80317
80318 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
80319
80320         * lib/config.charset: New file.
80321         * lib/localcharset.c: New file.
80322         * lib/unicodeio.h, lib/unicodeio.c: New files.
80323         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
80324         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
80325         (noinst_HEADERS): Add unicodeio.h.
80326         (all-local, install-exec-local, charset.alias): New targets.
80327
80328 2000-02-28  Paul Eggert  <eggert@twinsun.com>
80329
80330         * lib/quotearg.c (ALERT_CHAR): New macro.
80331         (quotearg_buffer_restyled): Use it.
80332
80333 2000-02-27  Jim Meyering  <meyering@lucent.com>
80334
80335         * m4/check-decl.m4: Add getenv to the list.
80336
80337 2000-02-27  Jim Meyering  <meyering@lucent.com>
80338
80339         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
80340         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
80341
80342         * lib/backupfile.c: Guard inclusion of stdlib.h with
80343         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
80344         Declare malloc if needed.
80345
80346         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
80347         `#ifndef HAVE_DECL..'
80348         now that autoconf always defines the HAVE_DECL_ symbols.
80349         * lib/human.c: Likewise.
80350         * lib/same.c: Likewise.
80351         * lib/strtoumax.c: Likewise.
80352
80353         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
80354         declaration check was not run.
80355         * lib/hash.c: Likewise.
80356         * lib/human.c: Likewise.
80357         * lib/same.c: Likewise.
80358         * lib/strtoumax.c: Likewise.
80359
80360         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
80361         `.', then first look up the entire `.'-containing string as a login
80362         name.
80363
80364 2000-02-23  Jim Meyering  <meyering@lucent.com>
80365
80366         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
80367         in place of my hack.
80368
80369 2000-02-18  Paul Eggert  <eggert@twinsun.com>
80370
80371         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
80372         (textint): New typedef.
80373         (parser_control): Member year changed from int to textint.
80374         All uses changed.
80375         (YYSTYPE): Removed; replaced by %union with int and textint members.
80376         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80377         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80378         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80379         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80380         (date, number, to_year): Use width of number in digits, not its value,
80381         to determine whether it's a 2-digit year, or a 2-digit time.
80382         (yylex): Store number of digits of numeric tokens.
80383         Reported by John Kendall.
80384
80385         (parser_control): Changed from struct parser_control to typedef (for
80386         consistency).  All uses changed.
80387
80388         (tID): Removed; not used.
80389         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80390
80391 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80392
80393         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80394         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80395
80396 2000-02-12  Jim Meyering  <meyering@lucent.com>
80397
80398         * lib/userspec.c (ISDIGIT): Define it.
80399         (isdigit): Remove definition.
80400         (is_number): Use ISDIGIT, not isdigit.
80401         <libintl.h>: Include.
80402         (_ and N_): Define.
80403         (parse_user_spec): Mark translatable strings.
80404
80405 2000-02-10  Jim Meyering  <meyering@lucent.com>
80406
80407         With these changes, nanosleep.[ch] are finally enough like the other
80408         lib/* replacement files to compile on a few more losing systems.
80409
80410         * lib/nanosleep.h: Don't include config.h.
80411         Remove prototype from declaration of nanosleep.
80412         (PARAMS): Remove now-unneeded definition.
80413         * lib/nanosleep.c: #undef nanosleep.
80414         (rpl_nanosleep): Rename from nanosleep.
80415
80416 2000-02-10  Jim Meyering  <meyering@lucent.com>
80417
80418         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80419         gnu_nanosleep to rpl_nanosleep.
80420
80421 2000-02-09  Jim Meyering  <meyering@lucent.com>
80422
80423         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80424         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80425
80426 2000-02-08  Akim Demaille  <akim@epita.fr>
80427
80428         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80429         `[' and `]' and remove uses of `changequote'.
80430         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80431         (AC_SYS_LARGEFILE): Likewise.
80432         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80433         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80434         of changequote.
80435         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80436         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80437         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80438         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80439
80440 2000-02-05  Jim Meyering  <meyering@lucent.com>
80441
80442         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80443         Remove explicit use of AC_HEADER_TIME.  It is required by
80444         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80445         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80446         in autoconf whereby the expansion of the latter ended up preceding
80447         the expansion of its prerequisite, AC_HEADER_TIME.
80448         Reported by Volker Borchert.
80449
80450 2000-02-03  Jim Meyering  <meyering@lucent.com>
80451
80452         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80453
80454 2000-02-03  Jim Meyering  <meyering@lucent.com>
80455
80456         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80457         rather than with `#if HAVE_UTMPNAME'.
80458
80459 2000-02-02  Jim Meyering  <meyering@lucent.com>
80460
80461         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80462         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80463         Reported by Eli Zaretskii.
80464
80465 2000-02-01  Jim Meyering  <meyering@lucent.com>
80466
80467         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80468
80469 2000-01-31  Jim Meyering  <meyering@lucent.com>
80470
80471         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80472         functions.  Add the time.h and sys/time.h headers along with the
80473         AC_REQUIRE'ment of AC_HEADER_TIME.
80474
80475 2000-01-31  Jim Meyering  <meyering@lucent.com>
80476
80477         * lib/nanosleep.h (nanosleep): Guard declaration with
80478         `#if ! HAVE_DECL_NANOSLEEP'.
80479         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80480         the declaration in that vendor's sys/timers.h.
80481         Reported by Christian Krackowizer.
80482
80483         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80484         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80485         (ISPRINT): Likewise.
80486         Reported by Tom Tromey.
80487
80488 2000-01-30  Jim Meyering  <meyering@lucent.com>
80489
80490         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80491
80492         * m4/prereq.m4 (utmp_includes): Define.
80493         Check for ut_user and ut_name members in both struct utmpx
80494         and struct utmp.
80495
80496 2000-01-30  Jim Meyering  <meyering@lucent.com>
80497
80498         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80499         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80500         header files where only utmpx.ut_user is declared.
80501
80502         * lib/readutmp.h (UT_USER): Define.
80503
80504 2000-01-29  Jim Meyering  <meyering@lucent.com>
80505
80506         * m4/lib-check.m4: New file containing library-related checks from
80507         fileutils and sh-utils (textutils had none).
80508
80509 2000-01-28  Jim Meyering  <meyering@lucent.com>
80510
80511         * m4/perl.m4: Change format of warning message to look more like that
80512         from the missing script.  Suggestion from François Pinard.
80513
80514 2000-01-25  Jim Meyering  <meyering@lucent.com>
80515
80516         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80517         well as time.h in the compile check.
80518         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80519         Fix typo in cross-compiling case: s/yes/no/.
80520
80521 2000-01-23  Jim Meyering  <meyering@lucent.com>
80522
80523         * m4/jm-macros.m4: Move df-related tests here from
80524         fileutils/configure.in
80525
80526         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80527         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80528
80529         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80530         s/space/ac_fsusage_space/.
80531         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80532
80533         * m4/ftruncate.m4: New file (derived from part of
80534         fileutils/configure.in).
80535         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80536         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80537
80538         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80539         AC_SUBST these here, rather than just in sh-util/configure.in, so
80540         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80541         all the same.
80542         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80543         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80544         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80545         (AC_SUBST(POW_LIBM)): Likewise.
80546         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80547
80548 2000-01-23  Jim Meyering  <meyering@lucent.com>
80549
80550         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80551         obstack.c.
80552
80553 2000-01-22  Jim Meyering  <meyering@lucent.com>
80554
80555         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80556
80557         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80558
80559         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80560         configure.in
80561         (AC_CHECK_HEADERS): Likewise for sh-utils.
80562         (AC_CHECK_HEADERS): Likewise for textutils.
80563         Merge the three lists of headers.
80564
80565         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80566         from fileutils' configure.in.
80567
80568         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80569         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80570         check-decl.m4.
80571
80572         * m4/check-decl.m4: Use #if rather than #ifdef.
80573         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80574         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80575         (_jm_DECL_HEADERS): Define new function.
80576         (jm_CHECK_DECLARATIONS): Require it.
80577
80578 2000-01-22  Jim Meyering  <meyering@lucent.com>
80579
80580         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80581         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80582         Required for some AIX systems.  Reported by Christian Krackowizer.
80583         [TESTING] (main): New function.
80584
80585         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80586         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80587         letters.
80588
80589         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80590         iswprint.
80591
80592         * lib/strverscmp.c (ISDIGIT): Define.
80593         (strverscmp): Use ISDIGIT, not isdigit.
80594
80595 2000-01-19  Jim Meyering  <meyering@lucent.com>
80596
80597         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80598         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80599         defines `struct timespec' in <sys/time.h>
80600
80601         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80602         Thanks to Akim for explaining.
80603
80604 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80605
80606         * lib/nanosleep.c (nanosleep):
80607         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80608         POSIX.1 doesn't require SA_INTERRUPT and some systems
80609         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80610         it's been part of POSIX.1 since day 1 (in 1988).
80611
80612 2000-01-17  Jim Meyering  <meyering@lucent.com>
80613
80614         * lib/interlock: Remove unused file.  Reported by François Pinard.
80615
80616 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80617
80618         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80619         alert, backslash, formfeed, and vertical tab unnecessarily in
80620         shell quoting style.
80621
80622 2000-01-16  Jim Meyering  <meyering@lucent.com>
80623
80624         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80625         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80626         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80627         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80628
80629 2000-01-16  Jim Meyering  <meyering@lucent.com>
80630
80631         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80632         because the latter didn't work.
80633
80634 2000-01-15  Jim Meyering  <meyering@lucent.com>
80635
80636         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80637         (AC_REPLACE_FUNCS): Add memcpy and memset.
80638         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80639         Add strpbrk.
80640         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80641
80642 2000-01-12  Jim Meyering  <meyering@lucent.com>
80643
80644         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80645         (jm_PREREQ): Use it.
80646         (jm_PREREQ_READUTMP): New macro.
80647         (jm_PREREQ): Use it.
80648
80649 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80650
80651         Quote multibyte characters correctly.
80652         * m4/c-bs-a.m4: New file.
80653         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80654         (jm_PREREQ): Use it.
80655
80656 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80657
80658         * m4/uintmax_t.m4: Port to autoconf 2.13.
80659
80660 2000-01-08  Jim Meyering  <meyering@ascend.com>
80661
80662         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80663         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80664
80665 2000-01-04  Jim Meyering  <meyering@ascend.com>
80666
80667         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80668         jm_STRUCT_DIRENT_D_TYPE.
80669         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80670         jm_STRUCT_DIRENT_D_INO.
80671         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80672         jm_STRUCT_UTIMBUF.
80673         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80674         renamings.
80675         * m4/utime.m4: Likewise.
80676
80677         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80678         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80679
80680 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80681
80682         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80683         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80684
80685 2000-01-02  Jim Meyering  <meyering@ascend.com>
80686
80687         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80688         remember if this is necessary.
80689
80690 1999-12-26  Jim Meyering  <meyering@ascend.com>
80691
80692         * m4/jm-macros.m4: Use it here.
80693         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80694
80695 1999-12-23  Jim Meyering  <meyering@ascend.com>
80696
80697         * m4/jm-macros.m4: Check for clock_gettime (moved from
80698         fileutils/configure.in)
80699         Check for gettimeofday.
80700
80701 1999-12-20  Jim Meyering  <meyering@ascend.com>
80702
80703         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80704         autoconf-2.14a-1999-12-20.
80705
80706 1999-12-19  Jim Meyering  <meyering@ascend.com>
80707
80708         * m4/lstat-slash.m4: New file.
80709         * m4/jm-macros.m4: Use the new macro:
80710         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80711
80712 1999-12-07  Jim Meyering  <meyering@ascend.com>
80713
80714         * m4/perl.m4: Require that File::Compare be available, too.
80715         Too many systems seem to lack it.
80716
80717         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80718         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80719
80720 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80721
80722         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80723         problem with the QNX 4.25 shell, which doesn't propagate exit
80724         status of failed commands inside shell assignments.
80725
80726 1999-11-17  Jim Meyering  <meyering@ascend.com>
80727
80728         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80729
80730 1999-11-07  Jim Meyering  <meyering@ascend.com>
80731
80732         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80733
80734 1999-11-06  Jim Meyering  <meyering@ascend.com>
80735
80736         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80737         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80738
80739 1999-11-05  Jim Meyering  <meyering@ascend.com>
80740
80741         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80742         configure.in of textutils, fileutils, and sh-utils into this one
80743         (shared between those packages) file.
80744         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80745         AC_STRUCT_ST_BLKSIZE.
80746
80747 1999-11-03  Jim Meyering  <meyering@ascend.com>
80748
80749         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80750         of AC_CHECK_TYPE checks includes unistd.h.
80751         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80752         Suggestion from Akim Demaille.
80753
80754 1999-10-30  Jim Meyering  <meyering@ascend.com>
80755
80756         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80757         m4-quoted string.
80758         * m4/ls-mntd-fs.m4: Likewise.
80759         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80760         * m4/jm-winsz1.m4: Likewise.
80761
80762         * m4/const.m4: Remove file, since the fix made it into the experimental
80763         version of autoconf.
80764         * m4/mktime.m4: Likewise.
80765
80766         * m4/check-type.m4: Remove file, now that the latest version of
80767         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80768
80769         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80770         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80771         AC_CHECK_TYPE.
80772
80773 1999-10-04  Jim Meyering  <meyering@ascend.com>
80774
80775         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80776
80777 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80778
80779         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80780         2.95.1 bug with HP-UX 10.20.
80781
80782 1999-09-17  Jim Meyering  <meyering@ascend.com>
80783
80784         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80785         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80786         due to missing strdup (against sh-utils-2.0).
80787
80788 1999-08-29  Jim Meyering  <meyering@ascend.com>
80789
80790         * m4/jm-macros.m4: Require jm_BISON.
80791         * m4/bison.m4: New file.
80792
80793 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80794
80795         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80796         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80797
80798 1999-08-05  Jim Meyering  <meyering@ascend.com>
80799
80800         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80801         to avoid conflicts with `conftest' on 8+3 filesystems.
80802         Suggestion from Eli Zaretskii.
80803
80804 1999-08-04  Jim Meyering  <meyering@ascend.com>
80805
80806         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80807         fileutils and sh-utils (textutils's getline test was inadequate).
80808         (AM_FUNC_GETLINE): Run this test.
80809         (AC_CHECK_FUNCS): Check for getdelim.
80810         Reported by Bob Proulx.
80811
80812 1999-08-02  Jim Meyering  <meyering@ascend.com>
80813
80814         * m4/jm-macros.m4: Add a comment.
80815
80816 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80817
80818         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80819         <inttypes.h> defines strtoumax as a macro (and not as a
80820         function).
80821
80822 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80823
80824         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80825         that we can shift, multiply and divide unsigned long long
80826         values; Ultrix cc can't do it.
80827
80828 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80829
80830         * m4/mktime.m4: New file, which is a preview of what should appear
80831         in the next public autoconf release.
80832
80833 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80834
80835         * m4/lfs.m4: Remove this file.
80836         * m4/largefile.m4: New file.  It contains the old contents of
80837         lfs.m4, except that all names with prefix AC_LFS have been
80838         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80839         compatible with future autoconf versions.  Also, some minor m4
80840         quoting problems have been fixed.
80841
80842 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80843
80844         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80845         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80846         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80847         and simplify the shell code.
80848
80849 1999-08-01  Jim Meyering  <meyering@ascend.com>
80850
80851         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80852         m4.
80853
80854 1999-07-20  Jim Meyering  <meyering@ascend.com>
80855
80856         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80857
80858 1999-07-15  Jim Meyering  <meyering@ascend.com>
80859
80860         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80861
80862 1999-05-22  Jim Meyering  <meyering@ascend.com>
80863
80864         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80865
80866 1999-05-20  Jim Meyering  <meyering@ascend.com>
80867
80868         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80869         Add a colon after each `then' in case $4 is empty.
80870
80871 1999-05-16  Jim Meyering  <meyering@ascend.com>
80872
80873         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80874
80875 1999-05-10  Jim Meyering  <meyering@ascend.com>
80876
80877         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80878
80879         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80880         AC_FUNC_MKTIME.
80881
80882 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80883
80884         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80885
80886 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80887
80888         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80889         not CPPFLAGS, so that linking works correctly in IRIX.
80890
80891 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80892
80893         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80894
80895 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80896
80897         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80898         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80899         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80900         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80901         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80902
80903         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80904
80905 1999-04-20  Jim Meyering  <meyering@ascend.com>
80906
80907         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80908         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80909         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80910
80911 1999-04-18  Jim Meyering  <meyering@ascend.com>
80912
80913         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80914         * m4/jm-macros.m4: Use it.
80915
80916 1999-04-06  Jim Meyering  <meyering@ascend.com>
80917
80918         * m4/strftime.m4: Remove test for %f.
80919
80920 1999-03-29  Jim Meyering  <meyering@ascend.com>
80921
80922         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80923         superset of the AC_TYPE_* checks in the textutils, fileutils,
80924         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80925         AC_TYPE_PID_T.
80926
80927 1999-03-28  Jim Meyering  <meyering@ascend.com>
80928
80929         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80930         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80931         replaced e.g., in the *.sh files of the sh-utils.
80932
80933 1999-03-20  Jim Meyering  <meyering@ascend.com>
80934
80935         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80936         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80937         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80938
80939 1999-03-19  Jim Meyering  <meyering@ascend.com>
80940
80941         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80942
80943 1999-03-12  Jim Meyering  <meyering@ascend.com>
80944
80945         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80946
80947 1999-03-07  Jim Meyering  <meyering@ascend.com>
80948
80949         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80950         declared.
80951
80952 1999-02-17  Jim Meyering  <meyering@ascend.com>
80953
80954         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80955         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80956
80957 1999-02-07  Jim Meyering  <meyering@ascend.com>
80958
80959         * m4/group-member.m4: New file -- extracted from sh-utils'
80960         configure.in.
80961
80962         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80963         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80964
80965 1999-02-06  Jim Meyering  <meyering@ascend.com>
80966
80967         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80968         * m4/fnmatch.m4: Likewise.
80969         * m4/getgroups.m4: Likewise.
80970         * m4/lstat.m4: Likewise.
80971         * m4/malloc.m4: Likewise.
80972         * m4/putenv.m4: Likewise.
80973         * m4/realloc.m4: Likewise.
80974         * m4/regex.m4: Likewise.
80975         * m4/stat.m4: Likewise.
80976         * m4/strftime.m4: Likewise.
80977         Suggestion from Alain Magloire.
80978
80979         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80980         * m4/fnmatch.m4: Likewise.
80981         * m4/getgroups.m4: Likewise.
80982         * m4/getline.m4: Likewise.
80983         * m4/lstat.m4: Likewise.
80984         * m4/malloc.m4: Likewise.
80985         * m4/memcmp.m4: Likewise.
80986         * m4/putenv.m4: Likewise.
80987         * m4/realloc.m4: Likewise.
80988         * m4/regex.m4: Likewise.
80989         * m4/stat.m4: Likewise.
80990         * m4/strftime.m4: Likewise.
80991         Suggestion from Alain Magloire.
80992
80993         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80994         an argument.
80995
80996         * m4/regex.m4: Add a run-time Test for proper operation of
80997         re_compile_pattern.
80998
80999 1999-01-31  Jim Meyering  <meyering@ascend.com>
81000
81001         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81002
81003 1999-01-30  Jim Meyering  <meyering@ascend.com>
81004
81005         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81006
81007         * m4/jm-mktime.m4: Make this a wrapper around the official
81008         AM_FUNC_MKTIME rather than my private copy, now that the official one
81009         is up to date.
81010         * m4/mktime.m4: Remove file.
81011
81012         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81013         * m4/uptime.m4: Likewise.
81014         * m4/uintmax_t.m4: Likewise.
81015
81016 1999-01-28  Jim Meyering  <meyering@ascend.com>
81017
81018         * m4/jm-macros.m4: Use jm_AFS.
81019         * m4/afs.m4: New file (from fileutils' configure.in).
81020
81021         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81022         * m4/chown.m4: Likewise.
81023         * m4/d-ino.m4: Likewise.
81024         * m4/d-type.m4: Likewise.
81025         * m4/fnmatch.m4: Likewise.
81026         * m4/getgroups.m4: Likewise.
81027         * m4/gettext.m4: Likewise.
81028         * m4/jm-mktime.m4: Likewise.
81029         * m4/jm-winsz2.m4: Likewise.
81030         * m4/lcmessage.m4: Likewise.
81031         * m4/ls-mntd-fs.m4: Likewise.
81032         * m4/malloc.m4: Likewise.
81033         * m4/memcmp.m4: Likewise.
81034         * m4/putenv.m4: Likewise.
81035         * m4/realloc.m4: Likewise.
81036         * m4/st_mtim.m4: Likewise.
81037         * m4/strftime.m4: Likewise.
81038
81039 1999-01-16  Jim Meyering  <meyering@ascend.com>
81040
81041         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81042         (ARGMATCH_DIE_DECL): Define.
81043
81044 1999-01-12  Jim Meyering  <meyering@ascend.com>
81045
81046         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81047         Reported by Lars Hecking.
81048
81049 1999-01-10  Jim Meyering  <meyering@ascend.com>
81050
81051         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81052         gross kludge.
81053         * m4/inttypes_h.m4: Likewise.
81054         * m4/lstat.m4: Likewise.
81055         * m4/malloc.m4: Likewise.
81056         * m4/readdir.m4: Likewise.
81057         * m4/realloc.m4: Likewise.
81058         * m4/st_dm_mode.m4: Likewise.
81059         * m4/stat.m4: Likewise.
81060         * m4/utimbuf.m4: Likewise.
81061         * m4/utimes.m4: Likewise.
81062
81063         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81064         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81065         comments in config.h.in are meaningful.
81066
81067         * m4/jm-macros.m4: Require autoconf-2.13 here.
81068
81069         * m4/regex.m4: By default, don't use the included regex.c on systems
81070         with glibc 2.  Suggestion from Uli Drepper.
81071
81072 1999-01-02  Jim Meyering  <meyering@ascend.com>
81073
81074         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81075
81076 1998-12-18  Jim Meyering  <meyering@ascend.com>
81077
81078         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81079         Based on a suggestion from Lars Hecking.
81080
81081 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81082
81083         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81084
81085 1998-11-16  Jim Meyering  <meyering@ascend.com>
81086
81087         * m4/lfs.m4: Double-quote the `uname...` expression.
81088
81089 1998-11-14  Jim Meyering  <meyering@ascend.com>
81090
81091         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81092         * m4/stat.m4: Likewise.
81093
81094 1998-11-03  Jim Meyering  <meyering@ascend.com>
81095
81096         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81097         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81098
81099 1998-10-18  Jim Meyering  <meyering@ascend.com>
81100
81101         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81102
81103 1998-10-17  Jim Meyering  <meyering@ascend.com>
81104
81105         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81106         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81107         calls for those previously hard-coded headers.  Instead, take a new
81108         parameter.
81109         (jm_CHECK_DECLARATIONS): Reflect interface change.
81110         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81111         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81112
81113         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81114
81115 1998-10-14  Jim Meyering  <meyering@ascend.com>
81116
81117         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81118         instead of "TZ=America/Vancouver".  From Paul Eggert.
81119
81120 1998-10-11  Jim Meyering  <meyering@ascend.com>
81121
81122         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81123         This adds a test for a recently added compatibility fix for mktime.c.
81124         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81125
81126 1998-09-27  Jim Meyering  <meyering@ascend.com>
81127
81128         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81129
81130         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81131         ../configure.in, including a change from Gordon Matzigkeit to allow
81132         cross-compiling for the Hurd.
81133
81134         * m4/glibc.m4: New file/macro to test for the GNU C Library
81135         versions 1 and 2.  From Gordon Matzigkeit.
81136         Indent.
81137
81138 1998-09-21  Jim Meyering  <meyering@ascend.com>
81139
81140         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81141
81142 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81143
81144         Port nanosecond-resolution times to UnixWare 2.1.2 and
81145         pedantic Solaris 2.6.
81146
81147         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81148         AC_STRUCT_ST_MTIM.
81149         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81150         Generate name of ns member, instead of just 1 or undef.
81151         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81152
81153 1998-08-15  Jim Meyering  <meyering@ascend.com>
81154
81155         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81156         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81157         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81158         instead of jm_TYPE_SSIZE_T.
81159
81160 1998-08-12  Jim Meyering  <meyering@ascend.com>
81161
81162         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81163
81164 1998-08-02  Jim Meyering  <meyering@ascend.com>
81165
81166         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81167         in acconfig.h manually.
81168
81169 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81170
81171         * m4/st_mtim.m4: New file.
81172
81173 1998-07-28  Jim Meyering  <meyering@ascend.com>
81174
81175         * m4/utimes.m4: Undef stat.
81176
81177 1998-07-25  Jim Meyering  <meyering@ascend.com>
81178
81179         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81180         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81181
81182 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81183
81184         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81185         uid and gid actually remain unchanged.
81186
81187 1998-07-07  Jim Meyering  <meyering@ascend.com>
81188
81189         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81190
81191 1998-07-04  Jim Meyering  <meyering@ascend.com>
81192
81193         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81194         to prove that this macro can be used in packages without regex.c.
81195
81196 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81197
81198         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
81199         is to be used.
81200
81201 1998-07-03  Jim Meyering  <meyering@ascend.com>
81202
81203         * m4/gettext.m4: Add -lintl if it's found to be necessary.
81204
81205         * m4/gettext.m4: New file -- from gettext-0.10.35.
81206         * m4/lcmessage.m4: Likewise.
81207         * m4/progtest.m4: Likewise.
81208
81209         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
81210         * m4/jm-macros.m4: Require the new macro.
81211
81212 1998-06-29  Jim Meyering  <meyering@ascend.com>
81213
81214         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
81215         for the definition of NGROUPS (used in a system header included
81216         by sys/mount.h).
81217
81218 1998-06-28  Jim Meyering  <meyering@ascend.com>
81219
81220         * m4/ls-mntd-fs.m4: New file.
81221         * m4/fstypename.m4: New file.
81222
81223         * m4/jm-macros.m4: Require the new macro.
81224         * m4/jm-glibc-io.m4: New file.
81225
81226 1998-05-19  Jim Meyering  <meyering@ascend.com>
81227
81228         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
81229         * m4/lchown.m4: New file.
81230
81231         * m4/Makefile.am.in: New file.
81232         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
81233
81234 1998-05-14  Jim Meyering  <meyering@ascend.com>
81235
81236         * m4/Makefile.am (EXTRA_DIST): Add them.
81237         * m4/jm-macros.m4: New file.
81238         * m4/utimbuf.m4: New file.
81239
81240 1998-05-12  Jim Meyering  <meyering@ascend.com>
81241
81242         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
81243
81244 1998-05-11  Jim Meyering  <meyering@ascend.com>
81245
81246         * m4/isc-posix.m4: New file.
81247
81248 1998-05-10  Jim Meyering  <meyering@ascend.com>
81249
81250         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
81251
81252 1998-05-09  Jim Meyering  <meyering@ascend.com>
81253
81254         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
81255         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
81256         with automake.
81257
81258         * m4/ssize_t.m4: New file.
81259         * m4/mktime.m4: Remove file -- the new automake has this now.
81260
81261 1998-04-26  Jim Meyering  <meyering@ascend.com>
81262
81263         * m4/assert.m4: New file.
81264         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
81265
81266 1998-04-05  Jim Meyering  <meyering@ascend.com>
81267
81268         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
81269         (jm_PREREQ): Use it here.
81270
81271 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
81272
81273         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81274         in acconfig.h.
81275
81276 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81277
81278         * m4/prereq.m4: New file.
81279         * m4/error.m4: New file.
81280         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81281
81282 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81283
81284         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81285         cache-check for the same variable -- that defeated the purpose of
81286         the test; the test program was never run.  This was a problem only
81287         on systems with losing getline functions -- HP-UX 10.20 is one.
81288         Reported by Bjorn Helgaas.
81289
81290 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81291
81292         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81293
81294 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81295
81296         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81297
81298         * m4/const.m4: New file.  Use an initializer in this declaration
81299         typedef int charset[2]; const charset x;
81300         Reported by Bob Glickstein.
81301
81302 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81303
81304         * m4/chown.m4: Fix reversed types on -1 args to chown.
81305         From Kaveh Ghazi.
81306
81307 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81308
81309         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
81310         Add lseek and memchr.
81311
81312         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
81313         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81314         have a 20-character limit on names.
81315
81316 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81317
81318         * m4/inttypes_h.m4: New file.
81319         * m4/uintmax_t.m4: New file.
81320         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
81321
81322
81323         -----
81324
81325         Local Variables:
81326         coding: utf-8
81327         End:
81328
81329         Copyright (C) 1997-2011 Free Software Foundation, Inc.
81330
81331         Copying and distribution of this file, with or without
81332         modification, are permitted provided the copyright notice
81333         and this notice are preserved.