1 2000-05-22 Jim Meyering <meyering@lucent.com>
3 * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
5 2000-05-18 Jim Meyering <meyering@lucent.com>
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.
12 2000-05-15 Paul Eggert <eggert@twinsun.com>
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.
25 2000-05-15 Jim Meyering <meyering@lucent.com>
27 * version-etc.c (version_etc_copyright): Update the copyright string
28 used in all --version output.
30 2000-05-14 Jim Meyering <meyering@lucent.com>
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.
37 2000-05-10 Jim Meyering <meyering@lucent.com>
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.
43 2000-05-08 Jim Meyering <meyering@lucent.com>
45 * long-options.c: Don't include closeout.h.
46 (parse_long_options): Don't call close_stdout for --version.
48 2000-05-06 Jim Meyering <meyering@lucent.com>
50 * strnlen.c: Undefine __strnlen and strnlen.
51 [!weak_alias]: Define __strnlen to strnlen.
53 * atexit.c: New file, from libiberty.
55 2000-05-06 Jim Meyering <meyering@lucent.com>
57 * closeout.c (close_stdout_status): Also check for errors on the
60 2000-05-05 Bruno Haible <haible@clisp.cons.org>
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.
67 2000-05-04 Jim Meyering <meyering@lucent.com>
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
75 * strndup.c: Likewise.
76 * strnlen.c: New file, from glibc.
78 2000-05-01 Jim Meyering <meyering@lucent.com>
80 * full-write.c (full_write): Remove `FIXME' part of comment.
82 2000-04-29 Jim Meyering <meyering@lucent.com>
84 * path-concat.c: Declare strdup only if it's not defined.
85 * canon-host.c: Likewise.
87 2000-04-28 Jim Meyering <meyering@lucent.com>
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.
94 2000-04-25 Jim Meyering <meyering@lucent.com>
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.
101 2000-04-18 Jim Meyering <meyering@lucent.com>
105 * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
106 getpagesize. For BeOS. Based on a patch from Bruno Haible.
108 2000-04-17 Jim Meyering <meyering@lucent.com>
110 * strftime.c (my_strftime) [strftime]: Declare strftime here, since
111 the definition of it to rpl_strftime also defined-away the system's
114 2000-04-15 Jim Meyering <meyering@lucent.com>
116 Use `C' to denote so-called `contiguous' files, the same way
118 * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
119 (ftypelet): Use S_ISCTG.
120 From Michael Deutschmann.
122 2000-04-14 Jim Meyering <meyering@lucent.com>
124 * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
126 2000-04-08 Jim Meyering <meyering@lucent.com>
128 * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
129 names don't conflict. Reported by Eli Zaretskii.
131 2000-03-28 Bruno Haible <haible@clisp.cons.org>
133 * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
134 bug. Deal with the different error behavior of Irix iconv.
136 2000-04-07 Jim Meyering <meyering@lucent.com>
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.
141 2000-04-05 Jim Meyering <meyering@lucent.com>
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.
150 2000-04-04 Jim Meyering <meyering@lucent.com>
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.
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.
165 2000-03-29 Paul Eggert <eggert@twinsun.com>
167 * time/strftime.c (my_strftime): Make sure we call the system
168 strftime, not ourselves, when invoking the underlying strftime.
170 2000-03-24 Jim Meyering <meyering@lucent.com>
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)
178 (.sed.in.sed): New rule. Don't redirect directly to $@.
179 (CLEANFILES): Add ref-add.sed and ref-del.sed.
181 2000-03-19 Bruno Haible <haible@clisp.cons.org>
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.
188 2000-03-17 Jim Meyering <meyering@lucent.com>
190 * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
191 Otherwise, include <strings.h>
193 2000-03-17 Bruno Haible <haible@clisp.cons.org>
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.
199 2000-03-07 Paul Eggert <eggert@twinsun.com>
201 * lib/savedir.c (savedir): Work even if directory size is
202 negative; this can happen with some screwy NFS configurations.
204 2000-03-06 Jim Meyering <meyering@lucent.com>
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.
209 2000-03-05 Jim Meyering <meyering@lucent.com>
211 * localcharset.c ("path-concat.h"): Include.
212 (get_charset_aliases): Use path_concat instead of ANSI string
215 * unicodeio.h (PARAMS): Define.
216 Use it to guard prototype.
218 2000-03-04 Jim Meyering <meyering@lucent.com>
220 * Makefile.am (install-exec-local): Create $(libdir) before installing
222 (uninstall-local): Uncomment this rule so `make distcheck' works
225 * unicodeio.c (<errno.h>): Include it.
226 (errno): Declare if not defined.
228 * localcharset.c: Add Bruno's comment justifying use of volatile.
230 * config.charset: New version, incorporating remarks from a linux
231 i18n mailing list. From Bruno Haible.
233 2000-03-02 Jim Meyering <meyering@lucent.com>
235 * Makefile.am (EXTRA_DIST): Add config.charset.
237 2000-03-01 Jim Meyering <meyering@lucent.com>
239 * localcharset.c: Guard some #includes with `#if HAVE_...'.
240 * unicodeio.c: Likewise.
242 2000-02-02 Bruno Haible <haible@clisp.cons.org>
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.
252 2000-02-28 Paul Eggert <eggert@twinsun.com>
254 * lib/quotearg.c (ALERT_CHAR): New macro.
255 (quotearg_buffer_restyled): Use it.
257 2000-02-27 Jim Meyering <meyering@lucent.com>
259 * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
260 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
262 * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
263 not `#if STDC_HEADERS'.
264 Declare malloc if needed.
266 * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
267 now that autoconf always defines the HAVE_DECL_ symbols.
270 * strtoumax.c: Likewise.
272 * backupfile.c: Arrange for cpp to fail if the configure-time
273 declaration check was not run.
277 * strtoumax.c: Likewise.
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.
282 2000-02-18 Paul Eggert <eggert@twinsun.com>
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.
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.
298 (parser_control): Changed from struct parser_control to typedef (for
299 consistency). All uses changed.
301 (tID): Removed; not used.
302 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
304 2000-02-14 Paul Eggert <eggert@twinsun.com>
306 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
307 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
309 2000-02-12 Jim Meyering <meyering@lucent.com>
311 * userspec.c (ISDIGIT): Define it.
312 (isdigit): Remove definition.
313 (is_number): Use ISDIGIT, not isdigit.
314 <libintl.h>: Include.
316 (parse_user_spec): Mark translatable strings.
318 2000-02-10 Jim Meyering <meyering@lucent.com>
320 With these changes, nanosleep.[ch] are finally enough like the other
321 lib/* replacement files to compile on a few more losing systems.
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.
329 2000-02-03 Jim Meyering <meyering@lucent.com>
331 * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
332 rather than with `#if HAVE_UTMPNAME'.
334 2000-02-01 Jim Meyering <meyering@lucent.com>
336 * readutmp.h (UT_USER): Add parens. From Andreas Schwab.
338 2000-01-31 Jim Meyering <meyering@lucent.com>
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.
346 * quotearg.c (ISASCII): Add #undef and move definition to follow
347 inclusion of wctype.h to work around solaris2.6 namespace pollution.
349 Reported by Tom Tromey.
351 2000-01-30 Jim Meyering <meyering@lucent.com>
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.
357 * readutmp.h (UT_USER): Define.
359 2000-01-23 Jim Meyering <meyering@lucent.com>
361 * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
364 2000-01-22 Jim Meyering <meyering@lucent.com>
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.
371 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
372 * dirname.c (dir_name): Support for DOS-style file names with drive
375 * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
377 * strverscmp.c (ISDIGIT): Define.
378 (strverscmp): Use ISDIGIT, not isdigit.
380 2000-01-17 Paul Eggert <eggert@twinsun.com>
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).
388 2000-01-17 Jim Meyering <meyering@lucent.com>
390 * interlock: Remove unused file. Reported by François Pinard.
392 2000-01-16 Paul Eggert <eggert@twinsun.com>
394 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
395 alert, backslash, formfeed, and vertical tab unnecessarily in
399 version-control: never