mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-03 01:17:45 +03:00
errno: add new ERRNO_IS_NOT_SUPPORTED() helper
This commit is contained in:
parent
25f9288e31
commit
e6376b6a41
@ -86,3 +86,11 @@ static inline bool ERRNO_IS_RESOURCE(int r) {
|
||||
ENFILE,
|
||||
ENOMEM);
|
||||
}
|
||||
|
||||
/* Three different errors for "operation/system call/ioctl not supported" */
|
||||
static inline bool ERRNO_IS_NOT_SUPPORTED(int r) {
|
||||
return IN_SET(abs(r),
|
||||
EOPNOTSUPP,
|
||||
ENOTTY,
|
||||
ENOSYS);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user