diff --git a/access.c b/access.c index a9663dc1cf..5c2e6e99ea 100644 --- a/access.c +++ b/access.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" #include diff --git a/arch_defs.h b/arch_defs.h index af2a06b697..19ca4a852d 100644 --- a/arch_defs.h +++ b/arch_defs.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 Dmitry V. Levin + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Architecture-specific definitions. */ #ifndef STRACE_ARCH_DEFS_H #define STRACE_ARCH_DEFS_H diff --git a/bootstrap b/bootstrap index bb3d466a64..290d819a82 100755 --- a/bootstrap +++ b/bootstrap @@ -1,4 +1,9 @@ #!/bin/sh -eu +# +# Copyright (c) 2014-2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later ./m4/gen_bpf_attr_m4.sh ./generate_mpers_am.sh diff --git a/bpf_fprog.h b/bpf_fprog.h index daaa01cd0f..ebf2d1ba2f 100644 --- a/bpf_fprog.h +++ b/bpf_fprog.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2017-2018 Dmitry V. Levin + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef STRACE_BPF_FPROG_H #define STRACE_BPF_FPROG_H diff --git a/caps0.h b/caps0.h index ad206ffaf0..4398236a88 100644 --- a/caps0.h +++ b/caps0.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 Dmitry V. Levin + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_DAC_READ_SEARCH, diff --git a/caps1.h b/caps1.h index d8fa6f472d..7c36160e45 100644 --- a/caps1.h +++ b/caps1.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 Dmitry V. Levin + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + CAP_MAC_OVERRIDE, CAP_MAC_ADMIN, CAP_SYSLOG, diff --git a/chdir.c b/chdir.c index e8ac28585d..b07d164e82 100644 --- a/chdir.c +++ b/chdir.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" SYS_FUNC(chdir) diff --git a/chmod.c b/chmod.c index fd76490c08..7668e746c8 100644 --- a/chmod.c +++ b/chmod.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" static void diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh index 4e5445f529..e475de3fa2 100755 --- a/ci/install-dependencies.sh +++ b/ci/install-dependencies.sh @@ -1,4 +1,9 @@ #!/bin/sh -ex +# +# Copyright (c) 2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: GPL-2.0-or-later type sudo >/dev/null 2>&1 && sudo=sudo || sudo= common_packages='autoconf automake faketime file gawk gcc-multilib git gzip libbluetooth-dev make xz-utils' diff --git a/ci/run-build-and-tests.sh b/ci/run-build-and-tests.sh index 3699ab093a..de59599b02 100755 --- a/ci/run-build-and-tests.sh +++ b/ci/run-build-and-tests.sh @@ -1,4 +1,9 @@ #!/bin/sh -ex +# +# Copyright (c) 2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: GPL-2.0-or-later DISTCHECK_CONFIGURE_FLAGS='--disable-dependency-tracking' export DISTCHECK_CONFIGURE_FLAGS diff --git a/copyright-year-gen b/copyright-year-gen index a1883a10a8..8b3317e844 100755 --- a/copyright-year-gen +++ b/copyright-year-gen @@ -1,4 +1,9 @@ -#! /bin/sh +#!/bin/sh +# +# Copyright (c) 2017-2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later : ${YEAR_FILE:=$1} : ${DEFAULT_YEAR:=$2} diff --git a/fallocate.c b/fallocate.c index b707279c51..82c0d642df 100644 --- a/fallocate.c +++ b/fallocate.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" #ifdef HAVE_LINUX_FALLOC_H diff --git a/fchownat.c b/fchownat.c index 6aed51d0b3..15fcb06366 100644 --- a/fchownat.c +++ b/fchownat.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" SYS_FUNC(fchownat) diff --git a/fetch_struct_keyctl_kdf_params.c b/fetch_struct_keyctl_kdf_params.c index 50fc9d1110..63eadb2e7b 100644 --- a/fetch_struct_keyctl_kdf_params.c +++ b/fetch_struct_keyctl_kdf_params.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 Eugene Syromyatnikov + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" #include DEF_MPERS_TYPE(struct_keyctl_kdf_params) diff --git a/fetch_struct_xfs_quotastat.c b/fetch_struct_xfs_quotastat.c index 55d82bbdfa..d78767588b 100644 --- a/fetch_struct_xfs_quotastat.c +++ b/fetch_struct_xfs_quotastat.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" #include DEF_MPERS_TYPE(struct_xfs_dqstats) diff --git a/file-date-gen b/file-date-gen index cc9b1135a8..8e35294588 100755 --- a/file-date-gen +++ b/file-date-gen @@ -1,4 +1,9 @@ -#! /bin/sh +#!/bin/sh +# +# Copyright (c) 2017-2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later if [ "$1" = "-f" ]; then shift diff --git a/fstatfs.c b/fstatfs.c index 1f35824058..e5029f32c5 100644 --- a/fstatfs.c +++ b/fstatfs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" SYS_FUNC(fstatfs) diff --git a/fstatfs64.c b/fstatfs64.c index 166fc63da4..0aac13d2ca 100644 --- a/fstatfs64.c +++ b/fstatfs64.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" SYS_FUNC(fstatfs64) diff --git a/generate_mpers_am.sh b/generate_mpers_am.sh index 833cd29b3c..7cd53438e1 100755 --- a/generate_mpers_am.sh +++ b/generate_mpers_am.sh @@ -1,4 +1,9 @@ #!/bin/sh -e +# +# Copyright (c) 2015-2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later list="$(sed -r -n '/^strace_SOURCES[[:space:]]*=/,/^[[:space:]]*# end of strace_SOURCES/ s/^[[:space:]]*([[:alnum:]][^.]*\.c)[[:space:]]*\\$/\1/p' Makefile.am | xargs -r grep -Elx '#[[:space:]]*include[[:space:]]+MPERS_DEFS' | diff --git a/generate_sen.sh b/generate_sen.sh index 33d5539224..39c9677280 100755 --- a/generate_sen.sh +++ b/generate_sen.sh @@ -1,4 +1,9 @@ #!/bin/sh -e +# +# Copyright (c) 2015-2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later echo 'enum {' echo 'SEN_printargs = 0,' diff --git a/getcpu.c b/getcpu.c index 5d0f52d136..e91c76ff2e 100644 --- a/getcpu.c +++ b/getcpu.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" SYS_FUNC(getcpu) diff --git a/getcwd.c b/getcwd.c index a8ef591b32..7c6de9afb3 100644 --- a/getcwd.c +++ b/getcwd.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" SYS_FUNC(getcwd) diff --git a/getpagesize.c b/getpagesize.c index 49c6234b92..6dae186dea 100644 --- a/getpagesize.c +++ b/getpagesize.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" SYS_FUNC(getpagesize) diff --git a/getrandom.c b/getrandom.c index ea9ad57271..4fe2645570 100644 --- a/getrandom.c +++ b/getrandom.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 Dmitry V. Levin + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" #include "xlat/getrandom_flags.h" diff --git a/hostname.c b/hostname.c index 75f96ba69c..c13cf1d2d3 100644 --- a/hostname.c +++ b/hostname.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" #ifdef HAVE_LINUX_UTSNAME_H diff --git a/ioperm.c b/ioperm.c index e9eea7f6f3..73f9fa9f3d 100644 --- a/ioperm.c +++ b/ioperm.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 Dmitry V. Levin + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" SYS_FUNC(ioperm) diff --git a/iopl.c b/iopl.c index 0f2bb32214..e4712f13d9 100644 --- a/iopl.c +++ b/iopl.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 Dmitry V. Levin + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "defs.h" SYS_FUNC(iopl) diff --git a/keyctl_kdf_params.h b/keyctl_kdf_params.h index 7f3a9dbab5..654ce94d3c 100644 --- a/keyctl_kdf_params.h +++ b/keyctl_kdf_params.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2017-2018 Eugene Syromyatnikov + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef STRACE_KEYCTL_KDF_PARAMS_H #define STRACE_KEYCTL_KDF_PARAMS_H diff --git a/linux/32/ioctls_inc.h b/linux/32/ioctls_inc.h index 27ae3f5c6f..84294ba01a 100644 --- a/linux/32/ioctls_inc.h +++ b/linux/32/ioctls_inc.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #if defined M68K # include "32/ioctls_inc_align16.h" #elif defined X86_64 || defined X32 \ diff --git a/linux/32/syscallent.h b/linux/32/syscallent.h index 8b05c75fb7..901b889fb2 100644 --- a/linux/32/syscallent.h +++ b/linux/32/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef sys_ARCH_mmap # define sys_ARCH_mmap sys_mmap #endif diff --git a/linux/64/syscallent.h b/linux/64/syscallent.h index f25c62e614..d08b16152b 100644 --- a/linux/64/syscallent.h +++ b/linux/64/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 0] = { 2, TM, SEN(io_setup), "io_setup" }, [ 1] = { 1, TM, SEN(io_destroy), "io_destroy" }, [ 2] = { 3, 0, SEN(io_submit), "io_submit" }, diff --git a/linux/aarch64/arch_defs_.h b/linux/aarch64/arch_defs_.h index 40232fd6a2..ed9261f5af 100644 --- a/linux/aarch64/arch_defs_.h +++ b/linux/aarch64/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_MMAP 1 #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/aarch64/arch_regs.c b/linux/aarch64/arch_regs.c index 03cd7d4c00..f88067dbee 100644 --- a/linux/aarch64/arch_regs.c +++ b/linux/aarch64/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + struct arm_pt_regs { uint32_t uregs[18]; }; diff --git a/linux/aarch64/get_error.c b/linux/aarch64/get_error.c index ab9fad79ac..38856a978b 100644 --- a/linux/aarch64/get_error.c +++ b/linux/aarch64/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" #define arch_get_error arm_get_error diff --git a/linux/aarch64/get_scno.c b/linux/aarch64/get_scno.c index 350f32fbbd..af758aeeee 100644 --- a/linux/aarch64/get_scno.c +++ b/linux/aarch64/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/aarch64/get_syscall_args.c b/linux/aarch64/get_syscall_args.c index f167e809fe..fce96273a4 100644 --- a/linux/aarch64/get_syscall_args.c +++ b/linux/aarch64/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define arch_get_syscall_args arm_get_syscall_args #include "arm/get_syscall_args.c" #undef arch_get_syscall_args diff --git a/linux/aarch64/set_error.c b/linux/aarch64/set_error.c index 03686092b2..bb04450d67 100644 --- a/linux/aarch64/set_error.c +++ b/linux/aarch64/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define arch_set_error arm_set_error #define arch_set_success arm_set_success #include "arm/set_error.c" diff --git a/linux/aarch64/set_scno.c b/linux/aarch64/set_scno.c index fe44672bba..e2b5d8a2ab 100644 --- a/linux/aarch64/set_scno.c +++ b/linux/aarch64/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef NT_ARM_SYSTEM_CALL # define NT_ARM_SYSTEM_CALL 0x404 #endif diff --git a/linux/aarch64/shuffle_scno.c b/linux/aarch64/shuffle_scno.c index 7d4de73c0b..a4c0d3bec6 100644 --- a/linux/aarch64/shuffle_scno.c +++ b/linux/aarch64/shuffle_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define shuffle_scno arm_shuffle_scno #include "../arm/shuffle_scno.c" #undef shuffle_scno diff --git a/linux/aarch64/syscallent.h b/linux/aarch64/syscallent.h index 188d6359bc..6016a1d145 100644 --- a/linux/aarch64/syscallent.h +++ b/linux/aarch64/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2012-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "64/syscallent.h" /* diff --git a/linux/alpha/arch_defs_.h b/linux/alpha/arch_defs_.h index f6fe59e5eb..6ae6f06281 100644 --- a/linux/alpha/arch_defs_.h +++ b/linux/alpha/arch_defs_.h @@ -1,2 +1,9 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_GETRVAL2 1 #define HAVE_ARCH_DEDICATED_ERR_REG 1 diff --git a/linux/alpha/arch_getrval2.c b/linux/alpha/arch_getrval2.c index 7953352292..6232f6fcb3 100644 --- a/linux/alpha/arch_getrval2.c +++ b/linux/alpha/arch_getrval2.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + long getrval2(struct tcb *tcp) { diff --git a/linux/alpha/arch_regs.c b/linux/alpha/arch_regs.c index a35e8651f4..ac6c35f278 100644 --- a/linux/alpha/arch_regs.c +++ b/linux/alpha/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static unsigned long alpha_r0; static unsigned long alpha_a3; diff --git a/linux/alpha/arch_sigreturn.c b/linux/alpha/arch_sigreturn.c index b8b7716ef6..57dc7c4136 100644 --- a/linux/alpha/arch_sigreturn.c +++ b/linux/alpha/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_sigreturn(struct tcb *tcp) { diff --git a/linux/alpha/errnoent.h b/linux/alpha/errnoent.h index 9a3f0d6704..4f3ec926f0 100644 --- a/linux/alpha/errnoent.h +++ b/linux/alpha/errnoent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 1999-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 1] = "EPERM", [ 2] = "ENOENT", [ 3] = "ESRCH", diff --git a/linux/alpha/get_error.c b/linux/alpha/get_error.c index 379348b6ef..3c8e8ebffe 100644 --- a/linux/alpha/get_error.c +++ b/linux/alpha/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_get_error(struct tcb *tcp, const bool check_errno) { diff --git a/linux/alpha/get_scno.c b/linux/alpha/get_scno.c index 3142da2485..2d5c6d6a19 100644 --- a/linux/alpha/get_scno.c +++ b/linux/alpha/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/alpha/get_syscall_args.c b/linux/alpha/get_syscall_args.c index 2e39b844df..381d75e67a 100644 --- a/linux/alpha/get_syscall_args.c +++ b/linux/alpha/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/alpha/get_syscall_result.c b/linux/alpha/get_syscall_result.c index e49a8253db..85fef4f941 100644 --- a/linux/alpha/get_syscall_result.c +++ b/linux/alpha/get_syscall_result.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int get_syscall_result_regs(struct tcb *tcp) { diff --git a/linux/alpha/set_error.c b/linux/alpha/set_error.c index 78a247e5ed..2136e994ad 100644 --- a/linux/alpha/set_error.c +++ b/linux/alpha/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/alpha/set_scno.c b/linux/alpha/set_scno.c index e285c9ab05..09059a38e9 100644 --- a/linux/alpha/set_scno.c +++ b/linux/alpha/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/alpha/signalent.h b/linux/alpha/signalent.h index a78e6de052..f086a42a4d 100644 --- a/linux/alpha/signalent.h +++ b/linux/alpha/signalent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 1999-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + "0", /* 0 */ "SIGHUP", /* 1 */ "SIGINT", /* 2 */ diff --git a/linux/alpha/userent.h b/linux/alpha/userent.h index 3a043b56a0..fa5240f3ab 100644 --- a/linux/alpha/userent.h +++ b/linux/alpha/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { 0, "r0" }, { 1, "r1" }, { 2, "r2" }, diff --git a/linux/arc/arch_regs.c b/linux/arc/arch_regs.c index 07849a3cee..ee11f21b15 100644 --- a/linux/arc/arch_regs.c +++ b/linux/arc/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct user_regs_struct arc_regs; #define ARCH_REGS_FOR_GETREGSET arc_regs #define ARCH_PC_REG arc_regs.efa diff --git a/linux/arc/get_error.c b/linux/arc/get_error.c index 88f9c83d2c..791a0aabde 100644 --- a/linux/arc/get_error.c +++ b/linux/arc/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/arc/get_scno.c b/linux/arc/get_scno.c index d2046b2db5..4d9a93e60c 100644 --- a/linux/arc/get_scno.c +++ b/linux/arc/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/arc/get_syscall_args.c b/linux/arc/get_syscall_args.c index acf5778c6b..94b886ea2b 100644 --- a/linux/arc/get_syscall_args.c +++ b/linux/arc/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/arc/set_error.c b/linux/arc/set_error.c index afc9bd504b..546362e431 100644 --- a/linux/arc/set_error.c +++ b/linux/arc/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/arc/set_scno.c b/linux/arc/set_scno.c index ea25d74d55..adbf218ec6 100644 --- a/linux/arc/set_scno.c +++ b/linux/arc/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/arc/syscallent.h b/linux/arc/syscallent.h index 1b7fd7727b..aed2e55a62 100644 --- a/linux/arc/syscallent.h +++ b/linux/arc/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2013-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define sys_ARCH_mmap sys_mmap_pgoff #include "32/syscallent.h" /* [244 ... 259] are arch specific */ diff --git a/linux/arch_defs_.h b/linux/arch_defs_.h index 87e200636b..f4b3a7f7be 100644 --- a/linux/arch_defs_.h +++ b/linux/arch_defs_.h @@ -1,4 +1,11 @@ -/* Fallback file for arch-specific definitions. */ +/* + * Fallback file for arch-specific definitions. + * + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ #ifndef HAVE_ARCH_GETRVAL2 # define HAVE_ARCH_GETRVAL2 0 diff --git a/linux/arch_kvm.c b/linux/arch_kvm.c index f12f32ab4f..c7ae7b7be9 100644 --- a/linux/arch_kvm.c +++ b/linux/arch_kvm.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2017-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifdef HAVE_STRUCT_KVM_REGS static void arch_print_kvm_regs(struct tcb *const tcp, diff --git a/linux/arch_sigreturn.c b/linux/arch_sigreturn.c index 8f101d84e6..318901a9b6 100644 --- a/linux/arch_sigreturn.c +++ b/linux/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_sigreturn(struct tcb *tcp) { diff --git a/linux/arm/arch_defs_.h b/linux/arm/arch_defs_.h index 1a7e176f59..0b2f3b0d6d 100644 --- a/linux/arm/arch_defs_.h +++ b/linux/arm/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_MMAP 1 #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/arm/arch_regs.c b/linux/arm/arch_regs.c index 1a8269c17f..bc453bb79a 100644 --- a/linux/arm/arch_regs.c +++ b/linux/arm/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct pt_regs arm_regs; #define ARCH_REGS_FOR_GETREGS arm_regs diff --git a/linux/arm/arch_sigreturn.c b/linux/arm/arch_sigreturn.c index 6edc764973..c26405d354 100644 --- a/linux/arm/arch_sigreturn.c +++ b/linux/arm/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_sigreturn(struct tcb *tcp) { diff --git a/linux/arm/get_error.c b/linux/arm/get_error.c index 9cd53d2e75..df0571c9ee 100644 --- a/linux/arm/get_error.c +++ b/linux/arm/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/arm/get_syscall_args.c b/linux/arm/get_syscall_args.c index 007b9e6056..bc8e9c4ab4 100644 --- a/linux/arm/get_syscall_args.c +++ b/linux/arm/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/arm/nr_prefix.c b/linux/arm/nr_prefix.c index 99f571ffab..bbbcf80b3a 100644 --- a/linux/arm/nr_prefix.c +++ b/linux/arm/nr_prefix.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static inline const char * nr_prefix(kernel_ulong_t scno) { diff --git a/linux/arm/set_error.c b/linux/arm/set_error.c index 9b303d5c55..8b754dca17 100644 --- a/linux/arm/set_error.c +++ b/linux/arm/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/arm/set_scno.c b/linux/arm/set_scno.c index 015ed06637..0c4de440ab 100644 --- a/linux/arm/set_scno.c +++ b/linux/arm/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef PTRACE_SET_SYSCALL # define PTRACE_SET_SYSCALL 23 #endif diff --git a/linux/arm/shuffle_scno.c b/linux/arm/shuffle_scno.c index 17a40d67ac..68199cfcb8 100644 --- a/linux/arm/shuffle_scno.c +++ b/linux/arm/shuffle_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + kernel_ulong_t shuffle_scno(kernel_ulong_t scno) { diff --git a/linux/arm/userent.h b/linux/arm/userent.h index bd36a6fa59..a3555def65 100644 --- a/linux/arm/userent.h +++ b/linux/arm/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { uoff(regs.ARM_r0), "r0" }, { uoff(regs.ARM_r1), "r1" }, { uoff(regs.ARM_r2), "r2" }, diff --git a/linux/asm_stat.h b/linux/asm_stat.h index a926602024..1f4d6a238f 100644 --- a/linux/asm_stat.h +++ b/linux/asm_stat.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef STRACE_ASM_STAT_H #define STRACE_ASM_STAT_H diff --git a/linux/avr32/arch_regs.c b/linux/avr32/arch_regs.c index 578e2acb81..f3d60dac38 100644 --- a/linux/avr32/arch_regs.c +++ b/linux/avr32/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct pt_regs avr32_regs; #define ARCH_REGS_FOR_GETREGS avr32_regs #define ARCH_PC_REG avr32_regs.pc diff --git a/linux/avr32/get_error.c b/linux/avr32/get_error.c index 654e6b9835..bd1013f155 100644 --- a/linux/avr32/get_error.c +++ b/linux/avr32/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/avr32/get_scno.c b/linux/avr32/get_scno.c index 092dad3071..22ace6f4dd 100644 --- a/linux/avr32/get_scno.c +++ b/linux/avr32/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/avr32/get_syscall_args.c b/linux/avr32/get_syscall_args.c index 90fbfafb5c..796b68a88c 100644 --- a/linux/avr32/get_syscall_args.c +++ b/linux/avr32/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/avr32/set_error.c b/linux/avr32/set_error.c index f4ef41d6b9..5b7137c79d 100644 --- a/linux/avr32/set_error.c +++ b/linux/avr32/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/avr32/set_scno.c b/linux/avr32/set_scno.c index 66c4db7e99..da218f4a7e 100644 --- a/linux/avr32/set_scno.c +++ b/linux/avr32/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/avr32/userent.h b/linux/avr32/userent.h index 4fbfc14274..b1b52fe5dc 100644 --- a/linux/avr32/userent.h +++ b/linux/avr32/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { uoff(regs.sr), "sr" }, { uoff(regs.pc), "pc" }, { uoff(regs.lr), "lr" }, diff --git a/linux/bfin/arch_defs_.h b/linux/bfin/arch_defs_.h index d642058b2c..309d8e7e0f 100644 --- a/linux/bfin/arch_defs_.h +++ b/linux/bfin/arch_defs_.h @@ -1,2 +1,9 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/bfin/arch_regs.c b/linux/bfin/arch_regs.c index 6017f67d33..426e589c2c 100644 --- a/linux/bfin/arch_regs.c +++ b/linux/bfin/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static unsigned long bfin_r0; #define ARCH_PC_PEEK_ADDR PT_PC #define ARCH_SP_PEEK_ADDR PT_USP diff --git a/linux/bfin/get_error.c b/linux/bfin/get_error.c index 98abd72220..2d1059a1c8 100644 --- a/linux/bfin/get_error.c +++ b/linux/bfin/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/bfin/get_scno.c b/linux/bfin/get_scno.c index c394889c51..6968e4806f 100644 --- a/linux/bfin/get_scno.c +++ b/linux/bfin/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/bfin/get_syscall_args.c b/linux/bfin/get_syscall_args.c index 3d0e908fe9..336b9f6d9f 100644 --- a/linux/bfin/get_syscall_args.c +++ b/linux/bfin/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/bfin/get_syscall_result.c b/linux/bfin/get_syscall_result.c index 5c814b47d1..923542f948 100644 --- a/linux/bfin/get_syscall_result.c +++ b/linux/bfin/get_syscall_result.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int get_syscall_result_regs(struct tcb *tcp) { diff --git a/linux/bfin/set_error.c b/linux/bfin/set_error.c index 002d904d3f..c39cde27ac 100644 --- a/linux/bfin/set_error.c +++ b/linux/bfin/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/bfin/set_scno.c b/linux/bfin/set_scno.c index d63230feb0..00a325b451 100644 --- a/linux/bfin/set_scno.c +++ b/linux/bfin/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/bfin/userent.h b/linux/bfin/userent.h index f7a7ca635a..a35ba9fd43 100644 --- a/linux/bfin/userent.h +++ b/linux/bfin/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + XLAT_UOFF(u_tsize), XLAT_UOFF(u_dsize), XLAT_UOFF(u_ssize), diff --git a/linux/check_scno.c b/linux/check_scno.c index cdeff67838..acadab2571 100644 --- a/linux/check_scno.c +++ b/linux/check_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_check_scno(struct tcb *tcp) diff --git a/linux/errnoent.h b/linux/errnoent.h index 1400c2801c..1b1dbbed9e 100644 --- a/linux/errnoent.h +++ b/linux/errnoent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 1999-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 1] = "EPERM", [ 2] = "ENOENT", [ 3] = "ESRCH", diff --git a/linux/getregs_old.h b/linux/getregs_old.h index fd2c3a3d42..5c73c9f930 100644 --- a/linux/getregs_old.h +++ b/linux/getregs_old.h @@ -1 +1,8 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #undef HAVE_GETREGS_OLD diff --git a/linux/hppa/arch_defs_.h b/linux/hppa/arch_defs_.h index 3a9bc3b333..a237049e8a 100644 --- a/linux/hppa/arch_defs_.h +++ b/linux/hppa/arch_defs_.h @@ -1 +1,8 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_SA_RESTORER 0 diff --git a/linux/hppa/arch_regs.c b/linux/hppa/arch_regs.c index 2a19ddabe2..886320eee9 100644 --- a/linux/hppa/arch_regs.c +++ b/linux/hppa/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static unsigned long hppa_r28; #define PT_GR20 (20*4) diff --git a/linux/hppa/errnoent.h b/linux/hppa/errnoent.h index 68a53c51fc..3c8b06fd6a 100644 --- a/linux/hppa/errnoent.h +++ b/linux/hppa/errnoent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2001-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 1] = "EPERM", [ 2] = "ENOENT", [ 3] = "ESRCH", diff --git a/linux/hppa/get_error.c b/linux/hppa/get_error.c index 5ce449acc0..0a2d5a8676 100644 --- a/linux/hppa/get_error.c +++ b/linux/hppa/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/hppa/get_scno.c b/linux/hppa/get_scno.c index fb3ed56bd9..fe0fb5e36a 100644 --- a/linux/hppa/get_scno.c +++ b/linux/hppa/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/hppa/get_syscall_args.c b/linux/hppa/get_syscall_args.c index b58f8d7099..040405597c 100644 --- a/linux/hppa/get_syscall_args.c +++ b/linux/hppa/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/hppa/get_syscall_result.c b/linux/hppa/get_syscall_result.c index de2b8829b4..af130b0670 100644 --- a/linux/hppa/get_syscall_result.c +++ b/linux/hppa/get_syscall_result.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int get_syscall_result_regs(struct tcb *tcp) { diff --git a/linux/hppa/set_error.c b/linux/hppa/set_error.c index edaada7f3d..288d6f0ab0 100644 --- a/linux/hppa/set_error.c +++ b/linux/hppa/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/hppa/set_scno.c b/linux/hppa/set_scno.c index fcf8f43aa4..635e9b3329 100644 --- a/linux/hppa/set_scno.c +++ b/linux/hppa/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/hppa/signalent.h b/linux/hppa/signalent.h index 3e9b2d9721..7f38ee4997 100644 --- a/linux/hppa/signalent.h +++ b/linux/hppa/signalent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2001-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + "0", /* 0 */ "SIGHUP", /* 1 */ "SIGINT", /* 2 */ diff --git a/linux/i386/arch_defs_.h b/linux/i386/arch_defs_.h index 1a7e176f59..0b2f3b0d6d 100644 --- a/linux/i386/arch_defs_.h +++ b/linux/i386/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_MMAP 1 #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/i386/arch_regs.c b/linux/i386/arch_regs.c index aeaed9cf0a..fac427441a 100644 --- a/linux/i386/arch_regs.c +++ b/linux/i386/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct user_regs_struct i386_regs; #define ARCH_REGS_FOR_GETREGS i386_regs diff --git a/linux/i386/arch_sigreturn.c b/linux/i386/arch_sigreturn.c index 058a4a6e04..67df3fee2f 100644 --- a/linux/i386/arch_sigreturn.c +++ b/linux/i386/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_sigreturn(struct tcb *tcp) { diff --git a/linux/i386/get_error.c b/linux/i386/get_error.c index 89de811332..c5e95c1704 100644 --- a/linux/i386/get_error.c +++ b/linux/i386/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/i386/get_scno.c b/linux/i386/get_scno.c index c2e55510d4..980952f356 100644 --- a/linux/i386/get_scno.c +++ b/linux/i386/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/i386/get_syscall_args.c b/linux/i386/get_syscall_args.c index 353bde029a..c048285a50 100644 --- a/linux/i386/get_syscall_args.c +++ b/linux/i386/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/i386/set_error.c b/linux/i386/set_error.c index 0e0d7c6007..07861ac314 100644 --- a/linux/i386/set_error.c +++ b/linux/i386/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/i386/set_scno.c b/linux/i386/set_scno.c index 9ac551f940..fcff8aeba6 100644 --- a/linux/i386/set_scno.c +++ b/linux/i386/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/i386/userent.h b/linux/i386/userent.h index a8abd11dd0..bdbefd8c8f 100644 --- a/linux/i386/userent.h +++ b/linux/i386/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + XLAT(4*EBX), XLAT(4*ECX), XLAT(4*EDX), diff --git a/linux/i386/userent0.h b/linux/i386/userent0.h index d2728ff7ad..da7d4440e5 100644 --- a/linux/i386/userent0.h +++ b/linux/i386/userent0.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + XLAT_UOFF(u_fpvalid), XLAT_UOFF(i387), XLAT_UOFF(u_tsize), diff --git a/linux/ia64/arch_defs_.h b/linux/ia64/arch_defs_.h index 8674172a6b..87ca0cdbdb 100644 --- a/linux/ia64/arch_defs_.h +++ b/linux/ia64/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_GETRVAL2 1 #define HAVE_ARCH_UID16_SYSCALLS 1 #define HAVE_ARCH_SA_RESTORER 0 diff --git a/linux/ia64/arch_getrval2.c b/linux/ia64/arch_getrval2.c index f4ea78cc17..c518b607c2 100644 --- a/linux/ia64/arch_getrval2.c +++ b/linux/ia64/arch_getrval2.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + long getrval2(struct tcb *tcp) { diff --git a/linux/ia64/arch_regs.c b/linux/ia64/arch_regs.c index 9251eaae02..9d539da5a3 100644 --- a/linux/ia64/arch_regs.c +++ b/linux/ia64/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct pt_all_user_regs ia64_regs; #define ARCH_REGS_FOR_GETREGS ia64_regs diff --git a/linux/ia64/get_error.c b/linux/ia64/get_error.c index 1ce7be862b..ce196bce14 100644 --- a/linux/ia64/get_error.c +++ b/linux/ia64/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/ia64/get_scno.c b/linux/ia64/get_scno.c index 88f2cad5c4..6aba4097b3 100644 --- a/linux/ia64/get_scno.c +++ b/linux/ia64/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/ia64/get_syscall_args.c b/linux/ia64/get_syscall_args.c index 040e5c7b68..bf1f71af30 100644 --- a/linux/ia64/get_syscall_args.c +++ b/linux/ia64/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include /* Return -1 on error or 1 on success (never 0!). */ diff --git a/linux/ia64/set_error.c b/linux/ia64/set_error.c index 693449973f..b27154e131 100644 --- a/linux/ia64/set_error.c +++ b/linux/ia64/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/ia64/set_scno.c b/linux/ia64/set_scno.c index 8e0f9c453b..c1c89df9ac 100644 --- a/linux/ia64/set_scno.c +++ b/linux/ia64/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/ia64/userent.h b/linux/ia64/userent.h index d2ffae6f23..f6f6372433 100644 --- a/linux/ia64/userent.h +++ b/linux/ia64/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { PT_F32, "f32" }, { PT_F33, "f33" }, { PT_F34, "f34" }, { PT_F35, "f35" }, { PT_F36, "f36" }, { PT_F37, "f37" }, { PT_F38, "f38" }, { PT_F39, "f39" }, { PT_F40, "f40" }, diff --git a/linux/inet_diag.h b/linux/inet_diag.h index f01b75a755..a4c259ccf0 100644 --- a/linux/inet_diag.h +++ b/linux/inet_diag.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef STRACE_LINUX_INET_DIAG_H #define STRACE_LINUX_INET_DIAG_H diff --git a/linux/m68k/arch_defs_.h b/linux/m68k/arch_defs_.h index 67e815c4ff..1a8da94f60 100644 --- a/linux/m68k/arch_defs_.h +++ b/linux/m68k/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_MMAP 1 #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/m68k/arch_regs.c b/linux/m68k/arch_regs.c index 084895806d..13b82eb096 100644 --- a/linux/m68k/arch_regs.c +++ b/linux/m68k/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct user_regs_struct m68k_regs; #define ARCH_REGS_FOR_GETREGS m68k_regs #define ARCH_PC_REG m68k_regs.pc diff --git a/linux/m68k/arch_sigreturn.c b/linux/m68k/arch_sigreturn.c index 382815cd7b..4682c0f82a 100644 --- a/linux/m68k/arch_sigreturn.c +++ b/linux/m68k/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_sigreturn(struct tcb *tcp) { diff --git a/linux/m68k/get_error.c b/linux/m68k/get_error.c index 3a0472c11d..9af0447838 100644 --- a/linux/m68k/get_error.c +++ b/linux/m68k/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/m68k/get_scno.c b/linux/m68k/get_scno.c index 829f3477cd..41db19c569 100644 --- a/linux/m68k/get_scno.c +++ b/linux/m68k/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/m68k/get_syscall_args.c b/linux/m68k/get_syscall_args.c index a95db47123..f2657b3757 100644 --- a/linux/m68k/get_syscall_args.c +++ b/linux/m68k/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/m68k/set_error.c b/linux/m68k/set_error.c index 1ce72abe22..bf01eef769 100644 --- a/linux/m68k/set_error.c +++ b/linux/m68k/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/m68k/set_scno.c b/linux/m68k/set_scno.c index b45e648569..84e8835c7c 100644 --- a/linux/m68k/set_scno.c +++ b/linux/m68k/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/m68k/userent.h b/linux/m68k/userent.h index a17807ec62..ba14c11ab8 100644 --- a/linux/m68k/userent.h +++ b/linux/m68k/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + XLAT(4*PT_D1), XLAT(4*PT_D2), XLAT(4*PT_D3), diff --git a/linux/metag/arch_regs.c b/linux/metag/arch_regs.c index 08179fae25..67ee70fe91 100644 --- a/linux/metag/arch_regs.c +++ b/linux/metag/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct user_gp_regs metag_regs; #define ARCH_REGS_FOR_GETREGSET metag_regs #define ARCH_PC_REG metag_regs.pc diff --git a/linux/metag/get_error.c b/linux/metag/get_error.c index afdec9d7f7..b1e1649c34 100644 --- a/linux/metag/get_error.c +++ b/linux/metag/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/metag/get_scno.c b/linux/metag/get_scno.c index 6dc2ab4abf..e7b83e2854 100644 --- a/linux/metag/get_scno.c +++ b/linux/metag/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/metag/get_syscall_args.c b/linux/metag/get_syscall_args.c index c11de14501..7f3c5cf2c3 100644 --- a/linux/metag/get_syscall_args.c +++ b/linux/metag/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/metag/set_error.c b/linux/metag/set_error.c index 9e10d798e9..18e42dd409 100644 --- a/linux/metag/set_error.c +++ b/linux/metag/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/metag/set_scno.c b/linux/metag/set_scno.c index c9b63c81a9..08dc3cd99c 100644 --- a/linux/metag/set_scno.c +++ b/linux/metag/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/metag/syscallent.h b/linux/metag/syscallent.h index 723cfe360a..f305974e6f 100644 --- a/linux/metag/syscallent.h +++ b/linux/metag/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2013-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "32/syscallent.h" /* [244 ... 259] are arch specific */ [245] = { 2, 0, SEN(printargs), "metag_setglobalbit" }, diff --git a/linux/microblaze/arch_defs_.h b/linux/microblaze/arch_defs_.h index d642058b2c..309d8e7e0f 100644 --- a/linux/microblaze/arch_defs_.h +++ b/linux/microblaze/arch_defs_.h @@ -1,2 +1,9 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/microblaze/arch_regs.c b/linux/microblaze/arch_regs.c index 79f2dda08a..4faf937643 100644 --- a/linux/microblaze/arch_regs.c +++ b/linux/microblaze/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static unsigned long microblaze_r3; #define ARCH_PC_PEEK_ADDR PT_PC #define ARCH_SP_PEEK_ADDR PT_GPR(1) diff --git a/linux/microblaze/arch_sigreturn.c b/linux/microblaze/arch_sigreturn.c index 27920734b8..412e2078bc 100644 --- a/linux/microblaze/arch_sigreturn.c +++ b/linux/microblaze/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_sigreturn(struct tcb *tcp) { diff --git a/linux/microblaze/get_error.c b/linux/microblaze/get_error.c index fb529ff8b9..b7ad28dc9c 100644 --- a/linux/microblaze/get_error.c +++ b/linux/microblaze/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/microblaze/get_scno.c b/linux/microblaze/get_scno.c index 6c11cd447d..aaf2dcb34b 100644 --- a/linux/microblaze/get_scno.c +++ b/linux/microblaze/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/microblaze/get_syscall_args.c b/linux/microblaze/get_syscall_args.c index 19314204d5..6c35994d84 100644 --- a/linux/microblaze/get_syscall_args.c +++ b/linux/microblaze/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/microblaze/get_syscall_result.c b/linux/microblaze/get_syscall_result.c index 5b593a4a06..79f23ca490 100644 --- a/linux/microblaze/get_syscall_result.c +++ b/linux/microblaze/get_syscall_result.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int get_syscall_result_regs(struct tcb *tcp) { diff --git a/linux/microblaze/set_error.c b/linux/microblaze/set_error.c index 5bb83b5f89..71b3fbc313 100644 --- a/linux/microblaze/set_error.c +++ b/linux/microblaze/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/microblaze/set_scno.c b/linux/microblaze/set_scno.c index 4f69a5250b..cf896cc20c 100644 --- a/linux/microblaze/set_scno.c +++ b/linux/microblaze/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/microblaze/userent.h b/linux/microblaze/userent.h index 68710cf375..d3b64880ff 100644 --- a/linux/microblaze/userent.h +++ b/linux/microblaze/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { PT_GPR(0), "r0" }, { PT_GPR(1), "r1" }, { PT_GPR(2), "r2" }, diff --git a/linux/mips/.gitignore b/linux/mips/.gitignore index 51a6ade035..d933e23b8e 100644 --- a/linux/mips/.gitignore +++ b/linux/mips/.gitignore @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + syscallent-n32-stub.h syscallent-n64-stub.h syscallent-o32-stub.h diff --git a/linux/mips/arch_defs_.h b/linux/mips/arch_defs_.h index 1f20dab06e..f789e18d9a 100644 --- a/linux/mips/arch_defs_.h +++ b/linux/mips/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_GETRVAL2 1 #define HAVE_ARCH_DEDICATED_ERR_REG 1 #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 diff --git a/linux/mips/arch_getrval2.c b/linux/mips/arch_getrval2.c index fd73a79cc4..33b53ba2b6 100644 --- a/linux/mips/arch_getrval2.c +++ b/linux/mips/arch_getrval2.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + long getrval2(struct tcb *tcp) { diff --git a/linux/mips/arch_regs.c b/linux/mips/arch_regs.c index 2f604d83a7..0874e31efe 100644 --- a/linux/mips/arch_regs.c +++ b/linux/mips/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct { uint64_t uregs[38]; } mips_regs; diff --git a/linux/mips/arch_sigreturn.c b/linux/mips/arch_sigreturn.c index aeac7c2159..fe8180f331 100644 --- a/linux/mips/arch_sigreturn.c +++ b/linux/mips/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_sigreturn(struct tcb *tcp) { diff --git a/linux/mips/errnoent.h b/linux/mips/errnoent.h index 0e49f0585d..6f0c16fb63 100644 --- a/linux/mips/errnoent.h +++ b/linux/mips/errnoent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 1999-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 1] = "EPERM", [ 2] = "ENOENT", [ 3] = "ESRCH", diff --git a/linux/mips/genstub.sh b/linux/mips/genstub.sh index 11f141f538..0d21692e68 100755 --- a/linux/mips/genstub.sh +++ b/linux/mips/genstub.sh @@ -1,4 +1,9 @@ #!/bin/sh -e +# +# Copyright (c) 2015-2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later srcdir="${0%/*}" dstdir="$1"; shift diff --git a/linux/mips/get_error.c b/linux/mips/get_error.c index 6bf6b20eca..bcc219d59f 100644 --- a/linux/mips/get_error.c +++ b/linux/mips/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_get_error(struct tcb *tcp, const bool check_errno) { diff --git a/linux/mips/get_scno.c b/linux/mips/get_scno.c index 9364f8173c..f06fae4628 100644 --- a/linux/mips/get_scno.c +++ b/linux/mips/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/mips/get_syscall_args.c b/linux/mips/get_syscall_args.c index ec3602431f..387aa8522b 100644 --- a/linux/mips/get_syscall_args.c +++ b/linux/mips/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/mips/ioctls_inc0.h b/linux/mips/ioctls_inc0.h index c00687f685..da4259efdb 100644 --- a/linux/mips/ioctls_inc0.h +++ b/linux/mips/ioctls_inc0.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifdef LINUX_MIPSN64 # include "64/ioctls_inc.h" #else diff --git a/linux/mips/set_error.c b/linux/mips/set_error.c index 89cf38ce32..af019ae025 100644 --- a/linux/mips/set_error.c +++ b/linux/mips/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/mips/set_scno.c b/linux/mips/set_scno.c index 1eb456ccd5..ad3125836d 100644 --- a/linux/mips/set_scno.c +++ b/linux/mips/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/mips/signalent.h b/linux/mips/signalent.h index 11dfe8819c..c3caf2bb4f 100644 --- a/linux/mips/signalent.h +++ b/linux/mips/signalent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 1999-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + "0", /* 0 */ "SIGHUP", /* 1 */ "SIGINT", /* 2 */ diff --git a/linux/mips/syscallent-compat.h b/linux/mips/syscallent-compat.h index d8b309d70e..fce44a27da 100644 --- a/linux/mips/syscallent-compat.h +++ b/linux/mips/syscallent-compat.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2013-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 0] = { 0, 0, SEN(printargs), "svr4_syscall" }, [ 1] = { 0, 0, SEN(printargs), "svr4_exit" }, [ 2] = { 0, 0, SEN(printargs), "svr4_fork" }, diff --git a/linux/mips/syscallent-n32.h b/linux/mips/syscallent-n32.h index faa91839ca..54f68c3007 100644 --- a/linux/mips/syscallent-n32.h +++ b/linux/mips/syscallent-n32.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2013-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #if defined LINUX_MIPSN32 /* For an N32 strace decode the N32 64-bit syscalls. */ [6000] = { 3, TD, SEN(read), "read" }, /* start of Linux N32 */ diff --git a/linux/mips/syscallent-n64.h b/linux/mips/syscallent-n64.h index 2a7beb6dc2..d0c26175af 100644 --- a/linux/mips/syscallent-n64.h +++ b/linux/mips/syscallent-n64.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2013-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #if defined LINUX_MIPSN64 /* For an N64 strace decode the N64 64-bit syscalls. */ [5000] = { 3, TD, SEN(read), "read" }, /* start of Linux N64 */ diff --git a/linux/mips/syscallent-o32.h b/linux/mips/syscallent-o32.h index 64e157a87f..ede983724f 100644 --- a/linux/mips/syscallent-o32.h +++ b/linux/mips/syscallent-o32.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2013-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #if defined LINUX_MIPSO32 /* For an O32 strace, decode the o32 syscalls. */ # define SYS_syscall_subcall 4000 diff --git a/linux/mips/userent.h b/linux/mips/userent.h index 1399142b22..77cf50da3e 100644 --- a/linux/mips/userent.h +++ b/linux/mips/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { 0, "r0" }, { 1, "r1" }, { 2, "r2" }, diff --git a/linux/netlink_diag.h b/linux/netlink_diag.h index 88dde228f6..6eca85595e 100644 --- a/linux/netlink_diag.h +++ b/linux/netlink_diag.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef STRACE_LINUX_NETLINK_DIAG_H #define STRACE_LINUX_NETLINK_DIAG_H diff --git a/linux/nios2/arch_defs_.h b/linux/nios2/arch_defs_.h index 2bd4e4a26b..9c778e2483 100644 --- a/linux/nios2/arch_defs_.h +++ b/linux/nios2/arch_defs_.h @@ -1 +1,8 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_DEDICATED_ERR_REG 1 diff --git a/linux/nios2/arch_regs.c b/linux/nios2/arch_regs.c index ecbef0eec3..f9885ee67a 100644 --- a/linux/nios2/arch_regs.c +++ b/linux/nios2/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct user_pt_regs nios2_regs; # define ARCH_REGS_FOR_GETREGSET nios2_regs #define ARCH_PC_REG nios2_regs.regs[PTR_EA] diff --git a/linux/nios2/get_error.c b/linux/nios2/get_error.c index 0dc66fba2e..d202abd9ca 100644 --- a/linux/nios2/get_error.c +++ b/linux/nios2/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_get_error(struct tcb *tcp, const bool check_errno) { diff --git a/linux/nios2/get_scno.c b/linux/nios2/get_scno.c index f4db85eed5..cc0bd06d06 100644 --- a/linux/nios2/get_scno.c +++ b/linux/nios2/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/nios2/get_syscall_args.c b/linux/nios2/get_syscall_args.c index d71d29cdf9..1e42fcd75c 100644 --- a/linux/nios2/get_syscall_args.c +++ b/linux/nios2/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/nios2/set_error.c b/linux/nios2/set_error.c index ecef8aa2f3..61fc030032 100644 --- a/linux/nios2/set_error.c +++ b/linux/nios2/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/nios2/set_scno.c b/linux/nios2/set_scno.c index 1f5051c230..64f226b16c 100644 --- a/linux/nios2/set_scno.c +++ b/linux/nios2/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/nios2/syscallent.h b/linux/nios2/syscallent.h index 301fd0e23a..31431cf0d4 100644 --- a/linux/nios2/syscallent.h +++ b/linux/nios2/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define sys_ARCH_mmap sys_mmap_pgoff #include "32/syscallent.h" /* [244 ... 259] are arch specific */ diff --git a/linux/nr_prefix.c b/linux/nr_prefix.c index f22814f41f..3b3d2d4efc 100644 --- a/linux/nr_prefix.c +++ b/linux/nr_prefix.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /** * Returns prefix for a syscall constant literal. It is has to be that way * thanks to ARM that decided to prefix their special system calls like sys32 diff --git a/linux/or1k/arch_regs.c b/linux/or1k/arch_regs.c index efdef98967..196419dfcf 100644 --- a/linux/or1k/arch_regs.c +++ b/linux/or1k/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct user_regs_struct or1k_regs; #define ARCH_REGS_FOR_GETREGSET or1k_regs #define ARCH_PC_REG or1k_regs.pc diff --git a/linux/or1k/get_error.c b/linux/or1k/get_error.c index f697758190..e551f13f5a 100644 --- a/linux/or1k/get_error.c +++ b/linux/or1k/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/or1k/get_scno.c b/linux/or1k/get_scno.c index f446c90702..f997abd4e3 100644 --- a/linux/or1k/get_scno.c +++ b/linux/or1k/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/or1k/get_syscall_args.c b/linux/or1k/get_syscall_args.c index 17e41dca5d..f06d0a886c 100644 --- a/linux/or1k/get_syscall_args.c +++ b/linux/or1k/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/or1k/set_error.c b/linux/or1k/set_error.c index 179733878b..b5cb7016f5 100644 --- a/linux/or1k/set_error.c +++ b/linux/or1k/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/or1k/set_scno.c b/linux/or1k/set_scno.c index 269eeb5a29..df2c5ad8e0 100644 --- a/linux/or1k/set_scno.c +++ b/linux/or1k/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/or1k/syscallent.h b/linux/or1k/syscallent.h index 10af205efa..ac339463a3 100644 --- a/linux/or1k/syscallent.h +++ b/linux/or1k/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2013-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define sys_ARCH_mmap sys_mmap_pgoff #include "32/syscallent.h" /* [244 ... 259] are arch specific */ diff --git a/linux/or1k/userent.h b/linux/or1k/userent.h index c6fd7d39f0..056d1009ee 100644 --- a/linux/or1k/userent.h +++ b/linux/or1k/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { 4*0, "r0" }, { 4*1, "r1" }, { 4*2, "r2" }, diff --git a/linux/packet_diag.h b/linux/packet_diag.h index 368e26ff35..d3a4bcf5c6 100644 --- a/linux/packet_diag.h +++ b/linux/packet_diag.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2017-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef STRACE_LINUX_PACKET_DIAG_H #define STRACE_LINUX_PACKET_DIAG_H diff --git a/linux/powerpc/arch_defs_.h b/linux/powerpc/arch_defs_.h index 06b6da9554..310337129d 100644 --- a/linux/powerpc/arch_defs_.h +++ b/linux/powerpc/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_DEDICATED_ERR_REG 1 #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 diff --git a/linux/powerpc/arch_regs.c b/linux/powerpc/arch_regs.c index 78c4c3e719..f9d0de5965 100644 --- a/linux/powerpc/arch_regs.c +++ b/linux/powerpc/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct pt_regs ppc_regs; #define ARCH_REGS_FOR_GETREGS ppc_regs diff --git a/linux/powerpc/arch_sigreturn.c b/linux/powerpc/arch_sigreturn.c index 227a7970b4..321f19a4bf 100644 --- a/linux/powerpc/arch_sigreturn.c +++ b/linux/powerpc/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_sigreturn(struct tcb *tcp) { diff --git a/linux/powerpc/errnoent.h b/linux/powerpc/errnoent.h index b118c8ebee..23d2111b1a 100644 --- a/linux/powerpc/errnoent.h +++ b/linux/powerpc/errnoent.h @@ -1,2 +1,9 @@ +/* + * Copyright (c) 1999-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "../errnoent.h" [ 58] = "EDEADLOCK", diff --git a/linux/powerpc/get_error.c b/linux/powerpc/get_error.c index 7aa7808be7..716e8782c8 100644 --- a/linux/powerpc/get_error.c +++ b/linux/powerpc/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_get_error(struct tcb *tcp, const bool check_errno) { diff --git a/linux/powerpc/get_scno.c b/linux/powerpc/get_scno.c index ef06656ff3..6624614add 100644 --- a/linux/powerpc/get_scno.c +++ b/linux/powerpc/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/powerpc/get_syscall_args.c b/linux/powerpc/get_syscall_args.c index 471bf08fdf..823d7839d1 100644 --- a/linux/powerpc/get_syscall_args.c +++ b/linux/powerpc/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/powerpc/getregs_old.c b/linux/powerpc/getregs_old.c index 4485ca68b5..7edb796f20 100644 --- a/linux/powerpc/getregs_old.c +++ b/linux/powerpc/getregs_old.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* * PTRACE_GETREGS was added to the PowerPC kernel in v2.6.23, * we provide a slow fallback for old kernels. diff --git a/linux/powerpc/set_error.c b/linux/powerpc/set_error.c index d22df112ce..9b8a6f2fd3 100644 --- a/linux/powerpc/set_error.c +++ b/linux/powerpc/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/powerpc/set_scno.c b/linux/powerpc/set_scno.c index f00ef23817..f47ad85bd6 100644 --- a/linux/powerpc/set_scno.c +++ b/linux/powerpc/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/powerpc/userent.h b/linux/powerpc/userent.h index e2094c24b4..93cc656b84 100644 --- a/linux/powerpc/userent.h +++ b/linux/powerpc/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef PT_ORIG_R3 # define PT_ORIG_R3 34 #endif diff --git a/linux/powerpc64/arch_defs_.h b/linux/powerpc64/arch_defs_.h index 037b52f6ab..871f4109d5 100644 --- a/linux/powerpc64/arch_defs_.h +++ b/linux/powerpc64/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_SELECT 1 #define SUPPORTED_PERSONALITIES 2 #define HAVE_ARCH_DEDICATED_ERR_REG 1 diff --git a/linux/powerpc64/get_scno.c b/linux/powerpc64/get_scno.c index 8a943e8da2..03523d3979 100644 --- a/linux/powerpc64/get_scno.c +++ b/linux/powerpc64/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/riscv/arch_defs_.h b/linux/riscv/arch_defs_.h index b223c48c2e..a9c27bc7a7 100644 --- a/linux/riscv/arch_defs_.h +++ b/linux/riscv/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_UID16_SYSCALLS 1 #define SUPPORTED_PERSONALITIES 2 #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 diff --git a/linux/riscv/arch_regs.c b/linux/riscv/arch_regs.c index b6c08bc96d..cbf5a67e8c 100644 --- a/linux/riscv/arch_regs.c +++ b/linux/riscv/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct user_regs_struct riscv_regs; #define ARCH_REGS_FOR_GETREGSET riscv_regs #define ARCH_PC_REG riscv_regs.pc diff --git a/linux/riscv/get_error.c b/linux/riscv/get_error.c index 8bec778e98..d406653450 100644 --- a/linux/riscv/get_error.c +++ b/linux/riscv/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/riscv/get_scno.c b/linux/riscv/get_scno.c index 0ca1ed3490..6b4256e74b 100644 --- a/linux/riscv/get_scno.c +++ b/linux/riscv/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/riscv/get_syscall_args.c b/linux/riscv/get_syscall_args.c index a79fa4456d..9418b8e4fb 100644 --- a/linux/riscv/get_syscall_args.c +++ b/linux/riscv/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/riscv/set_error.c b/linux/riscv/set_error.c index 6d1eee4c06..b9038c9073 100644 --- a/linux/riscv/set_error.c +++ b/linux/riscv/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/riscv/set_scno.c b/linux/riscv/set_scno.c index 64c7db7635..2c586ee95d 100644 --- a/linux/riscv/set_scno.c +++ b/linux/riscv/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/riscv/syscallent.h b/linux/riscv/syscallent.h index 3dfed89e19..b827458619 100644 --- a/linux/riscv/syscallent.h +++ b/linux/riscv/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "64/syscallent.h" /* #define __NR_riscv_flush_icache (__NR_arch_specific_syscall + 15) */ diff --git a/linux/s390/arch_defs_.h b/linux/s390/arch_defs_.h index d739fd02e6..39b7658dfc 100644 --- a/linux/s390/arch_defs_.h +++ b/linux/s390/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_MMAP 1 #define HAVE_ARCH_OLD_MMAP_PGOFF 1 #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/s390/arch_regs.c b/linux/s390/arch_regs.c index 414123e48b..dd872ca3b7 100644 --- a/linux/s390/arch_regs.c +++ b/linux/s390/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* PTRACE_GETREGSET on S390 is available since linux v2.6.27. */ static struct user_regs_struct s390_regset; #define ARCH_REGS_FOR_GETREGSET s390_regset diff --git a/linux/s390/arch_sigreturn.c b/linux/s390/arch_sigreturn.c index f63ef13237..1d0f0e0019 100644 --- a/linux/s390/arch_sigreturn.c +++ b/linux/s390/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef SIGNAL_FRAMESIZE # define SIGNAL_FRAMESIZE __SIGNAL_FRAMESIZE #endif diff --git a/linux/s390/get_error.c b/linux/s390/get_error.c index e7c163240c..5b5801305a 100644 --- a/linux/s390/get_error.c +++ b/linux/s390/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" #ifndef ARCH_REGSET diff --git a/linux/s390/get_scno.c b/linux/s390/get_scno.c index 2661795d9d..2af6c8e6f1 100644 --- a/linux/s390/get_scno.c +++ b/linux/s390/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef ARCH_REGSET # define ARCH_REGSET s390_regset #endif diff --git a/linux/s390/get_syscall_args.c b/linux/s390/get_syscall_args.c index 881dc95d96..66570ff531 100644 --- a/linux/s390/get_syscall_args.c +++ b/linux/s390/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef ARCH_REGSET # define ARCH_REGSET s390_regset #endif diff --git a/linux/s390/set_error.c b/linux/s390/set_error.c index f73e5780b5..f71865ef11 100644 --- a/linux/s390/set_error.c +++ b/linux/s390/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef ARCH_REGSET # define ARCH_REGSET s390_regset #endif diff --git a/linux/s390/set_scno.c b/linux/s390/set_scno.c index 6bb999935c..650deecb84 100644 --- a/linux/s390/set_scno.c +++ b/linux/s390/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef ARCH_REGSET # define ARCH_REGSET s390_regset #endif diff --git a/linux/s390/userent.h b/linux/s390/userent.h index f9c71d8a64..8ba070b98f 100644 --- a/linux/s390/userent.h +++ b/linux/s390/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "userent0.h" { PT_FPR0_HI, "fpr0.hi" }, { PT_FPR0_LO, "fpr0.lo" }, diff --git a/linux/s390/userent0.h b/linux/s390/userent0.h index 71fae74aac..21a90fb7bf 100644 --- a/linux/s390/userent0.h +++ b/linux/s390/userent0.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { PT_PSWMASK, "psw_mask" }, { PT_PSWADDR, "psw_addr" }, { PT_GPR0, "gpr0" }, diff --git a/linux/s390/userent1.h b/linux/s390/userent1.h index 3ff99b904e..6691167ccb 100644 --- a/linux/s390/userent1.h +++ b/linux/s390/userent1.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + XLAT_UOFF(u_tsize), XLAT_UOFF(u_dsize), XLAT_UOFF(u_ssize), diff --git a/linux/s390x/arch_defs_.h b/linux/s390x/arch_defs_.h index bed2f2d66d..1e520761d6 100644 --- a/linux/s390x/arch_defs_.h +++ b/linux/s390x/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_MMAP 1 #define HAVE_ARCH_OLD_MMAP_PGOFF 1 #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/s390x/arch_regs.c b/linux/s390x/arch_regs.c index 1dd35dbba5..7a2c0a6a46 100644 --- a/linux/s390x/arch_regs.c +++ b/linux/s390x/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef HAVE_S390_COMPAT_REGS typedef struct { uint32_t mask; diff --git a/linux/s390x/arch_sigreturn.c b/linux/s390x/arch_sigreturn.c index 4065e0640a..55930a35da 100644 --- a/linux/s390x/arch_sigreturn.c +++ b/linux/s390x/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include #define S390_SIGNAL_FRAMESIZE 96 diff --git a/linux/s390x/get_error.c b/linux/s390x/get_error.c index c30b317f23..0d3b610c89 100644 --- a/linux/s390x/get_error.c +++ b/linux/s390x/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" #define arch_get_error s390_get_error diff --git a/linux/s390x/get_scno.c b/linux/s390x/get_scno.c index bf81b94c8c..5f9cf4e7fb 100644 --- a/linux/s390x/get_scno.c +++ b/linux/s390x/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define arch_get_scno s390_get_scno #define ARCH_REGSET s390_regset #include "../s390/get_scno.c" diff --git a/linux/s390x/get_syscall_args.c b/linux/s390x/get_syscall_args.c index 5dcab26137..1a7147c0db 100644 --- a/linux/s390x/get_syscall_args.c +++ b/linux/s390x/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define arch_get_syscall_args s390_get_syscall_args #define ARCH_REGSET s390_regset #include "../s390/get_syscall_args.c" diff --git a/linux/s390x/set_error.c b/linux/s390x/set_error.c index 4a80ac279b..2acd00a0ff 100644 --- a/linux/s390x/set_error.c +++ b/linux/s390x/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define arch_set_error s390_set_error #define arch_set_success s390_set_success #define ARCH_REGSET s390_regset diff --git a/linux/s390x/set_scno.c b/linux/s390x/set_scno.c index 2b4d16e8ac..a8d6f3bfa9 100644 --- a/linux/s390x/set_scno.c +++ b/linux/s390x/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define arch_set_scno s390_set_scno #define ARCH_REGSET s390_regset #include "../s390/set_scno.c" diff --git a/linux/s390x/userent.h b/linux/s390x/userent.h index d14488fe12..8997dd8842 100644 --- a/linux/s390x/userent.h +++ b/linux/s390x/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "../s390/userent0.h" { PT_FPR0, "fpr0" }, { PT_FPR1, "fpr1" }, diff --git a/linux/sh/arch_defs_.h b/linux/sh/arch_defs_.h index b4d39f0a2f..1809580d87 100644 --- a/linux/sh/arch_defs_.h +++ b/linux/sh/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_GETRVAL2 1 #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/sh/arch_getrval2.c b/linux/sh/arch_getrval2.c index c00673191b..bd32ac8f1e 100644 --- a/linux/sh/arch_getrval2.c +++ b/linux/sh/arch_getrval2.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + long getrval2(struct tcb *tcp) { diff --git a/linux/sh/arch_regs.c b/linux/sh/arch_regs.c index 8ea0fc40c5..741645472c 100644 --- a/linux/sh/arch_regs.c +++ b/linux/sh/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static unsigned long sh_r0; #define ARCH_PC_PEEK_ADDR (4 * REG_PC) #define ARCH_SP_PEEK_ADDR (4 * 15) diff --git a/linux/sh/get_error.c b/linux/sh/get_error.c index 2cd1a6b229..9319c61257 100644 --- a/linux/sh/get_error.c +++ b/linux/sh/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/sh/get_scno.c b/linux/sh/get_scno.c index e89520de67..b23824d5ec 100644 --- a/linux/sh/get_scno.c +++ b/linux/sh/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/sh/get_syscall_args.c b/linux/sh/get_syscall_args.c index 15f77b918b..005a45c090 100644 --- a/linux/sh/get_syscall_args.c +++ b/linux/sh/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/sh/get_syscall_result.c b/linux/sh/get_syscall_result.c index ff07a98600..a8d6bc494f 100644 --- a/linux/sh/get_syscall_result.c +++ b/linux/sh/get_syscall_result.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int get_syscall_result_regs(struct tcb *tcp) { diff --git a/linux/sh/set_error.c b/linux/sh/set_error.c index bad76ede24..ef51a5c465 100644 --- a/linux/sh/set_error.c +++ b/linux/sh/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/sh/set_scno.c b/linux/sh/set_scno.c index 4c175ed73f..2f0b7703b5 100644 --- a/linux/sh/set_scno.c +++ b/linux/sh/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/sh/userent.h b/linux/sh/userent.h index 116861a9f7..8d769e5f43 100644 --- a/linux/sh/userent.h +++ b/linux/sh/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + XLAT(4*REG_REG0), { 4*(REG_REG0+1), "4*REG_REG1" }, { 4*(REG_REG0+2), "4*REG_REG2" }, diff --git a/linux/sh/userent0.h b/linux/sh/userent0.h index 918805a12e..c1d4122420 100644 --- a/linux/sh/userent0.h +++ b/linux/sh/userent0.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + XLAT_UOFF(u_fpvalid), XLAT_UOFF(u_tsize), XLAT_UOFF(u_dsize), diff --git a/linux/sh64/arch_defs_.h b/linux/sh64/arch_defs_.h index 0c9ca19511..18f4d73875 100644 --- a/linux/sh64/arch_defs_.h +++ b/linux/sh64/arch_defs_.h @@ -1 +1,8 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/sh64/arch_regs.c b/linux/sh64/arch_regs.c index 787ae22f89..9b3d4eb3bc 100644 --- a/linux/sh64/arch_regs.c +++ b/linux/sh64/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static unsigned long sh64_r9; #define ARCH_PC_PEEK_ADDR REG_PC #define ARCH_SP_PEEK_ADDR REG_GENERAL(15) diff --git a/linux/sh64/arch_regs.h b/linux/sh64/arch_regs.h index 670cdb669e..5bf759d64f 100644 --- a/linux/sh64/arch_regs.h +++ b/linux/sh64/arch_regs.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* SH64 Linux - this code assumes the following kernel API for system calls: PC Offset 0 System Call Offset 16 (actually, (syscall no.) | (0x1n << 16), diff --git a/linux/sh64/get_error.c b/linux/sh64/get_error.c index b3971600a8..795031c953 100644 --- a/linux/sh64/get_error.c +++ b/linux/sh64/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/sh64/get_scno.c b/linux/sh64/get_scno.c index bda2cd263f..c85786bd77 100644 --- a/linux/sh64/get_scno.c +++ b/linux/sh64/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/sh64/get_syscall_args.c b/linux/sh64/get_syscall_args.c index 5a38732638..d74b7185b3 100644 --- a/linux/sh64/get_syscall_args.c +++ b/linux/sh64/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/sh64/get_syscall_result.c b/linux/sh64/get_syscall_result.c index 33c4247944..1183f6873a 100644 --- a/linux/sh64/get_syscall_result.c +++ b/linux/sh64/get_syscall_result.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int get_syscall_result_regs(struct tcb *tcp) { diff --git a/linux/sh64/set_error.c b/linux/sh64/set_error.c index 29293b22ec..4a98357180 100644 --- a/linux/sh64/set_error.c +++ b/linux/sh64/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/sh64/set_scno.c b/linux/sh64/set_scno.c index 0e7c18faaf..f7e0fdfa5b 100644 --- a/linux/sh64/set_scno.c +++ b/linux/sh64/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/sh64/userent.h b/linux/sh64/userent.h index e8810d2996..ecff5f63e1 100644 --- a/linux/sh64/userent.h +++ b/linux/sh64/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { 0, "PC(L)" }, { 4, "PC(U)" }, { 8, "SR(L)" }, diff --git a/linux/shuffle_scno.c b/linux/shuffle_scno.c index 0e6feaf221..dc1633d2f0 100644 --- a/linux/shuffle_scno.c +++ b/linux/shuffle_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + kernel_ulong_t shuffle_scno(kernel_ulong_t scno) { diff --git a/linux/signalent.h b/linux/signalent.h index 45a0df9939..b17ea84394 100644 --- a/linux/signalent.h +++ b/linux/signalent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 1999-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + "0", /* 0 */ "SIGHUP", /* 1 */ "SIGINT", /* 2 */ diff --git a/linux/smc_diag.h b/linux/smc_diag.h index ebdbe8cb87..1cb3a8065c 100644 --- a/linux/smc_diag.h +++ b/linux/smc_diag.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2017-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef STRACE_LINUX_SMC_DIAG_H #define STRACE_LINUX_SMC_DIAG_H diff --git a/linux/sock_diag.h b/linux/sock_diag.h index f69c385f61..718414b226 100644 --- a/linux/sock_diag.h +++ b/linux/sock_diag.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef STRACE_LINUX_SOCK_DIAG_H #define STRACE_LINUX_SOCK_DIAG_H diff --git a/linux/sparc/arch_defs_.h b/linux/sparc/arch_defs_.h index 94f6e2bd29..3549c95d55 100644 --- a/linux/sparc/arch_defs_.h +++ b/linux/sparc/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_GETRVAL2 1 #define HAVE_ARCH_UID16_SYSCALLS 1 #define HAVE_ARCH_SA_RESTORER 1 diff --git a/linux/sparc/arch_getrval2.c b/linux/sparc/arch_getrval2.c index f878353384..fd8908bbf7 100644 --- a/linux/sparc/arch_getrval2.c +++ b/linux/sparc/arch_getrval2.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + long getrval2(struct tcb *tcp) { diff --git a/linux/sparc/arch_regs.c b/linux/sparc/arch_regs.c index 7a28d46462..62d240f71d 100644 --- a/linux/sparc/arch_regs.c +++ b/linux/sparc/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct pt_regs sparc_regs; /* Indexes into the pt_regs.u_reg[] array -- UREG_XX from kernel are all off diff --git a/linux/sparc/arch_sigreturn.c b/linux/sparc/arch_sigreturn.c index 13edd425ac..13b5dccae8 100644 --- a/linux/sparc/arch_sigreturn.c +++ b/linux/sparc/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef SIZEOF_STRUCT_SPARC_STACKF # define SIZEOF_STRUCT_SPARC_STACKF sizeof(struct sparc_stackf) #endif diff --git a/linux/sparc/errnoent.h b/linux/sparc/errnoent.h index cd9c8e3654..4e6d471a56 100644 --- a/linux/sparc/errnoent.h +++ b/linux/sparc/errnoent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 1999-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 1] = "EPERM", [ 2] = "ENOENT", [ 3] = "ESRCH", diff --git a/linux/sparc/get_error.c b/linux/sparc/get_error.c index 03d774b0d1..b3e80c31f9 100644 --- a/linux/sparc/get_error.c +++ b/linux/sparc/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include static void diff --git a/linux/sparc/get_scno.c b/linux/sparc/get_scno.c index f041259d65..b515952a70 100644 --- a/linux/sparc/get_scno.c +++ b/linux/sparc/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/sparc/get_syscall_args.c b/linux/sparc/get_syscall_args.c index 0ab8b3c25d..96c61c44c0 100644 --- a/linux/sparc/get_syscall_args.c +++ b/linux/sparc/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/sparc/set_error.c b/linux/sparc/set_error.c index d285b7cac3..7cffdd3f8b 100644 --- a/linux/sparc/set_error.c +++ b/linux/sparc/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/sparc/set_scno.c b/linux/sparc/set_scno.c index c891a0b593..813fc3a0fd 100644 --- a/linux/sparc/set_scno.c +++ b/linux/sparc/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* * Reloading the syscall number from %g1 register is supported * by linux kernel starting with commit v4.5-rc7~35^2~3. diff --git a/linux/sparc/signalent.h b/linux/sparc/signalent.h index 39d7c85a38..7a3a6281ad 100644 --- a/linux/sparc/signalent.h +++ b/linux/sparc/signalent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 1999-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + "0", /* 0 */ "SIGHUP", /* 1 */ "SIGINT", /* 2 */ diff --git a/linux/sparc/syscallent.h b/linux/sparc/syscallent.h index 4c409b438b..8e3497c3bc 100644 --- a/linux/sparc/syscallent.h +++ b/linux/sparc/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 1999-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 0] = { 0, 0, SEN(restart_syscall), "restart_syscall" }, [ 1] = { 1, TP|SE, SEN(exit), "exit" }, [ 2] = { 0, TP, SEN(fork), "fork" }, diff --git a/linux/sparc64/arch_defs_.h b/linux/sparc64/arch_defs_.h index 31ce9a2a95..68eef4fced 100644 --- a/linux/sparc64/arch_defs_.h +++ b/linux/sparc64/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_GETRVAL2 1 #define HAVE_ARCH_UID16_SYSCALLS 1 #define HAVE_ARCH_SA_RESTORER 1 diff --git a/linux/sparc64/arch_regs.c b/linux/sparc64/arch_regs.c index c1c2fae267..07f0e4055b 100644 --- a/linux/sparc64/arch_regs.c +++ b/linux/sparc64/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "sparc/arch_regs.c" #undef ARCH_PC_REG #define ARCH_PC_REG sparc_regs.tpc diff --git a/linux/sparc64/arch_sigreturn.c b/linux/sparc64/arch_sigreturn.c index feac9da60f..6a9f4c3552 100644 --- a/linux/sparc64/arch_sigreturn.c +++ b/linux/sparc64/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define arch_sigreturn sparc64_arch_sigreturn #include "sparc/arch_sigreturn.c" #undef arch_sigreturn diff --git a/linux/sparc64/get_error.c b/linux/sparc64/get_error.c index fcf60ae696..f254e2bf13 100644 --- a/linux/sparc64/get_error.c +++ b/linux/sparc64/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_get_error(struct tcb *tcp, const bool check_errno) { diff --git a/linux/sparc64/get_scno.c b/linux/sparc64/get_scno.c index 81a3aa93c8..56ecbce2a3 100644 --- a/linux/sparc64/get_scno.c +++ b/linux/sparc64/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/sparc64/get_syscall_args.c b/linux/sparc64/get_syscall_args.c index 00dbf894cb..40a306ce22 100644 --- a/linux/sparc64/get_syscall_args.c +++ b/linux/sparc64/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/sparc64/set_error.c b/linux/sparc64/set_error.c index 6c266af9d8..e89c578e90 100644 --- a/linux/sparc64/set_error.c +++ b/linux/sparc64/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/sparc64/syscallent.h b/linux/sparc64/syscallent.h index a3a2858258..ae6dc9483c 100644 --- a/linux/sparc64/syscallent.h +++ b/linux/sparc64/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2004-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 0] = { 0, 0, SEN(restart_syscall), "restart_syscall" }, [ 1] = { 1, TP|SE, SEN(exit), "exit" }, [ 2] = { 0, TP, SEN(fork), "fork" }, diff --git a/linux/sparc64/userent.h b/linux/sparc64/userent.h index 9387e254e1..87076bf325 100644 --- a/linux/sparc64/userent.h +++ b/linux/sparc64/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + XLAT_UOFF(u_tsize), XLAT_UOFF(u_dsize), XLAT_UOFF(u_ssize), diff --git a/linux/tile/arch_defs_.h b/linux/tile/arch_defs_.h index b926597940..a781208c2c 100644 --- a/linux/tile/arch_defs_.h +++ b/linux/tile/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define SUPPORTED_PERSONALITIES 2 #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 diff --git a/linux/tile/arch_regs.c b/linux/tile/arch_regs.c index cd048baad7..f792e7734f 100644 --- a/linux/tile/arch_regs.c +++ b/linux/tile/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static struct pt_regs tile_regs; #define ARCH_REGS_FOR_GETREGS tile_regs #define ARCH_PC_REG tile_regs.pc diff --git a/linux/tile/arch_sigreturn.c b/linux/tile/arch_sigreturn.c index 92631f4d54..43b27b5d06 100644 --- a/linux/tile/arch_sigreturn.c +++ b/linux/tile/arch_sigreturn.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static void arch_sigreturn(struct tcb *tcp) { diff --git a/linux/tile/get_error.c b/linux/tile/get_error.c index ae8ecbd37a..c6b6c807e9 100644 --- a/linux/tile/get_error.c +++ b/linux/tile/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/tile/get_scno.c b/linux/tile/get_scno.c index e8403d9b24..9be1ea76a3 100644 --- a/linux/tile/get_scno.c +++ b/linux/tile/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/tile/get_syscall_args.c b/linux/tile/get_syscall_args.c index c27339bd5c..34d596ab5e 100644 --- a/linux/tile/get_syscall_args.c +++ b/linux/tile/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/tile/set_error.c b/linux/tile/set_error.c index 16d9b956a9..78e476cfec 100644 --- a/linux/tile/set_error.c +++ b/linux/tile/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/tile/set_scno.c b/linux/tile/set_scno.c index c28d88c3d6..c1ab0d55c0 100644 --- a/linux/tile/set_scno.c +++ b/linux/tile/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/tile/syscallent.h b/linux/tile/syscallent.h index eb518fb9e1..50b60a4ffc 100644 --- a/linux/tile/syscallent.h +++ b/linux/tile/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "64/syscallent.h" /* [244 ... 259] are arch specific */ [244] = { 1, 0, SEN(printargs), "cmpxchg_badaddr" }, diff --git a/linux/tile/syscallent1.h b/linux/tile/syscallent1.h index b305f067f7..19941c2945 100644 --- a/linux/tile/syscallent1.h +++ b/linux/tile/syscallent1.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2013-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define sys_ARCH_mmap sys_mmap_4koff #define ARCH_WANT_SYNC_FILE_RANGE2 1 #include "32/syscallent.h" diff --git a/linux/tile/userent.h b/linux/tile/userent.h index 915f4a509c..167e972968 100644 --- a/linux/tile/userent.h +++ b/linux/tile/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { PTREGS_OFFSET_REG(0), "r0" }, { PTREGS_OFFSET_REG(1), "r1" }, { PTREGS_OFFSET_REG(2), "r2" }, diff --git a/linux/unix_diag.h b/linux/unix_diag.h index f1a7fc0c14..d6477aee57 100644 --- a/linux/unix_diag.h +++ b/linux/unix_diag.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef STRACE_LINUX_UNIX_DIAG_H #define STRACE_LINUX_UNIX_DIAG_H diff --git a/linux/userent0.h b/linux/userent0.h index b3c5ebce3c..c9e24cd1f5 100644 --- a/linux/userent0.h +++ b/linux/userent0.h @@ -1 +1,8 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { sizeof(struct user), "sizeof(struct user)" }, diff --git a/linux/x32/arch_defs_.h b/linux/x32/arch_defs_.h index 40232fd6a2..ed9261f5af 100644 --- a/linux/x32/arch_defs_.h +++ b/linux/x32/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_MMAP 1 #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/x32/shuffle_scno.c b/linux/x32/shuffle_scno.c index d0db368fbd..0e1abb303d 100644 --- a/linux/x32/shuffle_scno.c +++ b/linux/x32/shuffle_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + kernel_ulong_t shuffle_scno(kernel_ulong_t scno) { diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h index 3635a8ad11..38287592e5 100644 --- a/linux/x32/syscallent.h +++ b/linux/x32/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2012-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 0] = { 3, TD, SEN(read), "read" }, [ 1] = { 3, TD, SEN(write), "write" }, [ 2] = { 3, TD|TF, SEN(open), "open" }, diff --git a/linux/x86_64/arch_defs_.h b/linux/x86_64/arch_defs_.h index 169e0892c4..a8c1d99188 100644 --- a/linux/x86_64/arch_defs_.h +++ b/linux/x86_64/arch_defs_.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_ARCH_OLD_MMAP 1 #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1 diff --git a/linux/x86_64/arch_kvm.c b/linux/x86_64/arch_kvm.c index f0075cae5a..cb168f34d1 100644 --- a/linux/x86_64/arch_kvm.c +++ b/linux/x86_64/arch_kvm.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2017-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifdef HAVE_STRUCT_KVM_REGS static void arch_print_kvm_regs(struct tcb *const tcp, diff --git a/linux/x86_64/arch_regs.c b/linux/x86_64/arch_regs.c index 5775bcfa6e..8878569e42 100644 --- a/linux/x86_64/arch_regs.c +++ b/linux/x86_64/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* * On i386, pt_regs and user_regs_struct are the same, * but on 64 bit x86, user_regs_struct has six more fields: diff --git a/linux/x86_64/arch_regs.h b/linux/x86_64/arch_regs.h index 6676bb8d6d..08824f2209 100644 --- a/linux/x86_64/arch_regs.h +++ b/linux/x86_64/arch_regs.h @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ /* does not provide these definitions. */ #define R15 0 diff --git a/linux/x86_64/asm_stat.h b/linux/x86_64/asm_stat.h index a563f08746..56b473f038 100644 --- a/linux/x86_64/asm_stat.h +++ b/linux/x86_64/asm_stat.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef STRACE_X86_64_ASM_STAT_H #define STRACE_X86_64_ASM_STAT_H diff --git a/linux/x86_64/get_error.c b/linux/x86_64/get_error.c index 927e46ca69..92b1a8446b 100644 --- a/linux/x86_64/get_error.c +++ b/linux/x86_64/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/x86_64/get_syscall_args.c b/linux/x86_64/get_syscall_args.c index 45b0460df0..e8e8833686 100644 --- a/linux/x86_64/get_syscall_args.c +++ b/linux/x86_64/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/x86_64/getregs_old.h b/linux/x86_64/getregs_old.h index f13fe24f23..de49582316 100644 --- a/linux/x86_64/getregs_old.h +++ b/linux/x86_64/getregs_old.h @@ -1,2 +1,9 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #define HAVE_GETREGS_OLD static int getregs_old(struct tcb *); diff --git a/linux/x86_64/set_error.c b/linux/x86_64/set_error.c index edcf1855e4..2c781b1d33 100644 --- a/linux/x86_64/set_error.c +++ b/linux/x86_64/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/x86_64/set_scno.c b/linux/x86_64/set_scno.c index 0e620af8ef..51242c4814 100644 --- a/linux/x86_64/set_scno.c +++ b/linux/x86_64/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/x86_64/shuffle_scno.c b/linux/x86_64/shuffle_scno.c index 77840c2303..6b688345f5 100644 --- a/linux/x86_64/shuffle_scno.c +++ b/linux/x86_64/shuffle_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + kernel_ulong_t shuffle_scno(kernel_ulong_t scno) { diff --git a/linux/x86_64/syscallent.h b/linux/x86_64/syscallent.h index 63ec52e83d..b6bf049dcc 100644 --- a/linux/x86_64/syscallent.h +++ b/linux/x86_64/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2002-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 0] = { 3, TD, SEN(read), "read" }, [ 1] = { 3, TD, SEN(write), "write" }, [ 2] = { 3, TD|TF, SEN(open), "open" }, diff --git a/linux/x86_64/userent.h b/linux/x86_64/userent.h index c5c084eb46..a8eab7d570 100644 --- a/linux/x86_64/userent.h +++ b/linux/x86_64/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + XLAT(8*R15), XLAT(8*R14), XLAT(8*R13), diff --git a/linux/xtensa/arch_regs.c b/linux/xtensa/arch_regs.c index 5b85fda9d6..557e5bacd1 100644 --- a/linux/xtensa/arch_regs.c +++ b/linux/xtensa/arch_regs.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static unsigned long xtensa_a2; #define ARCH_PC_PEEK_ADDR REG_PC #define ARCH_SP_PEEK_ADDR (REG_A_BASE + 1) diff --git a/linux/xtensa/get_error.c b/linux/xtensa/get_error.c index 0c38470c36..7fc8ac2c03 100644 --- a/linux/xtensa/get_error.c +++ b/linux/xtensa/get_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #include "negated_errno.h" static void diff --git a/linux/xtensa/get_scno.c b/linux/xtensa/get_scno.c index 854a279593..f8edf9f2bd 100644 --- a/linux/xtensa/get_scno.c +++ b/linux/xtensa/get_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return codes: 1 - ok, 0 - ignore, other - error. */ static int arch_get_scno(struct tcb *tcp) diff --git a/linux/xtensa/get_syscall_args.c b/linux/xtensa/get_syscall_args.c index ca3aeec589..25b46ec02b 100644 --- a/linux/xtensa/get_syscall_args.c +++ b/linux/xtensa/get_syscall_args.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + /* Return -1 on error or 1 on success (never 0!). */ static int arch_get_syscall_args(struct tcb *tcp) diff --git a/linux/xtensa/get_syscall_result.c b/linux/xtensa/get_syscall_result.c index 6eb513b804..bbb091c92a 100644 --- a/linux/xtensa/get_syscall_result.c +++ b/linux/xtensa/get_syscall_result.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int get_syscall_result_regs(struct tcb *tcp) { diff --git a/linux/xtensa/set_error.c b/linux/xtensa/set_error.c index e786b8ccb2..cd6d627bc3 100644 --- a/linux/xtensa/set_error.c +++ b/linux/xtensa/set_error.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_error(struct tcb *tcp) { diff --git a/linux/xtensa/set_scno.c b/linux/xtensa/set_scno.c index ca442fc339..8d38c13bcc 100644 --- a/linux/xtensa/set_scno.c +++ b/linux/xtensa/set_scno.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + static int arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) { diff --git a/linux/xtensa/syscallent.h b/linux/xtensa/syscallent.h index 64bdb76a2c..190071e1d2 100644 --- a/linux/xtensa/syscallent.h +++ b/linux/xtensa/syscallent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2013-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + [ 0] = { 0, 0, SEN(printargs), "spill" }, [ 1] = { 0, 0, SEN(printargs), "xtensa" }, [ 2 ... 7] = { }, diff --git a/linux/xtensa/userent.h b/linux/xtensa/userent.h index 0bee717917..71fa7d5764 100644 --- a/linux/xtensa/userent.h +++ b/linux/xtensa/userent.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014-2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + { REG_A_BASE, "a0" }, { REG_A_BASE+1, "a1" }, { REG_A_BASE+2, "a2" }, diff --git a/m4/gen_bpf_attr_m4.awk b/m4/gen_bpf_attr_m4.awk index 5896369f03..3158f7e5a3 100644 --- a/m4/gen_bpf_attr_m4.awk +++ b/m4/gen_bpf_attr_m4.awk @@ -1,3 +1,10 @@ +#!/bin/gawk -f +# +# Copyright (c) 2018 Dmitry V. Levin +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later + /^struct ([^[:space:]]+)_struct([[:space:]]+\/\* ([^[:space:]]+) \*\/)?[[:space:]]+{/ { match($0, /^struct ([^[:space:]]+)_struct([[:space:]]+\/\* ([^[:space:]]+) \*\/)?[[:space:]]+{/, a) diff --git a/m4/st_save_restore_var.m4 b/m4/st_save_restore_var.m4 index 2939380a7d..482dbcdeb5 100644 --- a/m4/st_save_restore_var.m4 +++ b/m4/st_save_restore_var.m4 @@ -1,3 +1,10 @@ +#!/usr/bin/m4 +# +# Copyright (c) 2016-2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later + AC_DEFUN([st_SAVE_VAR], [dnl AS_IF([test -n "${$1+set}"], [st_saved_$1="${$1}"; unset $1]) ]) diff --git a/m4/st_warn_cflags.m4 b/m4/st_warn_cflags.m4 index 33fac97d63..9e4d7e3e69 100644 --- a/m4/st_warn_cflags.m4 +++ b/m4/st_warn_cflags.m4 @@ -1,3 +1,10 @@ +#!/usr/bin/m4 +# +# Copyright (c) 2016-2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later + AC_DEFUN([st_WARN_CFLAGS], [dnl gl_WARN_ADD([-Wall]) gl_WARN_ADD([-Wempty-body]) diff --git a/maint/gen-release-github.sh b/maint/gen-release-github.sh index 8cb8e4861d..265830e65f 100755 --- a/maint/gen-release-github.sh +++ b/maint/gen-release-github.sh @@ -1,4 +1,9 @@ #!/bin/sh -efu +# +# Copyright (c) 2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later "$(dirname "$0")"/gen-tag-message.sh | sed 's/\([^[:space:]]\)\*/\1\\*/g' diff --git a/maint/gen-release-gitlab.sh b/maint/gen-release-gitlab.sh index f23d091a3c..4962d27ef7 100755 --- a/maint/gen-release-gitlab.sh +++ b/maint/gen-release-gitlab.sh @@ -1,4 +1,9 @@ #!/bin/sh -efu +# +# Copyright (c) 2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later cat <<'EOF' Downloads diff --git a/maint/gen-release-notes.sh b/maint/gen-release-notes.sh index 6c376b8fcc..a8f2e737c1 100755 --- a/maint/gen-release-notes.sh +++ b/maint/gen-release-notes.sh @@ -1,4 +1,9 @@ #!/bin/sh -efu +# +# Copyright (c) 2018 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later echo '
'
 "$(dirname "$0")"/gen-tag-message.sh
