4 * Copyright (C) 2009 Analog Devices Inc.
6 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
9 #include <sys/syscall.h>
15 # define __NR___syscall_openat __NR_openat
16 static __inline__
_syscall4(int, __syscall_openat
, int, fd
, const char *, file
, int, oflag
, mode_t
, mode
)
18 int __openat(int fd
, const char *file
, int o_flag
, ...)
27 mode
= va_arg(ap
, int);
31 return __syscall_openat(fd
, file
, o_flag
, mode
);
34 oldtype
= LIBC_CANCEL_ASYNC ();
35 result
= __syscall_openat(fd
, file
, o_flag
, mode
);
36 LIBC_CANCEL_RESET (oldtype
);
41 strong_alias_untyped(__openat
,openat
)
42 libc_hidden_def(openat
)
44 /* should add emulation with open() and /proc/self/fd/ ... */