]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/openat.c
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / common / openat.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 <sys/syscall.h>
10 #include <fcntl.h>
11
12 #ifdef __NR_openat
13 # define __NR___syscall_openat __NR_openat
14 static __inline__ _syscall4(int, __syscall_openat, int, fd, const char *, file, int, oflag, mode_t, mode)
15 strong_alias_untyped(__syscall_openat,openat)
16 libc_hidden_def(openat)
17 #else
18 /* should add emulation with open() and /proc/self/fd/ ... */
19 #endif