diff --git a/maint/update_copyright_years.awk b/maint/update_copyright_years.awk
index ee356c310e..430f6b55bf 100644
--- a/maint/update_copyright_years.awk
+++ b/maint/update_copyright_years.awk
@@ -1,3 +1,10 @@
+#!/bin/gawk -f
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
 # External variables:
 #   COMMENT_MARKER    - marks beginning of the comment on the line
 #   COMMENT_MARKER_RE - the same as previous, but in form usable
diff --git a/make-dist b/make-dist
index 41baa20941..8f21790bf4 100755
--- a/make-dist
+++ b/make-dist
@@ -1,4 +1,9 @@
 #!/bin/sh -e
+#
+# Copyright (c) 2009-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: LGPL-2.1-or-later
 
 id="$(git rev-parse --verify "${1:-@}^{commit}")"
 
diff --git a/make-dsc b/make-dsc
index f0e958ad6f..1240c856a3 100755
--- a/make-dsc
+++ b/make-dsc
@@ -1,4 +1,9 @@
 #!/bin/sh -e
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: LGPL-2.1-or-later
 
 exec < /dev/null
 
diff --git a/msghdr.h b/msghdr.h
index 9e458fec0b..40863807ea 100644
--- a/msghdr.h
+++ b/msghdr.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 Dmitry V. Levin 
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifndef STRACE_MSGHDR_H
 #define STRACE_MSGHDR_H
 
