From: Dmitry V. Levin Date: Mon, 24 Dec 2018 23:46:43 +0000 (+0000) Subject: Add copyright headers to some files that lack them X-Git-Tag: v4.26~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92e347b556bb183ebaaf6fedb839da222c8c67b4;p=strace Add copyright headers to some files that lack them We do our best to keep copyright headers up to date, yet git history provides better information on this subject and is more accurate than copyright headers. --- diff --git a/access.c b/access.c index a9663dc1..5c2e6e99 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 af2a06b6..19ca4a85 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 bb3d466a..290d819a 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 daaa01cd..ebf2d1ba 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 ad206ffa..4398236a 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 d8fa6f47..7c36160e 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 e8ac2858..b07d164e 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 fd76490c..7668e746 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 4e5445f5..e475de3f 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 3699ab09..de59599b 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 a1883a10..8b3317e8 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 b707279c..82c0d642 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 6aed51d0..15fcb063 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 50fc9d11..63eadb2e 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 55d82bbd..d7876758 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 cc9b1135..8e352945 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 1f358240..e5029f32 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 166fc63d..0aac13d2 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 833cd29b..7cd53438 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 33d55392..39c96772 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 5d0f52d1..e91c76ff 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 a8ef591b..7c6de9af 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 49c6234b..6dae186d 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 ea9ad572..4fe26455 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 75f96ba6..c13cf1d2 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 e9eea7f6..73f9fa9f 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 0f2bb322..e4712f13 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 7f3a9dba..654ce94d 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 27ae3f5c..84294ba0 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 8b05c75f..901b889f 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 f25c62e6..d08b1615 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 40232fd6..ed9261f5 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 03cd7d4c..f88067db 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 ab9fad79..38856a97 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 350f32fb..af758aee 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 f167e809..fce96273 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 03686092..bb04450d 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 fe44672b..e2b5d8a2 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 7d4de73c..a4c0d3be 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 188d6359..6016a1d1 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 f6fe59e5..6ae6f062 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 79533522..6232f6fc 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 a35e8651..ac6c35f2 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 b8b7716e..57dc7c41 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 9a3f0d67..4f3ec926 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 379348b6..3c8e8ebf 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 3142da24..2d5c6d6a 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 2e39b844..381d75e6 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 e49a8253..85fef4f9 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 78a247e5..2136e994 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 e285c9ab..09059a38 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 a78e6de0..f086a42a 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 3a043b56..fa5240f3 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 07849a3c..ee11f21b 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 88f9c83d..791a0aab 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 d2046b2d..4d9a93e6 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 acf5778c..94b886ea 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 afc9bd50..546362e4 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 ea25d74d..adbf218e 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 1b7fd772..aed2e55a 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 87e20063..f4b3a7f7 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 f12f32ab..c7ae7b7b 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 8f101d84..318901a9 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 1a7e176f..0b2f3b0d 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 1a8269c1..bc453bb7 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 6edc7649..c26405d3 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 9cd53d2e..df0571c9 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 007b9e60..bc8e9c4a 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 99f571ff..bbbcf80b 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 9b303d5c..8b754dca 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 015ed066..0c4de440 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 17a40d67..68199cfc 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 bd36a6fa..a3555def 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 a9266020..1f4d6a23 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 578e2acb..f3d60dac 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 654e6b98..bd1013f1 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 092dad30..22ace6f4 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 90fbfafb..796b68a8 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 f4ef41d6..5b7137c7 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 66c4db7e..da218f4a 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 4fbfc142..b1b52fe5 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 d642058b..309d8e7e 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 6017f67d..426e589c 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 98abd722..2d1059a1 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 c394889c..6968e480 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 3d0e908f..336b9f6d 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 5c814b47..923542f9 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 002d904d..c39cde27 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 d63230fe..00a325b4 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 f7a7ca63..a35ba9fd 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 cdeff678..acadab25 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 1400c280..1b1dbbed 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 fd2c3a3d..5c73c9f9 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 3a9bc3b3..a237049e 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 2a19ddab..886320ee 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 68a53c51..3c8b06fd 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 5ce449ac..0a2d5a86 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 fb3ed56b..fe0fb5e3 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 b58f8d70..04040559 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 de2b8829..af130b06 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 edaada7f..288d6f0a 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 fcf8f43a..635e9b33 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 3e9b2d97..7f38ee49 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 1a7e176f..0b2f3b0d 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 aeaed9cf..fac42744 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 058a4a6e..67df3fee 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 89de8113..c5e95c17 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 c2e55510..980952f3 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 353bde02..c048285a 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 0e0d7c60..07861ac3 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 9ac551f9..fcff8aeb 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 a8abd11d..bdbefd8c 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 d2728ff7..da7d4440 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 8674172a..87ca0cdb 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 f4ea78cc..c518b607 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 9251eaae..9d539da5 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 1ce7be86..ce196bce 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 88f2cad5..6aba4097 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 040e5c7b..bf1f71af 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 69344997..b27154e1 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 8e0f9c45..c1c89df9 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 d2ffae6f..f6f63724 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 f01b75a7..a4c259cc 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 67e815c4..1a8da94f 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 08489580..13b82eb0 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 382815cd..4682c0f8 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 3a0472c1..9af04478 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 829f3477..41db19c5 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 a95db471..f2657b37 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 1ce72abe..bf01eef7 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 b45e6485..84e8835c 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 a17807ec..ba14c11a 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 08179fae..67ee70fe 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 afdec9d7..b1e1649c 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 6dc2ab4a..e7b83e28 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 c11de145..7f3c5cf2 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 9e10d798..18e42dd4 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 c9b63c81..08dc3cd9 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 723cfe36..f305974e 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 d642058b..309d8e7e 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 79f2dda0..4faf9376 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 27920734..412e2078 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 fb529ff8..b7ad28dc 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 6c11cd44..aaf2dcb3 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 19314204..6c35994d 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 5b593a4a..79f23ca4 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 5bb83b5f..71b3fbc3 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 4f69a525..cf896cc2 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 68710cf3..d3b64880 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 51a6ade0..d933e23b 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 1f20dab0..f789e18d 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 fd73a79c..33b53ba2 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 2f604d83..0874e31e 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 aeac7c21..fe8180f3 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 0e49f058..6f0c16fb 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 11f141f5..0d21692e 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 6bf6b20e..bcc219d5 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 9364f817..f06fae46 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 ec360243..387aa852 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 c00687f6..da4259ef 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 89cf38ce..af019ae0 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 1eb456cc..ad312583 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 11dfe881..c3caf2bb 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 d8b309d7..fce44a27 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 faa91839..54f68c30 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 2a7beb6d..d0c26175 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 64e157a8..ede98372 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 1399142b..77cf50da 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 88dde228..6eca8559 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 2bd4e4a2..9c778e24 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 ecbef0ee..f9885ee6 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 0dc66fba..d202abd9 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 f4db85ee..cc0bd06d 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 d71d29cd..1e42fcd7 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 ecef8aa2..61fc0300 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 1f5051c2..64f226b1 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 301fd0e2..31431cf0 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 f22814f4..3b3d2d4e 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 efdef989..196419df 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 f6977581..e551f13f 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 f446c907..f997abd4 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 17e41dca..f06d0a88 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 17973387..b5cb7016 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 269eeb5a..df2c5ad8 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 10af205e..ac339463 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 c6fd7d39..056d1009 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 368e26ff..d3a4bcf5 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 06b6da95..31033712 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 78c4c3e7..f9d0de59 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 227a7970..321f19a4 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 b118c8eb..23d2111b 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 7aa7808b..716e8782 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 ef06656f..6624614a 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 471bf08f..823d7839 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 4485ca68..7edb796f 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 d22df112..9b8a6f2f 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 f00ef238..f47ad85b 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 e2094c24..93cc656b 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 037b52f6..871f4109 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 8a943e8d..03523d39 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 b223c48c..a9c27bc7 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 b6c08bc9..cbf5a67e 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 8bec778e..d4066534 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 0ca1ed34..6b4256e7 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 a79fa445..9418b8e4 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 6d1eee4c..b9038c90 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 64c7db76..2c586ee9 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 3dfed89e..b8274586 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 d739fd02..39b7658d 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 414123e4..dd872ca3 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 f63ef132..1d0f0e00 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 e7c16324..5b580130 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 2661795d..2af6c8e6 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 881dc95d..66570ff5 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 f73e5780..f71865ef 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 6bb99993..650deecb 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 f9c71d8a..8ba070b9 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 71fae74a..21a90fb7 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 3ff99b90..6691167c 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 bed2f2d6..1e520761 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 1dd35dbb..7a2c0a6a 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 4065e064..55930a35 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 c30b317f..0d3b610c 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 bf81b94c..5f9cf4e7 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 5dcab261..1a7147c0 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 4a80ac27..2acd00a0 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 2b4d16e8..a8d6f3bf 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 d14488fe..8997dd88 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 b4d39f0a..1809580d 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 c0067319..bd32ac8f 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 8ea0fc40..74164547 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 2cd1a6b2..9319c612 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 e89520de..b23824d5 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 15f77b91..005a45c0 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 ff07a986..a8d6bc49 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 bad76ede..ef51a5c4 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 4c175ed7..2f0b7703 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 116861a9..8d769e5f 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 918805a1..c1d41224 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 0c9ca195..18f4d738 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 787ae22f..9b3d4eb3 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 670cdb66..5bf759d6 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 b3971600..795031c9 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 bda2cd26..c85786bd 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 5a387326..d74b7185 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 33c42479..1183f687 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 29293b22..4a983571 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 0e7c18fa..f7e0fdfa 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 e8810d29..ecff5f63 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 0e6feaf2..dc1633d2 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 45a0df99..b17ea843 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 ebdbe8cb..1cb3a806 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 f69c385f..718414b2 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 94f6e2bd..3549c95d 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 f8783533..fd8908bb 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 7a28d464..62d240f7 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 13edd425..13b5dcca 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 cd9c8e36..4e6d471a 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 03d774b0..b3e80c31 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 f041259d..b515952a 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 0ab8b3c2..96c61c44 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 d285b7ca..7cffdd3f 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 c891a0b5..813fc3a0 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 39d7c85a..7a3a6281 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 4c409b43..8e3497c3 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 31ce9a2a..68eef4fc 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 c1c2fae2..07f0e405 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 feac9da6..6a9f4c35 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 fcf60ae6..f254e2bf 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 81a3aa93..56ecbce2 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 00dbf894..40a306ce 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 6c266af9..e89c578e 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 a3a28582..ae6dc948 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 9387e254..87076bf3 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 b9265979..a781208c 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 cd048baa..f792e773 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 92631f4d..43b27b5d 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 ae8ecbd3..c6b6c807 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 e8403d9b..9be1ea76 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 c27339bd..34d596ab 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 16d9b956..78e476cf 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 c28d88c3..c1ab0d55 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 eb518fb9..50b60a4f 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 b305f067..19941c29 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 915f4a50..167e9729 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 f1a7fc0c..d6477aee 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 b3c5ebce..c9e24cd1 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 40232fd6..ed9261f5 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 d0db368f..0e1abb30 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 3635a8ad..38287592 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 169e0892..a8c1d991 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 f0075cae..cb168f34 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 5775bcfa..8878569e 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 6676bb8d..08824f22 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 a563f087..56b473f0 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 927e46ca..92b1a844 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 45b0460d..e8e88336 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 f13fe24f..de495823 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 edcf1855..2c781b1d 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 0e620af8..51242c48 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 77840c23..6b688345 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 63ec52e8..b6bf049d 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 c5c084eb..a8eab7d5 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 5b85fda9..557e5bac 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 0c38470c..7fc8ac2c 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 854a2795..f8edf9f2 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 ca3aeec5..25b46ec0 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 6eb513b8..bbb091c9 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 e786b8cc..cd6d627b 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 ca442fc3..8d38c13b 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 64bdb76a..190071e1 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 0bee7179..71fa7d57 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 5896369f..3158f7e5 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 2939380a..482dbcde 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 33fac97d..9e4d7e3e 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 8cb8e486..265830e6 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 f23d091a..4962d27e 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 6c376b8f..a8f2e737 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 ee356c31..430f6b55 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 41baa209..8f21790b 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 f0e958ad..1240c856 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 9e458fec..40863807 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 cdc735e0..c4189a6b 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 5ac57cae..a73b8b5f 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 3e17c53a..06e7f202 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 528f7033..33ef9eec 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 57d245bf..0e1f82a8 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 f5338ab8..50dbd579 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 7ad72380..7c726790 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 d6caac33..92d170ae 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 12de30bc..e0fe65b1 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 7a044cef..bdcb72fe 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 746e9c4a..8f7118de 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 0de38c5a..b9bdfa92 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 251d2c4f..c22c9656 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 a640102f..11814b15 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 bfc6f17b..755d2aa5 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 922746bb..23ba8d12 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 00dd04c4..36c99a11 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 cd433d51..f42307c4 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 e5ebd0fa..87fd3c1f 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 cf2daed1..71119a99 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 2728b206..009f9a4b 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 5232b648..bc9ad131 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 c45b2551..7925d589 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 4420ba3c..cbdde6a2 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 1cc3fa56..2127df60 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 e04af38f..5f27cd10 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 819afbbe..9afcb148 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 3cdfd35a..4321e532 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 572ebd61..caf40e13 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 3781220e..e90cf8ab 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 c129be96..58770ae0 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 8cc2724a..f67d4126 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 163b29fd..db15a50c 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 913fba16..eba59d7a 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 57c68915..20f60abe 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 031f0b86..ba9b220d 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 5fb69499..1a7dea2e 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 9367995e..e69438e2 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 ca223f9a..601b8994 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 607a75bb..ac68364e 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 12aa8b71..05fe9af1 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 4fffd769..f2726203 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 a084cf33..3fc441e3 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 66b3bbbf..a5b077f3 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 a1f0237a..24c4298a 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 67515efa..4f3d45f8 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 f22fdaaa..71819d5b 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 5fb2ad62..df8552c7 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 62157e2f..5cf5df7c 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 9f3addfa..fba8fca5 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 7a65b614..741e06f8 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 44262c7d..42cc8d04 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 2251b358..85a288cd 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 841e7228..ce95e6dc 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 caa30271..3981905d 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 e181ed6e..b6d24454 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 52ff0d77..f8bafb91 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 5635a942..0824bab4 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 ce81349d..6d95555a 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 161b28fa..c4e1415e 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 3cde5e63..118e5fea 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 d7119032..98bfd9de 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 2d9d60f8..9d52f9a8 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 fc82ade3..f4c8d55f 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 ded67a9c..7a2a905c 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 a0aeccba..6b15bbed 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 15a9ad1d..8e7e67ee 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 c154e437..4f044409 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 2f504106..5624096b 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 fc98267a..889eec61 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 aeea861c..12ee929d 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 2020df40..5f9a7293 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 98f8b9cb..2e0754b7 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 d9951864..b7f5cb08 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 ef8269f9..430df1c6 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 4341e46f..94174f32 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 2e060390..1bd70502 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 52e4d76a..c6859cf4 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 d0a356de..d005792d 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 8b9d0882..3d45f718 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 96f2d157..5e88e052 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 58901fc6..718d0691 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 b8c687b1..3ad2c190 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 71f11344..b78afaed 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 b00f20ba..5bb2e301 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 4c9a83df..13acc695 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 bd9d0b0f..6d3b4cd5 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 b563de9d..588ea4ab 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 9b13eb88..24947e89 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 57311f72..56f6c902 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 0bad1ff2..a0bbb3ed 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 397dd08f..1222dbcb 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 fa82e442..cadb5adb 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 1188d983..6b3ca25f 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 f8f8173f..57df767a 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 b1b40d9e..5e11f589 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 358d9a38..faedee30 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 8c3f8f02..7887d417 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 e735af91..54b0a20a 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 602507fa..4a569708 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 16af293f..9140d3b2 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 779a2a9b..2edd1d34 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 2f02b523..3f99b2db 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 14ec29e3..f8904030 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 ef550732..58e4309b 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 9e787855..4e26578a 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 20c964bf..a46c839f 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 cb5d060f..c35ba22f 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 80266488..347ed675 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 a07c878c..c9008219 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 29cb01db..1a505e1f 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 d6550fd3..357eb0be 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 64b900ea..748ddf18 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 9db68e3a..a2858398 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 5b20a7f9..646f7313 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 d971b188..e6e62ef6 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 6bfe4a5f..91bf06be 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 1d8591a0..94d80284 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 7ef57655..34b34d80 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 8e9806bd..0f31d20c 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 337cd3e0..0f103c8f 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 88423b7b..16c42e39 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 06955873..b11ddf8e 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 c298b6c3..47ab84ef 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 a13da5ca..22f5fa25 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 c97979f7..a993c660 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 83207078..cca850a9 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 2cca32f1..a6495b6b 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 7d2f1e1f..f578f9aa 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 61f72d52..08d45ac6 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 db449bb7..d6777250 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 d279bd11..6d2b65c7 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 0ae414d4..af70b08d 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 a1905723..8ba2d303 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 d09193d5..0e8691e2 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 4f9e3a13..feb5a2b9 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 05f1310c..8662f79c 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 95d34b68..b19efc0f 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 8ff300b9..72d0f525 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 b6e01407..faa40dbb 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 3663ad89..9f94a66e 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 bee85b8b..e7e23df2 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 32b0f2aa..e50dc2eb 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 62a39e56..f4a229f9 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 439d9d5a..6dd891d6 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 a58b69ac..ba4b5ec2 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 cfb8f786..422000b8 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 6271c01b..848a9e91 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 c2daf1b2..1a523809 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 93d8321d..2392e8bd 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 239ab0a4..956d373d 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 7f75a8e7..54a3498d 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 1524405a..945fc8c7 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 a9937bd3..b8112042 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 6cd95321..d041ebd9 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 4c4bb9cd..7bcfa8ac 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 95077c8a..e9041dad 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 3f819ce8..8bc9c6b0 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 2a2a4e01..3d77573c 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 2b874efa..7f11893f 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 f7dfa04f..8dde6684 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 20952d84..505303ad 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 fcde3baf..afbbb540 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 208aa0f9..1a0aa7e5 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 5224ff13..7715d286 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 000a0be7..b1117f3b 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 e761a9d0..e1325a6f 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 8248a0c0..bc48085a 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 355e7e8d..40b55617 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 b0398717..3525e20c 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 4b14882c..f7f04701 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 f3e24840..177c0fd7 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 871f4b35..496b2679 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 6279abd3..a931602c 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 d6faf971..269d38f2 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 b71cf235..cfcc0f83 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 8794a0a4..3374924a 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 17f43c58..427c77b0 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 ecf00bbd..935b73a9 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 e1da7862..68639e6a 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 3cf0daf6..6291bc58 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 8701df8e..f3a160e3 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 dfce4572..e05ae8f8 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 3a9dbd1f..855a9bf7 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 387268a7..ccfc2a51 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 68e75192..1e34dd18 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 ba017621..c0345db7 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 df2e46b1..4a8243e8 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 c837d547..ba1b2e2d 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 398667c8..3742a484 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 d770c43a..5297a0eb 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 884e3c55..905f71c7 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 ff83c2ea..a2ff4414 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 ddbe2dea..ab1eaeb7 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 3164e72e..07a8180c 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 73e93b20..1d8e7c59 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 074fc3a2..761a10c3 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 edd6d326..8a26a79c 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 5d0bf0e6..b5cd89b3 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 e1643207..16beee58 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 d2abe610..3e0a705d 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 cfa904ca..cf4000e5 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 1a83bad4..8dbe8b28 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 359ddbde..5d3e37dc 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 843f27a9..82b95df5 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 64e4a41e..4b5be6d9 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 a6dac4e6..7c3136b7 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 6141814a..429549f2 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 106a7004..3789d0ea 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 00649b56..936f4a15 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 73303aef..a06408db 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 32856559..4d1331b1 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 7d4435be..089ff064 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 f0b7a026..a2aab664 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 77b25050..a854182e 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 3e01cf21..8283a8e2 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 6e5d617d..be36b941 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 e6e7ce37..e0b654d0 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 5df96cb8..363fdf96 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 fd8852ce..d41ddf0a 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 f509e18f..2ce476d5 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 30d1c11d..1a3b2819 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 bc8b4595..551803df 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 a99e496d..49627c1f 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 01846852..75eb5de2 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 86903a95..1a196f43 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 a5840d54..e98ad9f3 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 c43b38db..33b466d5 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 5ae8ffa9..3bfe1900 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 3decbe2b..278a9675 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 23b64c14..386fd99b 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 7ca1b5b4..2272c4f0 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 10ab7ccc..60def6ab 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 0bd9a040..bd59ab7d 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 bbb1de15..9c33b624 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 22c3de39..0ae67964 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 e7ddabba..1a786cc3 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 310929a9..a3fdabbd 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 863f7e21..2f7fe27a 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 30c59c81..5cd97ea9 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 f18394d9..12918dd9 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 c6d665df..9502c2d3 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 d42258a9..43de25e1 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 8fafeabe..7f431654 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 6ab6d892..b6bd119d 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 4bb8df67..3e78004a 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 e86df797..05778061 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 16f9b179..07dcaac5 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