From patchwork Tue Apr 12 20:17:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 1616446 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=) Received: from sourceware.org (server2.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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4KdHDg1j5Sz9sBJ for ; Wed, 13 Apr 2022 06:21:23 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6E3CD385781D for ; Tue, 12 Apr 2022 20:21:21 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 61B733858036 for ; Tue, 12 Apr 2022 20:17:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 61B733858036 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 478F82010A; Tue, 12 Apr 2022 22:17:48 +0200 (CEST) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q7LLbrP8IBcd; Tue, 12 Apr 2022 22:17:48 +0200 (CEST) Received: from begin (lfbn-bor-1-255-114.w90-50.abo.wanadoo.fr [90.50.98.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 3398E20100; Tue, 12 Apr 2022 22:17:48 +0200 (CEST) Received: from samy by begin with local (Exim 4.95) (envelope-from ) id 1neMxP-00BPNW-S4; Tue, 12 Apr 2022 22:17:47 +0200 From: Samuel Thibault To: libc-alpha@sourceware.org Subject: [hurd,commited] hurd: Define ELIBEXEC Date: Tue, 12 Apr 2022 22:17:45 +0200 Message-Id: <20220412201745.2719155-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" So we can implement it in the exec server. --- manual/errno.texi | 10 +++++----- sysdeps/mach/hurd/bits/errno.h | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/manual/errno.texi b/manual/errno.texi index 9879ab43e6..28dd871caa 100644 --- a/manual/errno.texi +++ b/manual/errno.texi @@ -749,6 +749,11 @@ particular function will always fail with @code{ENOSYS} unless you install a new version of the C library or the operating system. @end deftypevr +@deftypevr Macro int ELIBEXEC +@standards{GNU, errno.h} +@errno{ELIBEXEC, 83, Cannot exec a shared library directly} +@end deftypevr + @deftypevr Macro int ENOTSUP @standards{POSIX.1, errno.h} @errno{ENOTSUP, 118, Not supported} @@ -1059,11 +1064,6 @@ They are not yet documented.} @errno{ELIBMAX, ???/82, Attempting to link in too many shared libraries} @end deftypevr -@deftypevr Macro int ELIBEXEC -@standards{Linux???, errno.h} -@errno{ELIBEXEC, ???/83, Cannot exec a shared library directly} -@end deftypevr - @deftypevr Macro int ESTRPIPE @standards{Linux???, errno.h} @errno{ESTRPIPE, ???/86, Streams pipe error} diff --git a/sysdeps/mach/hurd/bits/errno.h b/sysdeps/mach/hurd/bits/errno.h index 8f2fbfd80f..0d935e724a 100644 --- a/sysdeps/mach/hurd/bits/errno.h +++ b/sysdeps/mach/hurd/bits/errno.h @@ -115,6 +115,7 @@ enum __error_t_codes EAUTH = 0x40000050, /* Authentication error */ ENEEDAUTH = 0x40000051, /* Need authenticator */ ENOSYS = 0x4000004e, /* Function not implemented */ + ELIBEXEC = 0x40000053, /* Cannot exec a shared library directly */ ENOTSUP = 0x40000076, /* Not supported */ EILSEQ = 0x4000006a, /* Invalid or incomplete multibyte or wide character */ EBACKGROUND = 0x40000064, /* Inappropriate operation for background process */ @@ -312,6 +313,7 @@ enum __error_t_codes #define EAUTH 0x40000050 #define ENEEDAUTH 0x40000051 #define ENOSYS 0x4000004e +#define ELIBEXEC 0x40000053 #define ENOTSUP 0x40000076 #define EILSEQ 0x4000006a #define EBACKGROUND 0x40000064