OSDN Git Service

hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing...
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / frv / fstat64.c
1 /*
2  * Syscalls for uClibc
3  *
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>
7  *
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.
12  *
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
16  * for more details.
17  *
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
21  *
22  */
23
24 #define _GNU_SOURCE
25 #define _LARGEFILE64_SOURCE
26 #include <features.h>
27 #undef __OPTIMIZE__
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
32 #endif
33
34 #include <errno.h>
35 #include <sys/types.h>
36 #include <sys/syscall.h>
37 #include <endian.h>
38
39 #include <unistd.h>
40 #define _SYS_STAT_H
41 #include <bits/stat.h>
42
43 #if defined __UCLIBC_HAS_LFS__
44 #define __NR___syscall_fstat64 __NR_fstat64
45 attribute_hidden _syscall2(int, __syscall_fstat64, int, fd, struct stat64 *, buf);
46 strong_alias(__syscall_fstat64,fstat64)
47 libc_hidden_proto(fstat64)
48 libc_hidden_def(fstat64)
49 #endif