From patchwork Thu Jun 3 23:15:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1487505 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=CafkGS0s; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fx26M13byz9sRN for ; Fri, 4 Jun 2021 09:24:27 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3A0E13990437 for ; Thu, 3 Jun 2021 23:24:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A0E13990437 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1622762665; bh=47dq6TYIbJf5WurSdr9inwq+DVO4AAch+ODglbLS4M4=; h=To:Subject:In-Reply-To:References:Date:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=CafkGS0ssLLdQZWxea5GWNumM2oHYSGX1FQYI3dV3b3G0sAJyPloJwQw4gTR4JFGr sfcXlKZB0tYyCpzg/zjRLeTEqUeDpZo8ZPFvfrrzJT0cp1rR7xwWav75NxrCn1vgmp Zibx/g2qgxRnU4dmaQnVVrlfsz1+sgSue9kF7mus= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 21819399003F for ; Thu, 3 Jun 2021 23:15:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 21819399003F Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-502-OmAvePXWN5qoWV83OF-PTg-1; Thu, 03 Jun 2021 19:15:41 -0400 X-MC-Unique: OmAvePXWN5qoWV83OF-PTg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C4381803622 for ; Thu, 3 Jun 2021 23:15:40 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-113-228.ams2.redhat.com [10.36.113.228]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2811F5C5B5 for ; Thu, 3 Jun 2021 23:15:39 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH 10/35] Add hidden prototypes for fsync, fdatasync In-Reply-To: References: X-From-Line: ce858360c435d4c4dc8af1585c585b1331d831ab Mon Sep 17 00:00:00 2001 Message-Id: Date: Fri, 04 Jun 2021 01:15:38 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" --- include/unistd.h | 2 ++ misc/fdatasync.c | 1 + misc/fsync.c | 2 +- sysdeps/mach/hurd/fdatasync.c | 1 + sysdeps/mach/hurd/fsync.c | 1 + sysdeps/unix/sysv/linux/fdatasync.c | 1 + sysdeps/unix/sysv/linux/fsync.c | 1 + 7 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/unistd.h b/include/unistd.h index 8ed8b1ea4b..34872d8b41 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -25,6 +25,8 @@ libc_hidden_proto (seteuid) libc_hidden_proto (setegid) libc_hidden_proto (tcgetpgrp) libc_hidden_proto (readlinkat) +libc_hidden_proto (fsync) +libc_hidden_proto (fdatasync) /* Now define the internal interfaces. */ extern int __access (const char *__name, int __type); diff --git a/misc/fdatasync.c b/misc/fdatasync.c index 28474812ca..c776978bba 100644 --- a/misc/fdatasync.c +++ b/misc/fdatasync.c @@ -25,3 +25,4 @@ fdatasync (int fildes) { return fsync (fildes); } +libc_hidden_def (fdatasync) diff --git a/misc/fsync.c b/misc/fsync.c index e1c37c6016..1961dd0cb2 100644 --- a/misc/fsync.c +++ b/misc/fsync.c @@ -25,6 +25,6 @@ fsync (int fd) __set_errno (ENOSYS); return -1; } - +libc_hidden_def (fsync) stub_warning (fsync) diff --git a/sysdeps/mach/hurd/fdatasync.c b/sysdeps/mach/hurd/fdatasync.c index 0be8072e7f..68df551016 100644 --- a/sysdeps/mach/hurd/fdatasync.c +++ b/sysdeps/mach/hurd/fdatasync.c @@ -41,3 +41,4 @@ fdatasync (int fd) } return 0; } +libc_hidden_def (fdatasync) diff --git a/sysdeps/mach/hurd/fsync.c b/sysdeps/mach/hurd/fsync.c index ef04ee97f9..c1d560f293 100644 --- a/sysdeps/mach/hurd/fsync.c +++ b/sysdeps/mach/hurd/fsync.c @@ -41,3 +41,4 @@ fsync (int fd) } return 0; } +libc_hidden_def (fsync) diff --git a/sysdeps/unix/sysv/linux/fdatasync.c b/sysdeps/unix/sysv/linux/fdatasync.c index 84c07f212e..12fb3c13e5 100644 --- a/sysdeps/unix/sysv/linux/fdatasync.c +++ b/sysdeps/unix/sysv/linux/fdatasync.c @@ -27,3 +27,4 @@ fdatasync (int fd) { return SYSCALL_CANCEL (fdatasync, fd); } +libc_hidden_def (fdatasync) diff --git a/sysdeps/unix/sysv/linux/fsync.c b/sysdeps/unix/sysv/linux/fsync.c index 234bb0049f..e4b5c8c342 100644 --- a/sysdeps/unix/sysv/linux/fsync.c +++ b/sysdeps/unix/sysv/linux/fsync.c @@ -26,3 +26,4 @@ fsync (int fd) { return SYSCALL_CANCEL (fsync, fd); } +libc_hidden_def (fsync)