diff options
| author | Stacey Son <sson@FreeBSD.org> | 2023-09-25 21:24:14 +0300 |
|---|---|---|
| committer | Warner Losh <imp@bsdimp.com> | 2023-10-03 17:14:06 -0600 |
| commit | 615ad41c614bf0f2011bba43116434b66e40abc0 (patch) | |
| tree | f6da35b43ab1e347801b815dfef4552b8597dace /bsd-user/bsd-proc.h | |
| parent | 932683c3d421a2057e15cd7f87ad781c3d65fc95 (diff) | |
| download | focaccia-qemu-615ad41c614bf0f2011bba43116434b66e40abc0.tar.gz focaccia-qemu-615ad41c614bf0f2011bba43116434b66e40abc0.zip | |
bsd-user: Add stubs for profil(2), ktrace(2), utrace(2) and ptrace(2).
Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Message-Id: <20230925182425.3163-18-kariem.taha2.7@gmail.com>
Diffstat (limited to 'bsd-user/bsd-proc.h')
| -rw-r--r-- | bsd-user/bsd-proc.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h index a5f301c72f..2c1a9ae22f 100644 --- a/bsd-user/bsd-proc.h +++ b/bsd-user/bsd-proc.h @@ -362,4 +362,32 @@ static inline abi_long do_bsd_issetugid(void) return get_errno(issetugid()); } +/* profil(2) */ +static inline abi_long do_bsd_profil(abi_long arg1, abi_long arg2, + abi_long arg3, abi_long arg4) +{ + return -TARGET_ENOSYS; +} + +/* ktrace(2) */ +static inline abi_long do_bsd_ktrace(abi_long arg1, abi_long arg2, + abi_long arg3, abi_long arg4) +{ + return -TARGET_ENOSYS; +} + +/* utrace(2) */ +static inline abi_long do_bsd_utrace(abi_long arg1, abi_long arg2) +{ + return -TARGET_ENOSYS; +} + + +/* ptrace(2) */ +static inline abi_long do_bsd_ptrace(abi_long arg1, abi_long arg2, + abi_long arg3, abi_long arg4) +{ + return -TARGET_ENOSYS; +} + #endif /* !BSD_PROC_H_ */ |