diff options
author | Jim Meyering <jim@meyering.net> | 2003-07-23 06:24:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-07-23 06:24:12 +0000 |
commit | 9817a27dc075a8224cce734a8b914660993cef5f (patch) | |
tree | 46bf633eb09758a0ca42d72a3d01145835e8fba5 /lib | |
parent | 8c67c629b777a92c4f8e02d9b6692ef5684b1261 (diff) | |
download | coreutils-9817a27dc075a8224cce734a8b914660993cef5f.tar.xz |
Normalize naming of Sun operating systems, e.g., SunOS4 -> SunOS 4,
Solaris5.9 -> Solaris 9. From Paul Eggert.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lstat.c | 6 | ||||
-rw-r--r-- | lib/save-cwd.c | 2 | ||||
-rw-r--r-- | lib/stat.c | 10 | ||||
-rw-r--r-- | lib/utime.c | 4 | ||||
-rw-r--r-- | lib/xgethostname.c | 2 |
5 files changed, 14 insertions, 10 deletions
diff --git a/lib/lstat.c b/lib/lstat.c index 1507ad8c9..d0ad496f3 100644 --- a/lib/lstat.c +++ b/lib/lstat.c @@ -1,7 +1,9 @@ /* Work around the bug in some systems whereby lstat succeeds when - given the zero-length file name argument. The lstat from SunOS4.1.4 + given the zero-length file name argument. The lstat from SunOS 4.1.4 has this bug. - Copyright (C) 1997-2002 Free Software Foundation, Inc. + + Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free + Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/lib/save-cwd.c b/lib/save-cwd.c index 068ff0ac0..b7b85a1b5 100644 --- a/lib/save-cwd.c +++ b/lib/save-cwd.c @@ -62,7 +62,7 @@ extern int errno; support for fchdir, and getcwd is not robust or as efficient. So, we prefer to use the open/fchdir approach, but fall back on getcwd if necessary. Some systems lack fchdir altogether: OS/2, - Cygwin (as of March 2003), SCO Xenix. At least SunOS4 and Irix 5.3 + Cygwin (as of March 2003), SCO Xenix. At least SunOS 4 and Irix 5.3 provide the function, yet it doesn't work for partitions on which auditing is enabled. */ diff --git a/lib/stat.c b/lib/stat.c index ff9e9bbe5..284da0cbc 100644 --- a/lib/stat.c +++ b/lib/stat.c @@ -1,8 +1,10 @@ /* Work around the bug in some systems whereby stat/lstat succeeds when - given the zero-length file name argument. The stat/lstat from SunOS4.1.4 + given the zero-length file name argument. The stat/lstat from SunOS 4.1.4 has this bug. Also work around a deficiency in Solaris systems (up to at - least Solaris5.9) regarding the semantics of `lstat ("symlink/", sbuf).' - Copyright (C) 1997-2003 Free Software Foundation, Inc. + least Solaris 9) regarding the semantics of `lstat ("symlink/", sbuf).' + + Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free + Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -102,7 +104,7 @@ slash_aware_lstat (const char *file, struct stat *sbuf) Otherwise, return the result of calling the real stat/lstat. This works around the bug in some systems whereby stat/lstat succeeds when - given the zero-length file name argument. The stat/lstat from SunOS4.1.4 + given the zero-length file name argument. The stat/lstat from SunOS 4.1.4 has this bug. */ /* This function also provides a version of lstat with consistent semantics diff --git a/lib/utime.c b/lib/utime.c index f5507cbcd..f7107abdd 100644 --- a/lib/utime.c +++ b/lib/utime.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 2001-2002 Free Software Foundation, Inc. +/* Copyright (C) 1998, 2001, 2002, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -61,7 +61,7 @@ utime_null (const char *file) || safe_read (fd, &c, sizeof c) == SAFE_READ_ERROR || lseek (fd, (off_t) 0, SEEK_SET) < 0 || full_write (fd, &c, sizeof c) != sizeof c - /* Maybe do this -- it's necessary on SunOS4.1.3 with some combination + /* Maybe do this -- it's necessary on SunOS 4.1.3 with some combination of patches, but that system doesn't use this code: it has utimes. || fsync (fd) < 0 */ diff --git a/lib/xgethostname.c b/lib/xgethostname.c index 861c52f05..ec00373fb 100644 --- a/lib/xgethostname.c +++ b/lib/xgethostname.c @@ -57,7 +57,7 @@ xgethostname () size = INITIAL_HOSTNAME_LENGTH; /* Use size + 1 here rather than size to work around the bug - in SunOS5.5's gethostname whereby it NUL-terminates HOSTNAME + in SunOS 5.5's gethostname whereby it NUL-terminates HOSTNAME even when the name is longer than the supplied buffer. */ hostname = xmalloc (size + 1); while (1) |