diff --git a/native_defs.h b/native_defs.h
index cdc735e088..c4189a6b37 100644
--- a/native_defs.h
+++ b/native_defs.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 Dmitry V. Levin 
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #undef MPERS_PRINTER_NAME
 #define MPERS_PRINTER_NAME(printer_name) printer_name
 
diff --git a/netlink_kobject_uevent.h b/netlink_kobject_uevent.h
index 5ac57cae62..a73b8b5f0f 100644
--- a/netlink_kobject_uevent.h
+++ b/netlink_kobject_uevent.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifndef STRACE_NETLINK_KOBJECT_UEVENT_H
 #define STRACE_NETLINK_KOBJECT_UEVENT_H
 
diff --git a/nsfs.h b/nsfs.h
index 3e17c53a90..06e7f2021a 100644
--- a/nsfs.h
+++ b/nsfs.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifndef STRACE_NSFS_H
 #define STRACE_NSFS_H
 
diff --git a/nsig.h b/nsig.h
index 528f7033bf..33ef9eec85 100644
--- a/nsig.h
+++ b/nsig.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 Dmitry V. Levin 
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifndef STRACE_NSIG_H
 #define STRACE_NSIG_H
 
diff --git a/perf_event_struct.h b/perf_event_struct.h
index 57d245bf59..0e1f82a8df 100644
--- a/perf_event_struct.h
+++ b/perf_event_struct.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 Eugene Syromyatnikov 
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifndef STRACE_LINUX_PERF_EVENT_STRUCT_H
 #define STRACE_LINUX_PERF_EVENT_STRUCT_H
 
