mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
Remove mknod wrapper functions, move them to symbols
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>
This commit is contained in:
parent
8ed005daf0
commit
589260cef8
@ -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);
|
||||
|
@ -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 \
|
||||
|
@ -134,6 +134,7 @@ libc {
|
||||
}
|
||||
GLIBC_2.33 {
|
||||
stat; stat64; fstat; fstat64; lstat; lstat64; fstatat; fstatat64;
|
||||
mknod; mknodat;
|
||||
}
|
||||
GLIBC_PRIVATE {
|
||||
__libc_fcntl64;
|
||||
|
32
io/mknod.c
32
io/mknod.c
@ -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
|
||||
@ -32,24 +15,13 @@
|
||||
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)
|
||||
|
32
io/mknodat.c
32
io/mknodat.c
@ -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
|
||||
@ -32,22 +15,13 @@
|
||||
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)
|
||||
|
@ -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
|
||||
|
||||
#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
|
||||
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* Versions of the 'struct stat' data structure used in compatibility xstat
|
||||
functions. */
|
||||
#define _STAT_VER 0
|
||||
#define _MKNOD_VER 0
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -22,10 +22,6 @@
|
||||
#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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -22,13 +22,6 @@
|
||||
#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. */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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. */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -22,12 +22,6 @@
|
||||
#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. */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -23,11 +23,6 @@
|
||||
#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
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -24,11 +24,6 @@
|
||||
|
||||
#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. */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -24,11 +24,6 @@
|
||||
|
||||
#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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -24,16 +24,6 @@
|
||||
|
||||
#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
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -22,12 +22,6 @@
|
||||
#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. */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -22,17 +22,6 @@
|
||||
#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. */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user