From patchwork Mon Jun 7 17:38:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1488846 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=hx0IGAIB; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.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 4FzLHW53PWz9sCD for ; Tue, 8 Jun 2021 03:40:23 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AF58C3893640 for ; Mon, 7 Jun 2021 17:40:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF58C3893640 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1623087621; 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=hx0IGAIBTT4xnXz/sR2+VLxHJ0suq9VM2R3ef2lPYsvNwstLLPfSiqCPgIEagayf2 k3eF92VbySPU7JQgiVU5cNQ36EjdRtcGs3b7wZvmLEZoO1TB6/zdExiymXz99FFszE HlDhpTamAjTPAHV+9nRHjqI6X7C/AeIyACGw5wOc= 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 [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 47978389683E for ; Mon, 7 Jun 2021 17:38:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 47978389683E 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-323-0HWJw-kVPFK51inx4oyl9w-1; Mon, 07 Jun 2021 13:38:09 -0400 X-MC-Unique: 0HWJw-kVPFK51inx4oyl9w-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 E8CB2188E3C1 for ; Mon, 7 Jun 2021 17:38:08 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-115-60.ams2.redhat.com [10.36.115.60]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 57AB85D6D3 for ; Mon, 7 Jun 2021 17:38:08 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH 2/8] inet: Add hidden prototype for __inet_network In-Reply-To: References: X-From-Line: a18e0d764885de7297ea417252e49892c0a54edb Mon Sep 17 00:00:00 2001 Message-Id: Date: Mon, 07 Jun 2021 19:38:06 +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.6 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/arpa/inet.h | 2 ++ inet/inet_net.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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)