mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
use DUMMY macro and support from linux_util.h
This commit is contained in:
parent
b36abb04e5
commit
d0ce99c874
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68213
@ -35,22 +35,8 @@
|
||||
|
||||
#include <alpha/linux/linux.h>
|
||||
#include <linux_proto.h>
|
||||
#include <compat/linux/linux_util.h>
|
||||
|
||||
#define DUMMY(s) \
|
||||
int \
|
||||
linux_ ## s(struct proc *p, struct linux_ ## s ## _args *args) \
|
||||
{ \
|
||||
return (unsupported_msg(p, #s)); \
|
||||
} \
|
||||
struct __hack
|
||||
|
||||
static int
|
||||
unsupported_msg(struct proc *p, const char *fname)
|
||||
{
|
||||
printf("linux: syscall %s is obsoleted or not implemented (pid=%ld)\n",
|
||||
fname, (long)p->p_pid);
|
||||
return (ENOSYS);
|
||||
}
|
||||
|
||||
DUMMY(mount);
|
||||
DUMMY(umount);
|
||||
|
Loading…
Reference in New Issue
Block a user