From patchwork Wed Aug 16 16:28:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 22152 Received: (qmail 121747 invoked by alias); 16 Aug 2017 16:28:21 -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 121713 invoked by uid 89); 16 Aug 2017 16:28:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1682, family, talk X-HELO: mx1.redhat.com DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 31C5BAC2CB Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer@redhat.com Date: Wed, 16 Aug 2017 18:28:16 +0200 To: libc-alpha@sourceware.org Subject: [PATCH] __opensock: Remove internal_function attribute User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20170816162816.49A8F41DB799C@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) 2017-08-16 Florian Weimer * include/sys/socket.h (__opensock): Remove internal_function. * socket/opensock.c (__opensock): Likewise. * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise. diff --git a/include/sys/socket.h b/include/sys/socket.h index a00ab3cf93..baec6e6439 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -20,7 +20,7 @@ extern int __socketpair (int __domain, int __type, int __protocol, /* Return a socket of any type. The socket can be used in subsequent ioctl calls to talk to the kernel. */ -extern int __opensock (void) internal_function attribute_hidden; +extern int __opensock (void) attribute_hidden; /* Put the address of the peer connected to socket FD into *ADDR (which is *LEN bytes long), and its actual length into *LEN. */ diff --git a/socket/opensock.c b/socket/opensock.c index 848cdd66b1..d8f88d3100 100644 --- a/socket/opensock.c +++ b/socket/opensock.c @@ -21,7 +21,7 @@ /* Return a socket of any type. The socket can be used in subsequent ioctl calls to talk to the kernel. */ -int internal_function +int __opensock (void) { /* Cache the last AF that worked, to avoid many redundant calls to diff --git a/sysdeps/unix/sysv/linux/opensock.c b/sysdeps/unix/sysv/linux/opensock.c index b8fd27f863..21508cdc75 100644 --- a/sysdeps/unix/sysv/linux/opensock.c +++ b/sysdeps/unix/sysv/linux/opensock.c @@ -24,7 +24,7 @@ /* Return a socket of any type. The socket can be used in subsequent ioctl calls to talk to the kernel. */ -int internal_function +int __opensock (void) { static int last_family; /* Available socket family we will use. */