diff --git a/pkeys.c b/pkeys.c
index f5338ab857..50dbd5796f 100644
--- a/pkeys.c
+++ b/pkeys.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 
 #include "xlat/pkey_access.h"
diff --git a/printsiginfo.h b/printsiginfo.h
index 7ad7238085..7c726790fa 100644
--- a/printsiginfo.h
+++ b/printsiginfo.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifndef STRACE_PRINTSIGINFO_H
 #define STRACE_PRINTSIGINFO_H
 
diff --git a/readahead.c b/readahead.c
index d6caac3301..92d170aef9 100644
--- a/readahead.c
+++ b/readahead.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 
 SYS_FUNC(readahead)
diff --git a/reboot.c b/reboot.c
index 12de30bc40..e0fe65b1cf 100644
--- a/reboot.c
+++ b/reboot.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 
 #include "xlat/bootflags1.h"
diff --git a/regs.h b/regs.h
index 7a044cef8f..bdcb72fefa 100644
--- a/regs.h
+++ b/regs.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 Dmitry V. Levin 
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifndef STRACE_REGS_H
 #define STRACE_REGS_H
 
diff --git a/renameat.c b/renameat.c
index 746e9c4a23..8f7118de4d 100644
--- a/renameat.c
+++ b/renameat.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 
 static void
