From patchwork Wed Oct 19 22:14:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 59112 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 6251D38A8153 for ; Wed, 19 Oct 2022 22:20:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6251D38A8153 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666218049; bh=feV7WKg+BMltVtxtrD7LcxswbQfZlbC4/BvilvsfeRc=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=eRQv5c3JVp8XFSoBi7lcvdZ+W6VvRPYXUFVut+fh5mJrNTmJG9tFid74AG+Xs4Eb4 vn2dDooKJWfOgT1D9WMd0cjnxPoVgBdexqEhWbjcHx4UyKZXMfjprqbgThVR9gjJIO kUV2hhw38kMvJMp5ov82XYjbV1J7qSb69r6NWgzk= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) by sourceware.org (Postfix) with ESMTPS id 0EA343857402 for ; Wed, 19 Oct 2022 22:15:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0EA343857402 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-1364357a691so22393638fac.7 for ; Wed, 19 Oct 2022 15:15:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=feV7WKg+BMltVtxtrD7LcxswbQfZlbC4/BvilvsfeRc=; b=ELKa1Zi0xYFNYtRYLVaj0BrnpMjfoFbgq+cFsu2QLskAKL2GS13GavJwUebO0WYRGy 98qZujfWTQvYDQ4cIErT9j/vae0Mc2JK0xTQtxo6AgG/0A38pNaIjRtC+e0jIBOaz95H f5U5FPYzeml72GfTnoLB91DtSR/aQfObbPFUeMLDZZACRkjGfg2uV18nCZEIPsbtf5/J 91g33bp0WpoDMU7Zkkd9iqSHdZkVljUkx/gxGv1BjA8N9QGBLDoM9XBIlJls1gkmn9lN TavuyY6Z6satvFJTT1p/lLgPl0hZa+k0U3Vfr4HEbDsg9ZKdT3BD533NXRc7222wmu+U RGGw== X-Gm-Message-State: ACrzQf26YeKgVV7tQF/DJ3ILsApGyzvgMJHJWNBl18DxXYJaFOr8OpKE OaiyB/X5tFC1JUscNE7sdt8vDTNnuzM2fv0Z X-Google-Smtp-Source: AMsMyM523fBzFEadZ9vmhzUYc/kycMr39HcOGifQJPKavd7dYSImO+X1AjMm5XYxgBI/3YQdJnCrAg== X-Received: by 2002:a05:6870:f587:b0:13a:af1a:b2ab with SMTP id eh7-20020a056870f58700b0013aaf1ab2abmr4719517oab.135.1666217712148; Wed, 19 Oct 2022 15:15:12 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:7d19:f1c1:9fb4:472a:ab68]) by smtp.gmail.com with ESMTPSA id m9-20020aca5809000000b00353fe4fb4casm7137927oib.48.2022.10.19.15.15.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 15:15:11 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH 27/30] Linux: make generic xstatver.h the default one Date: Wed, 19 Oct 2022 19:14:30 -0300 Message-Id: <20221019221433.1082017-28-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221019221433.1082017-1-adhemerval.zanella@linaro.org> References: <20221019221433.1082017-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" And copy the current default one to required ABIs. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell --- sysdeps/unix/sysv/linux/{generic => arm}/xstatver.h | 11 +++++++---- sysdeps/unix/sysv/linux/hppa/xstatver.h | 13 +++++++++++++ sysdeps/unix/sysv/linux/sh/xstatver.h | 13 +++++++++++++ sysdeps/unix/sysv/linux/xstatver.h | 11 ++++------- 4 files changed, 37 insertions(+), 11 deletions(-) rename sysdeps/unix/sysv/linux/{generic => arm}/xstatver.h (52%) create mode 100644 sysdeps/unix/sysv/linux/hppa/xstatver.h create mode 100644 sysdeps/unix/sysv/linux/sh/xstatver.h diff --git a/sysdeps/unix/sysv/linux/generic/xstatver.h b/sysdeps/unix/sysv/linux/arm/xstatver.h similarity index 52% rename from sysdeps/unix/sysv/linux/generic/xstatver.h rename to sysdeps/unix/sysv/linux/arm/xstatver.h index d8fd35beb6..8e1801b603 100644 --- a/sysdeps/unix/sysv/linux/generic/xstatver.h +++ b/sysdeps/unix/sysv/linux/arm/xstatver.h @@ -1,10 +1,13 @@ /* Versions of the 'struct stat' data structure used in compatibility xstat functions. */ -#define _STAT_VER_KERNEL 0 -#define _STAT_VER_LINUX 0 -#define _STAT_VER _STAT_VER_KERNEL +#define _STAT_VER_LINUX_OLD 1 +#define _STAT_VER_KERNEL 1 +#define _STAT_VER_SVR4 2 +#define _STAT_VER_LINUX 3 +#define _STAT_VER _STAT_VER_LINUX /* Versions of the 'xmknod' interface used in compatibility xmknod functions. */ -#define _MKNOD_VER_LINUX 0 +#define _MKNOD_VER_LINUX 1 +#define _MKNOD_VER_SVR4 2 #define _MKNOD_VER _MKNOD_VER_LINUX diff --git a/sysdeps/unix/sysv/linux/hppa/xstatver.h b/sysdeps/unix/sysv/linux/hppa/xstatver.h new file mode 100644 index 0000000000..8e1801b603 --- /dev/null +++ b/sysdeps/unix/sysv/linux/hppa/xstatver.h @@ -0,0 +1,13 @@ +/* Versions of the 'struct stat' data structure used in compatibility xstat + functions. */ +#define _STAT_VER_LINUX_OLD 1 +#define _STAT_VER_KERNEL 1 +#define _STAT_VER_SVR4 2 +#define _STAT_VER_LINUX 3 +#define _STAT_VER _STAT_VER_LINUX + +/* Versions of the 'xmknod' interface used in compatibility xmknod + functions. */ +#define _MKNOD_VER_LINUX 1 +#define _MKNOD_VER_SVR4 2 +#define _MKNOD_VER _MKNOD_VER_LINUX diff --git a/sysdeps/unix/sysv/linux/sh/xstatver.h b/sysdeps/unix/sysv/linux/sh/xstatver.h new file mode 100644 index 0000000000..8e1801b603 --- /dev/null +++ b/sysdeps/unix/sysv/linux/sh/xstatver.h @@ -0,0 +1,13 @@ +/* Versions of the 'struct stat' data structure used in compatibility xstat + functions. */ +#define _STAT_VER_LINUX_OLD 1 +#define _STAT_VER_KERNEL 1 +#define _STAT_VER_SVR4 2 +#define _STAT_VER_LINUX 3 +#define _STAT_VER _STAT_VER_LINUX + +/* Versions of the 'xmknod' interface used in compatibility xmknod + functions. */ +#define _MKNOD_VER_LINUX 1 +#define _MKNOD_VER_SVR4 2 +#define _MKNOD_VER _MKNOD_VER_LINUX diff --git a/sysdeps/unix/sysv/linux/xstatver.h b/sysdeps/unix/sysv/linux/xstatver.h index 8e1801b603..d8fd35beb6 100644 --- a/sysdeps/unix/sysv/linux/xstatver.h +++ b/sysdeps/unix/sysv/linux/xstatver.h @@ -1,13 +1,10 @@ /* Versions of the 'struct stat' data structure used in compatibility xstat functions. */ -#define _STAT_VER_LINUX_OLD 1 -#define _STAT_VER_KERNEL 1 -#define _STAT_VER_SVR4 2 -#define _STAT_VER_LINUX 3 -#define _STAT_VER _STAT_VER_LINUX +#define _STAT_VER_KERNEL 0 +#define _STAT_VER_LINUX 0 +#define _STAT_VER _STAT_VER_KERNEL /* Versions of the 'xmknod' interface used in compatibility xmknod functions. */ -#define _MKNOD_VER_LINUX 1 -#define _MKNOD_VER_SVR4 2 +#define _MKNOD_VER_LINUX 0 #define _MKNOD_VER _MKNOD_VER_LINUX