summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2015-05-24 16:31:44 +0000
committerdchagin <dchagin@FreeBSD.org>2015-05-24 16:31:44 +0000
commitdb8a000521e6e8da552691bb097b52a61cc1057d (patch)
tree8e7ee85d9e9437761568e21eedcbe5ca3306f6aa /sys/i386/linux/linux.h
parentd1ecbe4998ae401b8799ace2c9bc618643f118d2 (diff)
downloadFreeBSD-src-db8a000521e6e8da552691bb097b52a61cc1057d.zip
FreeBSD-src-db8a000521e6e8da552691bb097b52a61cc1057d.tar.gz
To avoid code duplication move open/fcntl definitions to the MI
header file. Differential Revision: https://reviews.freebsd.org/D1087 Reviewed by: trasz
Diffstat (limited to 'sys/i386/linux/linux.h')
-rw-r--r--sys/i386/linux/linux.h37
1 files changed, 1 insertions, 36 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index 5e23d07..cffa5c2 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -497,47 +497,12 @@ struct l_rt_sigframe {
extern struct sysentvec linux_sysvec;
/*
- * open/fcntl flags
+ * arch specific open/fcntl flags
*/
-#define LINUX_O_RDONLY 00000000
-#define LINUX_O_WRONLY 00000001
-#define LINUX_O_RDWR 00000002
-#define LINUX_O_ACCMODE 00000003
-#define LINUX_O_CREAT 00000100
-#define LINUX_O_EXCL 00000200
-#define LINUX_O_NOCTTY 00000400
-#define LINUX_O_TRUNC 00001000
-#define LINUX_O_APPEND 00002000
-#define LINUX_O_NONBLOCK 00004000
-#define LINUX_O_NDELAY LINUX_O_NONBLOCK
-#define LINUX_O_SYNC 00010000
-#define LINUX_FASYNC 00020000
-#define LINUX_O_DIRECT 00040000 /* Direct disk access hint */
-#define LINUX_O_LARGEFILE 00100000
-#define LINUX_O_DIRECTORY 00200000 /* Must be a directory */
-#define LINUX_O_NOFOLLOW 00400000 /* Do not follow links */
-#define LINUX_O_NOATIME 01000000
-#define LINUX_O_CLOEXEC 02000000
-
-#define LINUX_F_DUPFD 0
-#define LINUX_F_GETFD 1
-#define LINUX_F_SETFD 2
-#define LINUX_F_GETFL 3
-#define LINUX_F_SETFL 4
-#define LINUX_F_GETLK 5
-#define LINUX_F_SETLK 6
-#define LINUX_F_SETLKW 7
-#define LINUX_F_SETOWN 8
-#define LINUX_F_GETOWN 9
-
#define LINUX_F_GETLK64 12
#define LINUX_F_SETLK64 13
#define LINUX_F_SETLKW64 14
-#define LINUX_F_RDLCK 0
-#define LINUX_F_WRLCK 1
-#define LINUX_F_UNLCK 2
-
union l_semun {
l_int val;
struct l_semid_ds *buf;
OpenPOWER on IntegriCloud