diff --git a/retval.h b/retval.h
index 0de38c5a65..b9bdfa9236 100644
--- a/retval.h
+++ b/retval.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 Dmitry V. Levin 
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 /* retval to index and visa versa.  */
 #ifndef STRACE_RETVAL_H
 #define STRACE_RETVAL_H
diff --git a/sched_attr.h b/sched_attr.h
index 251d2c4f1c..c22c9656f0 100644
--- a/sched_attr.h
+++ b/sched_attr.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 Dmitry V. Levin 
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifndef STRACE_SCHED_ATTR_H
 #define STRACE_SCHED_ATTR_H
 
diff --git a/scno.head b/scno.head
index a640102f2a..11814b15f9 100644
--- a/scno.head
+++ b/scno.head
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #if defined __X32_SYSCALL_BIT && defined __NR_read \
  && (__X32_SYSCALL_BIT & __NR_read) == __X32_SYSCALL_BIT
 # define SYSCALL_BIT __X32_SYSCALL_BIT
diff --git a/sigreturn.c b/sigreturn.c
index bfc6f17bbf..755d2aa5b4 100644
--- a/sigreturn.c
+++ b/sigreturn.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 Dmitry V. Levin 
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 #include "ptrace.h"
 #include "nsig.h"
diff --git a/sram_alloc.c b/sram_alloc.c
index 922746bbc6..23ba8d12a4 100644
--- a/sram_alloc.c
+++ b/sram_alloc.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 
 #ifdef BFIN
