summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_dummy.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-09-04 02:57:23 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-09-04 02:57:23 +0000
commit6975e59afd6f7c30dd6639ebbe18aee1c403d038 (patch)
treed5d20a44f953fdb67b10144993374a4bd9349d35 /sys/compat/linux/linux_dummy.c
parent61fde54a1db58915eaf09c252a54867de7e503b6 (diff)
dummy xattr syscalls. ok deraadt@
Diffstat (limited to 'sys/compat/linux/linux_dummy.c')
-rw-r--r--sys/compat/linux/linux_dummy.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_dummy.c b/sys/compat/linux/linux_dummy.c
index bd1eb7291cf..57166f51ab7 100644
--- a/sys/compat/linux/linux_dummy.c
+++ b/sys/compat/linux/linux_dummy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_dummy.c,v 1.13 2003/09/01 14:00:23 fgsch Exp $ */
+/* $OpenBSD: linux_dummy.c,v 1.14 2003/09/04 02:57:22 tedu Exp $ */
/*-
* Copyright (c) 1994-1995 Søren Schmidt
@@ -117,3 +117,25 @@ DUMMY(pivot_root); /* #217 */
DUMMY(mincore); /* #218 */
DUMMY(madvise); /* #219 */
DUMMY(fadvise64); /* #250 */
+
+#define DUMMY_XATTR(s) \
+int \
+linux_sys_ ## s ## xattr(p, v, retval) \
+ struct proc *p; \
+ void *v; \
+ register_t *retval; \
+{ \
+ return (ENOATTR); \
+}
+DUMMY_XATTR(set);
+DUMMY_XATTR(lset);
+DUMMY_XATTR(fset);
+DUMMY_XATTR(get);
+DUMMY_XATTR(lget);
+DUMMY_XATTR(fget);
+DUMMY_XATTR(list);
+DUMMY_XATTR(llist);
+DUMMY_XATTR(flist);
+DUMMY_XATTR(remove);
+DUMMY_XATTR(lremove);
+DUMMY_XATTR(fremove);