From 2dd6ee79b19ccfdd7f68cd534b8b71f77479132b Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 24 Apr 2015 13:18:48 +0200 Subject: posix_fallocate, posix_fallocate64 stub: Do not set errno These functions return an error code. --- io/posix_fallocate64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'io/posix_fallocate64.c') diff --git a/io/posix_fallocate64.c b/io/posix_fallocate64.c index a5ffb7f..05922d1 100644 --- a/io/posix_fallocate64.c +++ b/io/posix_fallocate64.c @@ -23,7 +23,6 @@ int posix_fallocate64 (int fd, __off64_t offset, __off64_t len) { - __set_errno (ENOSYS); - return -1; + return ENOSYS; } stub_warning (posix_fallocate64) -- cgit v1.1