]> sourceware.org Git - glibc.git/commitdiff
Define __ASSUME_ST_INO_64_BIT on all platforms.
authorSteve Ellcey <sellcey@caviumnetworks.com>
Mon, 7 Nov 2016 21:26:27 +0000 (13:26 -0800)
committerSteve Ellcey <sellcey@caviumnetworks.com>
Mon, 7 Nov 2016 21:26:27 +0000 (13:26 -0800)
* sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
  __ASSUME_ST_INO_64_BIT as 0
* sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
* sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
  over the code where __ASSUME_ST_INO_64_BIT is used.
* sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
* sysdeps/unix/sysv/linux/xstat64.c: Likewise.
* sysdeps/unix/sysv/linux/xstatconv.c: Likewise.

ChangeLog
sysdeps/unix/sysv/linux/alpha/kernel-features.h
sysdeps/unix/sysv/linux/fxstat64.c
sysdeps/unix/sysv/linux/lxstat64.c
sysdeps/unix/sysv/linux/sh/kernel-features.h
sysdeps/unix/sysv/linux/xstat64.c
sysdeps/unix/sysv/linux/xstatconv.c

index 49396f59e9af081ffbc7e1e33d80da1f0bdd26d6..87559da072046973cb6373cfeb929c80449a3111 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
+           Steve Ellcey  <sellcey@caviumnetworks.com>
+
+       * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
+         __ASSUME_ST_INO_64_BIT as 0
+       * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
+       * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
+         over the code where __ASSUME_ST_INO_64_BIT is used.
+       * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
+       * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
+       * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
+
 2016-11-07  Florian Weimer  <fweimer@redhat.com>
 
        * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
index 732749e845dba45ee98459a7c0a85808d99d3ad5..f09222d2259ea7ce901fd69524a8cfb2a2a322da 100644 (file)
@@ -23,6 +23,7 @@
 #include_next <kernel-features.h>
 
 #undef __ASSUME_ST_INO_64_BIT
+#define __ASSUME_ST_INO_64_BIT 0
 
 /* There never has been support for fstat64.  */
 #undef __ASSUME_STATFS64
index 5468dd6c6089f4778641886ea628febb9975dfed..8d102826c6ccd87fa2350af4ee349118cba157d2 100644 (file)
@@ -33,7 +33,7 @@ ___fxstat64 (int vers, int fd, struct stat64 *buf)
 {
   int result;
   result = INLINE_SYSCALL (fstat64, 2, fd, buf);
-#if defined _HAVE_STAT64___ST_INO && !defined __ASSUME_ST_INO_64_BIT
+#if defined _HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT
   if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
     buf->st_ino = buf->__st_ino;
 #endif
index 09a678a3a93f5495f1ae62bda2951ec82d1b468e..4d8c0a6ab419bb92e8ce5372726a7ddb8a7cd5a4 100644 (file)
@@ -32,7 +32,7 @@ ___lxstat64 (int vers, const char *name, struct stat64 *buf)
 {
   int result;
   result = INLINE_SYSCALL (lstat64, 2, name, buf);
-#if defined _HAVE_STAT64___ST_INO && !defined __ASSUME_ST_INO_64_BIT
+#if defined _HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT
   if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
     buf->st_ino = buf->__st_ino;
 #endif
index c5240fafbd5f838f1a7ad1905c10acc99d8010b5..ea4fdbc8bd171fac409aff6709d3326b5c32ae5c 100644 (file)
@@ -44,6 +44,7 @@
 
 /* SH does not have a 64-bit inode field.  */
 #undef __ASSUME_ST_INO_64_BIT
+#define __ASSUME_ST_INO_64_BIT 0
 
 /* SH4 ABI does not really require argument alignment for 64-bits, but
    the kernel interface for p{read,write}64 adds a dummy long argument
index 2075383ddfe4803d3b14b368d3d3d0125dba2748..00a4459f4f133e82eeab75883b2e26126f636d85 100644 (file)
@@ -33,7 +33,7 @@ ___xstat64 (int vers, const char *name, struct stat64 *buf)
 {
   int result;
   result = INLINE_SYSCALL (stat64, 2, name, buf);
-#if defined _HAVE_STAT64___ST_INO && !defined __ASSUME_ST_INO_64_BIT
+#if defined _HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT
   if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
     buf->st_ino = buf->__st_ino;
 #endif
index c5fbf3d8bf4c08a2130c4573b0fe8deb231db350..27b528ca11a2d64b57e2c5497a31e13b89a78b1e 100644 (file)
@@ -190,7 +190,7 @@ __xstat32_conv (int vers, struct stat64 *kbuf, struct stat *buf)
        buf->__pad1 = 0;
 #endif
 #ifdef _HAVE_STAT64___ST_INO
-# ifndef __ASSUME_ST_INO_64_BIT
+# if !__ASSUME_ST_INO_64_BIT
        if (kbuf->st_ino == 0)
          buf->st_ino = kbuf->__st_ino;
        else
This page took 0.169473 seconds and 5 git commands to generate.