d0137b89b33ebe3b1c7015f2eeb157fb3cb3e3c3
[gnulib.git] / lib / ChangeLog
1 2000-05-22  Jim Meyering  <meyering@lucent.com>
2
3         * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
4
5 2000-05-18  Jim Meyering  <meyering@lucent.com>
6
7         * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
8         back, too, since it may have been modified by allocate_entry.
9         (hash_delete): Rewrite to use neither the assignment operator
10         nor the comma operator in an if-expression.
11
12 2000-05-15  Paul Eggert  <eggert@twinsun.com>
13
14         * lib/closeout.c:
15         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
16         Remove; no longer needed.
17         "quotearg.h": Add include.
18         (file_name): Do not bother to explicitly initialize to NULL; it's less
19         efficient on some hosts.
20         (close_stdout_status): Remove test as to whether stdout was already
21         closed; it breaks for the case "echo x | sort >&-".
22         Quote file name colons.
23         Do not assume that _("write error") lacks format strings.
24
25 2000-05-15  Jim Meyering  <meyering@lucent.com>
26
27         * version-etc.c (version_etc_copyright): Update the copyright string
28         used in all --version output.
29
30 2000-05-14  Jim Meyering  <meyering@lucent.com>
31
32         * closeout.c (close_stdout_set_file_name): New function.
33         (close_stdout_status): Use new file-scoped global.
34         Return right away if fstat says the stdout file descriptor is invalid.
35         * closeout.h (close_stdout_set_file_name): Declare.
36
37 2000-05-10  Jim Meyering  <meyering@lucent.com>
38
39         * closeout.c [default_exit_status]: New file-scoped variable.
40         (close_stdout_set_status): New function.
41         * closeout.h (close_stdout_set_status): Declare.
42
43 2000-05-08  Jim Meyering  <meyering@lucent.com>
44
45         * long-options.c: Don't include closeout.h.
46         (parse_long_options): Don't call close_stdout for --version.
47
48 2000-05-06  Jim Meyering  <meyering@lucent.com>
49
50         * strnlen.c: Undefine __strnlen and strnlen.
51         [!weak_alias]: Define __strnlen to strnlen.
52
53         * atexit.c: New file, from libiberty.
54
55 2000-05-06  Jim Meyering  <meyering@lucent.com>
56
57         * closeout.c (close_stdout_status): Also check for errors on the
58         stderr stream.
59
60 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
61
62         * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy
63         instead of xmalloc, xrealloc, path_concat.
64         (locale_charset): Treat empty environment variables as absent.
65         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
66
67 2000-05-04  Jim Meyering  <meyering@lucent.com>
68
69         * getopt.c: Update from glibc.
70         * obstack.c: Likewise.
71         * obstack.h: Likewise.
72         * regex.c: Likewise.  NB: K&R compiler support is dropped for this file
73
74         * regex.h: Likewise.
75         * strndup.c: Likewise.
76         * strnlen.c: New file, from glibc.
77
78 2000-05-01  Jim Meyering  <meyering@lucent.com>
79
80         * full-write.c (full_write): Remove `FIXME' part of comment.
81
82 2000-04-29  Jim Meyering  <meyering@lucent.com>
83
84         * path-concat.c: Declare strdup only if it's not defined.
85         * canon-host.c: Likewise.
86
87 2000-04-28  Jim Meyering  <meyering@lucent.com>
88
89         * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid
90         redefinition warning on some systems (HPUX).  Otherwise, regex.h is
91         included first, then limits.h is included by locale.h by libintl.h.
92         From John David Anglin.
93
94 2000-04-25  Jim Meyering  <meyering@lucent.com>
95
96         * makepath.c (S_IRWXUGO): Define.
97         (make_path): Always perform explicit chmod if MODE specifies any
98         of the `special' permission bits.  Prompted by a bug report against
99         install from Mate Wierdl and Joost van Baal.
100
101 2000-04-18  Jim Meyering  <meyering@lucent.com>
102
103         * README: New file.
104
105         * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
106         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
107
108 2000-04-17  Jim Meyering  <meyering@lucent.com>
109
110         * strftime.c (my_strftime) [strftime]: Declare strftime here, since
111         the definition of it to rpl_strftime also defined-away the system's
112         declaration.
113
114 2000-04-15  Jim Meyering  <meyering@lucent.com>
115
116         Use `C' to denote so-called `contiguous' files, the same way
117         that tar does.
118         * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
119         (ftypelet): Use S_ISCTG.
120         From Michael Deutschmann.
121
122 2000-04-14  Jim Meyering  <meyering@lucent.com>
123
124         * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
125
126 2000-04-08  Jim Meyering  <meyering@lucent.com>
127
128         * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
129         names don't conflict.  Reported by Eli Zaretskii.
130
131 2000-03-28  Bruno Haible  <haible@clisp.cons.org>
132
133         * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
134         bug.  Deal with the different error behavior of Irix iconv.
135
136 2000-04-07  Jim Meyering  <meyering@lucent.com>
137
138         * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h,
139         to work around system header problems on AIX 3.2.5.  From Bruno Haible.
140
141 2000-04-05  Jim Meyering  <meyering@lucent.com>
142
143         Portability tweaks required for ultrix4.3.
144         * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
145         * readutmp.c: Include sys/types.h before sys/stat.h.
146         * canon-host.c: Declare strdup.
147         * path-concat.c: Likewise.
148         From John David Anglin.
149
150 2000-04-04  Jim Meyering  <meyering@lucent.com>
151
152         Be more DOS 8.3-friendly.
153         * ref-add.sin: Renamed from ref-add.sed.in.
154         * ref-del.sin: Renamed from ref-del.sed.in.
155         * Makefile.am: Reflect renaming.
156         Reported by Eli Zaretskii.
157
158         Use a temporary file name that won't clash with `charset.alias'
159         in the DOS 8.3 name space.
160         * Makefile.am (charset_tmp): Define.
161         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
162         (uninstall-local): Likewise.
163         Reported by Eli Zaretskii.
164
165 2000-03-29  Paul Eggert  <eggert@twinsun.com>
166
167         * time/strftime.c (my_strftime): Make sure we call the system
168         strftime, not ourselves, when invoking the underlying strftime.
169
170 2000-03-24  Jim Meyering  <meyering@lucent.com>
171
172         * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
173         (charset_alias): Define.
174         (install-exec-local): Factor out common code.
175         (uninstall-local): Split lines longer than 80.
176         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
177         (SUFFIXES): Define.
178         (.sed.in.sed): New rule.  Don't redirect directly to $@.
179         (CLEANFILES): Add ref-add.sed and ref-del.sed.
180
181 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
182
183         * config.charset: Output a line containing "Packages using this file".
184         * ref-add.sed.in, ref-del.sed.in: New files.
185         * Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
186         ref-del.sed): New rules.
187
188 2000-03-17  Jim Meyering  <meyering@lucent.com>
189
190         * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
191         Otherwise, include <strings.h>
192
193 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
194
195         * unicodeio.c (utf8_wctomb): New function.
196         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
197         format instead of in UCS-4 with platform dependent endianness.
198
199 2000-03-07  Paul Eggert  <eggert@twinsun.com>
200
201         * lib/savedir.c (savedir): Work even if directory size is
202         negative; this can happen with some screwy NFS configurations.
203
204 2000-03-06  Jim Meyering  <meyering@lucent.com>
205
206         * localcharset.c (get_charset_aliases): Don't try to free file_name
207         if it's NULL (because we ran out of memory).  From Bruno Haible.
208
209 2000-03-05  Jim Meyering  <meyering@lucent.com>
210
211         * localcharset.c ("path-concat.h"): Include.
212         (get_charset_aliases): Use path_concat instead of ANSI string
213         concatenation.
214
215         * unicodeio.h (PARAMS): Define.
216         Use it to guard prototype.
217
218 2000-03-04  Jim Meyering  <meyering@lucent.com>
219
220         * Makefile.am (install-exec-local): Create $(libdir) before installing
221         into it.
222         (uninstall-local): Uncomment this rule so `make distcheck' works
223         once again.
224
225         * unicodeio.c (<errno.h>): Include it.
226         (errno): Declare if not defined.
227
228         * localcharset.c: Add Bruno's comment justifying use of volatile.
229
230         * config.charset: New version, incorporating remarks from a linux
231         i18n mailing list.  From Bruno Haible.
232
233 2000-03-02  Jim Meyering  <meyering@lucent.com>
234
235         * Makefile.am (EXTRA_DIST): Add config.charset.
236
237 2000-03-01  Jim Meyering  <meyering@lucent.com>
238
239         * localcharset.c: Guard some #includes with `#if HAVE_...'.
240         * unicodeio.c: Likewise.
241
242 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
243
244         * config.charset: New file.
245         * localcharset.c: New file.
246         * unicodeio.h, unicodeio.c: New files.
247         * Makefile.am (DEFS): Add -DLIBDIR=...
248         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
249         (noinst_HEADERS): Add unicodeio.h.
250         (all-local, install-exec-local, charset.alias): New targets.
251
252 2000-02-28  Paul Eggert  <eggert@twinsun.com>
253
254         * lib/quotearg.c (ALERT_CHAR): New macro.
255         (quotearg_buffer_restyled): Use it.
256
257 2000-02-27  Jim Meyering  <meyering@lucent.com>
258
259         * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
260         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
261
262         * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
263         not `#if STDC_HEADERS'.
264         Declare malloc if needed.
265
266         * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
267         now that autoconf always defines the HAVE_DECL_ symbols.
268         * human.c: Likewise.
269         * same.c: Likewise.
270         * strtoumax.c: Likewise.
271
272         * backupfile.c: Arrange for cpp to fail if the configure-time
273         declaration check was not run.
274         * hash.c: Likewise.
275         * human.c: Likewise.
276         * same.c: Likewise.
277         * strtoumax.c: Likewise.
278
279         * userspec.c (parse_user_spec): If there is no `:' but there is a `.',
280         then first look up the entire `.'-containing string as a login name.
281
282 2000-02-18  Paul Eggert  <eggert@twinsun.com>
283
284         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
285         (textint): New typedef.
286         (parser_control): Member year changed from int to textint.
287         All uses changed.
288         (YYSTYPE): Removed; replaced by %union with int and textint members.
289         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
290         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
291         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
292         (tSNUMBER, tUNUMBER): Now of type <textintval>.
293         (date, number, to_year): Use width of number in digits, not its value,
294         to determine whether it's a 2-digit year, or a 2-digit time.
295         (yylex): Store number of digits of numeric tokens.
296         Reported by John Kendall.
297
298         (parser_control): Changed from struct parser_control to typedef (for
299         consistency).  All uses changed.
300
301         (tID): Removed; not used.
302         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
303
304 2000-02-14  Paul Eggert  <eggert@twinsun.com>
305
306         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
307         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
308
309 2000-02-12  Jim Meyering  <meyering@lucent.com>
310
311         * userspec.c (ISDIGIT): Define it.
312         (isdigit): Remove definition.
313         (is_number): Use ISDIGIT, not isdigit.
314         <libintl.h>: Include.
315         (_ and N_): Define.
316         (parse_user_spec): Mark translatable strings.
317
318 2000-02-10  Jim Meyering  <meyering@lucent.com>
319
320         With these changes, nanosleep.[ch] are finally enough like the other
321         lib/* replacement files to compile on a few more losing systems.
322
323         * nanosleep.h: Don't include config.h.
324         Remove prototype from declaration of nanosleep.
325         (PARAMS): Remove now-unneeded definition.
326         * nanosleep.c: #undef nanosleep.
327         (rpl_nanosleep): Rename from nanosleep.
328
329 2000-02-03  Jim Meyering  <meyering@lucent.com>
330
331         * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
332         rather than with `#if HAVE_UTMPNAME'.
333
334 2000-02-01  Jim Meyering  <meyering@lucent.com>
335
336         * readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
337
338 2000-01-31  Jim Meyering  <meyering@lucent.com>
339
340         * nanosleep.h (nanosleep): Guard declaration with
341         `#if ! HAVE_DECL_NANOSLEEP'.
342         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
343         the declaration in that vendor's sys/timers.h.
344         Reported by Christian Krackowizer.
345
346         * quotearg.c (ISASCII): Add #undef and move definition to follow
347         inclusion of wctype.h to work around solaris2.6 namespace pollution.
348         (ISPRINT): Likewise.
349         Reported by Tom Tromey.
350
351 2000-01-30  Jim Meyering  <meyering@lucent.com>
352
353         * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding
354         uses of ->ut_name.  The latter doesn't work with new Linux header files
355         where only utmpx.ut_user is declared.
356
357         * readutmp.h (UT_USER): Define.
358
359 2000-01-23  Jim Meyering  <meyering@lucent.com>
360
361         * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
362         obstack.c.
363
364 2000-01-22  Jim Meyering  <meyering@lucent.com>
365
366         * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
367         [! HAVE_DECL_STRTOULL]: Declare strtoull.
368         Required for some AIX systems.  Reported by Christian Krackowizer.
369         [TESTING] (main): New function.
370
371         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
372         * dirname.c (dir_name): Support for DOS-style file names with drive
373         letters.
374
375         * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
376
377         * strverscmp.c (ISDIGIT): Define.
378         (strverscmp): Use ISDIGIT, not isdigit.
379
380 2000-01-17  Paul Eggert  <eggert@twinsun.com>
381
382         * nanosleep.c (nanosleep):
383         Don't use SA_INTERRUPT to decide whether to call sigaction, as
384         POSIX.1 doesn't require SA_INTERRUPT and some systems
385         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
386         it's been part of POSIX.1 since day 1 (in 1988).
387
388 2000-01-17  Jim Meyering  <meyering@lucent.com>
389
390         * interlock: Remove unused file.  Reported by François Pinard.
391
392 2000-01-16  Paul Eggert  <eggert@twinsun.com>
393
394         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
395         alert, backslash, formfeed, and vertical tab unnecessarily in
396         shell quoting style.
397
398 Local Variables:
399 version-control: never
400 End: