From 14c6293257eae377415d84ede9d118988e6474ce Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 24 Jan 2003 11:52:51 +0000 Subject: I thought it would be smaller to inline since these funcs are small. Well, not inlining saves 300 bytes, so do that instead. -Erik --- libc/sysdeps/linux/common/xstatconv.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 libc/sysdeps/linux/common/xstatconv.h (limited to 'libc/sysdeps/linux/common/xstatconv.h') diff --git a/libc/sysdeps/linux/common/xstatconv.h b/libc/sysdeps/linux/common/xstatconv.h new file mode 100644 index 000000000..fd3b81b34 --- /dev/null +++ b/libc/sysdeps/linux/common/xstatconv.h @@ -0,0 +1,30 @@ +/* Convert between the kernel's `struct stat' format, and libc's. + Copyright (C) 1991,1995,1996,1997,2000,2002 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 + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. + + Modified for uClibc by Erik Andersen + */ + +/* Pull in whatever this particular arch's kernel thinks the kernel version of + * struct stat should look like. It turns out that each arch has a different + * opinion on the subject, and different kernel revs use different names... */ +#include + +extern void __xstat_conv(struct kernel_stat *kbuf, struct stat *buf); +extern void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf); + -- cgit v1.2.3