summaryrefslogtreecommitdiff
path: root/include/fcntl.h
blob: f00881449dacb0f107f3a9ddc698e01b0ab3b669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef _FCNTL_H
#include <io/fcntl.h>

/* Now define the internal interfaces.  */
extern int __open64 (__const char *__file, int __oflag, ...);
libc_hidden_proto (__open64)
extern int __libc_open64 (const char *file, int oflag, ...);
extern int __libc_open (const char *file, int oflag, ...);
libc_hidden_proto (__libc_open)
extern int __libc_creat (const char *file, mode_t mode);
extern int __libc_fcntl (int fd, int cmd, ...);
#ifndef NO_CANCELLATION
extern int __fcntl_nocancel (int fd, int cmd, ...) attribute_hidden;
libc_hidden_proto (__libc_fcntl)
#endif
extern int __open (__const char *__file, int __oflag, ...);
libc_hidden_proto (__open)
extern int __fcntl (int __fd, int __cmd, ...);
libc_hidden_proto (__fcntl)

/* Helper functions for the various *at functions.  For Linux.  */
extern void __atfct_seterrno (int errval, int fd, const char *buf)
  attribute_hidden;
extern void __atfct_seterrno_2 (int errval, int fd1, const char *buf1,
				int fd2, const char *buf2)
  attribute_hidden;


/* Flag determining whether the *at system calls are available.  */
extern int __have_atfcts attribute_hidden;

#endif