summaryrefslogtreecommitdiffstats
path: root/sys/amd64/linux32/linux.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2007-03-29 02:11:46 +0000
committerjulian <julian@FreeBSD.org>2007-03-29 02:11:46 +0000
commit93fc8e768e49d2737c73c10e780d085f9fe2de7d (patch)
treef48ac269cb2bbda7e0d9278c796db1a7d0a2cb59 /sys/amd64/linux32/linux.h
parentfdf75b902074d70bcb83a0421e1e7a1ef8f5bed5 (diff)
downloadFreeBSD-src-93fc8e768e49d2737c73c10e780d085f9fe2de7d.zip
FreeBSD-src-93fc8e768e49d2737c73c10e780d085f9fe2de7d.tar.gz
Implement the openat() linux syscall
Submitted by: Roman Divacky (rdivacky@) MFC after: 2 weeks
Diffstat (limited to 'sys/amd64/linux32/linux.h')
-rw-r--r--sys/amd64/linux32/linux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h
index cf9b14c..b998402 100644
--- a/sys/amd64/linux32/linux.h
+++ b/sys/amd64/linux32/linux.h
@@ -531,6 +531,7 @@ int linux_ioctl_unregister_handler(struct linux_ioctl_handler *h);
#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
@@ -565,6 +566,8 @@ int linux_ioctl_unregister_handler(struct linux_ioctl_handler *h);
#define LINUX_F_WRLCK 1
#define LINUX_F_UNLCK 2
+#define LINUX_AT_FDCWD -100
+
/*
* mount flags
*/
OpenPOWER on IntegriCloud