diff options
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_dummy.c | 24 | ||||
-rw-r--r-- | sys/compat/linux/linux_error.c | 5 | ||||
-rw-r--r-- | sys/compat/linux/syscalls.master | 26 |
3 files changed, 39 insertions, 16 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); diff --git a/sys/compat/linux/linux_error.c b/sys/compat/linux/linux_error.c index 0551a2954ea..085e6dbef8d 100644 --- a/sys/compat/linux/linux_error.c +++ b/sys/compat/linux/linux_error.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_error.c,v 1.2 1996/04/17 05:23:45 mickey Exp $ */ +/* $OpenBSD: linux_error.c,v 1.3 2003/09/04 02:57:22 tedu Exp $ */ /* $NetBSD: linux_error.c,v 1.2 1995/04/22 19:48:32 christos Exp $ */ /* @@ -117,7 +117,8 @@ int linux_error[] = { -LINUX_ENOSYS, /* not mapped (EFTYPE) */ -LINUX_ENOSYS, /* not mapped (EAUTH) */ -LINUX_ENOSYS, /* not mapped (ENEEDAUTH) */ - -LINUX_ENOSYS, /* not mapped (ELAST) */ + -LINUX_ENOSYS, /* not mapped (EIPSEC) */ + -LINUX_EOPNOTSUPP, /* what is ENOATTR? */ /* * The rest of the list consists of errors that only diff --git a/sys/compat/linux/syscalls.master b/sys/compat/linux/syscalls.master index 5266a104e70..cfbd0dd8aa7 100644 --- a/sys/compat/linux/syscalls.master +++ b/sys/compat/linux/syscalls.master @@ -1,4 +1,4 @@ - $OpenBSD: syscalls.master,v 1.44 2003/09/01 14:00:23 fgsch Exp $ + $OpenBSD: syscalls.master,v 1.45 2003/09/04 02:57:22 tedu Exp $ ; $NetBSD: syscalls.master,v 1.15 1995/12/18 14:35:10 fvdl Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -362,18 +362,18 @@ 223 UNIMPL 224 UNIMPL linux_sys_gettid 225 UNIMPL linux_sys_readahead -226 UNIMPL linux_sys_setxattr -227 UNIMPL linux_sys_lsetxattr -228 UNIMPL linux_sys_fsetxattr -229 UNIMPL linux_sys_getxattr -230 UNIMPL linux_sys_lgetxattr -231 UNIMPL linux_sys_fgetxattr -232 UNIMPL linux_sys_listxattr -233 UNIMPL linux_sys_llistxattr -234 UNIMPL linux_sys_flistxattr -235 UNIMPL linux_sys_removexattr -236 UNIMPL linux_sys_lremovexattr -237 UNIMPL linux_sys_fremovexattr +226 NOARGS { int linux_sys_setxattr(void); } +227 NOARGS { int linux_sys_lsetxattr(void); } +228 NOARGS { int linux_sys_fsetxattr(void); } +229 NOARGS { int linux_sys_getxattr(void); } +230 NOARGS { int linux_sys_lgetxattr(void); } +231 NOARGS { int linux_sys_fgetxattr(void); } +232 NOARGS { int linux_sys_listxattr(void); } +233 NOARGS { int linux_sys_llistxattr(void); } +234 NOARGS { int linux_sys_flistxattr(void); } +235 NOARGS { int linux_sys_removexattr(void); } +236 NOARGS { int linux_sys_lremovexattr(void); } +237 NOARGS { int linux_sys_fremovexattr(void); } 238 UNIMPL linux_sys_tkill 239 UNIMPL linux_sys_sendfile64 240 UNIMPL linux_sys_futex |