From: Andreas Jaeger Date: Mon, 30 Jun 2003 09:33:13 +0000 (+0000) Subject: 2003-06-17 Guido Guenther X-Git-Tag: glibc-2.16-ports-merge^2~1340 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8ba6f063355f63a7550cb71a52b4d5f4f4062bd;p=platform%2Fupstream%2Fglibc.git 2003-06-17 Guido Guenther * 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. --- diff --git a/sysdeps/unix/sysv/linux/mips/xstatconv.c b/sysdeps/unix/sysv/linux/mips/xstatconv.c index b3b7634..41d1cbb 100644 --- a/sysdeps/unix/sysv/linux/mips/xstatconv.c +++ b/sysdeps/unix/sysv/linux/mips/xstatconv.c @@ -1,5 +1,5 @@ /* 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. 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 02111-1307 USA. */ +#include +#include +#include + +#ifdef STAT_IS_KERNEL_STAT + +/* Dummy. */ +struct kernel_stat; + +#else + #include -static inline int -xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf) +int +__xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf) { switch (vers) { @@ -70,8 +81,8 @@ xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf) return 0; } -static inline int -xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf) +int +__xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf) { #ifdef XSTAT_IS_XSTAT64 return xstat_conv (vers, kbuf, ubuf); @@ -118,3 +129,5 @@ xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf) return 0; #endif } + +#endif /* ! STAT_IS_KERNEL_STAT */