logo

mstrace

Small Linux strace(1) implementationgit clone https://anongit.hacktivis.me/git/mstrace.git/
commit: 73bb35d3d22cac2fe977040086cca53a1463944b
parent 08b2728ab76bc29230377dcbb445a05028f63ee0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 15 Oct 2025 07:56:32 +0200

syscalls.{sh,txt}: add copyright headers

Diffstat:

Msyscalls.sh6++++--
Msyscalls.txt2++
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/syscalls.sh b/syscalls.sh @@ -1,6 +1,8 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2024 Haelwenn (lanodan) Monnier <contact+mstrace@hacktivis.me> +# SPDX-License-Identifier: MPL-2.0 -while read syscall args +grep -v '^#' syscalls.txt | while read syscall args do fmt='">%s("' fmt_args='str_syscalls[nr]' @@ -53,4 +55,4 @@ do printf ' case SYS_%s:\n' "$syscall" printf ' fprintf(out, %s, %s);\n' "$fmt" "$fmt_args" printf ' return;\n' -done <syscalls.txt >syscalls_cases.h +done >syscalls_cases.h diff --git a/syscalls.txt b/syscalls.txt @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Haelwenn (lanodan) Monnier <contact+mstrace@hacktivis.me> +# SPDX-License-Identifier: MPL-2.0 io_setup uint hex io_destroy hex io_submit hex int hex