OSDN Git Service

lseek: Correct order of offset arguments
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / openat64.c
1 /*
2  * openat() for uClibc
3  *
4  * Copyright (C) 2009 Analog Devices Inc.
5  *
6  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7  */
8
9 #include <_lfs_64.h>
10 #include <sys/syscall.h>
11 #include <fcntl.h>
12
13 #ifdef __NR_openat
14 static int __openat64(int fd, const char *file, int oflag, mode_t mode)
15 {
16         return openat(fd, file, oflag | O_LARGEFILE, mode);
17 }
18 strong_alias_untyped(__openat64,openat64)
19 #else
20 /* should add emulation with open() and /proc/self/fd/ ... */
21 #endif