From: Wichert Akkerman Date: Fri, 24 Dec 1999 23:11:57 +0000 (+0000) Subject: Use STAT64 test for the new stat64 functions X-Git-Tag: v4.5.18~1142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0396bdc0a7fbef876653460e3ba512398e40ba9b;p=strace Use STAT64 test for the new stat64 functions --- diff --git a/ChangeLog b/ChangeLog index cff18709..b853abda 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-12-24 Wichert Akkerman + + * file.c: protect printstat64 with STAT64 instead of linux so we can + compile on Linux architectures that don't have it + +Fri Dec 24 18:05:00 EST 1999 + 1999-12-23 Ulrich Drepper * file.c: Use ugly libc_stat trick also for stat64. diff --git a/file.c b/file.c index 149a5853..9ffb838f 100644 --- a/file.c +++ b/file.c @@ -611,7 +611,7 @@ int addr; realprintstat(tcp, &statbuf); } -#ifdef linux +#ifdef STAT64 static void printstat64(tcp, addr) struct tcb *tcp; @@ -683,7 +683,9 @@ int addr; else tprintf("...}"); } +#endif /* STAT64 */ +#ifdef linux static void convertoldstat(oldbuf, newbuf) const struct __old_kernel_stat *oldbuf; @@ -703,10 +705,8 @@ struct stat *newbuf; newbuf->st_blksize=0; /* not supported in old_stat */ newbuf->st_blocks=0; /* not supported in old_stat */ } -#endif -#ifdef linux static void printoldstat(tcp, addr) struct tcb *tcp; diff --git a/util.c b/util.c index 2d55f8ed..4685c550 100644 --- a/util.c +++ b/util.c @@ -1054,7 +1054,7 @@ struct tcb *tcp; #elif defined (POWERPC) #define LOOP 0x0000feeb #elif defined(ARM) -#define LOOP -1 /* almost certainly wrong, jws */ +#define LOOP 0xfeffffea #elif defined(MIPS) #define LOOP 0x1000ffff #elif defined(S390)