From patchwork Fri Apr 24 11:18:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 6422 Received: (qmail 115018 invoked by alias); 24 Apr 2015 13:45:13 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 114958 invoked by uid 89); 24 Apr 2015 13:45:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com From: Florian Weimer Date: Fri, 24 Apr 2015 13:18:48 +0200 Subject: [PATCH 1/4] posix_fallocate, posix_fallocate64 stub: Do not set errno To: libc-alpha@sourceware.org Message-Id: <20150424134510.5033C41F484D0@oldenburg.str.redhat.com> These functions return an error code. --- ChangeLog | 5 +++++ io/posix_fallocate.c | 3 +-- io/posix_fallocate64.c | 3 +-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2c01eac..7a5e2b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-04-24 Florian Weimer + + * io/posix_fallocate.c (posix_fallocate): Do not set errno. + * io/posix_fallocate64.c (posix_fallocate64): Likewise. + 2015-04-22 Wilco Dijkstra * math/k_casinh.c (__kernel_casinh): Use __copysign. diff --git a/io/posix_fallocate.c b/io/posix_fallocate.c index e16c900..8eefc62 100644 --- a/io/posix_fallocate.c +++ b/io/posix_fallocate.c @@ -23,7 +23,6 @@ int posix_fallocate (int fd, __off_t offset, __off_t len) { - __set_errno (ENOSYS); - return -1; + return ENOSYS; } stub_warning (posix_fallocate) 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)