From: Tobias Klauser <[email protected]>
To: [email protected]
Subject: [PATCH] test/statx: test for ENOSYS in statx_syscall_supported
Date: Fri, 10 Jul 2020 16:27:03 +0200 [thread overview]
Message-ID: <[email protected]> (raw)
errno will be ENOSYS, not EOPNOTSUPP if the syscall is not there. This
also matches what errno is set to in do_statx if __NR_statx is not
defined.
Signed-off-by: Tobias Klauser <[email protected]>
---
test/statx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/statx.c b/test/statx.c
index 66f333f93cf9..c846a4ad5b9f 100644
--- a/test/statx.c
+++ b/test/statx.c
@@ -51,7 +51,7 @@ static int create_file(const char *file, size_t size)
static int statx_syscall_supported(void)
{
- return errno == EOPNOTSUPP ? 0 : -1;
+ return errno == ENOSYS ? 0 : -1;
}
static int test_statx(struct io_uring *ring, const char *path)
--
2.27.0
reply other threads:[~2020-07-10 14:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox