Contents of /trunk/mkinitrd-magellan/klibc/usr/include/fcntl.h
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (17 years ago) by niro
File MIME type: text/plain
File size: 958 byte(s)
Sat Sep 1 22:45:15 2007 UTC (17 years ago) by niro
File MIME type: text/plain
File size: 958 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | /* |
2 | * fcntl.h |
3 | */ |
4 | |
5 | #ifndef _FCNTL_H |
6 | #define _FCNTL_H |
7 | |
8 | #include <klibc/extern.h> |
9 | #include <klibc/compiler.h> |
10 | #include <sys/types.h> |
11 | #if defined(__mips__) && !defined(__mips64__) |
12 | # include <klibc/archfcntl.h> |
13 | #endif |
14 | #include <linux/fcntl.h> |
15 | |
16 | /* This is ugly, but "struct flock" has actually been defined with |
17 | a long off_t, so it's really "struct flock64". It just happens |
18 | to work. Gag. Barf. |
19 | |
20 | This happens to work on all 32-bit architectures except MIPS. */ |
21 | |
22 | #ifdef F_GETLK64 |
23 | # undef F_GETLK |
24 | # define F_GETLK F_GETLK64 |
25 | #endif |
26 | |
27 | #ifdef F_SETLK64 |
28 | # undef F_SETLK |
29 | # define F_SETLK F_SETLK64 |
30 | #endif |
31 | |
32 | #ifdef F_SETLKW64 |
33 | # undef F_SETLKW |
34 | # define F_SETLKW F_SETLKW64 |
35 | #endif |
36 | |
37 | /* This is defined here as well as in <unistd.h> */ |
38 | #ifndef _KLIBC_IN_OPEN_C |
39 | __extern int open(const char *, int, ...); |
40 | __extern int openat(int, const char *, int, ...); |
41 | #endif |
42 | |
43 | __extern int creat(const char *, mode_t); |
44 | __extern int fcntl(int, int, ...); |
45 | |
46 | #endif /* _FCNTL_H */ |