on x86_64 use long instead of long long for 64bit posix types
authorSzabolcs Nagy <nsz@port70.net>
Sun, 26 May 2013 15:43:17 +0000 (15:43 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sun, 26 May 2013 15:43:17 +0000 (15:43 +0000)
following glibc use the lowest rank 64bit integer type for ino_t etc.
this is eg. useful for printf format compatibility

arch/x86_64/bits/alltypes.h.sh

index c5e54aab00f065055571127516c02a4db1615163..a6c90327836af6a326d3dc57e4bbb08a4350a0c5 100755 (executable)
@@ -94,12 +94,12 @@ TYPEDEF long off_t;
 TYPEDEF unsigned int mode_t;
 
 TYPEDEF unsigned long nlink_t;
-TYPEDEF unsigned long long ino_t;
+TYPEDEF unsigned long ino_t;
 TYPEDEF unsigned long dev_t;
 TYPEDEF long blksize_t;
-TYPEDEF long long blkcnt_t;
-TYPEDEF unsigned long long fsblkcnt_t;
-TYPEDEF unsigned long long fsfilcnt_t;
+TYPEDEF long blkcnt_t;
+TYPEDEF unsigned long fsblkcnt_t;
+TYPEDEF unsigned long fsfilcnt_t;
 
 TYPEDEF void * timer_t;
 TYPEDEF int clockid_t;