diff --git a/statfs.c b/statfs.c
index 00dd04c4e4..36c99a11d0 100644
--- a/statfs.c
+++ b/statfs.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 
 SYS_FUNC(statfs)
diff --git a/statfs64.c b/statfs64.c
index cd433d51a2..f42307c40c 100644
--- a/statfs64.c
+++ b/statfs64.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 
 SYS_FUNC(statfs64)
diff --git a/swapon.c b/swapon.c
index e5ebd0fa77..87fd3c1fe3 100644
--- a/swapon.c
+++ b/swapon.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 
 #include 
diff --git a/sysent.h b/sysent.h
index cf2daed1be..71119a9996 100644
--- a/sysent.h
+++ b/sysent.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifndef STRACE_SYSENT_H
 #define STRACE_SYSENT_H
 
diff --git a/sysent_shorthand_defs.h b/sysent_shorthand_defs.h
index 2728b20640..009f9a4bc3 100644
--- a/sysent_shorthand_defs.h
+++ b/sysent_shorthand_defs.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifdef	STRACE_TESTS_H
 
 # define TD	0
diff --git a/sysent_shorthand_undefs.h b/sysent_shorthand_undefs.h
index 5232b64863..bc9ad13153 100644
--- a/sysent_shorthand_undefs.h
+++ b/sysent_shorthand_undefs.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #undef TD
 #undef TF
 #undef TI
diff --git a/tests/accept_compat.h b/tests/accept_compat.h
index c45b2551c9..7925d58920 100644
--- a/tests/accept_compat.h
+++ b/tests/accept_compat.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #ifndef _STRACE_TESTS_ACCEPT_COMPAT_H_
 #define _STRACE_TESTS_ACCEPT_COMPAT_H_
 
diff --git a/tests/access.c b/tests/access.c
index 4420ba3c30..cbdde6a274 100644
--- a/tests/access.c
+++ b/tests/access.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/acct.c b/tests/acct.c
index 1cc3fa56ec..2127df604e 100644
--- a/tests/acct.c
+++ b/tests/acct.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/attach-p-cmd.h b/tests/attach-p-cmd.h
index e04af38f13..5f27cd107d 100644
--- a/tests/attach-p-cmd.h
+++ b/tests/attach-p-cmd.h
@@ -1,2 +1,9 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 static const char lockdir[] = "attach-p-cmd.test-lock";
 static const char pidfile[] = "attach-p-cmd.test-pid";
diff --git a/tests/bpf-success-v.test b/tests/bpf-success-v.test
index 819afbbe60..9afcb1486e 100755
--- a/tests/bpf-success-v.test
+++ b/tests/bpf-success-v.test
@@ -1,4 +1,9 @@
 #!/bin/sh -efu
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/bpf-success.test b/tests/bpf-success.test
index 3cdfd35ac8..4321e53217 100755
--- a/tests/bpf-success.test
+++ b/tests/bpf-success.test
@@ -1,4 +1,9 @@
 #!/bin/sh -efu
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/brk.c b/tests/brk.c
index 572ebd61f0..caf40e130f 100644
--- a/tests/brk.c
+++ b/tests/brk.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/brk.test b/tests/brk.test
index 3781220e18..e90cf8ab43 100755
--- a/tests/brk.test
+++ b/tests/brk.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check brk syscall decoding.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/btrfs-X.test b/tests/btrfs-X.test
index c129be960a..58770ae00c 100755
--- a/tests/btrfs-X.test
+++ b/tests/btrfs-X.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
-# Check verbose xlat decoding of btrfs ioctl
+#
+# Check verbose xlat decoding of btrfs ioctl.
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/btrfs-v.test b/tests/btrfs-v.test
index 8cc2724a14..f67d4126cc 100755
--- a/tests/btrfs-v.test
+++ b/tests/btrfs-v.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
-# Check verbose decoding of btrfs ioctl
+#
+# Check verbose decoding of btrfs ioctl.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/btrfs-vX.test b/tests/btrfs-vX.test
index 163b29fd9a..db15a50c43 100755
--- a/tests/btrfs-vX.test
+++ b/tests/btrfs-vX.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
-# Check verbose, verbose xlat decoding of btrfs ioctl
+#
+# Check verbose, verbose xlat decoding of btrfs ioctl.
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/btrfs-vw.test b/tests/btrfs-vw.test
index 913fba1605..eba59d7a5d 100755
--- a/tests/btrfs-vw.test
+++ b/tests/btrfs-vw.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check verbose decoding of btrfs ioctl w/ live ioctls.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 # WARNING: USE OF THIS TEST WILL MODIFY AN EXISTING BTRFS FILE SYSTEM
 
diff --git a/tests/btrfs-vwX.test b/tests/btrfs-vwX.test
index 57c6891552..20f60abe93 100755
--- a/tests/btrfs-vwX.test
+++ b/tests/btrfs-vwX.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check verbose, verbose xlat decoding of btrfs ioctl w/ live ioctls.
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 # WARNING: USE OF THIS TEST WILL MODIFY AN EXISTING BTRFS FILE SYSTEM
 
diff --git a/tests/btrfs-w.test b/tests/btrfs-w.test
index 031f0b868a..ba9b220d0c 100755
--- a/tests/btrfs-w.test
+++ b/tests/btrfs-w.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check decoding of btrfs ioctl w/ live ioctls.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 # WARNING: USE OF THIS TEST WILL MODIFY AN EXISTING BTRFS FILE SYSTEM
 
diff --git a/tests/btrfs-wX.test b/tests/btrfs-wX.test
index 5fb694996c..1a7dea2e37 100755
--- a/tests/btrfs-wX.test
+++ b/tests/btrfs-wX.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check verbose xlat decoding of btrfs ioctl w/ live ioctls.
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 # WARNING: USE OF THIS TEST WILL MODIFY AN EXISTING BTRFS FILE SYSTEM
 
diff --git a/tests/btrfs.c b/tests/btrfs.c
index 9367995ef9..e69438e236 100644
--- a/tests/btrfs.c
+++ b/tests/btrfs.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 
 #ifdef HAVE_LINUX_BTRFS_H
diff --git a/tests/caps-abbrev.test b/tests/caps-abbrev.test
index ca223f9a02..601b8994a4 100755
--- a/tests/caps-abbrev.test
+++ b/tests/caps-abbrev.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check capget/capset syscalls decoding.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/caps.test b/tests/caps.test
index 607a75bbca..ac68364e27 100755
--- a/tests/caps.test
+++ b/tests/caps.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check capget/capset syscalls decoding.
+#
+# Copyright (c) 2014-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/chown.c b/tests/chown.c
index 12aa8b71b8..05fe9af15e 100644
--- a/tests/chown.c
+++ b/tests/chown.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/chown32.c b/tests/chown32.c
index 4fffd76994..f272620311 100644
--- a/tests/chown32.c
+++ b/tests/chown32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/chroot.c b/tests/chroot.c
index a084cf3374..3fc441e3b8 100644
--- a/tests/chroot.c
+++ b/tests/chroot.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/clone_parent.test b/tests/clone_parent.test
index 66b3bbbf8b..a5b077f34f 100755
--- a/tests/clone_parent.test
+++ b/tests/clone_parent.test
@@ -1,3 +1,10 @@
 #!/bin/sh -efu
+#
 # Check handling of CLONE_PARENT'ed processes.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 . "${srcdir=.}/clone_ptrace.test"
diff --git a/tests/clone_ptrace.test b/tests/clone_ptrace.test
index a1f0237aed..24c4298ad1 100755
--- a/tests/clone_ptrace.test
+++ b/tests/clone_ptrace.test
@@ -1,5 +1,12 @@
 #!/bin/sh -efu
+#
 # Check handling of CLONE_PTRACE'ed processes.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 . "${srcdir=.}/init.sh"
 
 run_prog > /dev/null 3>&1
diff --git a/tests/count-f.test b/tests/count-f.test
index 67515efa46..4f3d45f888 100755
--- a/tests/count-f.test
+++ b/tests/count-f.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
-# Check whether -c counts through forks and clones properly
+#
+# Check whether -c counts through forks and clones properly.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/creat.c b/tests/creat.c
index f22fdaaa4f..71819d5b8a 100644
--- a/tests/creat.c
+++ b/tests/creat.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/delay.test b/tests/delay.test
index 5fb2ad6281..df8552c7b1 100755
--- a/tests/delay.test
+++ b/tests/delay.test
@@ -1,5 +1,11 @@
 #!/bin/sh
+#
 # Check delay injection.
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/dup.c b/tests/dup.c
index 62157e2ff8..5cf5df7c50 100644
--- a/tests/dup.c
+++ b/tests/dup.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 #include 
diff --git a/tests/dup2.c b/tests/dup2.c
index 9f3addfa90..fba8fca560 100644
--- a/tests/dup2.c
+++ b/tests/dup2.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/dup3.c b/tests/dup3.c
index 7a65b61419..741e06f880 100644
--- a/tests/dup3.c
+++ b/tests/dup3.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 #include 
diff --git a/tests/epoll_create.c b/tests/epoll_create.c
index 44262c7db1..42cc8d0458 100644
--- a/tests/epoll_create.c
+++ b/tests/epoll_create.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/epoll_ctl.c b/tests/epoll_ctl.c
index 2251b35898..85a288cde0 100644
--- a/tests/epoll_ctl.c
+++ b/tests/epoll_ctl.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/epoll_pwait.c b/tests/epoll_pwait.c
index 841e7228c7..ce95e6dc5a 100644
--- a/tests/epoll_pwait.c
+++ b/tests/epoll_pwait.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/epoll_wait.c b/tests/epoll_wait.c
index caa30271e3..3981905d30 100644
--- a/tests/epoll_wait.c
+++ b/tests/epoll_wait.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/eventfd.test b/tests/eventfd.test
index e181ed6efa..b6d24454b3 100755
--- a/tests/eventfd.test
+++ b/tests/eventfd.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check eventfd2 syscall decoding.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/execve-v.test b/tests/execve-v.test
index 52ff0d7741..f8bafb91e6 100755
--- a/tests/execve-v.test
+++ b/tests/execve-v.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check verbose decoding of execve syscall.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/execve.test b/tests/execve.test
index 5635a9429f..0824bab48a 100755
--- a/tests/execve.test
+++ b/tests/execve.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check execve syscall decoding.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/faccessat.c b/tests/faccessat.c
index ce81349d14..6d95555aa0 100644
--- a/tests/faccessat.c
+++ b/tests/faccessat.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/fadvise64.test b/tests/fadvise64.test
index 161b28fa30..c4e1415e70 100755
--- a/tests/fadvise64.test
+++ b/tests/fadvise64.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check decoding of fadvise64 syscall.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/fchdir.c b/tests/fchdir.c
index 3cde5e6354..118e5fea0d 100644
--- a/tests/fchdir.c
+++ b/tests/fchdir.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/fchown.c b/tests/fchown.c
index d711903200..98bfd9deb9 100644
--- a/tests/fchown.c
+++ b/tests/fchown.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/fchown32.c b/tests/fchown32.c
index 2d9d60f8f3..9d52f9a8c1 100644
--- a/tests/fchown32.c
+++ b/tests/fchown32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/fdatasync.c b/tests/fdatasync.c
index fc82ade33e..f4c8d55f03 100644
--- a/tests/fdatasync.c
+++ b/tests/fdatasync.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/file_ioctl.c b/tests/file_ioctl.c
index ded67a9c92..7a2a905c0e 100644
--- a/tests/file_ioctl.c
+++ b/tests/file_ioctl.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 
 #ifdef HAVE_LINUX_FIEMAP_H
diff --git a/tests/fill_memory.c b/tests/fill_memory.c
index a0aeccba1f..6b15bbed7c 100644
--- a/tests/fill_memory.c
+++ b/tests/fill_memory.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 
 void
diff --git a/tests/filter-unavailable.test b/tests/filter-unavailable.test
index 15a9ad1d3d..8e7e67ee91 100755
--- a/tests/filter-unavailable.test
+++ b/tests/filter-unavailable.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
-# check that  syscalls are filtered properly
+#
+# Check that  syscalls are filtered properly.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/flock.c b/tests/flock.c
index c154e43796..4f0444097b 100644
--- a/tests/flock.c
+++ b/tests/flock.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/fsync.c b/tests/fsync.c
index 2f50410688..5624096b40 100644
--- a/tests/fsync.c
+++ b/tests/fsync.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/futex.test b/tests/futex.test
index fc98267a98..889eec6155 100755
--- a/tests/futex.test
+++ b/tests/futex.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check futex syscall decoding.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/get_page_size.c b/tests/get_page_size.c
index aeea861cc5..12ee929d2b 100644
--- a/tests/get_page_size.c
+++ b/tests/get_page_size.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getcwd.c b/tests/getcwd.c
index 2020df40f2..5f9a7293b5 100644
--- a/tests/getcwd.c
+++ b/tests/getcwd.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 
 #include 
diff --git a/tests/getegid.c b/tests/getegid.c
index 98f8b9cbec..2e0754b775 100644
--- a/tests/getegid.c
+++ b/tests/getegid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getegid32.c b/tests/getegid32.c
index d9951864b1..b7f5cb0827 100644
--- a/tests/getegid32.c
+++ b/tests/getegid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/geteuid.c b/tests/geteuid.c
index ef8269f972..430df1c652 100644
--- a/tests/geteuid.c
+++ b/tests/geteuid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/geteuid32.c b/tests/geteuid32.c
index 4341e46f3f..94174f3238 100644
--- a/tests/geteuid32.c
+++ b/tests/geteuid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getgid.c b/tests/getgid.c
index 2e060390e9..1bd705023f 100644
--- a/tests/getgid.c
+++ b/tests/getgid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getgid32.c b/tests/getgid32.c
index 52e4d76a0b..c6859cf4d2 100644
--- a/tests/getgid32.c
+++ b/tests/getgid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getgroups32.c b/tests/getgroups32.c
index d0a356de19..d005792d31 100644
--- a/tests/getgroups32.c
+++ b/tests/getgroups32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getpgrp.c b/tests/getpgrp.c
index 8b9d088277..3d45f718fb 100644
--- a/tests/getpgrp.c
+++ b/tests/getpgrp.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getpid.c b/tests/getpid.c
index 96f2d157ac..5e88e052a3 100644
--- a/tests/getpid.c
+++ b/tests/getpid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getppid.c b/tests/getppid.c
index 58901fc6e4..718d0691d9 100644
--- a/tests/getppid.c
+++ b/tests/getppid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getresgid.c b/tests/getresgid.c
index b8c687b1c9..3ad2c19041 100644
--- a/tests/getresgid.c
+++ b/tests/getresgid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getresgid32.c b/tests/getresgid32.c
index 71f11344d7..b78afaed91 100644
--- a/tests/getresgid32.c
+++ b/tests/getresgid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getresuid.c b/tests/getresuid.c
index b00f20ba42..5bb2e30114 100644
--- a/tests/getresuid.c
+++ b/tests/getresuid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getresuid32.c b/tests/getresuid32.c
index 4c9a83df5e..13acc695af 100644
--- a/tests/getresuid32.c
+++ b/tests/getresuid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getrlimit.c b/tests/getrlimit.c
index bd9d0b0f22..6d3b4cd5d2 100644
--- a/tests/getrlimit.c
+++ b/tests/getrlimit.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getsid.c b/tests/getsid.c
index b563de9d00..588ea4ab07 100644
--- a/tests/getsid.c
+++ b/tests/getsid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 #include 
diff --git a/tests/gettid.c b/tests/gettid.c
index 9b13eb880a..24947e89ce 100644
--- a/tests/gettid.c
+++ b/tests/gettid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 #include 
diff --git a/tests/getuid.c b/tests/getuid.c
index 57311f72da..56f6c9021e 100644
--- a/tests/getuid.c
+++ b/tests/getuid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/getuid.test b/tests/getuid.test
index 0bad1ff215..a0bbb3ed10 100755
--- a/tests/getuid.test
+++ b/tests/getuid.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check getuid syscall decoding.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/getuid32.c b/tests/getuid32.c
index 397dd08ff1..1222dbcb3a 100644
--- a/tests/getuid32.c
+++ b/tests/getuid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/inject-nf.test b/tests/inject-nf.test
index fa82e442d2..cadb5adb05 100755
--- a/tests/inject-nf.test
+++ b/tests/inject-nf.test
@@ -1,6 +1,11 @@
 #!/bin/sh -efu
-
+#
 # Check decoding of return values injected into a syscall that "never fails".
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/int_0x80.test b/tests/int_0x80.test
index 1188d9834f..6b3ca25f63 100755
--- a/tests/int_0x80.test
+++ b/tests/int_0x80.test
@@ -1,6 +1,11 @@
 #!/bin/sh
 #
 # Check decoding of int 0x80 on x86_64, x32, and x86.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/interactive_block.test b/tests/interactive_block.test
index f8f8173f19..57df767a01 100755
--- a/tests/interactive_block.test
+++ b/tests/interactive_block.test
@@ -1,7 +1,12 @@
 #!/bin/sh
