1 /* Convert between the kernel's `struct stat' format, and libc's. 2 Copyright (C) 1991,1995,1996,1997,2000,2002 Free Software Foundation, Inc. 3 This file is part of the GNU C Library. 4 5 The GNU C Library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public 7 License as published by the Free Software Foundation; either 8 version 2.1 of the License, or (at your option) any later version. 9 10 The GNU C Library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with the GNU C Library; if not, see 17 <http://www.gnu.org/licenses/>. 18 19 Modified for uClibc by Erik Andersen <andersen@codepoet.org> 20 */ 21 22 /* Pull in whatever this particular arch's kernel thinks the kernel version of 23 * struct stat should look like. It turns out that each arch has a different 24 * opinion on the subject, and different kernel revs use different names... */ 25 #include <features.h> 26 #include <bits/kernel_stat.h> 27 28 #ifdef __ARCH_HAS_DEPRECATED_SYSCALLS__ 29 extern void __xstat_conv(struct kernel_stat *kbuf, struct stat *buf) attribute_hidden; 30 extern void __xstat32_conv(struct kernel_stat64 *kbuf, struct stat *buf) attribute_hidden; 31 #if defined __UCLIBC_HAS_LFS__ 32 extern void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf) attribute_hidden; 33 #endif 34 #endif 35 36