summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_util.h
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-11-01 19:48:35 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-11-01 19:48:35 +0000
commit5231fb205976315032c487476daccfbbb7ae8f5c (patch)
tree2b156115b3f326f10bc2364e69cb4b9350609bd6 /sys/compat/linux/linux_util.h
parentab3240e1987eced9159e253ab997d8afe4e54995 (diff)
Notes
Diffstat (limited to 'sys/compat/linux/linux_util.h')
-rw-r--r--sys/compat/linux/linux_util.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_util.h b/sys/compat/linux/linux_util.h
index 444c9a528d16..81bacc23dfec 100644
--- a/sys/compat/linux/linux_util.h
+++ b/sys/compat/linux/linux_util.h
@@ -92,4 +92,21 @@ int linux_emul_find __P((struct proc *, caddr_t *, const char *, char *,
#define CHECKALTEXIST(p, sgp, path) CHECKALT(p, sgp, path, 0)
#define CHECKALTCREAT(p, sgp, path) CHECKALT(p, sgp, path, 1)
+#define DUMMY(s) \
+int \
+linux_ ## s(struct proc *p, struct linux_ ## s ## _args *args) \
+{ \
+ return (unsupported_msg(p, #s)); \
+} \
+struct __hack
+
+static __inline 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);
+}
+
#endif /* !_LINUX_UTIL_H_ */