-
+#
 # Check that in interactive mode those signals that were blocked
 # at strace startup will remain blocked.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/ioctl.test b/tests/ioctl.test
index b1b40d9e3d..5e11f589c2 100755
--- a/tests/ioctl.test
+++ b/tests/ioctl.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check ioctl syscall decoding.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/ioctl_evdev-success-v.test b/tests/ioctl_evdev-success-v.test
index 358d9a38aa..faedee30b8 100755
--- a/tests/ioctl_evdev-success-v.test
+++ b/tests/ioctl_evdev-success-v.test
@@ -1,4 +1,9 @@
 #!/bin/sh -efu
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/ioctl_evdev-success.c b/tests/ioctl_evdev-success.c
index 8c3f8f02e2..7887d417b5 100644
--- a/tests/ioctl_evdev-success.c
+++ b/tests/ioctl_evdev-success.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 
 #ifdef HAVE_LINUX_INPUT_H
diff --git a/tests/ioctl_evdev-success.test b/tests/ioctl_evdev-success.test
index e735af91ab..54b0a20a98 100755
--- a/tests/ioctl_evdev-success.test
+++ b/tests/ioctl_evdev-success.test
@@ -1,4 +1,9 @@
 #!/bin/sh -efu
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/ioctl_kvm_run.c b/tests/ioctl_kvm_run.c
index 602507fa16..4a56970823 100644
--- a/tests/ioctl_kvm_run.c
+++ b/tests/ioctl_kvm_run.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "ioctl_kvm_run_common.c"
 
 #if need_print_KVM_RUN
diff --git a/tests/ioctl_kvm_run_auxstr_vcpu.c b/tests/ioctl_kvm_run_auxstr_vcpu.c
index 16af293fb2..9140d3b273 100644
--- a/tests/ioctl_kvm_run_auxstr_vcpu.c
+++ b/tests/ioctl_kvm_run_auxstr_vcpu.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #define KVM_NO_CPUID_CALLBACK	\
 	error_msg_and_skip("newer kernel (>= 4.16) is needed")
 
diff --git a/tests/ioctl_perf-success.test b/tests/ioctl_perf-success.test
index 779a2a9b8e..2edd1d34d5 100755
--- a/tests/ioctl_perf-success.test
+++ b/tests/ioctl_perf-success.test
@@ -1,6 +1,11 @@
 #!/bin/sh -efu
-
+#
 # Check decoding of successful PERF_EVENT_IOC_{ID,QUERY_BPF} ioctls.
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/ioperm.c b/tests/ioperm.c
index 2f02b52340..3f99b2db5a 100644
--- a/tests/ioperm.c
+++ b/tests/ioperm.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/iopl.c b/tests/iopl.c
index 14ec29e302..f8904030af 100644
--- a/tests/iopl.c
+++ b/tests/iopl.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/ipc.sh b/tests/ipc.sh
index ef55073277..58e4309be0 100644
--- a/tests/ipc.sh
+++ b/tests/ipc.sh
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check decoding of ipc syscalls
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/ipc_msgbuf.test b/tests/ipc_msgbuf.test
index 9e78785512..4e26578a0c 100755
--- a/tests/ipc_msgbuf.test
+++ b/tests/ipc_msgbuf.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check msgget, msgsnd, msgrcv, msgctl syscalls decoding.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/kern_features-fault.test b/tests/kern_features-fault.test
index 20c964bf19..a46c839fa6 100755
--- a/tests/kern_features-fault.test
+++ b/tests/kern_features-fault.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check decoding of SPARC-specific kern_features syscall.
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/ksysent.sed b/tests/ksysent.sed
index cb5d060fba..c35ba22fe9 100644
--- a/tests/ksysent.sed
+++ b/tests/ksysent.sed
@@ -1,4 +1,9 @@
 #!/bin/sed -rnf
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 # should not have been exported at all
 /#define[[:space:]]+__NR_(sys_epoll_|arch_specific_syscall|arm_sync_file_range|syscalls|syscall_count|syscall_max|available|reserved|unused)/d
diff --git a/tests/ksysent.test b/tests/ksysent.test
index 8026648853..347ed675c6 100755
--- a/tests/ksysent.test
+++ b/tests/ksysent.test
@@ -1,4 +1,9 @@
 #!/bin/sh
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 # Validate syscallent.h
 
diff --git a/tests/lchown.c b/tests/lchown.c
index a07c878c03..c9008219b6 100644
--- a/tests/lchown.c
+++ b/tests/lchown.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/lchown32.c b/tests/lchown32.c
index 29cb01dba4..1a505e1f91 100644
--- a/tests/lchown32.c
+++ b/tests/lchown32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/link.c b/tests/link.c
index d6550fd3a9..357eb0becb 100644
--- a/tests/link.c
+++ b/tests/link.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/linkat.c b/tests/linkat.c
index 64b900ea0a..748ddf1818 100644
--- a/tests/linkat.c
+++ b/tests/linkat.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/llseek.test b/tests/llseek.test
index 9db68e3aa8..a285839846 100755
--- a/tests/llseek.test
+++ b/tests/llseek.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check _llseek syscall decoding.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/lseek.test b/tests/lseek.test
index 5b20a7f935..646f73134e 100755
--- a/tests/lseek.test
+++ b/tests/lseek.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check lseek syscall decoding.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/mkdir.c b/tests/mkdir.c
index d971b1884f..e6e62ef656 100644
--- a/tests/mkdir.c
+++ b/tests/mkdir.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/mkdirat.c b/tests/mkdirat.c
index 6bfe4a5fc5..91bf06be3c 100644
--- a/tests/mkdirat.c
+++ b/tests/mkdirat.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/mknod.c b/tests/mknod.c
index 1d8591a0fa..94d80284a6 100644
--- a/tests/mknod.c
+++ b/tests/mknod.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/mknodat.c b/tests/mknodat.c
index 7ef576558e..34b34d8073 100644
--- a/tests/mknodat.c
+++ b/tests/mknodat.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/mlock.c b/tests/mlock.c
index 8e9806bd59..0f31d20c81 100644
--- a/tests/mlock.c
+++ b/tests/mlock.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/munlockall.c b/tests/munlockall.c
index 337cd3e0db..0f103c8fd4 100644
--- a/tests/munlockall.c
+++ b/tests/munlockall.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 
 #include 
diff --git a/tests/net-packet_mreq.c b/tests/net-packet_mreq.c
index 88423b7bbc..16c42e39b3 100644
--- a/tests/net-packet_mreq.c
+++ b/tests/net-packet_mreq.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 #include 
diff --git a/tests/net-tpacket_req.c b/tests/net-tpacket_req.c
index 06955873cd..b11ddf8e3d 100644
--- a/tests/net-tpacket_req.c
+++ b/tests/net-tpacket_req.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 #include 
diff --git a/tests/net-tpacket_stats-success.test b/tests/net-tpacket_stats-success.test
index c298b6c3eb..47ab84ef3f 100755
--- a/tests/net-tpacket_stats-success.test
+++ b/tests/net-tpacket_stats-success.test
@@ -1,4 +1,9 @@
 #!/bin/sh -efu
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
  . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/net-tpacket_stats.c b/tests/net-tpacket_stats.c
index a13da5cabf..22f5fa25ed 100644
--- a/tests/net-tpacket_stats.c
+++ b/tests/net-tpacket_stats.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 #include 
diff --git a/tests/net-yy-inet6.c b/tests/net-yy-inet6.c
index c97979f73b..a993c660ee 100644
--- a/tests/net-yy-inet6.c
+++ b/tests/net-yy-inet6.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #define ADDR_FAMILY_FIELD sin6_family
 #define ADDR_FAMILY AF_INET6
 #define AF_STR "AF_INET6"
diff --git a/tests/net.test b/tests/net.test
index 832070780f..cca850a952 100755
--- a/tests/net.test
+++ b/tests/net.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check how network syscalls are traced.
+#
+# Copyright (c) 2014-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/nsyscalls-d.test b/tests/nsyscalls-d.test
index 2cca32f106..a6495b6b6d 100755
--- a/tests/nsyscalls-d.test
+++ b/tests/nsyscalls-d.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check decoding of out-of-range syscalls along with debug ouput
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/nsyscalls-nd.test b/tests/nsyscalls-nd.test
index 7d2f1e1f30..f578f9aa22 100755
--- a/tests/nsyscalls-nd.test
+++ b/tests/nsyscalls-nd.test
@@ -1,4 +1,9 @@
 #!/bin/sh
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 debug_flag=
 . "${srcdir=.}"/nsyscalls-d.test
diff --git a/tests/nsyscalls.test b/tests/nsyscalls.test
index 61f72d520d..08d45ac60a 100755
--- a/tests/nsyscalls.test
+++ b/tests/nsyscalls.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check decoding of out-of-range syscalls.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/opipe.test b/tests/opipe.test
index db449bb7c0..d6777250f7 100755
--- a/tests/opipe.test
+++ b/tests/opipe.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check how -o '|pipe' works.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/personality.test b/tests/personality.test
index d279bd1111..6d2b65c762 100755
--- a/tests/personality.test
+++ b/tests/personality.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check personality syscall decoding.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/pipe.test b/tests/pipe.test
index 0ae414d49e..af70b08df5 100755
--- a/tests/pipe.test
+++ b/tests/pipe.test
@@ -1,6 +1,12 @@
 #!/bin/sh
-
+#
 # Check decoding of pipe syscall.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 . "${srcdir=.}/init.sh"
 
 run_prog
diff --git a/tests/poll-P.test b/tests/poll-P.test
index a190572307..8ba2d303e2 100755
--- a/tests/poll-P.test
+++ b/tests/poll-P.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check path tracing of poll syscall.
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/poll.test b/tests/poll.test
index d09193d557..0e8691e2a7 100755
--- a/tests/poll.test
+++ b/tests/poll.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check poll syscall decoding.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/prctl-arg2-intptr.test b/tests/prctl-arg2-intptr.test
index 4f9e3a131b..feb5a2b946 100755
--- a/tests/prctl-arg2-intptr.test
+++ b/tests/prctl-arg2-intptr.test
@@ -1,7 +1,13 @@
 #!/bin/sh
-
+#
 # Check decoding of prctl PR_GET_CHILD_SUBREAPER, PR_GET_ENDIAN, PR_GET_FPEMU,
 # and PR_GET_FPEXC operations.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 . "${srcdir=.}/init.sh"
 
 check_prog grep
diff --git a/tests/prctl-dumpable.test b/tests/prctl-dumpable.test
index 05f1310c57..8662f79c11 100755
--- a/tests/prctl-dumpable.test
+++ b/tests/prctl-dumpable.test
@@ -1,6 +1,12 @@
 #!/bin/sh
-
+#
 # Check decoding of prctl PR_GET_DUMPABLE and PR_SET_DUMPABLE operations.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 . "${srcdir=.}/init.sh"
 
 check_prog grep
diff --git a/tests/prctl-name.test b/tests/prctl-name.test
index 95d34b68fe..b19efc0f67 100755
--- a/tests/prctl-name.test
+++ b/tests/prctl-name.test
@@ -1,6 +1,12 @@
 #!/bin/sh
-
+#
 # Check decoding of prctl PR_GET_NAME/PR_SET_NAME operations.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 . "${srcdir=.}/init.sh"
 
 check_prog grep
diff --git a/tests/prctl-no-args.test b/tests/prctl-no-args.test
index 8ff300b953..72d0f52532 100755
--- a/tests/prctl-no-args.test
+++ b/tests/prctl-no-args.test
@@ -1,8 +1,14 @@
 #!/bin/sh
-
+#
 # Check decoding of prctl PR_GET_KEEPCAPS, PR_GET_SECCOMP, PR_GET_TIMERSLACK,
 # PR_GET_TIMING, PR_TASK_PERF_EVENTS_DISABLE, and PR_TASK_PERF_EVENTS_ENABLE
 # operations.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 . "${srcdir=.}/init.sh"
 
 check_prog grep
diff --git a/tests/prctl-pdeathsig.test b/tests/prctl-pdeathsig.test
index b6e01407fb..faa40dbb2a 100755
--- a/tests/prctl-pdeathsig.test
+++ b/tests/prctl-pdeathsig.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check prctl PR_GET_PDEATHSIG PR_SET_PDEATHSIG decoding.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/prctl-seccomp-filter-v.test b/tests/prctl-seccomp-filter-v.test
index 3663ad899d..9f94a66ed9 100755
--- a/tests/prctl-seccomp-filter-v.test
+++ b/tests/prctl-seccomp-filter-v.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check verbose decoding of prctl PR_SET_SECCOMP SECCOMP_MODE_FILTER.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/prctl-seccomp-strict.test b/tests/prctl-seccomp-strict.test
index bee85b8b4b..e7e23df291 100755
--- a/tests/prctl-seccomp-strict.test
+++ b/tests/prctl-seccomp-strict.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check how prctl PR_SET_SECCOMP SECCOMP_MODE_STRICT is decoded.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/prctl-securebits.test b/tests/prctl-securebits.test
index 32b0f2aa0c..e50dc2ebd2 100755
--- a/tests/prctl-securebits.test
+++ b/tests/prctl-securebits.test
@@ -1,6 +1,12 @@
 #!/bin/sh
-
+#
 # Check decoding of prctl PR_GET_SECUREBITS/PR_SET_SECUREBITS operations.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 . "${srcdir=.}/init.sh"
 
 check_prog grep
diff --git a/tests/prctl-tid_address.test b/tests/prctl-tid_address.test
index 62a39e5676..f4a229f918 100755
--- a/tests/prctl-tid_address.test
+++ b/tests/prctl-tid_address.test
@@ -1,6 +1,12 @@
 #!/bin/sh
-
+#
 # Check decoding of prctl PR_GET_TID_ADDRESS operation.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 . "${srcdir=.}/init.sh"
 
 check_prog grep
diff --git a/tests/prctl-tsc.test b/tests/prctl-tsc.test
index 439d9d5a41..6dd891d616 100755
--- a/tests/prctl-tsc.test
+++ b/tests/prctl-tsc.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check prctl PR_GET_TSC PR_SET_TSC decoding.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/print_quoted_string.c b/tests/print_quoted_string.c
index a58b69ac47..ba4b5ec211 100644
--- a/tests/print_quoted_string.c
+++ b/tests/print_quoted_string.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 
 #include 
diff --git a/tests/process_vm_readv.c b/tests/process_vm_readv.c
index cfb8f78618..422000b804 100644
--- a/tests/process_vm_readv.c
+++ b/tests/process_vm_readv.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 
 #include 
diff --git a/tests/process_vm_writev.c b/tests/process_vm_writev.c
index 6271c01bc6..848a9e91ac 100644
--- a/tests/process_vm_writev.c
+++ b/tests/process_vm_writev.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 
 #include 
diff --git a/tests/pure_executables.list b/tests/pure_executables.list
index c2daf1b2d6..1a5238093e 100755
--- a/tests/pure_executables.list
+++ b/tests/pure_executables.list
@@ -1,4 +1,10 @@
-# executables without side effects
+# Executables without side effects.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 _newselect
 accept
 accept4
diff --git a/tests/qual_inject-error-signal.test b/tests/qual_inject-error-signal.test
index 93d8321d4f..2392e8bdb1 100755
--- a/tests/qual_inject-error-signal.test
+++ b/tests/qual_inject-error-signal.test
@@ -1,6 +1,12 @@
 #!/bin/sh
-
+#
 # Check fault injection along with signal injection.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 . "${srcdir=.}/scno_tampering.sh"
 
 : ${suffix=}
diff --git a/tests/qual_inject-retval.test b/tests/qual_inject-retval.test
index 239ab0a4d1..956d373d3b 100755
--- a/tests/qual_inject-retval.test
+++ b/tests/qual_inject-retval.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check success injection.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/qual_inject-signal.test b/tests/qual_inject-signal.test
index 7f75a8e74a..54a3498d7c 100755
--- a/tests/qual_inject-signal.test
+++ b/tests/qual_inject-signal.test
@@ -1,6 +1,12 @@
 #!/bin/sh
-
+#
 # Check signal injection.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 . "${srcdir=.}/init.sh"
 
 : ${suffix=}
diff --git a/tests/qual_syscall.test b/tests/qual_syscall.test
index 1524405a31..945fc8c729 100755
--- a/tests/qual_syscall.test
+++ b/tests/qual_syscall.test
@@ -2,6 +2,11 @@
 
 # Check how strace -e abbrev=set, -e raw=set, -e trace=set,
 # and -e verbose=set work.
+#
+# Copyright (c) 2014-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/quotactl-success-v.test b/tests/quotactl-success-v.test
index a9937bd31f..b81120421e 100755
--- a/tests/quotactl-success-v.test
+++ b/tests/quotactl-success-v.test
@@ -1,4 +1,9 @@
 #!/bin/sh -efu
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/quotactl-success.test b/tests/quotactl-success.test
index 6cd9532151..d041ebd95f 100755
--- a/tests/quotactl-success.test
+++ b/tests/quotactl-success.test
@@ -1,4 +1,9 @@
 #!/bin/sh -efu
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/quotactl-xfs-success-v.test b/tests/quotactl-xfs-success-v.test
index 4c4bb9cd78..7bcfa8ace3 100755
--- a/tests/quotactl-xfs-success-v.test
+++ b/tests/quotactl-xfs-success-v.test
@@ -1,4 +1,9 @@
 #!/bin/sh -efu
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/quotactl-xfs-success.test b/tests/quotactl-xfs-success.test
index 95077c8a9d..e9041dadf7 100755
--- a/tests/quotactl-xfs-success.test
+++ b/tests/quotactl-xfs-success.test
@@ -1,4 +1,9 @@
 #!/bin/sh -efu
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/scno_tampering.sh"
 
diff --git a/tests/reboot.c b/tests/reboot.c
index 3f819ce89e..8bc9c6b095 100644
--- a/tests/reboot.c
+++ b/tests/reboot.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/rename.c b/tests/rename.c
index 2a2a4e01e6..3d77573ce7 100644
--- a/tests/rename.c
+++ b/tests/rename.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/renameat.c b/tests/renameat.c
index 2b874efac4..7f11893f11 100644
--- a/tests/renameat.c
+++ b/tests/renameat.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/restart_syscall.test b/tests/restart_syscall.test
index f7dfa04fd6..8dde6684f0 100755
--- a/tests/restart_syscall.test
+++ b/tests/restart_syscall.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check how "resuming interrupted nanosleep" works.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/rmdir.c b/tests/rmdir.c
index 20952d84dc..505303ad2d 100644
--- a/tests/rmdir.c
+++ b/tests/rmdir.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/rt_sigaction.test b/tests/rt_sigaction.test
index fcde3bafab..afbbb54068 100755
--- a/tests/rt_sigaction.test
+++ b/tests/rt_sigaction.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check rt_sigaction decoding.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/run.sh b/tests/run.sh
index 208aa0f9ec..1a0aa7e529 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -1,4 +1,9 @@
 #!/bin/sh
