]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove mknod wrapper functions, move them to symbols
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 16 Jul 2020 19:46:52 +0000 (16:46 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 9 Oct 2020 20:02:06 +0000 (17:02 -0300)
This patch removes the mknod and mknodat static wrapper and add the
symbols on the libc with the expected names.

Both the prototypes of the internal symbol linked by the static
wrappers and the inline redirectors are also removed from the installed
sys/stat.h header file.  The wrapper implementation license LGPL
exception is also removed since it is no longer statically linked to
binaries.

Internally the _STAT_VER* definitions are moved to the arch-specific
xstatver.h file.

Checked with a build for all affected ABIs. I also checked on x86_64,
i686, powerpc, powerpc64le, sparcv9, sparc64, s390, and s390x.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
58 files changed:
include/sys/stat.h
io/Makefile
io/Versions
io/mknod.c
io/mknodat.c
io/sys/stat.h
sysdeps/generic/xstatver.h
sysdeps/mach/hurd/i386/libc.abilist
sysdeps/posix/mkfifo.c
sysdeps/posix/mkfifoat.c
sysdeps/unix/sysv/linux/aarch64/libc.abilist
sysdeps/unix/sysv/linux/alpha/bits/stat.h
sysdeps/unix/sysv/linux/alpha/libc.abilist
sysdeps/unix/sysv/linux/alpha/xstatver.h
sysdeps/unix/sysv/linux/arc/libc.abilist
sysdeps/unix/sysv/linux/arm/le/libc.abilist
sysdeps/unix/sysv/linux/bits/stat.h
sysdeps/unix/sysv/linux/csky/libc.abilist
sysdeps/unix/sysv/linux/generic/bits/stat.h
sysdeps/unix/sysv/linux/generic/xstatver.h
sysdeps/unix/sysv/linux/hppa/libc.abilist
sysdeps/unix/sysv/linux/i386/libc.abilist
sysdeps/unix/sysv/linux/ia64/bits/stat.h
sysdeps/unix/sysv/linux/ia64/libc.abilist
sysdeps/unix/sysv/linux/ia64/xstatver.h
sysdeps/unix/sysv/linux/m68k/bits/stat.h
sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
sysdeps/unix/sysv/linux/m68k/xstatver.h
sysdeps/unix/sysv/linux/microblaze/be/libc.abilist
sysdeps/unix/sysv/linux/microblaze/bits/stat.h
sysdeps/unix/sysv/linux/microblaze/xstatver.h
sysdeps/unix/sysv/linux/mips/bits/stat.h
sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
sysdeps/unix/sysv/linux/mips/xstatver.h
sysdeps/unix/sysv/linux/nios2/libc.abilist
sysdeps/unix/sysv/linux/powerpc/bits/stat.h
sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
sysdeps/unix/sysv/linux/powerpc/xstatver.h
sysdeps/unix/sysv/linux/riscv/rv32/libc.abilist
sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist
sysdeps/unix/sysv/linux/s390/bits/stat.h
sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
sysdeps/unix/sysv/linux/s390/xstatver.h
sysdeps/unix/sysv/linux/sh/le/libc.abilist
sysdeps/unix/sysv/linux/sparc/bits/stat.h
sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
sysdeps/unix/sysv/linux/sparc/xstatver.h
sysdeps/unix/sysv/linux/x86/bits/stat.h
sysdeps/unix/sysv/linux/x86/xstatver.h
sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist
sysdeps/unix/sysv/linux/xstatver.h

index 061204b1fc0ce31175b2f157c0c264c3ab84bca7..1f832f6ce8cf06c3586fa883e3ce118f434cc8d5 100644 (file)
@@ -29,14 +29,18 @@ libc_hidden_proto (fchmodat)
 extern __mode_t __umask (__mode_t __mask);
 extern int __mkdir (const char *__path, __mode_t __mode);
 libc_hidden_proto (__mkdir)
+
+extern int __mknodat (int fd, const char *path, mode_t mode, dev_t dev);
+libc_hidden_proto (__mknodat);
 extern int __mknod (const char *__path,
                    __mode_t __mode, __dev_t __dev);
+libc_hidden_proto (__mknod);
+
+extern int __xmknod (int __ver, const char *__path, __mode_t __mode,
+                    __dev_t *__dev);
 libc_hidden_proto (__xmknod)
-extern __inline__ int __mknod (const char *__path, __mode_t __mode,
-                              __dev_t __dev)
-{
-  return __xmknod (_MKNOD_VER, __path, __mode, &__dev);
-}
+extern int __xmknodat (int __ver, int __fd, const char *__path,
+                      __mode_t __mode, __dev_t *__dev);
 libc_hidden_proto (__xmknodat)
 
 int __fxstat (int __ver, int __fildes, struct stat *__stat_buf);
index 69b2468d6450d0741916e9e68b38a3d925b448ab..6dd2c33fcff857612393c6a10c18141e06a82a3e 100644 (file)
@@ -57,11 +57,6 @@ routines :=                                                          \
        sendfile sendfile64 copy_file_range                             \
        utimensat futimens file_change_detection
 
-# These routines will be omitted from the libc shared object.
-# Instead the static object files will be included in a special archive
-# linked against when the shared library will be used.
-static-only-routines = mknod mknodat
-
 others         := pwd
 test-srcs      := ftwtest
 tests          := test-utime test-stat test-stat2 test-lfs tst-getcwd \
index f6db0e84ade3ea8d91e72198831dc112e2a1a1f8..49c4d2d40a256e6e55e102e557bf209338ad245c 100644 (file)
@@ -134,6 +134,7 @@ libc {
   }
   GLIBC_2.33 {
     stat; stat64; fstat; fstat64; lstat; lstat64; fstatat; fstatat64;
+    mknod; mknodat;
   }
   GLIBC_PRIVATE {
     __libc_fcntl64;
index ac968292303dc8e1fae15bf7a16ef480b7bbf66c..9eb4a2af7f205b8289e4c10d7d3d8d0fa9be421d 100644 (file)
@@ -6,23 +6,6 @@
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
 
-   In addition to the permissions in the GNU Lesser General Public
-   License, the Free Software Foundation gives you unlimited
-   permission to link the compiled version of this file with other
-   programs, and to distribute those programs without any restriction
-   coming from the use of this file. (The GNU Lesser General Public
-   License restrictions do apply in other respects; for example, they
-   cover modification of the file, and distribution when not linked
-   into another program.)
-
-   Note that people who make modified versions of this file are not
-   obligated to grant this special exception for their modified
-   versions; it is their choice whether to do so. The GNU Lesser
-   General Public License gives permission to release a modified
-   version without this exception; this exception also makes it
-   possible to release a modified version which carries forward this
-   exception.
-
    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-
 #include <sys/types.h>
 #include <sys/stat.h>
 
-/* This definition is only used if inlining fails for this function; see
-   the last page of <sys/stat.h>.  The real work is done by the `x'
-   function which is passed a version number argument.  We arrange in the
-   makefile that when not inlined this function is always statically
-   linked; that way a dynamically-linked executable always encodes the
-   version number corresponding to the data structures it uses, so the `x'
-   functions in the shared library can adapt without needing to recompile
-   all callers.  */
-
 int
-attribute_hidden
 __mknod (const char *path, mode_t mode, dev_t dev)
 {
   return __xmknod (_MKNOD_VER, path, mode, &dev);
 }
-
-weak_hidden_alias (__mknod, mknod)
+libc_hidden_def (__mknod)
+weak_alias (__mknod, mknod)
index 65c9f1aa9c2d69e49de27db04642ba446654a3a3..63a8068ad607241a456a35428d0905f421d2f76c 100644 (file)
@@ -6,23 +6,6 @@
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
 
-   In addition to the permissions in the GNU Lesser General Public
-   License, the Free Software Foundation gives you unlimited
-   permission to link the compiled version of this file with other
-   programs, and to distribute those programs without any restriction
-   coming from the use of this file. (The GNU Lesser General Public
-   License restrictions do apply in other respects; for example, they
-   cover modification of the file, and distribution when not linked
-   into another program.)
-
-   Note that people who make modified versions of this file are not
-   obligated to grant this special exception for their modified
-   versions; it is their choice whether to do so. The GNU Lesser
-   General Public License gives permission to release a modified
-   version without this exception; this exception also makes it
-   possible to release a modified version which carries forward this
-   exception.
-
    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-
 #include <sys/types.h>
 #include <sys/stat.h>
 
-/* This definition is only used if inlining fails for this function; see
-   the last page of <sys/stat.h>.  The real work is done by the `x'
-   function which is passed a version number argument.  We arrange in the
-   makefile that when not inlined this function is always statically
-   linked; that way a dynamically-linked executable always encodes the
-   version number corresponding to the data structures it uses, so the `x'
-   functions in the shared library can adapt without needing to recompile
-   all callers.  */
-
 int
-attribute_hidden
-mknodat (int fd, const char *path, mode_t mode, dev_t dev)
+__mknodat (int fd, const char *path, mode_t mode, dev_t dev)
 {
   return __xmknodat (_MKNOD_VER, fd, path, mode, &dev);
 }
+libc_hidden_def (__mknodat)
+weak_alias (__mknodat, mknodat)
index eb9cf5d5affdec5aed1112ac13497c487b19311e..58c3770622d157a72936e49cefd9d7c9fc56fd83 100644 (file)
@@ -367,43 +367,11 @@ extern int utimensat (int __fd, const char *__path,
 /* Set file access and modification times of the file associated with FD.  */
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
 #endif
-\f
-#ifndef _MKNOD_VER
-# define _MKNOD_VER    0
-#endif
-
-extern int __xmknod (int __ver, const char *__path, __mode_t __mode,
-                    __dev_t *__dev) __THROW __nonnull ((2, 4));
-
-extern int __xmknodat (int __ver, int __fd, const char *__path,
-                      __mode_t __mode, __dev_t *__dev)
-     __THROW __nonnull ((3, 5));
 
 #ifdef __USE_GNU
 # include <bits/statx.h>
 #endif
 
-#ifdef __USE_EXTERN_INLINES
-# ifdef __USE_MISC
-__extern_inline int
-__NTH (mknod (const char *__path, __mode_t __mode, __dev_t __dev))
-{
-  return __xmknod (_MKNOD_VER, __path, __mode, &__dev);
-}
-# endif
-
-# if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
-#  ifdef __USE_ATFILE
-__extern_inline int
-__NTH (mknodat (int __fd, const char *__path, __mode_t __mode,
-               __dev_t __dev))
-{
-  return __xmknodat (_MKNOD_VER, __fd, __path, __mode, &__dev);
-}
-#  endif
-# endif
-#endif
-
 __END_DECLS
 
 
index d727c98a166937a4774d77d8a1a5cb2acd605aff..281013b2f124334ef3a0ff866c9dd46bd64e1bea 100644 (file)
@@ -1,3 +1,4 @@
 /* Versions of the 'struct stat' data structure used in compatibility xstat
    functions.  */
 #define _STAT_VER 0
+#define _MKNOD_VER 0
index f37ce0e8ae2f4e013b9db2ff25fa8aaaef91fbd6..e2ff0e8b9e1cc8724124b6bb0c3e97358c9292e8 100644 (file)
@@ -2198,6 +2198,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 __confstr_chk F
index 61f62e2e9673eb06186a3de995cde32a51c771bc..0b89f6c291f77f2f46fadce4e6b4c75955948ece 100644 (file)
@@ -24,6 +24,5 @@
 int
 mkfifo (const char *path, mode_t mode)
 {
-  dev_t dev = 0;
-  return __xmknod (_MKNOD_VER, path, mode | S_IFIFO, &dev);
+  return __mknod (path, mode | S_IFIFO, 0);
 }
index 5287fe8782198235ee4c8165fa2c1bbd5e2c7244..d1e0977ba1e0de5d8f6e9a4a727d7fa976157706 100644 (file)
@@ -23,6 +23,5 @@
 int
 mkfifoat (int fd, const char *file, mode_t mode)
 {
-  dev_t dev = 0;
-  return __xmknodat (_MKNOD_VER, fd, file, mode | S_IFIFO, &dev);
+  return __mknodat (fd, file, mode | S_IFIFO, 0);
 }
index 9666cd11c082ac2a4741bfa1c0acd1893806d7e2..4cc1c6a5918835e7f06d6012d51cd74c3ec88f06 100644 (file)
@@ -2167,5 +2167,7 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
index 1fc27936b903ff1247a40cb067d58692fcf4e345..d20fb5a4b0c4664c123496b173a5dd0c929f4dab 100644 (file)
 #ifndef _BITS_STAT_H
 #define _BITS_STAT_H   1
 
-/* Versions of the `xmknod' interface.  */
-#define _MKNOD_VER_LINUX       0
-
-
 /* Nanosecond resolution timestamps are stored in a format equivalent to
    'struct timespec'.  This is the type used whenever possible but the
    Unix namespace rules do not allow the identifier 'timespec' to appear
index e2b33b4b3145ced69d6a4e88e785a09349f99047..26ad9845e418bdc0f31a282cc699d48f89ed1cda 100644 (file)
@@ -2249,6 +2249,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 _IO_fprintf F
index bbb9469617a798be707ca442c37fd8f5a74388d5..1cb5d26bb1e8110839f3a0167101fd9ed46f8af0 100644 (file)
@@ -7,3 +7,8 @@
 #define _STAT_VER_GLIBC2_3_4   3
 #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             _MKNOD_VER_LINUX
index 29351ead807ece3f2345cfac5d0d579681d2330a..bb9dfd4daf6748ecea3f2012ecaa2c0c9acfad44 100644 (file)
@@ -1927,5 +1927,7 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
index ee9786f0dc21221abe751e5c6b406109227cc1d7..9ab3924888170a64855b2313b4b954f4afacbaf9 100644 (file)
@@ -148,6 +148,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 _Exit F
index b5426232088df446f502e6aea76a6cf03e71e1c4..0669451f69c35dd6296ef68ff6b471d3d5311ba8 100644 (file)
 #ifndef _BITS_STAT_H
 #define _BITS_STAT_H   1
 
-/* Versions of the `struct stat' data structure.  */
-/* Versions of the `xmknod' interface.  */
-#define _MKNOD_VER_LINUX       1
-#define _MKNOD_VER_SVR4                2
-#define _MKNOD_VER             _MKNOD_VER_LINUX /* The bits defined below.  */
-
-
 struct stat
   {
     __dev_t st_dev;                    /* Device.  */
index 290297631f879f1724af6684374fbd1133162ca3..14a84dac8fbbfae750b6f8e7883cec9308a7b821 100644 (file)
@@ -2111,5 +2111,7 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
index 35e14a47c6ceb36dd088164fc4f6147fad9fbab9..1b586d72fa0765a714372c22f83bbfba27c3124c 100644 (file)
@@ -26,9 +26,6 @@
 #include <bits/endian.h>
 #include <bits/wordsize.h>
 
-/* Versions of the `xmknod' interface.  */
-#define _MKNOD_VER_LINUX       0
-
 #if defined __USE_FILE_OFFSET64
 # define __field64(type, type64, name) type64 name
 #elif __WORDSIZE == 64 || defined __INO_T_MATCHES_INO64_T
index 8675db494c38f31396f106f3576b62f267ab8c2d..d8fd35beb6912d51d09d2a7e26220e648adb7e81 100644 (file)
@@ -3,3 +3,8 @@
 #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       0
+#define _MKNOD_VER             _MKNOD_VER_LINUX
index 5e370562293f677cf530b8a07b7fb93ac6aa467e..5c8502f3d3b7ca1b99fecdd0a4e03ccd4bdb1244 100644 (file)
@@ -2070,6 +2070,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 __confstr_chk F
index de9cbc278c640660dd97579c15af2ca04537b77a..4f0d3c1eb5969c6cb130debbb9694a3df222fdd6 100644 (file)
@@ -2236,6 +2236,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 __confstr_chk F
index 8ec2e4c81f7fc2d2b9c89914df96505e268282a8..6937f3227aad0ab1007afb0a05997266c6d476f5 100644 (file)
@@ -22,9 +22,6 @@
 #ifndef _BITS_STAT_H
 #define _BITS_STAT_H   1
 
-/* Versions of the `xmknod' interface.  */
-#define _MKNOD_VER_LINUX       0
-
 struct stat
   {
     __dev_t st_dev;            /* Device.  */
index b21a3192dc1f3d19b8781efdecc57161a3e3a075..e3b345b803c59e5b0ea314c9acd7f1254ea18122 100644 (file)
@@ -2102,6 +2102,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 __confstr_chk F
index 4f02f697adcf9fab0064dc89ba0cb21bc7a9eb88..f24ab4a9ee158d7f0890cd228b20bf1e278d332b 100644 (file)
@@ -3,3 +3,8 @@
 #define _STAT_VER_KERNEL       0
 #define _STAT_VER_LINUX                1
 #define _STAT_VER              _STAT_VER_LINUX
+
+/* Versions of the 'xmknod' interface used in compatibility xmknod
+   functions.  */
+#define _MKNOD_VER_LINUX       0
+#define _MKNOD_VER             _MKNOD_VER_LINUX
index bf41776e6ca06b796acf07983e7d07f49e3d8562..c6f761fcc0b9d78f52a620bb6bc33d4c23649a97 100644 (file)
 #ifndef _BITS_STAT_H
 #define _BITS_STAT_H   1
 
-/* Versions of the `xmknod' interface.  */
-#define _MKNOD_VER_LINUX       1
-#define _MKNOD_VER_SVR4                2
-#define _MKNOD_VER             _MKNOD_VER_LINUX /* The bits defined below.  */
-
-
 struct stat
   {
     __dev_t st_dev;                    /* Device.  */
index e0e01175dc9df26e47755ee0557b36cfdd0c44aa..c4891479d36d7f2d8bc3518a0a32a91cdfb41fd5 100644 (file)
@@ -2182,6 +2182,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 __confstr_chk F
index 59dba71dd1515583c66592ed44d7ad4592731b41..8e1801b6037e2c47d76e2cc44ad2a6b3188a21e3 100644 (file)
@@ -5,3 +5,9 @@
 #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
index eb8b9ce933353dd40d8aa08b75e9de32440b377c..143b0163b4a93b747662b5393680d38f31e296dc 100644 (file)
@@ -2162,5 +2162,7 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
index 51316a8c1bbfb69916fd505500a05ebd5b673d02..b3068e5c982aeee778d19a37785452547c92b9bd 100644 (file)
 #ifndef _BITS_STAT_H
 #define _BITS_STAT_H   1
 
-/* Versions of the `xmknod' interface.  */
-#define _MKNOD_VER_LINUX       1
-#define _MKNOD_VER_SVR4        2
-#define _MKNOD_VER             _MKNOD_VER_LINUX  /* The bits defined below.  */
-
 #ifndef __USE_FILE_OFFSET64
 struct stat
 {
index bddaa0d5eccc5a1faff605082d25e83331eeebbc..790cc834d20f20c2bf8ceb587cdf5b9abee8766e 100644 (file)
@@ -5,3 +5,9 @@
 #define _STAT_VER_SVR4         2
 #define _STAT_VER_LINUX        3
 #define _STAT_VER              _STAT_VER_LINUX  /* The one defined below.  */
+
+/* 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
index cfeb4ce6a4ca7b0168ad54f1475d5a28fb226a42..f229c580139777ef507745fb061291e960a4a919 100644 (file)
 
 #include <sgidefs.h>
 
-/* Versions of the `xmknod' interface.  */
-#define _MKNOD_VER_LINUX       1
-#define _MKNOD_VER_SVR4                2
-#define _MKNOD_VER             _MKNOD_VER_LINUX /* The bits defined below.  */
-
 
 #if _MIPS_SIM == _ABIO32
 /* Structure describing file characteristics.  */
index 23f77798d02e0eef4f9b401cdce8893183256774..b2295f193786e7bfa6dfd17d6444028f0ded3132 100644 (file)
@@ -2153,6 +2153,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 __confstr_chk F
index abfbe855617353a529c1c1836ab8d380d726ac96..aa9c6a4dcafe1a8d0afb10b9089bf91185274cce 100644 (file)
@@ -2159,6 +2159,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 __confstr_chk F
index 3d9ad1907f6ee311bf9bc0fc57362767cd20692c..5939588ad5980e0558500aae9a86703786dba0e3 100644 (file)
@@ -2153,6 +2153,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 __confstr_chk F
index 59dba71dd1515583c66592ed44d7ad4592731b41..8e1801b6037e2c47d76e2cc44ad2a6b3188a21e3 100644 (file)
@@ -5,3 +5,9 @@
 #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
index c1d74383613edae48a2c3e9247cb25bc15536dbc..92556c42373e3f41df27c2757fc5b7c9fe48140b 100644 (file)
@@ -2200,5 +2200,7 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
index 40ea9a96d494a066781fff8f5bf857baec7bfc00..80c9dc23ac6a3b162ace1352e050f9c1a2a236a0 100644 (file)
 
 #include <bits/wordsize.h>
 
-/* Versions of the `xmknod' interface.  */
-#define _MKNOD_VER_LINUX       1
-#define _MKNOD_VER_SVR4                2
-#define _MKNOD_VER             _MKNOD_VER_LINUX /* The bits defined below.  */
-
 
 #if __WORDSIZE == 32
 
index 18f4f3e91d1eab41092a0c44422f25db6e7de553..26c93dff05491bf3ad3878751fa7e6b1bb1e4498 100644 (file)
@@ -2209,6 +2209,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 _IO_fprintf F
index 965ef6abc120c593d8c4852d6c414121f7c635ac..c2ca00709e3a845525cc894e2513e8bc908ef1ed 100644 (file)
@@ -2072,6 +2072,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 _IO_fprintf F
index 9dbbd43567776c05f56e822d847fc0a64387f9c2..0ea50dc851198b12269888a2c1577db4dbc44b48 100644 (file)
@@ -2362,5 +2362,7 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
index 1656e2f7e43afd3bbe7da044cab50ff01c79d895..aa61dfd6785c55c1ec3b21e73ba2088b6623bc49 100644 (file)
@@ -9,3 +9,9 @@
 #else
 # define _STAT_VER             _STAT_VER_KERNEL
 #endif
+
+/* 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
index 9e5e1c084c15b71e73cc91f00efa8f74917ca890..22169f2c74247eb5db2d5502ccd4508ed8c631e7 100644 (file)
@@ -1213,6 +1213,8 @@ GLIBC_2.33 mkdirat F
 GLIBC_2.33 mkdtemp F
 GLIBC_2.33 mkfifo F
 GLIBC_2.33 mkfifoat F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 mkostemp F
 GLIBC_2.33 mkostemp64 F
 GLIBC_2.33 mkostemps F
index 495d1f5f40a965db413942d8d094ebf1c1dc1a26..1626c5351f665d436d9368534fd60783b5a1ce9a 100644 (file)
@@ -2129,5 +2129,7 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
index d12055529a305814538fcd5ab558be9c67fa5d5c..75fa871a1db20dba6836cfe16c245cf47b1daf24 100644 (file)
 
 #include <bits/wordsize.h>
 
-#if __WORDSIZE == 64
-/* Versions of the `xmknod' interface. */
-#define _MKNOD_VER_LINUX       0
-#else
-/* Versions of the `xmknod' interface.  */
-# define _MKNOD_VER_LINUX      1
-# define _MKNOD_VER_SVR4       2
-# define _MKNOD_VER            _MKNOD_VER_LINUX
-#endif
-
 #if __WORDSIZE == 64
 struct stat
   {
index a87fb8676ad4f6bff96cc683c6af58a2eb446f7f..a66426eb4d8cd44fb34e0284e93a85021322264a 100644 (file)
@@ -2207,6 +2207,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 _IO_fprintf F
index 25dfdcb21fd39de4eb31cf9ab4c78f5501944455..ab351873ae0296dcb9808f2a8ba85d9c027b7aca 100644 (file)
@@ -2108,6 +2108,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 _IO_fprintf F
index 5ad0db2797ac94b5cc5ee510d51588b5c5e1f0f6..9923199e407ccd8c3c341695841bcc07802c0189 100644 (file)
@@ -6,11 +6,14 @@
 #if __WORDSIZE == 64
 # define _STAT_VER_KERNEL      0
 # define _STAT_VER_LINUX       1
-# define _STAT_VER             _STAT_VER_LINUX
+# define _MKNOD_VER_LINUX      0
 #else
 # 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 _MKNOD_VER_LINUX      1
+# define _MKNOD_VER_SVR4       2
 #endif
+#define _STAT_VER              _STAT_VER_LINUX
+#define _MKNOD_VER             _MKNOD_VER_LINUX
index ac918a324e7690b7fcf25b486adb6f5f170d4839..d36f228192f11fd7d5a9f6d481b94ddbc87cf4a4 100644 (file)
@@ -2074,6 +2074,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 __confstr_chk F
index 7af17b5c40084e7afe203f5cf53a1ef89f3577f6..d10ebb1a9a4fa58852ca14c0683429f499cb6404 100644 (file)
 #ifndef _BITS_STAT_H
 #define _BITS_STAT_H   1
 
-/* Versions of the `xmknod' interface.  */
-#define _MKNOD_VER_LINUX       1
-#define _MKNOD_VER_SVR4                2
-#define _MKNOD_VER             _MKNOD_VER_LINUX /* The bits defined below.  */
-
-
 struct stat
   {
     __dev_t st_dev;                    /* Device.  */
index db1e113727510e1ba0ffb8ea924e9912163844b5..59b4313280ca22616b505fe14e8e8ff233b1cb30 100644 (file)
@@ -2198,6 +2198,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 _IO_fprintf F
index 0d3901e38ab6e2678452297ec3004ad78a44dccb..266dcdfa08b7d8fb0de9cfbff78dfcbe1edd64af 100644 (file)
@@ -2125,6 +2125,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 __confstr_chk F
index ae92b530e75c9339e9016db9b0a73c28e09d2b4a..693b41c3aca875875e0c03111564decae41fa6f4 100644 (file)
@@ -5,3 +5,9 @@
 #define _STAT_VER_SVR4         2
 #define _STAT_VER_LINUX                3
 #define _STAT_VER              _STAT_VER_LINUX /* The one defined below.  */
+
+/* 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
index f132569e9d6d7ac6709a10056446cd9ae23d4ced..2c0a3f120b20d3351bedee99a091aa76670e2473 100644 (file)
 #ifndef _BITS_STAT_H
 #define _BITS_STAT_H   1
 
-/* Versions of the `struct stat' data structure.  */
-#ifndef __x86_64__
-/* i386 versions of the `xmknod' interface.  */
-# define _MKNOD_VER_LINUX      1
-# define _MKNOD_VER_SVR4       2
-# define _MKNOD_VER            _MKNOD_VER_LINUX /* The bits defined below.  */
-#else
-/* x86-64 versions of the `xmknod' interface.  */
-# define _MKNOD_VER_LINUX      0
-#endif
-
 struct stat
   {
     __dev_t st_dev;            /* Device.  */
index 4447212894077fc0a5a46cb0249ed37c409a4a46..678d5bc02274f693ccc02cad0ba75802fe345d67 100644 (file)
@@ -5,8 +5,12 @@
 # define _STAT_VER_KERNEL      1
 # define _STAT_VER_SVR4                2
 # define _STAT_VER_LINUX       3
+# define _MKNOD_VER_LINUX      1
+# define _MKNOD_VER_SVR4       2
 #else
 # define _STAT_VER_KERNEL      0
 # define _STAT_VER_LINUX       1
+# define _MKNOD_VER_LINUX      0
 #endif
 #define _STAT_VER              _STAT_VER_LINUX
+#define _MKNOD_VER             _MKNOD_VER_LINUX
index a982db4601ac89c1b6f1baa993a21a67436df16c..4fff61818ba52a2d9d122e4ed4884ec0441c4776 100644 (file)
@@ -2083,6 +2083,8 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
 GLIBC_2.4 __confstr_chk F
index 8662f51c1a4aa1d4f695857324f4f5b04c09dd0f..102ed47a9c9b9e6645f0792e559848e87c226ba8 100644 (file)
@@ -2180,5 +2180,7 @@ GLIBC_2.33 fstatat64 F
 GLIBC_2.33 lstat F
 GLIBC_2.33 lstat64 F
 GLIBC_2.33 mallinfo2 F
+GLIBC_2.33 mknod F
+GLIBC_2.33 mknodat F
 GLIBC_2.33 stat F
 GLIBC_2.33 stat64 F
index 59dba71dd1515583c66592ed44d7ad4592731b41..8e1801b6037e2c47d76e2cc44ad2a6b3188a21e3 100644 (file)
@@ -5,3 +5,9 @@
 #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