2003-06-17 Guido Guenther <agx@sigxcpu.org>

* sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
	case.
	(xstat_conv): Rename to __xstat_conv and remove static inline.
	(xstat64_conv): Likewise.
This commit is contained in:
Andreas Jaeger 2003-06-30 09:33:13 +00:00
parent e479cc8e4c
commit 7efbf47cb0

View File

@ -1,5 +1,5 @@
/* Convert between the kernel's `struct stat' format, and libc's. /* Convert between the kernel's `struct stat' format, and libc's.
Copyright (C) 1991,1995,1996,1997,1998,2000 Free Software Foundation, Inc. Copyright (C) 1991,1995,1996,1997,1998,2000,2003 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -17,11 +17,22 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */ 02111-1307 USA. */
#include <errno.h>
#include <sys/stat.h>
#include <kernel_stat.h>
#ifdef STAT_IS_KERNEL_STAT
/* Dummy. */
struct kernel_stat;
#else
#include <string.h> #include <string.h>
static inline int int
xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf) __xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
{ {
switch (vers) switch (vers)
{ {
@ -70,8 +81,8 @@ xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
return 0; return 0;
} }
static inline int int
xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf) __xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
{ {
#ifdef XSTAT_IS_XSTAT64 #ifdef XSTAT_IS_XSTAT64
return xstat_conv (vers, kbuf, ubuf); return xstat_conv (vers, kbuf, ubuf);
@ -118,3 +129,5 @@ xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
return 0; return 0;
#endif #endif
} }
#endif /* ! STAT_IS_KERNEL_STAT */