]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/fcntl.h
Fix Linux fcntl OFD locks for non-LFS architectures (BZ#20251)
[thirdparty/glibc.git] / include / fcntl.h
CommitLineData
6796bc80 1#ifndef _FCNTL_H
28f540f4 2#include <io/fcntl.h>
bdbf022d 3
31341567 4#ifndef _ISOMAC
bdbf022d 5/* Now define the internal interfaces. */
a784e502 6extern int __open64 (const char *__file, int __oflag, ...);
37ba7d66 7libc_hidden_proto (__open64)
762e5d48
UD
8extern int __libc_open64 (const char *file, int oflag, ...);
9extern int __libc_open (const char *file, int oflag, ...);
37ba7d66 10libc_hidden_proto (__libc_open)
329ea513 11extern int __libc_fcntl (int fd, int cmd, ...);
37ba7d66 12libc_hidden_proto (__libc_fcntl)
06ab719d
AZ
13extern int __fcntl64_nocancel_adjusted (int fd, int cmd, void *arg)
14 attribute_hidden;
15extern int __libc_fcntl64 (int fd, int cmd, ...);
16libc_hidden_proto (__libc_fcntl64)
a784e502 17extern int __open (const char *__file, int __oflag, ...);
37ba7d66 18libc_hidden_proto (__open)
6b87a564 19extern int __fcntl (int __fd, int __cmd, ...);
37ba7d66 20libc_hidden_proto (__fcntl)
06ab719d
AZ
21extern int __fcntl64 (int __fd, int __cmd, ...) attribute_hidden;
22libc_hidden_proto (__fcntl64)
a784e502 23extern int __openat (int __fd, const char *__file, int __oflag, ...)
e2c7e1de
RM
24 __nonnull ((2));
25libc_hidden_proto (__openat)
a784e502 26extern int __openat64 (int __fd, const char *__file, int __oflag, ...)
e2c7e1de
RM
27 __nonnull ((2));
28libc_hidden_proto (__openat64)
29
a784e502
UD
30extern int __open_2 (const char *__path, int __oflag);
31extern int __open64_2 (const char *__path, int __oflag);
32extern int __openat_2 (int __fd, const char *__path, int __oflag);
33extern int __openat64_2 (int __fd, const char *__path, int __oflag);
ddfd0535 34
762e5d48 35
6d56699d 36#if IS_IN (rtld)
d2129ad4 37# include <dl-fcntl.h>
6d56699d
L
38#endif
39
7c65e900
UD
40/* Flag determining whether the *at system calls are available. */
41extern int __have_atfcts attribute_hidden;
31341567 42#endif
cbf0489b 43
6796bc80 44#endif