OSDN Git Service

hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing...
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / __syscall_fcntl64.c
1 /* vi: set sw=4 ts=4: */
2 /*
3  * __syscall_fcntl64() for uClibc
4  *
5  * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
6  *
7  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8  */
9
10 #include "syscalls.h"
11 #include <stdarg.h>
12 #include <fcntl.h>
13
14 #if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
15 #define __NR___syscall_fcntl64 __NR_fcntl64
16 static inline _syscall3(int, __syscall_fcntl64, int, fd, int, cmd, long, arg);
17 int __libc_fcntl64(int fd, int cmd, ...)
18 {
19         long arg;
20         va_list list;
21
22         va_start(list, cmd);
23         arg = va_arg(list, long);
24
25         va_end(list);
26         return (__syscall_fcntl64(fd, cmd, arg));
27 }
28 libc_hidden_proto(__libc_fcntl64)
29 libc_hidden_def(__libc_fcntl64)
30
31 strong_alias(__libc_fcntl64,fcntl64)
32 libc_hidden_proto(fcntl64)
33 libc_hidden_def(fcntl64)
34 #endif