Use the kernel's struct stat instead of libc's.

This commit is contained in:
Nate Sammons 1999-04-05 22:39:31 +00:00
parent 94fe3a0be1
commit 771a6ff03c

11
file.c
View File

@ -453,12 +453,21 @@ int addr;
}
#endif
#ifdef LINUX
/* Get the kernel's idea of struct stat. */
#define stat kernel_stat
#include <asm/stat.h>
#undef stat
#else /* LINUX */
#define kernel_stat stat
#endif /* LINUX */
static void
printstat(tcp, addr)
struct tcb *tcp;
int addr;
{
struct stat statbuf;
struct kernel_stat statbuf;
#ifdef LINUXSPARC
if (current_personality == 1) {