From patchwork Tue Jun 29 10:11:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 44041 X-Patchwork-Delegate: azanella@linux.vnet.ibm.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3C87A397307D for ; Tue, 29 Jun 2021 10:12:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C87A397307D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1624961538; bh=jUm/LYjj0ocT3GdHKUH4cPi1H0Oj/hOcji0ToSffhMM=; 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=KHjVlbwENPgxCzUGE0OSsoU7bFYdX9ezG8lzX3pzgEr/yqSYaT3JK3pjBbIaPirF6 fsGOoBFzBu7tQaiqLb1g7Ny4qj+cQZmC6qeIP9biSTkQX7YrHLg2GOXyBhWH8byl1R rY3M7L6uDUlkVlICK6evhE0weE0158CB5NDyvw0k= 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 1D3A9397304C for ; Tue, 29 Jun 2021 10:11:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1D3A9397304C 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-ZAypXXXqNN6DYcR2DmoxSw-1; Tue, 29 Jun 2021 06:11:16 -0400 X-MC-Unique: ZAypXXXqNN6DYcR2DmoxSw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C815318414A1 for ; Tue, 29 Jun 2021 10:11:15 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-112-228.ams2.redhat.com [10.36.112.228]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 33AED5D6AD for ; Tue, 29 Jun 2021 10:11:14 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH 1/7] inet: Add hidden prototype for __inet_network In-Reply-To: References: X-From-Line: 89e4e017f65a57daf546e41506aa87e3057f6436 Mon Sep 17 00:00:00 2001 Message-Id: <89e4e017f65a57daf546e41506aa87e3057f6436.1624961355.git.fweimer@redhat.com> Date: Tue, 29 Jun 2021 12:11:13 +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.15 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+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" --- include/arpa/inet.h | 2 ++ inet/inet_net.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) Reviewed-by: Adhemerval Zanella diff --git a/include/arpa/inet.h b/include/arpa/inet.h index 19aec74275..df9472ba3b 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -12,4 +12,6 @@ libc_hidden_proto (__inet_pton) extern __typeof (inet_makeaddr) __inet_makeaddr; libc_hidden_proto (__inet_makeaddr) libc_hidden_proto (inet_netof) +extern __typeof (inet_network) __inet_network; +libc_hidden_proto (__inet_network) #endif diff --git a/inet/inet_net.c b/inet/inet_net.c index a0855e8bd2..b98634c33b 100644 --- a/inet/inet_net.c +++ b/inet/inet_net.c @@ -55,7 +55,7 @@ * network numbers. */ uint32_t -inet_network (const char *cp) +__inet_network (const char *cp) { uint32_t val, base, n, i; char c; @@ -107,3 +107,5 @@ again: } return (val); } +libc_hidden_def (__inet_network) +weak_alias (__inet_network, inet_network)