4 * Copyright (C) 2001-2003 by Erik Andersen
5 * Extracted from ../common/syscalls.c by Erik Andersen <andersen@codepoet.org>
6 * Adapted to FR-V by Alexandre Oliva <aoliva@redhat.com>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Library General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
18 * You should have received a copy of the GNU Library General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #define _LARGEFILE64_SOURCE
28 /* We absolutely do _NOT_ want interfaces silently
29 * * * renamed under us or very bad things will happen... */
30 #ifdef __USE_FILE_OFFSET64
31 # undef __USE_FILE_OFFSET64
35 #include <sys/types.h>
36 #include <sys/syscall.h>
41 #include <bits/stat.h>
43 #if defined __UCLIBC_HAS_LFS__
44 #define __NR___syscall_stat64 __NR_stat64
45 attribute_hidden _syscall2(int, __syscall_stat64, const char *, file_name, struct stat64 *, buf);
46 strong_alias(__syscall_stat64,stat64)
47 libc_hidden_proto(stat64)
48 libc_hidden_def(stat64)