diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2000-11-02 23:31:28 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-11-02 23:31:28 +0000 |
| commit | 75f73770ab9a3c3af37cba510bec09ad284e0e23 (patch) | |
| tree | 1830a2ce6cc9c7de233e6e9b1d2ad6cd2d4aa436 /sys/compat/linux/linux_util.h | |
| parent | 7efae94e4745fb0212af8ac52806357f57fe87cf (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux/linux_util.h')
| -rw-r--r-- | sys/compat/linux/linux_util.h | 17 |
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_ */ |
