From: guenther Date: Thu, 18 May 2023 16:07:12 +0000 (+0000) Subject: Add PROTO_NORMAL() declarations for utrace (and ktrace) syscalls X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4f585c7eec19db6651ad22016024ecf9f5410251;p=openbsd Add PROTO_NORMAL() declarations for utrace (and ktrace) syscalls so that the internal call can't be interposed over by the app. ok tb@ otto@ deraadt@ --- diff --git a/lib/libc/hidden/sys/ktrace.h b/lib/libc/hidden/sys/ktrace.h new file mode 100644 index 00000000000..965b695f00c --- /dev/null +++ b/lib/libc/hidden/sys/ktrace.h @@ -0,0 +1,26 @@ +/* $OpenBSD: ktrace.h,v 1.1 2023/05/18 16:07:12 guenther Exp $ */ +/* + * Copyright (c) 2023 Philip Guenther + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _LIBC_SYS_KTRACE_H_ +#define _LIBC_SYS_KTRACE_H_ + +#include_next + +PROTO_NORMAL(ktrace); +PROTO_NORMAL(utrace); + +#endif /* !_LIBC_SYS_KTRACE_H_ */