blob: 78914fd8fe7184b46b9fc395cfccc6b2e39d5331 (
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
|
/* libc/sys/linux/sys/fcntl.h - File access */
/* Written 2000 by Werner Almesberger */
#ifndef _SYS_FCNTL_H
#define _SYS_FCNTL_H
#include <sys/types.h>
#include <linux/fcntl.h>
/* --- redundant stuff below --- */
#include <_ansi.h>
extern int creat _PARAMS ((const char *, mode_t));
extern int _open _PARAMS ((const char *, int, ...));
#ifdef __KERNEL_PROTOTYPES
extern int open(const char *pathname, int flags, mode_t mode);
extern int fcntl(int fd, int cmd, long arg);
#else
extern int open _PARAMS ((const char *, int, ...));
extern int fcntl _PARAMS ((int, int, ...));
#endif
extern int _fcntl _PARAMS ((int, int, ...));
#endif
|