+#
+# Copyright (c) 2013-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/sched_get_priority_mxx.c b/tests/sched_get_priority_mxx.c
index 5224ff1302..7715d28673 100644
--- a/tests/sched_get_priority_mxx.c
+++ b/tests/sched_get_priority_mxx.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/sched_rr_get_interval.c b/tests/sched_rr_get_interval.c
index 000a0be767..b1117f3b4a 100644
--- a/tests/sched_rr_get_interval.c
+++ b/tests/sched_rr_get_interval.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/sched_xetparam.c b/tests/sched_xetparam.c
index e761a9d0ea..e1325a6f71 100644
--- a/tests/sched_xetparam.c
+++ b/tests/sched_xetparam.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/sched_xetscheduler.c b/tests/sched_xetscheduler.c
index 8248a0c035..bc48085a4e 100644
--- a/tests/sched_xetscheduler.c
+++ b/tests/sched_xetscheduler.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/sched_yield.c b/tests/sched_yield.c
index 355e7e8dad..40b556171f 100644
--- a/tests/sched_yield.c
+++ b/tests/sched_yield.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/seccomp-strict.test b/tests/seccomp-strict.test
index b0398717d9..3525e20ceb 100755
--- a/tests/seccomp-strict.test
+++ b/tests/seccomp-strict.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check how seccomp SECCOMP_SET_MODE_STRICT is decoded.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/semop.c b/tests/semop.c
index 4b14882cef..f7f0470190 100644
--- a/tests/semop.c
+++ b/tests/semop.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 #include 
diff --git a/tests/setdomainname.c b/tests/setdomainname.c
index f3e248409f..177c0fd7a9 100644
--- a/tests/setdomainname.c
+++ b/tests/setdomainname.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setfsgid.c b/tests/setfsgid.c
index 871f4b35f7..496b267988 100644
--- a/tests/setfsgid.c
+++ b/tests/setfsgid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setfsgid32.c b/tests/setfsgid32.c
index 6279abd30c..a931602c06 100644
--- a/tests/setfsgid32.c
+++ b/tests/setfsgid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setfsuid.c b/tests/setfsuid.c
index d6faf9711f..269d38f2ea 100644
--- a/tests/setfsuid.c
+++ b/tests/setfsuid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setfsuid32.c b/tests/setfsuid32.c
index b71cf23542..cfcc0f83b9 100644
--- a/tests/setfsuid32.c
+++ b/tests/setfsuid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setgid.c b/tests/setgid.c
index 8794a0a4b3..3374924ae1 100644
--- a/tests/setgid.c
+++ b/tests/setgid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setgid32.c b/tests/setgid32.c
index 17f43c5857..427c77b04e 100644
--- a/tests/setgid32.c
+++ b/tests/setgid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setgroups32.c b/tests/setgroups32.c
index ecf00bbde3..935b73a99f 100644
--- a/tests/setgroups32.c
+++ b/tests/setgroups32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setregid.c b/tests/setregid.c
index e1da7862d7..68639e6ad5 100644
--- a/tests/setregid.c
+++ b/tests/setregid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setregid32.c b/tests/setregid32.c
index 3cf0daf6f2..6291bc58a4 100644
--- a/tests/setregid32.c
+++ b/tests/setregid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setresgid.c b/tests/setresgid.c
index 8701df8edc..f3a160e37d 100644
--- a/tests/setresgid.c
+++ b/tests/setresgid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setresgid32.c b/tests/setresgid32.c
index dfce457273..e05ae8f8dd 100644
--- a/tests/setresgid32.c
+++ b/tests/setresgid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setresuid.c b/tests/setresuid.c
index 3a9dbd1fc7..855a9bf702 100644
--- a/tests/setresuid.c
+++ b/tests/setresuid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setresuid32.c b/tests/setresuid32.c
index 387268a7f0..ccfc2a51c8 100644
--- a/tests/setresuid32.c
+++ b/tests/setresuid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setreuid.c b/tests/setreuid.c
index 68e7519234..1e34dd1810 100644
--- a/tests/setreuid.c
+++ b/tests/setreuid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setreuid32.c b/tests/setreuid32.c
index ba01762119..c0345db793 100644
--- a/tests/setreuid32.c
+++ b/tests/setreuid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setuid.c b/tests/setuid.c
index df2e46b171..4a8243e891 100644
--- a/tests/setuid.c
+++ b/tests/setuid.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/setuid32.c b/tests/setuid32.c
index c837d547c0..ba1b2e2da1 100644
--- a/tests/setuid32.c
+++ b/tests/setuid32.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/shmxt.c b/tests/shmxt.c
index 398667c84b..3742a4843e 100644
--- a/tests/shmxt.c
+++ b/tests/shmxt.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 #include 
diff --git a/tests/shutdown.c b/tests/shutdown.c
index d770c43a82..5297a0eb18 100644
--- a/tests/shutdown.c
+++ b/tests/shutdown.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 /* Check decoding of shutdown syscall. */
 
 #include "tests.h"
diff --git a/tests/sigaltstack.c b/tests/sigaltstack.c
index 884e3c55fa..905f71c780 100644
--- a/tests/sigaltstack.c
+++ b/tests/sigaltstack.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/sigaltstack.test b/tests/sigaltstack.test
index ff83c2eac6..a2ff441457 100755
--- a/tests/sigaltstack.test
+++ b/tests/sigaltstack.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check sigaltstack syscall decoding.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/sigblock.test b/tests/sigblock.test
index ddbe2dea58..ab1eaeb7ca 100755
--- a/tests/sigblock.test
+++ b/tests/sigblock.test
@@ -1,8 +1,13 @@
 #!/bin/sh
-
+#
 # Check signal mask transparency.
 # Starting with commit v4.17-5-gf83b49b strace is expected
 # to forward the signal mask to tracees unchanged.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/sigign.test b/tests/sigign.test
index 3164e72efc..07a8180c65 100755
--- a/tests/sigign.test
+++ b/tests/sigign.test
@@ -1,8 +1,13 @@
 #!/bin/sh
-
+#
 # Check signal disposition transparency.
 # Starting with commit v4.17-8-ge97a66f strace is expected
 # to forward the signal disposition to tracees unchanged.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/signal2name.c b/tests/signal2name.c
index 73e93b20c3..1d8e7c5932 100644
--- a/tests/signal2name.c
+++ b/tests/signal2name.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/skip_unavailable.c b/tests/skip_unavailable.c
index 074fc3a250..761a10c3ca 100644
--- a/tests/skip_unavailable.c
+++ b/tests/skip_unavailable.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 
 #include 
diff --git a/tests/stack-fcall-0.c b/tests/stack-fcall-0.c
index edd6d326c5..8a26a79cb3 100644
--- a/tests/stack-fcall-0.c
+++ b/tests/stack-fcall-0.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "stack-fcall.h"
 
 int f0(int i)
diff --git a/tests/stack-fcall-1.c b/tests/stack-fcall-1.c
index 5d0bf0e6cd..b5cd89b38a 100644
--- a/tests/stack-fcall-1.c
+++ b/tests/stack-fcall-1.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "stack-fcall.h"
 
 int f1(int i)
diff --git a/tests/stack-fcall-2.c b/tests/stack-fcall-2.c
index e164320786..16beee5888 100644
--- a/tests/stack-fcall-2.c
+++ b/tests/stack-fcall-2.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "stack-fcall.h"
 
 int f2(int i)
diff --git a/tests/stack-fcall-3.c b/tests/stack-fcall-3.c
index d2abe61050..3e0a705d16 100644
--- a/tests/stack-fcall-3.c
+++ b/tests/stack-fcall-3.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include 
 #include 
 
diff --git a/tests/stack-fcall.c b/tests/stack-fcall.c
index cfa904ca6f..cf4000e56f 100644
--- a/tests/stack-fcall.c
+++ b/tests/stack-fcall.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "stack-fcall.h"
 
 int main(void)
diff --git a/tests/stack-fcall.h b/tests/stack-fcall.h
index 1a83bad417..8dbe8b285e 100644
--- a/tests/stack-fcall.h
+++ b/tests/stack-fcall.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #ifdef MANGLE
 
 #define f0 _ZN2ns2f0Ei
diff --git a/tests/strace-C.test b/tests/strace-C.test
index 359ddbde23..5d3e37dc2a 100755
--- a/tests/strace-C.test
+++ b/tests/strace-C.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check -C option.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/strace-E.test b/tests/strace-E.test
index 843f27a9ad..82b95df533 100755
--- a/tests/strace-E.test
+++ b/tests/strace-E.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check -E option.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/strace-S.test b/tests/strace-S.test
index 64e4a41e5a..4b5be6d904 100755
--- a/tests/strace-S.test
+++ b/tests/strace-S.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check -S option.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/strace-T.test b/tests/strace-T.test
index a6dac4e6a0..7c3136b78b 100755
--- a/tests/strace-T.test
+++ b/tests/strace-T.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check -T option.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/strace-ff.test b/tests/strace-ff.test
index 6141814aee..429549f2a6 100755
--- a/tests/strace-ff.test
+++ b/tests/strace-ff.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check -ff option.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/strace-k-demangle.test b/tests/strace-k-demangle.test
index 106a700470..3789d0ea36 100755
--- a/tests/strace-k-demangle.test
+++ b/tests/strace-k-demangle.test
@@ -1,5 +1,11 @@
 #!/bin/sh
+#
 # Check strace -k symbol names demangling.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 test_prog=../stack-fcall-mangled
 
diff --git a/tests/strace-r.test b/tests/strace-r.test
index 00649b560d..936f4a15c9 100755
--- a/tests/strace-r.test
+++ b/tests/strace-r.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check -r option.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/strace-t.test b/tests/strace-t.test
index 73303aef18..a06408dbb3 100755
--- a/tests/strace-t.test
+++ b/tests/strace-t.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check -t option.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/strace-tt.test b/tests/strace-tt.test
index 328565599d..4d1331b15f 100755
--- a/tests/strace-tt.test
+++ b/tests/strace-tt.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check -tt option.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/strace-ttt.test b/tests/strace-ttt.test
index 7d4435beb3..089ff0647e 100755
--- a/tests/strace-ttt.test
+++ b/tests/strace-ttt.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check -ttt option.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/sun_path.test b/tests/sun_path.test
index f0b7a0263b..a2aab66421 100755
--- a/tests/sun_path.test
+++ b/tests/sun_path.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check how long sun_path addresses are traced.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/swap.c b/tests/swap.c
index 77b25050ae..a854182e2e 100644
--- a/tests/swap.c
+++ b/tests/swap.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/symlink.c b/tests/symlink.c
index 3e01cf2115..8283a8e243 100644
--- a/tests/symlink.c
+++ b/tests/symlink.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/symlinkat.c b/tests/symlinkat.c
index 6e5d617db4..be36b94196 100644
--- a/tests/symlinkat.c
+++ b/tests/symlinkat.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/sync.c b/tests/sync.c
index e6e7ce3725..e0b654d0b5 100644
--- a/tests/sync.c
+++ b/tests/sync.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/syslog.c b/tests/syslog.c
index 5df96cb8c5..363fdf967b 100644
--- a/tests/syslog.c
+++ b/tests/syslog.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/termsig.test b/tests/termsig.test
index fd8852ced7..d41ddf0a0a 100755
--- a/tests/termsig.test
+++ b/tests/termsig.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check termination signal forwarding.
+#
+# Copyright (c) 2017-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/test_netlink.h b/tests/test_netlink.h
index f509e18fe8..2ce476d54f 100644
--- a/tests/test_netlink.h
+++ b/tests/test_netlink.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include "print_fields.h"
 
diff --git a/tests/test_ucopy.h b/tests/test_ucopy.h
index 30d1c11d75..1a3b28199f 100644
--- a/tests/test_ucopy.h
+++ b/tests/test_ucopy.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include 
 
 extern bool
diff --git a/tests/times-fail.c b/tests/times-fail.c
index bc8b459507..551803df7b 100644
--- a/tests/times-fail.c
+++ b/tests/times-fail.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 #include 
diff --git a/tests/ugetrlimit.c b/tests/ugetrlimit.c
index a99e496d98..49627c1f92 100644
--- a/tests/ugetrlimit.c
+++ b/tests/ugetrlimit.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/uio.test b/tests/uio.test
index 01846852e1..75eb5de2d1 100755
--- a/tests/uio.test
+++ b/tests/uio.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check how pread/pwrite and preadv/pwritev syscalls are traced.
+#
+# Copyright (c) 2014-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/umask.c b/tests/umask.c
index 86903a954f..1a196f439d 100644
--- a/tests/umask.c
+++ b/tests/umask.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include 
 #include 
 
diff --git a/tests/umount.test b/tests/umount.test
index a5840d54b6..e98ad9f306 100755
--- a/tests/umount.test
+++ b/tests/umount.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check umount syscall decoding.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/umount2.test b/tests/umount2.test
index c43b38dbaa..33b466d531 100755
--- a/tests/umount2.test
+++ b/tests/umount2.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check umount2 syscall decoding.
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/umovestr.test b/tests/umovestr.test
index 5ae8ffa9b7..3bfe190031 100755
--- a/tests/umovestr.test
+++ b/tests/umovestr.test
@@ -1,4 +1,9 @@
 #!/bin/sh
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 # umovestr short read regression test
 
diff --git a/tests/umovestr2.test b/tests/umovestr2.test
index 3decbe2b9d..278a9675f6 100755
--- a/tests/umovestr2.test
+++ b/tests/umovestr2.test
@@ -1,4 +1,9 @@
 #!/bin/sh
+#
+# Copyright (c) 2015-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 # umovestr short read regression test
 
diff --git a/tests/uname.c b/tests/uname.c
index 23b64c1423..386fd99bdf 100644
--- a/tests/uname.c
+++ b/tests/uname.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/uname.test b/tests/uname.test
index 7ca1b5b428..2272c4f052 100755
--- a/tests/uname.test
+++ b/tests/uname.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check uname syscall decoding.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/unix-pair-send-recv.test b/tests/unix-pair-send-recv.test
index 10ab7ccc59..60def6ab69 100755
--- a/tests/unix-pair-send-recv.test
+++ b/tests/unix-pair-send-recv.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check decoding and dumping of send and recv syscalls.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/unix-pair-sendto-recvfrom.test b/tests/unix-pair-sendto-recvfrom.test
index 0bd9a040fd..bd59ab7d2a 100755
--- a/tests/unix-pair-sendto-recvfrom.test
+++ b/tests/unix-pair-sendto-recvfrom.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check decoding and dumping of sendto and recvfrom syscalls.
+#
+# Copyright (c) 2016-2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/unlink.c b/tests/unlink.c
index bbb1de1558..9c33b624e6 100644
--- a/tests/unlink.c
+++ b/tests/unlink.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/unlinkat.c b/tests/unlinkat.c
index 22c3de399c..0ae6796461 100644
--- a/tests/unlinkat.c
+++ b/tests/unlinkat.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/vhangup.c b/tests/vhangup.c
index e7ddabba23..1a786cc307 100644
--- a/tests/vhangup.c
+++ b/tests/vhangup.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/tests/xattr-strings.c b/tests/xattr-strings.c
index 310929a954..a3fdabbdb2 100644
--- a/tests/xattr-strings.c
+++ b/tests/xattr-strings.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 
 #ifdef HAVE_SYS_XATTR_H
diff --git a/tests/xet_thread_area_x86.test b/tests/xet_thread_area_x86.test
index 863f7e21a4..2f7fe27a37 100755
--- a/tests/xet_thread_area_x86.test
+++ b/tests/xet_thread_area_x86.test
@@ -1,6 +1,11 @@
 #!/bin/sh
-
+#
 # Check decoding of set_thread_area and get_thread_area syscalls on x86.
+#
+# Copyright (c) 2018 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 . "${srcdir=.}/init.sh"
 
diff --git a/tests/xetpriority.c b/tests/xetpriority.c
index 30c59c81f6..5cd97ea947 100644
--- a/tests/xetpriority.c
+++ b/tests/xetpriority.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
 #include 
 
diff --git a/truncate.c b/truncate.c
index f18394d977..12918dd99f 100644
--- a/truncate.c
+++ b/truncate.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 
 SYS_FUNC(truncate)
diff --git a/uid16.c b/uid16.c
index c6d665df74..9502c2d3a7 100644
--- a/uid16.c
+++ b/uid16.c
@@ -1,2 +1,9 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #define STRACE_UID_SIZE 16
 #include "uid.c"
diff --git a/umask.c b/umask.c
index d42258a961..43de25e19d 100644
--- a/umask.c
+++ b/umask.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 
 SYS_FUNC(umask)
diff --git a/umount.c b/umount.c
index 8fafeabe22..7f431654b7 100644
--- a/umount.c
+++ b/umount.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 #include "xlat/umount_flags.h"
 
diff --git a/utime.c b/utime.c
index 6ab6d8923b..b6bd119d46 100644
--- a/utime.c
+++ b/utime.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include "defs.h"
 
 #include DEF_MPERS_TYPE(utimbuf_t)
diff --git a/xfs_quota_stat.h b/xfs_quota_stat.h
index 4bb8df67b2..3e78004a06 100644
--- a/xfs_quota_stat.h
+++ b/xfs_quota_stat.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #include 
 #include "kernel_types.h"
 
diff --git a/xlat.h b/xlat.h
index e86df7971c..05778061aa 100644
--- a/xlat.h
+++ b/xlat.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifndef STRACE_XLAT_H
 #define STRACE_XLAT_H
 
diff --git a/xstring.h b/xstring.h
index 16f9b17912..07dcaac5b0 100644
--- a/xstring.h
+++ b/xstring.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 Eugene Syromyatnikov 
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
 #ifndef STRACE_XSTRING_H
 #define STRACE_XSTRING_H