From patchwork Thu Aug 31 16:56:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 808309 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-83954-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.b="Jq67/Nan"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xjpSB2xsbz9s81 for ; Fri, 1 Sep 2017 02:56:42 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; q=dns; s=default; b= E83qetFau2ssEyoLYdKqYbvZgrF/mpTGRfo+Y8U2WTIcGsIhywxq5+Pvt5MkKX91 zESWlopHGUvRI4FCftmQjrpBuwLX1G9TRdUeHiWcOEWMnfSKUgSyh1FtrNnDs2a+ B/M0nSBNxR1blwH9Phj/ShuYyMXEU9krDrhUJzdD3FY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; s=default; bh=8WyU1B iXgMKBuQHSGoV9A9hVMYg=; b=Jq67/Nan0l6LIe5spUzpFnxpqJ8pY2eA4RsWtU cBhNCu2Ve1S/19ShyROEshH42opnfNXqEmkvrnvOsSMg0RwbA0h9d1I5Tp1q1OEF cwlpTaLHlrk5eb2ftXnGKiVHExy7VDkUkcIu3V02IX/z1b3C61PPURvbff8pg1Nj URBDA= Received: (qmail 34761 invoked by alias); 31 Aug 2017 16:56:36 -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 34711 invoked by uid 89); 31 Aug 2017 16:56:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=poll, 999999, 2866 X-HELO: mx1.redhat.com DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C597F883AC Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer@redhat.com Date: Thu, 31 Aug 2017 18:56:23 +0200 To: libc-alpha@sourceware.org Subject: [PATCH COMMITTED] inet: Remove internal_function attribute User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20170831165623.8B0DC43994318@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) 2017-08-31 Florian Weimer * inet/deadline.c (__deadline_current_time) (__deadline_from_timeval, __deadline_to_ms): Remove internal_function. * inet/getnameinfo.c (nrl_domainname): Likewise. * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise. * inet/inet6_option.c (add_pad): Likewise. * inet/net-internal.h (__deadline_current_time) (__deadline_from_timeval, __deadline_to_ms): Likewise. * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise. * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise. * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise. diff --git a/inet/deadline.c b/inet/deadline.c index c1fa415a39..5893f2206a 100644 --- a/inet/deadline.c +++ b/inet/deadline.c @@ -24,7 +24,7 @@ #include #include -struct deadline_current_time internal_function +struct deadline_current_time __deadline_current_time (void) { struct deadline_current_time result; @@ -48,7 +48,7 @@ infinite_deadline (void) return (struct deadline) { { -1, -1 } }; } -struct deadline internal_function +struct deadline __deadline_from_timeval (struct deadline_current_time current, struct timeval tv) { @@ -79,7 +79,7 @@ __deadline_from_timeval (struct deadline_current_time current, return (struct deadline) { { sec, nsec } }; } -int internal_function +int __deadline_to_ms (struct deadline_current_time current, struct deadline deadline) { diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c index 5d2b9b7559..b41e555f3c 100644 --- a/inet/getnameinfo.c +++ b/inet/getnameinfo.c @@ -86,7 +86,6 @@ libc_freeres_ptr (static char *domain); static char * -internal_function nrl_domainname (void) { static int not_first; diff --git a/inet/getnetgrent_r.c b/inet/getnetgrent_r.c index 89fefeb612..de5c50483c 100644 --- a/inet/getnetgrent_r.c +++ b/inet/getnetgrent_r.c @@ -110,7 +110,6 @@ endnetgrent_hook (struct __netgrent *datap) } static int -internal_function __internal_setnetgrent_reuse (const char *group, struct __netgrent *datap, int *errnop) { diff --git a/inet/inet6_option.c b/inet/inet6_option.c index f6d9b5dffe..b37db47dbb 100644 --- a/inet/inet6_option.c +++ b/inet/inet6_option.c @@ -24,7 +24,6 @@ static void -internal_function add_pad (struct cmsghdr *cmsg, int len) { unsigned char *p = CMSG_DATA (cmsg) + cmsg->cmsg_len - CMSG_LEN (0); diff --git a/inet/net-internal.h b/inet/net-internal.h index b2135893e8..74ee8bccd9 100644 --- a/inet/net-internal.h +++ b/inet/net-internal.h @@ -53,8 +53,7 @@ struct deadline_current_time /* Return the current time. Terminates the process if the current time is not available. */ -struct deadline_current_time __deadline_current_time (void) - internal_function attribute_hidden; +struct deadline_current_time __deadline_current_time (void) attribute_hidden; /* Computed absolute deadline. */ struct deadline @@ -97,15 +96,14 @@ __deadline_first (struct deadline left, struct deadline right) /* Add TV to the current time and return it. Returns a special infinite absolute deadline on overflow. */ struct deadline __deadline_from_timeval (struct deadline_current_time, - struct timeval tv) - internal_function attribute_hidden; + struct timeval tv) attribute_hidden; /* Compute the number of milliseconds until the specified deadline, from the current time in the argument. The result is mainly for use with poll. If the deadline has already passed, return 0. If the result would overflow an int, return INT_MAX. */ int __deadline_to_ms (struct deadline_current_time, struct deadline) - internal_function attribute_hidden; + attribute_hidden; /* Return true if TV.tv_sec is non-negative and TV.tv_usec is in the interval [0, 999999]. */ diff --git a/inet/rcmd.c b/inet/rcmd.c index 976894c2c5..8a9616f847 100644 --- a/inet/rcmd.c +++ b/inet/rcmd.c @@ -646,7 +646,6 @@ __ivaliduser (FILE *hostf, uint32_t raddr, const char *luser, /* Returns 1 on positive match, 0 on no match, -1 on negative match. */ static int -internal_function __checkhost_sa (struct sockaddr *ra, size_t ralen, char *lhost, const char *rhost) { @@ -700,7 +699,6 @@ __checkhost_sa (struct sockaddr *ra, size_t ralen, char *lhost, /* Returns 1 on positive match, 0 on no match, -1 on negative match. */ static int -internal_function __icheckuser (const char *luser, const char *ruser) { /* diff --git a/sysdeps/mach/hurd/if_index.c b/sysdeps/mach/hurd/if_index.c index 2b9041a3ba..5cd8244698 100644 --- a/sysdeps/mach/hurd/if_index.c +++ b/sysdeps/mach/hurd/if_index.c @@ -187,7 +187,6 @@ libc_hidden_weak (if_indextoname) #if 0 void -internal_function __protocol_available (int *have_inet, int *have_inet6) { *have_inet = _hurd_socket_server (PF_INET, 0) != MACH_PORT_NULL; diff --git a/sysdeps/unix/sysv/linux/ifaddrs.c b/sysdeps/unix/sysv/linux/ifaddrs.c index 3bc9902863..f25f67a129 100644 --- a/sysdeps/unix/sysv/linux/ifaddrs.c +++ b/sysdeps/unix/sysv/linux/ifaddrs.c @@ -286,7 +286,6 @@ __netlink_open (struct netlink_handle *h) Since we get at first all RTM_NEWLINK entries, it can never happen that a RTM_NEWADDR index is not known to this map. */ static int -internal_function map_newlink (int index, struct ifaddrs_storage *ifas, int *map, int max) { int i;