From patchwork Sun Apr 11 22:23:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 42944 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 C2C643835810; Sun, 11 Apr 2021 22:24:05 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from hera.aquilenet.fr (hera.aquilenet.fr [IPv6:2a0c:e300::1]) by sourceware.org (Postfix) with ESMTPS id 459FB3835810 for ; Sun, 11 Apr 2021 22:24:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 459FB3835810 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=samuel.thibault@ens-lyon.org Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id AE0A02EA; Mon, 12 Apr 2021 00:23:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e9clTG0oq3wx; Mon, 12 Apr 2021 00:23:58 +0200 (CEST) Received: from begin (unknown [IPv6:2a01:cb19:956:1b00:de41:a9ff:fe47:ec49]) by hera.aquilenet.fr (Postfix) with ESMTPSA id DF83D1C2; Mon, 12 Apr 2021 00:23:57 +0200 (CEST) Received: from samy by begin with local (Exim 4.94) (envelope-from ) id 1lViUm-00Daq0-Vq; Mon, 12 Apr 2021 00:23:56 +0200 From: Samuel Thibault To: libc-alpha@sourceware.org Subject: [hurd,commited] hurd: Export _hurd_libc_proc_init Date: Mon, 12 Apr 2021 00:23:56 +0200 Message-Id: <20210411222356.3239825-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spamd-Bar: +++++ X-Rspamd-Server: hera Authentication-Results: hera.aquilenet.fr X-Rspamd-Queue-Id: AE0A02EA X-Spamd-Result: default: False [5.00 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_MISSING_CHARSET(2.50)[]; BROKEN_CONTENT_TYPE(1.50)[]; RCVD_COUNT_THREE(0.00)[3]; MID_CONTAINS_FROM(1.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[] X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_NEUTRAL, 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: , Cc: commit-hurd@gnu.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" hurd's libdiskfs needs to be able to call _hurd_init + _hurd_libc_proc_init for bootstrap initialization. --- hurd/Versions | 5 +++++ hurd/hurd.h | 3 +++ sysdeps/mach/hurd/i386/libc.abilist | 1 + 3 files changed, 9 insertions(+) diff --git a/hurd/Versions b/hurd/Versions index b66d37be07..7e4f1c5630 100644 --- a/hurd/Versions +++ b/hurd/Versions @@ -138,6 +138,11 @@ libc { _hurd_port_move; } + GLIBC_2.34 { + # "quasi-internal" functions + _hurd_libc_proc_init; + } + HURD_CTHREADS_0.3 { # weak refs to libthreads functions that libc calls iff libthreads in use __cthread_fork; __pthread_create; __cthread_detach; __pthread_detach; diff --git a/hurd/hurd.h b/hurd/hurd.h index 986080c819..51c3f9c1a1 100644 --- a/hurd/hurd.h +++ b/hurd/hurd.h @@ -275,6 +275,9 @@ extern void _hurd_init (int flags, char **argv, mach_port_t *portarray, size_t portarraysize, int *intarray, size_t intarraysize); +/* Register the process to the proc server. */ +extern void _hurd_libc_proc_init (char **argv); + /* Do startup handshaking with the proc server, and initialize library data structures that require proc server interaction. This includes initializing signals; see _hurdsig_init in . */ diff --git a/sysdeps/mach/hurd/i386/libc.abilist b/sysdeps/mach/hurd/i386/libc.abilist index 7424dc9166..fcba25ee5e 100644 --- a/sysdeps/mach/hurd/i386/libc.abilist +++ b/sysdeps/mach/hurd/i386/libc.abilist @@ -2206,6 +2206,7 @@ GLIBC_2.33 stat F GLIBC_2.33 stat64 F GLIBC_2.34 __isnanf128 F GLIBC_2.34 __libc_start_main F +GLIBC_2.34 _hurd_libc_proc_init F GLIBC_2.4 __confstr_chk F GLIBC_2.4 __fgets_chk F GLIBC_2.4 __fgets_unlocked_chk F