mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-26 15:29:07 +00:00
(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.
This commit is contained in:
parent
9333b3a359
commit
6a33c69c49
@ -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 */)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user