From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 653FA382E75E; Wed, 7 Dec 2022 19:16:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 653FA382E75E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670440586; bh=KJKG5TYMPQmS4cphRVSVdFlESM6wjRlV/AsdCfecu/I=; h=From:To:Subject:Date:From; b=ZHevSkPP4/S9OJrgq99Mpcle40H3VrV8PSVnEjBw/h2fQ3jJIpJx4gJDp6tPZOaVG yK+E1RaFIyh60SI2VHRiO8/l43nK9DgEycQLG1KXvELfAYIutULcAmXfMJySVutD0Q v77G3hZKY3Kbn8a0H0cHCtxCQf5VnmVZSX6GaYj0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] Linux: make generic xstatver.h the default one X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella Netto X-Git-Refname: refs/heads/master X-Git-Oldrev: 71e4344f2568c53d7d7a122ae2b4196c1d2b8ae0 X-Git-Newrev: fea7abbc23d47e5d4f4077dcee0aa35a8ce66800 Message-Id: <20221207191626.653FA382E75E@sourceware.org> Date: Wed, 7 Dec 2022 19:16:26 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fea7abbc23d47e5d4f4077dcee0aa35a8ce66800 commit fea7abbc23d47e5d4f4077dcee0aa35a8ce66800 Author: Adhemerval Zanella Netto Date: Wed Oct 19 19:14:30 2022 -0300 Linux: make generic xstatver.h the default one And copy the current default one to required ABIs. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell Diff: --- 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(-) 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