diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1998-09-17 20:50:26 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1998-09-17 20:50:26 +0000 |
commit | aa6870f492f411eb51116a48d1d18aeee389d3f4 (patch) | |
tree | fbdb927049d1fbf0c33754625edcfe665f2105e7 /sys/xfs/xfs_syscalls.c | |
parent | 7f1522937a358d5c3acbcf7322c3acb96d8616f8 (diff) |
implement a dummy syscall when XFS is not defined and add PROBE
Diffstat (limited to 'sys/xfs/xfs_syscalls.c')
-rw-r--r-- | sys/xfs/xfs_syscalls.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/xfs/xfs_syscalls.c b/sys/xfs/xfs_syscalls.c index 1c2f837c912..0c6fadc1bcf 100644 --- a/sys/xfs/xfs_syscalls.c +++ b/sys/xfs/xfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xfs_syscalls.c,v 1.4 1998/09/06 01:48:58 art Exp $ */ +/* $OpenBSD: xfs_syscalls.c,v 1.5 1998/09/17 20:50:25 art Exp $ */ /* * Copyright (c) 1995, 1996, 1997, 1998 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). @@ -48,6 +48,15 @@ #include <sys/systm.h> #include <sys/proc.h> #include <sys/vnode.h> +#include <sys/syscallargs.h> + +#ifndef XFS +int +sys_xfspioctl(struct proc *p, void *v, int *i) +{ + return ENOSYS; +} +#else #include <xfs/xfs_common.h> @@ -64,7 +73,6 @@ RCSID("$KTH: xfs_syscalls.c,v 1.20 1998/07/19 21:18:30 art Exp $"); /* Misc syscalls */ #include <xfs/xfs_pioctl.h> -#include <sys/syscallargs.h> #ifdef ACTUALLY_LKM_NOT_KERNEL @@ -293,6 +301,9 @@ sys_xfspioctl(struct proc *p, void *v, int *i) int error = EINVAL; switch (SCARG(arg, operation)) { + case AFSCALL_PROBE: + error = 0; + break; case AFSCALL_PIOCTL: error = xfs_pioctl_call(p, v, i); break; @@ -446,3 +457,4 @@ xfs_stat_syscalls(void) #endif #endif /* ACTUALLY_LKM_NOT_KERNEL */ +#endif /* !XFS */ |