diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-12-19 17:06:51 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-12-19 17:06:51 +0000 |
| commit | 1a88b5af68a56d59f642e82438c4419fed42d8af (patch) | |
| tree | 9279ceee3bce064173305d9b124c7f7bf57df5ff | |
| parent | e67cd39a1a1e77921d730030af2504f477ad3c7f (diff) | |
Notes
| -rw-r--r-- | sys/compat/linux/linux_util.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/compat/linux/linux_util.h b/sys/compat/linux/linux_util.h index 6aad44dd89ee..49a535d621be 100644 --- a/sys/compat/linux/linux_util.h +++ b/sys/compat/linux/linux_util.h @@ -97,19 +97,17 @@ int linux_emul_convpath(struct thread *, char *, enum uio_seg, char **, int); int \ linux_ ## s(struct thread *td, struct linux_ ## s ## _args *args) \ { \ - return (unimplemented_syscall(td, #s)); \ + static pid_t pid; \ + \ + if (pid != td->td_proc->p_pid) { \ + linux_msg(td, "syscall %s not implemented", #s); \ + pid = td->td_proc->p_pid; \ + }; \ + return (ENOSYS); \ } \ struct __hack void linux_msg(const struct thread *td, const char *fmt, ...) __printflike(2, 3); -static __inline int -unimplemented_syscall(struct thread *td, const char *syscallname) -{ - - linux_msg(td, "syscall %s not implemented", syscallname); - return (ENOSYS); -} - #endif /* !_LINUX_UTIL_H_ */ |
