diff options
author | Jim Meyering <jim@meyering.net> | 2005-12-04 22:00:14 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-12-04 22:00:14 +0000 |
commit | 6a33c69c491df4dad344d81d2c0bdb941dd56f10 (patch) | |
tree | 5b9670fefac7732dd3d604cf87cb391e9701a9b4 /lib/openat-priv.h | |
parent | 9333b3a35999531fb0b58f246bafd791fd95e13a (diff) | |
download | coreutils-6a33c69c491df4dad344d81d2c0bdb941dd56f10.tar.xz |
(EXPECTED_ERRNO): Add ENOSYS, for Solaris 8.
Paul Eggert reported that unlink/rmdir vs. e.g., /proc/self/fd/N/FILE
fails with ENOSYS. This makes openat revert to using save-cwd.c
functions in that case.
Diffstat (limited to 'lib/openat-priv.h')
-rw-r--r-- | lib/openat-priv.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/openat-priv.h b/lib/openat-priv.h index ca4c8a2a1..2b4780eec 100644 --- a/lib/openat-priv.h +++ b/lib/openat-priv.h @@ -45,7 +45,8 @@ /proc support, and even on systems *with* ProcFS support. Return nonzero if the failure may be legitimate, e.g., because /proc is not readable, or the particular .../fd/N directory is not present. */ -#define EXPECTED_ERRNO(Errno) \ - ((Errno) == ENOTDIR || (Errno) == ENOENT \ - || (Errno) == EPERM || (Errno) == EACCES \ +#define EXPECTED_ERRNO(Errno) \ + ((Errno) == ENOTDIR || (Errno) == ENOENT \ + || (Errno) == EPERM || (Errno) == EACCES \ + || (Errno) == ENOSYS /* Solaris 8 */ \ || (Errno) == EOPNOTSUPP /* FreeBSD */) |