summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--access.c7
-rw-r--r--arch_defs.h7
-rwxr-xr-xbootstrap5
-rw-r--r--bpf_fprog.h7
-rw-r--r--caps0.h7
-rw-r--r--caps1.h7
-rw-r--r--chdir.c7
-rw-r--r--chmod.c7
-rwxr-xr-xci/install-dependencies.sh5
-rwxr-xr-xci/run-build-and-tests.sh5
-rwxr-xr-xcopyright-year-gen7
-rw-r--r--fallocate.c7
-rw-r--r--fchownat.c7
-rw-r--r--fetch_struct_keyctl_kdf_params.c7
-rw-r--r--fetch_struct_xfs_quotastat.c7
-rwxr-xr-xfile-date-gen7
-rw-r--r--fstatfs.c7
-rw-r--r--fstatfs64.c7
-rwxr-xr-xgenerate_mpers_am.sh5
-rwxr-xr-xgenerate_sen.sh5
-rw-r--r--getcpu.c7
-rw-r--r--getcwd.c7
-rw-r--r--getpagesize.c7
-rw-r--r--getrandom.c7
-rw-r--r--hostname.c7
-rw-r--r--ioperm.c7
-rw-r--r--iopl.c7
-rw-r--r--keyctl_kdf_params.h7
-rw-r--r--linux/32/ioctls_inc.h7
-rw-r--r--linux/32/syscallent.h7
-rw-r--r--linux/64/syscallent.h7
-rw-r--r--linux/aarch64/arch_defs_.h7
-rw-r--r--linux/aarch64/arch_regs.c7
-rw-r--r--linux/aarch64/get_error.c7
-rw-r--r--linux/aarch64/get_scno.c7
-rw-r--r--linux/aarch64/get_syscall_args.c7
-rw-r--r--linux/aarch64/set_error.c7
-rw-r--r--linux/aarch64/set_scno.c7
-rw-r--r--linux/aarch64/shuffle_scno.c7
-rw-r--r--linux/aarch64/syscallent.h7
-rw-r--r--linux/alpha/arch_defs_.h7
-rw-r--r--linux/alpha/arch_getrval2.c7
-rw-r--r--linux/alpha/arch_regs.c7
-rw-r--r--linux/alpha/arch_sigreturn.c7
-rw-r--r--linux/alpha/errnoent.h7
-rw-r--r--linux/alpha/get_error.c7
-rw-r--r--linux/alpha/get_scno.c7
-rw-r--r--linux/alpha/get_syscall_args.c7
-rw-r--r--linux/alpha/get_syscall_result.c7
-rw-r--r--linux/alpha/set_error.c7
-rw-r--r--linux/alpha/set_scno.c7
-rw-r--r--linux/alpha/signalent.h7
-rw-r--r--linux/alpha/userent.h7
-rw-r--r--linux/arc/arch_regs.c7
-rw-r--r--linux/arc/get_error.c7
-rw-r--r--linux/arc/get_scno.c7
-rw-r--r--linux/arc/get_syscall_args.c7
-rw-r--r--linux/arc/set_error.c7
-rw-r--r--linux/arc/set_scno.c7
-rw-r--r--linux/arc/syscallent.h7
-rw-r--r--linux/arch_defs_.h9
-rw-r--r--linux/arch_kvm.c7
-rw-r--r--linux/arch_sigreturn.c7
-rw-r--r--linux/arm/arch_defs_.h7
-rw-r--r--linux/arm/arch_regs.c7
-rw-r--r--linux/arm/arch_sigreturn.c7
-rw-r--r--linux/arm/get_error.c7
-rw-r--r--linux/arm/get_syscall_args.c7
-rw-r--r--linux/arm/nr_prefix.c7
-rw-r--r--linux/arm/set_error.c7
-rw-r--r--linux/arm/set_scno.c7
-rw-r--r--linux/arm/shuffle_scno.c7
-rw-r--r--linux/arm/userent.h7
-rw-r--r--linux/asm_stat.h7
-rw-r--r--linux/avr32/arch_regs.c7
-rw-r--r--linux/avr32/get_error.c7
-rw-r--r--linux/avr32/get_scno.c7
-rw-r--r--linux/avr32/get_syscall_args.c7
-rw-r--r--linux/avr32/set_error.c7
-rw-r--r--linux/avr32/set_scno.c7
-rw-r--r--linux/avr32/userent.h7
-rw-r--r--linux/bfin/arch_defs_.h7
-rw-r--r--linux/bfin/arch_regs.c7
-rw-r--r--linux/bfin/get_error.c7
-rw-r--r--linux/bfin/get_scno.c7
-rw-r--r--linux/bfin/get_syscall_args.c7
-rw-r--r--linux/bfin/get_syscall_result.c7
-rw-r--r--linux/bfin/set_error.c7
-rw-r--r--linux/bfin/set_scno.c7
-rw-r--r--linux/bfin/userent.h7
-rw-r--r--linux/check_scno.c7
-rw-r--r--linux/errnoent.h7
-rw-r--r--linux/getregs_old.h7
-rw-r--r--linux/hppa/arch_defs_.h7
-rw-r--r--linux/hppa/arch_regs.c7
-rw-r--r--linux/hppa/errnoent.h7
-rw-r--r--linux/hppa/get_error.c7
-rw-r--r--linux/hppa/get_scno.c7
-rw-r--r--linux/hppa/get_syscall_args.c7
-rw-r--r--linux/hppa/get_syscall_result.c7
-rw-r--r--linux/hppa/set_error.c7
-rw-r--r--linux/hppa/set_scno.c7
-rw-r--r--linux/hppa/signalent.h7
-rw-r--r--linux/i386/arch_defs_.h7
-rw-r--r--linux/i386/arch_regs.c7
-rw-r--r--linux/i386/arch_sigreturn.c7
-rw-r--r--linux/i386/get_error.c7
-rw-r--r--linux/i386/get_scno.c7
-rw-r--r--linux/i386/get_syscall_args.c7
-rw-r--r--linux/i386/set_error.c7
-rw-r--r--linux/i386/set_scno.c7
-rw-r--r--linux/i386/userent.h7
-rw-r--r--linux/i386/userent0.h7
-rw-r--r--linux/ia64/arch_defs_.h7
-rw-r--r--linux/ia64/arch_getrval2.c7
-rw-r--r--linux/ia64/arch_regs.c7
-rw-r--r--linux/ia64/get_error.c7
-rw-r--r--linux/ia64/get_scno.c7
-rw-r--r--linux/ia64/get_syscall_args.c7
-rw-r--r--linux/ia64/set_error.c7
-rw-r--r--linux/ia64/set_scno.c7
-rw-r--r--linux/ia64/userent.h7
-rw-r--r--linux/inet_diag.h7
-rw-r--r--linux/m68k/arch_defs_.h7
-rw-r--r--linux/m68k/arch_regs.c7
-rw-r--r--linux/m68k/arch_sigreturn.c7
-rw-r--r--linux/m68k/get_error.c7
-rw-r--r--linux/m68k/get_scno.c7
-rw-r--r--linux/m68k/get_syscall_args.c7
-rw-r--r--linux/m68k/set_error.c7
-rw-r--r--linux/m68k/set_scno.c7
-rw-r--r--linux/m68k/userent.h7
-rw-r--r--linux/metag/arch_regs.c7
-rw-r--r--linux/metag/get_error.c7
-rw-r--r--linux/metag/get_scno.c7
-rw-r--r--linux/metag/get_syscall_args.c7
-rw-r--r--linux/metag/set_error.c7
-rw-r--r--linux/metag/set_scno.c7
-rw-r--r--linux/metag/syscallent.h7
-rw-r--r--linux/microblaze/arch_defs_.h7
-rw-r--r--linux/microblaze/arch_regs.c7
-rw-r--r--linux/microblaze/arch_sigreturn.c7
-rw-r--r--linux/microblaze/get_error.c7
-rw-r--r--linux/microblaze/get_scno.c7
-rw-r--r--linux/microblaze/get_syscall_args.c7
-rw-r--r--linux/microblaze/get_syscall_result.c7
-rw-r--r--linux/microblaze/set_error.c7
-rw-r--r--linux/microblaze/set_scno.c7
-rw-r--r--linux/microblaze/userent.h7
-rw-r--r--linux/mips/.gitignore7
-rw-r--r--linux/mips/arch_defs_.h7
-rw-r--r--linux/mips/arch_getrval2.c7
-rw-r--r--linux/mips/arch_regs.c7
-rw-r--r--linux/mips/arch_sigreturn.c7
-rw-r--r--linux/mips/errnoent.h7
-rwxr-xr-xlinux/mips/genstub.sh5
-rw-r--r--linux/mips/get_error.c7
-rw-r--r--linux/mips/get_scno.c7
-rw-r--r--linux/mips/get_syscall_args.c7
-rw-r--r--linux/mips/ioctls_inc0.h7
-rw-r--r--linux/mips/set_error.c7
-rw-r--r--linux/mips/set_scno.c7
-rw-r--r--linux/mips/signalent.h7
-rw-r--r--linux/mips/syscallent-compat.h7
-rw-r--r--linux/mips/syscallent-n32.h7
-rw-r--r--linux/mips/syscallent-n64.h7
-rw-r--r--linux/mips/syscallent-o32.h7
-rw-r--r--linux/mips/userent.h7
-rw-r--r--linux/netlink_diag.h7
-rw-r--r--linux/nios2/arch_defs_.h7
-rw-r--r--linux/nios2/arch_regs.c7
-rw-r--r--linux/nios2/get_error.c7
-rw-r--r--linux/nios2/get_scno.c7
-rw-r--r--linux/nios2/get_syscall_args.c7
-rw-r--r--linux/nios2/set_error.c7
-rw-r--r--linux/nios2/set_scno.c7
-rw-r--r--linux/nios2/syscallent.h7
-rw-r--r--linux/nr_prefix.c7
-rw-r--r--linux/or1k/arch_regs.c7
-rw-r--r--linux/or1k/get_error.c7
-rw-r--r--linux/or1k/get_scno.c7
-rw-r--r--linux/or1k/get_syscall_args.c7
-rw-r--r--linux/or1k/set_error.c7
-rw-r--r--linux/or1k/set_scno.c7
-rw-r--r--linux/or1k/syscallent.h7
-rw-r--r--linux/or1k/userent.h7
-rw-r--r--linux/packet_diag.h7
-rw-r--r--linux/powerpc/arch_defs_.h7
-rw-r--r--linux/powerpc/arch_regs.c7
-rw-r--r--linux/powerpc/arch_sigreturn.c7
-rw-r--r--linux/powerpc/errnoent.h7
-rw-r--r--linux/powerpc/get_error.c7
-rw-r--r--linux/powerpc/get_scno.c7
-rw-r--r--linux/powerpc/get_syscall_args.c7
-rw-r--r--linux/powerpc/getregs_old.c7
-rw-r--r--linux/powerpc/set_error.c7
-rw-r--r--linux/powerpc/set_scno.c7
-rw-r--r--linux/powerpc/userent.h7
-rw-r--r--linux/powerpc64/arch_defs_.h7
-rw-r--r--linux/powerpc64/get_scno.c7
-rw-r--r--linux/riscv/arch_defs_.h7
-rw-r--r--linux/riscv/arch_regs.c7
-rw-r--r--linux/riscv/get_error.c7
-rw-r--r--linux/riscv/get_scno.c7
-rw-r--r--linux/riscv/get_syscall_args.c7
-rw-r--r--linux/riscv/set_error.c7
-rw-r--r--linux/riscv/set_scno.c7
-rw-r--r--linux/riscv/syscallent.h7
-rw-r--r--linux/s390/arch_defs_.h7
-rw-r--r--linux/s390/arch_regs.c7
-rw-r--r--linux/s390/arch_sigreturn.c7
-rw-r--r--linux/s390/get_error.c7
-rw-r--r--linux/s390/get_scno.c7
-rw-r--r--linux/s390/get_syscall_args.c7
-rw-r--r--linux/s390/set_error.c7
-rw-r--r--linux/s390/set_scno.c7
-rw-r--r--linux/s390/userent.h7
-rw-r--r--linux/s390/userent0.h7
-rw-r--r--linux/s390/userent1.h7
-rw-r--r--linux/s390x/arch_defs_.h7
-rw-r--r--linux/s390x/arch_regs.c7
-rw-r--r--linux/s390x/arch_sigreturn.c7
-rw-r--r--linux/s390x/get_error.c7
-rw-r--r--linux/s390x/get_scno.c7
-rw-r--r--linux/s390x/get_syscall_args.c7
-rw-r--r--linux/s390x/set_error.c7
-rw-r--r--linux/s390x/set_scno.c7
-rw-r--r--linux/s390x/userent.h7
-rw-r--r--linux/sh/arch_defs_.h7
-rw-r--r--linux/sh/arch_getrval2.c7
-rw-r--r--linux/sh/arch_regs.c7
-rw-r--r--linux/sh/get_error.c7
-rw-r--r--linux/sh/get_scno.c7
-rw-r--r--linux/sh/get_syscall_args.c7
-rw-r--r--linux/sh/get_syscall_result.c7
-rw-r--r--linux/sh/set_error.c7
-rw-r--r--linux/sh/set_scno.c7
-rw-r--r--linux/sh/userent.h7
-rw-r--r--linux/sh/userent0.h7
-rw-r--r--linux/sh64/arch_defs_.h7
-rw-r--r--linux/sh64/arch_regs.c7
-rw-r--r--linux/sh64/arch_regs.h7
-rw-r--r--linux/sh64/get_error.c7
-rw-r--r--linux/sh64/get_scno.c7
-rw-r--r--linux/sh64/get_syscall_args.c7
-rw-r--r--linux/sh64/get_syscall_result.c7
-rw-r--r--linux/sh64/set_error.c7
-rw-r--r--linux/sh64/set_scno.c7
-rw-r--r--linux/sh64/userent.h7
-rw-r--r--linux/shuffle_scno.c7
-rw-r--r--linux/signalent.h7
-rw-r--r--linux/smc_diag.h7
-rw-r--r--linux/sock_diag.h7
-rw-r--r--linux/sparc/arch_defs_.h7
-rw-r--r--linux/sparc/arch_getrval2.c7
-rw-r--r--linux/sparc/arch_regs.c7
-rw-r--r--linux/sparc/arch_sigreturn.c7
-rw-r--r--linux/sparc/errnoent.h7
-rw-r--r--linux/sparc/get_error.c7
-rw-r--r--linux/sparc/get_scno.c7
-rw-r--r--linux/sparc/get_syscall_args.c7
-rw-r--r--linux/sparc/set_error.c7
-rw-r--r--linux/sparc/set_scno.c7
-rw-r--r--linux/sparc/signalent.h7
-rw-r--r--linux/sparc/syscallent.h7
-rw-r--r--linux/sparc64/arch_defs_.h7
-rw-r--r--linux/sparc64/arch_regs.c7
-rw-r--r--linux/sparc64/arch_sigreturn.c7
-rw-r--r--linux/sparc64/get_error.c7
-rw-r--r--linux/sparc64/get_scno.c7
-rw-r--r--linux/sparc64/get_syscall_args.c7
-rw-r--r--linux/sparc64/set_error.c7
-rw-r--r--linux/sparc64/syscallent.h7
-rw-r--r--linux/sparc64/userent.h7
-rw-r--r--linux/tile/arch_defs_.h7
-rw-r--r--linux/tile/arch_regs.c7
-rw-r--r--linux/tile/arch_sigreturn.c7
-rw-r--r--linux/tile/get_error.c7
-rw-r--r--linux/tile/get_scno.c7
-rw-r--r--linux/tile/get_syscall_args.c7
-rw-r--r--linux/tile/set_error.c7
-rw-r--r--linux/tile/set_scno.c7
-rw-r--r--linux/tile/syscallent.h7
-rw-r--r--linux/tile/syscallent1.h7
-rw-r--r--linux/tile/userent.h7
-rw-r--r--linux/unix_diag.h7
-rw-r--r--linux/userent0.h7
-rw-r--r--linux/x32/arch_defs_.h7
-rw-r--r--linux/x32/shuffle_scno.c7
-rw-r--r--linux/x32/syscallent.h7
-rw-r--r--linux/x86_64/arch_defs_.h7
-rw-r--r--linux/x86_64/arch_kvm.c7
-rw-r--r--linux/x86_64/arch_regs.c7
-rw-r--r--linux/x86_64/arch_regs.h6
-rw-r--r--linux/x86_64/asm_stat.h7
-rw-r--r--linux/x86_64/get_error.c7
-rw-r--r--linux/x86_64/get_syscall_args.c7
-rw-r--r--linux/x86_64/getregs_old.h7
-rw-r--r--linux/x86_64/set_error.c7
-rw-r--r--linux/x86_64/set_scno.c7
-rw-r--r--linux/x86_64/shuffle_scno.c7
-rw-r--r--linux/x86_64/syscallent.h7
-rw-r--r--linux/x86_64/userent.h7
-rw-r--r--linux/xtensa/arch_regs.c7
-rw-r--r--linux/xtensa/get_error.c7
-rw-r--r--linux/xtensa/get_scno.c7
-rw-r--r--linux/xtensa/get_syscall_args.c7
-rw-r--r--linux/xtensa/get_syscall_result.c7
-rw-r--r--linux/xtensa/set_error.c7
-rw-r--r--linux/xtensa/set_scno.c7
-rw-r--r--linux/xtensa/syscallent.h7
-rw-r--r--linux/xtensa/userent.h7
-rw-r--r--m4/gen_bpf_attr_m4.awk7
-rw-r--r--m4/st_save_restore_var.m47
-rw-r--r--m4/st_warn_cflags.m47
-rwxr-xr-xmaint/gen-release-github.sh5
-rwxr-xr-xmaint/gen-release-gitlab.sh5
-rwxr-xr-xmaint/gen-release-notes.sh5
-rw-r--r--maint/update_copyright_years.awk7
-rwxr-xr-xmake-dist5
-rwxr-xr-xmake-dsc5
-rw-r--r--msghdr.h7
-rw-r--r--native_defs.h7
-rw-r--r--netlink_kobject_uevent.h7
-rw-r--r--nsfs.h7
-rw-r--r--nsig.h7
-rw-r--r--perf_event_struct.h7
-rw-r--r--pkeys.c7
-rw-r--r--printsiginfo.h7
-rw-r--r--readahead.c7
-rw-r--r--reboot.c7
-rw-r--r--regs.h7
-rw-r--r--renameat.c7
-rw-r--r--retval.h7
-rw-r--r--sched_attr.h7
-rw-r--r--scno.head7
-rw-r--r--sigreturn.c7
-rw-r--r--sram_alloc.c7
-rw-r--r--statfs.c7
-rw-r--r--statfs64.c7
-rw-r--r--swapon.c7
-rw-r--r--sysent.h7
-rw-r--r--sysent_shorthand_defs.h7
-rw-r--r--sysent_shorthand_undefs.h7
-rw-r--r--tests/accept_compat.h7
-rw-r--r--tests/access.c7
-rw-r--r--tests/acct.c7
-rw-r--r--tests/attach-p-cmd.h7
-rwxr-xr-xtests/bpf-success-v.test5
-rwxr-xr-xtests/bpf-success.test5
-rw-r--r--tests/brk.c7
-rwxr-xr-xtests/brk.test7
-rwxr-xr-xtests/btrfs-X.test9
-rwxr-xr-xtests/btrfs-v.test9
-rwxr-xr-xtests/btrfs-vX.test9
-rwxr-xr-xtests/btrfs-vw.test7
-rwxr-xr-xtests/btrfs-vwX.test7
-rwxr-xr-xtests/btrfs-w.test7
-rwxr-xr-xtests/btrfs-wX.test7
-rw-r--r--tests/btrfs.c7
-rwxr-xr-xtests/caps-abbrev.test7
-rwxr-xr-xtests/caps.test7
-rw-r--r--tests/chown.c7
-rw-r--r--tests/chown32.c7
-rw-r--r--tests/chroot.c7
-rwxr-xr-xtests/clone_parent.test7
-rwxr-xr-xtests/clone_ptrace.test7
-rwxr-xr-xtests/count-f.test9
-rw-r--r--tests/creat.c7
-rwxr-xr-xtests/delay.test6
-rw-r--r--tests/dup.c7
-rw-r--r--tests/dup2.c7
-rw-r--r--tests/dup3.c7
-rw-r--r--tests/epoll_create.c7
-rw-r--r--tests/epoll_ctl.c7
-rw-r--r--tests/epoll_pwait.c7
-rw-r--r--tests/epoll_wait.c7
-rwxr-xr-xtests/eventfd.test7
-rwxr-xr-xtests/execve-v.test7
-rwxr-xr-xtests/execve.test7
-rw-r--r--tests/faccessat.c7
-rwxr-xr-xtests/fadvise64.test7
-rw-r--r--tests/fchdir.c7
-rw-r--r--tests/fchown.c7
-rw-r--r--tests/fchown32.c7
-rw-r--r--tests/fdatasync.c7
-rw-r--r--tests/file_ioctl.c7
-rw-r--r--tests/fill_memory.c7
-rwxr-xr-xtests/filter-unavailable.test9
-rw-r--r--tests/flock.c7
-rw-r--r--tests/fsync.c7
-rwxr-xr-xtests/futex.test7
-rw-r--r--tests/get_page_size.c7
-rw-r--r--tests/getcwd.c7
-rw-r--r--tests/getegid.c7
-rw-r--r--tests/getegid32.c7
-rw-r--r--tests/geteuid.c7
-rw-r--r--tests/geteuid32.c7
-rw-r--r--tests/getgid.c7
-rw-r--r--tests/getgid32.c7
-rw-r--r--tests/getgroups32.c7
-rw-r--r--tests/getpgrp.c7
-rw-r--r--tests/getpid.c7
-rw-r--r--tests/getppid.c7
-rw-r--r--tests/getresgid.c7
-rw-r--r--tests/getresgid32.c7
-rw-r--r--tests/getresuid.c7
-rw-r--r--tests/getresuid32.c7
-rw-r--r--tests/getrlimit.c7
-rw-r--r--tests/getsid.c7
-rw-r--r--tests/gettid.c7
-rw-r--r--tests/getuid.c7
-rwxr-xr-xtests/getuid.test7
-rw-r--r--tests/getuid32.c7
-rwxr-xr-xtests/inject-nf.test7
-rwxr-xr-xtests/int_0x80.test5
-rwxr-xr-xtests/interactive_block.test7
-rwxr-xr-xtests/ioctl.test7
-rwxr-xr-xtests/ioctl_evdev-success-v.test5
-rw-r--r--tests/ioctl_evdev-success.c7
-rwxr-xr-xtests/ioctl_evdev-success.test5
-rw-r--r--tests/ioctl_kvm_run.c7
-rw-r--r--tests/ioctl_kvm_run_auxstr_vcpu.c7
-rwxr-xr-xtests/ioctl_perf-success.test7
-rw-r--r--tests/ioperm.c7
-rw-r--r--tests/iopl.c7
-rw-r--r--tests/ipc.sh7
-rwxr-xr-xtests/ipc_msgbuf.test7
-rwxr-xr-xtests/kern_features-fault.test7
-rw-r--r--tests/ksysent.sed5
-rwxr-xr-xtests/ksysent.test5
-rw-r--r--tests/lchown.c7
-rw-r--r--tests/lchown32.c7
-rw-r--r--tests/link.c7
-rw-r--r--tests/linkat.c7
-rwxr-xr-xtests/llseek.test7
-rwxr-xr-xtests/lseek.test7
-rw-r--r--tests/mkdir.c7
-rw-r--r--tests/mkdirat.c7
-rw-r--r--tests/mknod.c7
-rw-r--r--tests/mknodat.c7
-rw-r--r--tests/mlock.c7
-rw-r--r--tests/munlockall.c7
-rw-r--r--tests/net-packet_mreq.c7
-rw-r--r--tests/net-tpacket_req.c7
-rwxr-xr-xtests/net-tpacket_stats-success.test5
-rw-r--r--tests/net-tpacket_stats.c7
-rw-r--r--tests/net-yy-inet6.c7
-rwxr-xr-xtests/net.test7
-rwxr-xr-xtests/nsyscalls-d.test7
-rwxr-xr-xtests/nsyscalls-nd.test5
-rwxr-xr-xtests/nsyscalls.test7
-rwxr-xr-xtests/opipe.test7
-rwxr-xr-xtests/personality.test7
-rwxr-xr-xtests/pipe.test8
-rwxr-xr-xtests/poll-P.test7
-rwxr-xr-xtests/poll.test7
-rwxr-xr-xtests/prctl-arg2-intptr.test8
-rwxr-xr-xtests/prctl-dumpable.test8
-rwxr-xr-xtests/prctl-name.test8
-rwxr-xr-xtests/prctl-no-args.test8
-rwxr-xr-xtests/prctl-pdeathsig.test7
-rwxr-xr-xtests/prctl-seccomp-filter-v.test7
-rwxr-xr-xtests/prctl-seccomp-strict.test7
-rwxr-xr-xtests/prctl-securebits.test8
-rwxr-xr-xtests/prctl-tid_address.test8
-rwxr-xr-xtests/prctl-tsc.test7
-rw-r--r--tests/print_quoted_string.c7
-rw-r--r--tests/process_vm_readv.c7
-rw-r--r--tests/process_vm_writev.c7
-rwxr-xr-xtests/pure_executables.list8
-rwxr-xr-xtests/qual_inject-error-signal.test8
-rwxr-xr-xtests/qual_inject-retval.test7
-rwxr-xr-xtests/qual_inject-signal.test8
-rwxr-xr-xtests/qual_syscall.test5
-rwxr-xr-xtests/quotactl-success-v.test5
-rwxr-xr-xtests/quotactl-success.test5
-rwxr-xr-xtests/quotactl-xfs-success-v.test5
-rwxr-xr-xtests/quotactl-xfs-success.test5
-rw-r--r--tests/reboot.c7
-rw-r--r--tests/rename.c7
-rw-r--r--tests/renameat.c7
-rwxr-xr-xtests/restart_syscall.test7
-rw-r--r--tests/rmdir.c7
-rwxr-xr-xtests/rt_sigaction.test7
-rwxr-xr-xtests/run.sh5
-rw-r--r--tests/sched_get_priority_mxx.c7
-rw-r--r--tests/sched_rr_get_interval.c7
-rw-r--r--tests/sched_xetparam.c7
-rw-r--r--tests/sched_xetscheduler.c7
-rw-r--r--tests/sched_yield.c7
-rwxr-xr-xtests/seccomp-strict.test7
-rw-r--r--tests/semop.c7
-rw-r--r--tests/setdomainname.c7
-rw-r--r--tests/setfsgid.c7
-rw-r--r--tests/setfsgid32.c7
-rw-r--r--tests/setfsuid.c7
-rw-r--r--tests/setfsuid32.c7
-rw-r--r--tests/setgid.c7
-rw-r--r--tests/setgid32.c7
-rw-r--r--tests/setgroups32.c7
-rw-r--r--tests/setregid.c7
-rw-r--r--tests/setregid32.c7
-rw-r--r--tests/setresgid.c7
-rw-r--r--tests/setresgid32.c7
-rw-r--r--tests/setresuid.c7
-rw-r--r--tests/setresuid32.c7
-rw-r--r--tests/setreuid.c7
-rw-r--r--tests/setreuid32.c7
-rw-r--r--tests/setuid.c7
-rw-r--r--tests/setuid32.c7
-rw-r--r--tests/shmxt.c7
-rw-r--r--tests/shutdown.c7
-rw-r--r--tests/sigaltstack.c7
-rwxr-xr-xtests/sigaltstack.test7
-rwxr-xr-xtests/sigblock.test7
-rwxr-xr-xtests/sigign.test7
-rw-r--r--tests/signal2name.c7
-rw-r--r--tests/skip_unavailable.c7
-rw-r--r--tests/stack-fcall-0.c7
-rw-r--r--tests/stack-fcall-1.c7
-rw-r--r--tests/stack-fcall-2.c7
-rw-r--r--tests/stack-fcall-3.c7
-rw-r--r--tests/stack-fcall.c7
-rw-r--r--tests/stack-fcall.h7
-rwxr-xr-xtests/strace-C.test7
-rwxr-xr-xtests/strace-E.test7
-rwxr-xr-xtests/strace-S.test7
-rwxr-xr-xtests/strace-T.test7
-rwxr-xr-xtests/strace-ff.test7
-rwxr-xr-xtests/strace-k-demangle.test6
-rwxr-xr-xtests/strace-r.test7
-rwxr-xr-xtests/strace-t.test7
-rwxr-xr-xtests/strace-tt.test7
-rwxr-xr-xtests/strace-ttt.test7
-rwxr-xr-xtests/sun_path.test7
-rw-r--r--tests/swap.c7
-rw-r--r--tests/symlink.c7
-rw-r--r--tests/symlinkat.c7
-rw-r--r--tests/sync.c7
-rw-r--r--tests/syslog.c7
-rwxr-xr-xtests/termsig.test7
-rw-r--r--tests/test_netlink.h7
-rw-r--r--tests/test_ucopy.h7
-rw-r--r--tests/times-fail.c7
-rw-r--r--tests/ugetrlimit.c7
-rwxr-xr-xtests/uio.test7
-rw-r--r--tests/umask.c7
-rwxr-xr-xtests/umount.test7
-rwxr-xr-xtests/umount2.test7
-rwxr-xr-xtests/umovestr.test5
-rwxr-xr-xtests/umovestr2.test5
-rw-r--r--tests/uname.c7
-rwxr-xr-xtests/uname.test7
-rwxr-xr-xtests/unix-pair-send-recv.test7
-rwxr-xr-xtests/unix-pair-sendto-recvfrom.test7
-rw-r--r--tests/unlink.c7
-rw-r--r--tests/unlinkat.c7
-rw-r--r--tests/vhangup.c7
-rw-r--r--tests/xattr-strings.c7
-rwxr-xr-xtests/xet_thread_area_x86.test7
-rw-r--r--tests/xetpriority.c7
-rw-r--r--truncate.c7
-rw-r--r--uid16.c7
-rw-r--r--umask.c7
-rw-r--r--umount.c7
-rw-r--r--utime.c7
-rw-r--r--xfs_quota_stat.h7
-rw-r--r--xlat.h7
-rw-r--r--xstring.h7
570 files changed, 3872 insertions, 81 deletions
diff --git a/access.c b/access.c
index a9663dc1c..5c2e6e99e 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 <fcntl.h>
diff --git a/arch_defs.h b/arch_defs.h
index af2a06b69..19ca4a852 100644
--- a/arch_defs.h
+++ b/arch_defs.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 bb3d466a6..290d819a8 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 daaa01cd0..ebf2d1ba2 100644
--- a/bpf_fprog.h
+++ b/bpf_fprog.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 ad206ffaf..4398236a8 100644
--- a/caps0.h
+++ b/caps0.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 d8fa6f472..7c36160e4 100644
--- a/caps1.h
+++ b/caps1.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 e8ac28585..b07d164e8 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 fd76490c0..7668e746c 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 4e5445f52..e475de3fa 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 3699ab093..de59599b0 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 a1883a10a..8b3317e84 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 b707279c5..82c0d642d 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 6aed51d0b..15fcb0636 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 50fc9d111..63eadb2e7 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 <evgsyr@gmail.com>
+ * 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 55d82bbdf..d78767588 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 cc9b1135a..8e3529458 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 1f3582405..e5029f32c 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 166fc63da..0aac13d2c 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 833cd29b3..7cd53438e 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 33d553922..39c967728 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 5d0f52d13..e91c76ff2 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 a8ef591b3..7c6de9afb 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 49c6234b9..6dae186de 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 ea9ad5727..4fe264557 100644
--- a/getrandom.c
+++ b/getrandom.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 75f96ba69..c13cf1d2d 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 e9eea7f6f..73f9fa9f3 100644
--- a/ioperm.c
+++ b/ioperm.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 0f2bb3221..e4712f13d 100644
--- a/iopl.c
+++ b/iopl.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 7f3a9dbab..654ce94d3 100644
--- a/keyctl_kdf_params.h
+++ b/keyctl_kdf_params.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 Eugene Syromyatnikov <evgsyr@gmail.com>
+ * 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 27ae3f5c6..84294ba01 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 8b05c75fb..901b889fb 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 f25c62e61..d08b16152 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 40232fd6a..ed9261f5a 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 03cd7d4c0..f88067dbe 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 ab9fad79a..38856a978 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 350f32fbb..af758aeee 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 f167e809f..fce96273a 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 03686092b..bb04450d6 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 fe44672bb..e2b5d8a2a 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 7d4de73c0..a4c0d3bec 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 188d6359b..6016a1d14 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 f6fe59e5e..6ae6f0628 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 795335229..6232f6fcb 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 a35e8651f..ac6c35f27 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 b8b7716ef..57dc7c413 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 9a3f0d670..4f3ec926f 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 379348b6e..3c8e8ebff 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 3142da248..2d5c6d6a1 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 2e39b844d..381d75e67 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 e49a8253d..85fef4f94 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 78a247e5e..2136e994a 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 e285c9ab0..09059a38e 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 a78e6de05..f086a42a4 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 3a043b56a..fa5240f3a 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 07849a3ce..ee11f21b1 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 88f9c83d2..791a0aabd 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 d2046b2db..4d9a93e60 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 acf5778c6..94b886ea2 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 afc9bd504..546362e43 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 ea25d74d5..adbf218ec 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 1b7fd7727..aed2e55a6 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 87e200636..f4b3a7f7b 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 f12f32ab4..c7ae7b7be 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 8f101d84e..318901a9b 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 1a7e176f5..0b2f3b0d6 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 1a8269c17..bc453bb79 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 6edc76497..c26405d35 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 9cd53d2e7..df0571c9e 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 007b9e605..bc8e9c4ab 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 99f571ffa..bbbcf80b3 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 9b303d5c5..8b754dca1 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 015ed0663..0c4de440a 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 17a40d67a..68199cfcb 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 bd36a6fa5..a3555def6 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 a92660202..1f4d6a238 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 578e2acb8..f3d60dac3 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 654e6b983..bd1013f15 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 092dad307..22ace6f4d 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 90fbfafb5..796b68a88 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 f4ef41d6b..5b7137c79 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 66c4db7e9..da218f4a7 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 4fbfc1427..b1b52fe5d 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 d642058b2..309d8e7e0 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 6017f67d3..426e589c2 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 98abd7222..2d1059a1c 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 c394889c5..6968e4806 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 3d0e908fe..336b9f6d9 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 5c814b47d..923542f94 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 002d904d3..c39cde27a 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 d63230feb..00a325b45 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 f7a7ca635..a35ba9fd4 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 cdeff6783..acadab257 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 1400c2801..1b1dbbed9 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 fd2c3a3d4..5c73c9f93 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 3a9bc3b33..a237049e8 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 2a19ddabe..886320eee 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 68a53c51f..3c8b06fd6 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 5ce449acc..0a2d5a867 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 fb3ed56bd..fe0fb5e36 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 b58f8d709..040405597 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 de2b8829b..af130b067 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 edaada7f3..288d6f0ab 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 fcf8f43aa..635e9b332 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 3e9b2d972..7f38ee499 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 1a7e176f5..0b2f3b0d6 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 aeaed9cf0..fac427441 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 058a4a6e0..67df3fee2 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 89de81133..c5e95c170 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 c2e55510d..980952f35 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 353bde029..c048285a5 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 0e0d7c600..07861ac31 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 9ac551f94..fcff8aeba 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 a8abd11dd..bdbefd8c8 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 d2728ff7a..da7d4440e 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 8674172a6..87ca0cdbd 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 f4ea78cc1..c518b607c 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 9251eaae0..9d539da5a 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 1ce7be862..ce196bce1 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 88f2cad5c..6aba4097b 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 040e5c7b6..bf1f71af3 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 <asm/rse.h>
/* 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 693449973..b27154e13 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 8e0f9c453..c1c89df9a 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 d2ffae6f2..f6f637243 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 f01b75a75..a4c259ccf 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 67e815c4f..1a8da94f6 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 084895806..13b82eb09 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 382815cd7..4682c0f82 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 3a0472c11..9af044783 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 829f3477c..41db19c56 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 a95db4712..f2657b375 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 1ce72abe2..bf01eef76 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 b45e64856..84e8835c7 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 a17807ec6..ba14c11ab 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 08179fae2..67ee70fe9 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 afdec9d7f..b1e1649c3 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 6dc2ab4ab..e7b83e285 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 c11de1450..7f3c5cf2c 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 9e10d798e..18e42dd40 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 c9b63c81a..08dc3cd99 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 723cfe360..f305974e6 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 d642058b2..309d8e7e0 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 79f2dda08..4faf93764 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 27920734b..412e2078b 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 fb529ff8b..b7ad28dc9 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 6c11cd447..aaf2dcb34 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 19314204d..6c35994d8 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 5b593a4a0..79f23ca49 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 5bb83b5f8..71b3fbc31 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 4f69a5250..cf896cc20 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 68710cf37..d3b64880f 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 51a6ade03..d933e23b8 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 1f20dab06..f789e18d9 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 fd73a79cc..33b53ba2b 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 2f604d83a..0874e31ef 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 aeac7c215..fe8180f33 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 0e49f0585..6f0c16fb6 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 11f141f53..0d21692e6 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 6bf6b20ec..bcc219d59 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 9364f8173..f06fae462 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 ec3602431..387aa8522 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 c00687f68..da4259efd 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 89cf38ce3..af019ae02 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 1eb456ccd..ad3125836 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 11dfe8819..c3caf2bb4 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 d8b309d70..fce44a27d 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 faa91839c..54f68c300 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 2a7beb6dc..d0c26175a 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 64e157a87..ede983724 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 1399142b2..77cf50da3 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 88dde228f..6eca85595 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 2bd4e4a26..9c778e248 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 ecbef0eec..f9885ee67 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 0dc66fba2..d202abd9c 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 f4db85eed..cc0bd06d0 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 d71d29cdf..1e42fcd75 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 ecef8aa2f..61fc03003 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 1f5051c23..64f226b16 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 301fd0e23..31431cf0d 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 f22814f41..3b3d2d4ef 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 efdef9896..196419dfc 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 f69775819..e551f13f5 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 f446c9070..f997abd4e 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 17e41dca5..f06d0a886 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 179733878..b5cb7016f 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 269eeb5a2..df2c5ad8e 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 10af205ef..ac339463a 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 c6fd7d39f..056d1009e 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 368e26ff3..d3a4bcf5c 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 06b6da955..310337129 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 78c4c3e71..f9d0de596 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 227a7970b..321f19a4b 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 b118c8ebe..23d2111b1 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 7aa7808be..716e8782c 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 ef06656ff..6624614ad 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 471bf08fd..823d7839d 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 4485ca68b..7edb796f2 100644
--- a/linux/powerpc/getregs_old.c
+++ b/linux/powerpc/getregs_old.c
@@ -1,4 +1,11 @@
/*
+ * 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 d22df112c..9b8a6f2fd 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 f00ef2381..f47ad85bd 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 e2094c24b..93cc656b8 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 037b52f6a..871f4109d 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 8a943e8da..03523d397 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 b223c48c2..a9c27bc7a 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 b6c08bc96..cbf5a67e8 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 8bec778e9..d40665345 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 0ca1ed349..6b4256e74 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 a79fa4456..9418b8e4f 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 6d1eee4c0..b9038c907 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 64c7db763..2c586ee95 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 3dfed89e1..b82745861 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 d739fd02e..39b7658df 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 414123e48..dd872ca3b 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 f63ef1323..1d0f0e001 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 e7c163240..5b5801305 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 2661795d9..2af6c8e6f 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 881dc95d9..66570ff53 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 f73e5780b..f71865ef1 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 6bb999935..650deecb8 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 f9c71d8a6..8ba070b98 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 71fae74aa..21a90fb7b 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 3ff99b904..6691167cc 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 bed2f2d66..1e520761d 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 1dd35dbba..7a2c0a6a4 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 4065e0640..55930a35d 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 <stdint.h>
#define S390_SIGNAL_FRAMESIZE 96
diff --git a/linux/s390x/get_error.c b/linux/s390x/get_error.c
index c30b317f2..0d3b610c8 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 bf81b94c8..5f9cf4e7f 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 5dcab2613..1a7147c0d 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 4a80ac279..2acd00a0f 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 2b4d16e8a..a8d6f3bfa 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 d14488fe1..8997dd884 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 b4d39f0a2..1809580d8 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 c00673191..bd32ac8f1 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 8ea0fc40c..741645472 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 2cd1a6b22..9319c6125 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 e89520de6..b23824d5e 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 15f77b918..005a45c09 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 ff07a9860..a8d6bc494 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 bad76ede2..ef51a5c46 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 4c175ed73..2f0b7703b 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 116861a9f..8d769e5f4 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 918805a12..c1d412242 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 0c9ca1951..18f4d7387 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 787ae22f8..9b3d4eb3b 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 670cdb669..5bf759d64 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 b3971600a..795031c95 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 bda2cd263..c85786bd7 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 5a3873263..d74b7185b 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 33c424794..1183f6873 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 29293b22e..4a9835718 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 0e7c18faa..f7e0fdfa5 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 e8810d299..ecff5f63e 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 0e6feaf22..dc1633d2f 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 45a0df993..b17ea8439 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 ebdbe8cb8..1cb3a8065 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 f69c385f6..718414b22 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 94f6e2bd2..3549c95d5 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 f87835338..fd8908bbf 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 7a28d4646..62d240f71 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 13edd425a..13b5dccae 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 cd9c8e365..4e6d471a5 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 03d774b0d..b3e80c31f 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 <asm/psr.h>
static void
diff --git a/linux/sparc/get_scno.c b/linux/sparc/get_scno.c
index f041259d6..b515952a7 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 0ab8b3c25..96c61c44c 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 d285b7cac..7cffdd3f8 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 c891a0b59..813fc3a0f 100644
--- a/linux/sparc/set_scno.c
+++ b/linux/sparc/set_scno.c
@@ -1,4 +1,11 @@
/*
+ * 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 39d7c85a3..7a3a6281a 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 4c409b438..8e3497c3b 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 31ce9a2a9..68eef4fce 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 c1c2fae26..07f0e4055 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 feac9da60..6a9f4c355 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 fcf60ae69..f254e2bf1 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 81a3aa93c..56ecbce2a 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 00dbf894c..40a306ce2 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 6c266af9d..e89c578e9 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 a3a285825..ae6dc9483 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 9387e254e..87076bf32 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 b92659794..a781208c2 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 cd048baad..f792e7734 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 92631f4d5..43b27b5d0 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 ae8ecbd37..c6b6c807e 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 e8403d9b2..9be1ea76a 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 c27339bd5..34d596ab5 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 16d9b956a..78e476cfe 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 c28d88c3d..c1ab0d55c 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 eb518fb9e..50b60a4ff 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 b305f067f..19941c294 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 915f4a509..167e97296 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 f1a7fc0c1..d6477aee5 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 b3c5ebce3..c9e24cd1f 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 40232fd6a..ed9261f5a 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 d0db368fb..0e1abb303 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 3635a8ad1..38287592e 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 169e0892c..a8c1d9918 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 f0075cae5..cb168f34d 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 5775bcfa6..8878569e4 100644
--- a/linux/x86_64/arch_regs.c
+++ b/linux/x86_64/arch_regs.c
@@ -1,4 +1,11 @@
/*
+ * 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:
* fs_base, gs_base, ds, es, fs, gs.
diff --git a/linux/x86_64/arch_regs.h b/linux/x86_64/arch_regs.h
index 6676bb8d6..08824f220 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
+ */
/* <asm/ptrace.h> 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 a563f0874..56b473f03 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 927e46ca6..92b1a8446 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 45b0460df..e8e883368 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 f13fe24f2..de4958231 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 edcf1855e..2c781b1d3 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 0e620af8e..51242c481 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 77840c230..6b688345f 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 63ec52e83..b6bf049dc 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 c5c084eb4..a8eab7d57 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 5b85fda9d..557e5bacd 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 0c38470c3..7fc8ac2c0 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 854a27959..f8edf9f2b 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 ca3aeec58..25b46ec02 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 6eb513b80..bbb091c92 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 e786b8ccb..cd6d627bc 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 ca442fc33..8d38c13bc 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 64bdb76a2..190071e1d 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 0bee71791..71fa7d576 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 5896369f0..3158f7e5a 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 <ldv@altlinux.org>
+# 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 2939380a7..482dbcdeb 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 33fac97d6..9e4d7e3e6 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 8cb8e4861..265830e65 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 f23d091a3..4962d27ef 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 6c376b8fc..a8f2e737c 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 '<pre>'
"$(dirname "$0")"/gen-tag-message.sh
diff --git a/maint/update_copyright_years.awk b/maint/update_copyright_years.awk
index ee356c310..430f6b55b 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 41baa2094..8f21790bf 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 f0e958ad6..1240c856a 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 9e458fec0..40863807e 100644
--- a/msghdr.h
+++ b/msghdr.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 cdc735e08..c4189a6b3 100644
--- a/native_defs.h
+++ b/native_defs.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 5ac57cae6..a73b8b5f0 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 3e17c53a9..06e7f2021 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 528f7033b..33ef9eec8 100644
--- a/nsig.h
+++ b/nsig.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 57d245bf5..0e1f82a8d 100644
--- a/perf_event_struct.h
+++ b/perf_event_struct.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2016-2018 Eugene Syromyatnikov <evgsyr@gmail.com>
+ * 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 f5338ab85..50dbd5796 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 7ad723808..7c726790f 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 d6caac330..92d170aef 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 12de30bc4..e0fe65b1c 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 7a044cef8..bdcb72fef 100644
--- a/regs.h
+++ b/regs.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 746e9c4a2..8f7118de4 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 0de38c5a6..b9bdfa923 100644
--- a/retval.h
+++ b/retval.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 251d2c4f1..c22c9656f 100644
--- a/sched_attr.h
+++ b/sched_attr.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2017-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 a640102f2..11814b15f 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 bfc6f17bb..755d2aa5b 100644
--- a/sigreturn.c
+++ b/sigreturn.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015-2018 Dmitry V. Levin <ldv@altlinux.org>
+ * 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 922746bbc..23ba8d12a 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 00dd04c4e..36c99a11d 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 cd433d51a..f42307c40 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 e5ebd0fa7..87fd3c1fe 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 <sys/swap.h>
diff --git a/sysent.h b/sysent.h
index cf2daed1b..71119a999 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 2728b2064..009f9a4bc 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 5232b6486..bc9ad1315 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 c45b2551c..7925d5892 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 4420ba3c3..cbdde6a27 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 <asm/unistd.h>
diff --git a/tests/acct.c b/tests/acct.c
index 1cc3fa56e..2127df604 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 <asm/unistd.h>
diff --git a/tests/attach-p-cmd.h b/tests/attach-p-cmd.h
index e04af38f1..5f27cd107 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 819afbbe6..9afcb1486 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 3cdfd35ac..4321e5321 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 572ebd61f..caf40e130 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 <asm/unistd.h>
diff --git a/tests/brk.test b/tests/brk.test
index 3781220e1..e90cf8ab4 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 c129be960..58770ae00 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 8cc2724a1..f67d4126c 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 163b29fd9..db15a50c4 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 913fba160..eba59d7a5 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 57c689155..20f60abe9 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 031f0b868..ba9b220d0 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 5fb694996..1a7dea2e3 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 9367995ef..e69438e23 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 ca223f9a0..601b8994a 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 607a75bbc..ac68364e2 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 12aa8b71b..05fe9af15 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 <asm/unistd.h>
diff --git a/tests/chown32.c b/tests/chown32.c
index 4fffd7699..f27262031 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 <asm/unistd.h>
diff --git a/tests/chroot.c b/tests/chroot.c
index a084cf337..3fc441e3b 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 <asm/unistd.h>
diff --git a/tests/clone_parent.test b/tests/clone_parent.test
index 66b3bbbf8..a5b077f34 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 a1f0237ae..24c4298ad 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 67515efa4..4f3d45f88 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 f22fdaaa4..71819d5b8 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 <asm/unistd.h>
diff --git a/tests/delay.test b/tests/delay.test
index 5fb2ad628..df8552c7b 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 62157e2ff..5cf5df7c5 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 <stdio.h>
#include <unistd.h>
diff --git a/tests/dup2.c b/tests/dup2.c
index 9f3addfa9..fba8fca56 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 <asm/unistd.h>
diff --git a/tests/dup3.c b/tests/dup3.c
index 7a65b6141..741e06f88 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 <fcntl.h>
#include <asm/unistd.h>
diff --git a/tests/epoll_create.c b/tests/epoll_create.c
index 44262c7db..42cc8d045 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 <asm/unistd.h>
diff --git a/tests/epoll_ctl.c b/tests/epoll_ctl.c
index 2251b3589..85a288cde 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 <asm/unistd.h>
diff --git a/tests/epoll_pwait.c b/tests/epoll_pwait.c
index 841e7228c..ce95e6dc5 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 <asm/unistd.h>
diff --git a/tests/epoll_wait.c b/tests/epoll_wait.c
index caa30271e..3981905d3 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 <asm/unistd.h>
diff --git a/tests/eventfd.test b/tests/eventfd.test
index e181ed6ef..b6d24454b 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 52ff0d774..f8bafb91e 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 5635a9429..0824bab48 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 ce81349d1..6d95555aa 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 <asm/unistd.h>
diff --git a/tests/fadvise64.test b/tests/fadvise64.test
index 161b28fa3..c4e1415e7 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 3cde5e635..118e5fea0 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 <asm/unistd.h>
diff --git a/tests/fchown.c b/tests/fchown.c
index d71190320..98bfd9deb 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 <asm/unistd.h>
diff --git a/tests/fchown32.c b/tests/fchown32.c
index 2d9d60f8f..9d52f9a8c 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 <asm/unistd.h>
diff --git a/tests/fdatasync.c b/tests/fdatasync.c
index fc82ade33..f4c8d55f0 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 <asm/unistd.h>
diff --git a/tests/file_ioctl.c b/tests/file_ioctl.c
index ded67a9c9..7a2a905c0 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 a0aeccba1..6b15bbed7 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 15a9ad1d3..8e7e67ee9 100755
--- a/tests/filter-unavailable.test
+++ b/tests/filter-unavailable.test
@@ -1,6 +1,11 @@
#!/bin/sh
-
-# check that <unavailable> syscalls are filtered properly
+#
+# Check that <unavailable> 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 c154e4379..4f0444097 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 <asm/unistd.h>
diff --git a/tests/fsync.c b/tests/fsync.c
index 2f5041068..5624096b4 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 <asm/unistd.h>
diff --git a/tests/futex.test b/tests/futex.test
index fc98267a9..889eec615 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 aeea861cc..12ee929d2 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 <unistd.h>
diff --git a/tests/getcwd.c b/tests/getcwd.c
index 2020df40f..5f9a7293b 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 <asm/unistd.h>
diff --git a/tests/getegid.c b/tests/getegid.c
index 98f8b9cbe..2e0754b77 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 <asm/unistd.h>
diff --git a/tests/getegid32.c b/tests/getegid32.c
index d9951864b..b7f5cb082 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 <asm/unistd.h>
diff --git a/tests/geteuid.c b/tests/geteuid.c
index ef8269f97..430df1c65 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 <asm/unistd.h>
diff --git a/tests/geteuid32.c b/tests/geteuid32.c
index 4341e46f3..94174f323 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 <asm/unistd.h>
diff --git a/tests/getgid.c b/tests/getgid.c
index 2e060390e..1bd705023 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 <asm/unistd.h>
diff --git a/tests/getgid32.c b/tests/getgid32.c
index 52e4d76a0..c6859cf4d 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 <asm/unistd.h>
diff --git a/tests/getgroups32.c b/tests/getgroups32.c
index d0a356de1..d005792d3 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 <asm/unistd.h>
diff --git a/tests/getpgrp.c b/tests/getpgrp.c
index 8b9d08827..3d45f718f 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 <asm/unistd.h>
diff --git a/tests/getpid.c b/tests/getpid.c
index 96f2d157a..5e88e052a 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 <asm/unistd.h>
diff --git a/tests/getppid.c b/tests/getppid.c
index 58901fc6e..718d0691d 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 <asm/unistd.h>
diff --git a/tests/getresgid.c b/tests/getresgid.c
index b8c687b1c..3ad2c1904 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 <asm/unistd.h>
diff --git a/tests/getresgid32.c b/tests/getresgid32.c
index 71f11344d..b78afaed9 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 <asm/unistd.h>
diff --git a/tests/getresuid.c b/tests/getresuid.c
index b00f20ba4..5bb2e3011 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 <asm/unistd.h>
diff --git a/tests/getresuid32.c b/tests/getresuid32.c
index 4c9a83df5..13acc695a 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 <asm/unistd.h>
diff --git a/tests/getrlimit.c b/tests/getrlimit.c
index bd9d0b0f2..6d3b4cd5d 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 <asm/unistd.h>
diff --git a/tests/getsid.c b/tests/getsid.c
index b563de9d0..588ea4ab0 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 <stdio.h>
#include <unistd.h>
diff --git a/tests/gettid.c b/tests/gettid.c
index 9b13eb880..24947e89c 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 <stdio.h>
#include <unistd.h>
diff --git a/tests/getuid.c b/tests/getuid.c
index 57311f72d..56f6c9021 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 <asm/unistd.h>
diff --git a/tests/getuid.test b/tests/getuid.test
index 0bad1ff21..a0bbb3ed1 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 397dd08ff..1222dbcb3 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 <asm/unistd.h>
diff --git a/tests/inject-nf.test b/tests/inject-nf.test
index fa82e442d..cadb5adb0 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 1188d9834..6b3ca25f6 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 f8f8173f1..57df767a0 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 b1b40d9e3..5e11f589c 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 358d9a38a..faedee30b 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 8c3f8f02e..7887d417b 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 e735af91a..54b0a20a9 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 602507fa1..4a5697082 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 16af293fb..9140d3b27 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 779a2a9b8..2edd1d34d 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 2f02b5234..3f99b2db5 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 <asm/unistd.h>
diff --git a/tests/iopl.c b/tests/iopl.c
index 14ec29e30..f8904030a 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 <asm/unistd.h>
diff --git a/tests/ipc.sh b/tests/ipc.sh
index ef5507327..58e4309be 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 9e7878551..4e26578a0 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 20c964bf1..a46c839fa 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 cb5d060fb..c35ba22fe 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 802664885..347ed675c 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 a07c878c0..c9008219b 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 <asm/unistd.h>
diff --git a/tests/lchown32.c b/tests/lchown32.c
index 29cb01dba..1a505e1f9 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 <asm/unistd.h>
diff --git a/tests/link.c b/tests/link.c
index d6550fd3a..357eb0bec 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 <asm/unistd.h>
diff --git a/tests/linkat.c b/tests/linkat.c
index 64b900ea0..748ddf181 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 <asm/unistd.h>
diff --git a/tests/llseek.test b/tests/llseek.test
index 9db68e3aa..a28583984 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 5b20a7f93..646f73134 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 d971b1884..e6e62ef65 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 <asm/unistd.h>
diff --git a/tests/mkdirat.c b/tests/mkdirat.c
index 6bfe4a5fc..91bf06be3 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 <asm/unistd.h>
diff --git a/tests/mknod.c b/tests/mknod.c
index 1d8591a0f..94d80284a 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 <asm/unistd.h>
diff --git a/tests/mknodat.c b/tests/mknodat.c
index 7ef576558..34b34d807 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 <asm/unistd.h>
diff --git a/tests/mlock.c b/tests/mlock.c
index 8e9806bd5..0f31d20c8 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 <asm/unistd.h>
diff --git a/tests/munlockall.c b/tests/munlockall.c
index 337cd3e0d..0f103c8fd 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 <stdio.h>
diff --git a/tests/net-packet_mreq.c b/tests/net-packet_mreq.c
index 88423b7bb..16c42e39b 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 <stdio.h>
#include <sys/socket.h>
diff --git a/tests/net-tpacket_req.c b/tests/net-tpacket_req.c
index 06955873c..b11ddf8e3 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 <stdio.h>
#include <sys/socket.h>
diff --git a/tests/net-tpacket_stats-success.test b/tests/net-tpacket_stats-success.test
index c298b6c3e..47ab84ef3 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 a13da5cab..22f5fa25e 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 <stdio.h>
#include <stddef.h>
diff --git a/tests/net-yy-inet6.c b/tests/net-yy-inet6.c
index c97979f73..a993c660e 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 832070780..cca850a95 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 2cca32f10..a6495b6b6 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 7d2f1e1f3..f578f9aa2 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 61f72d520..08d45ac60 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 db449bb7c..d6777250f 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 d279bd111..6d2b65c76 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 0ae414d49..af70b08df 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 a19057230..8ba2d303e 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 d09193d55..0e8691e2a 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 4f9e3a131..feb5a2b94 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 05f1310c5..8662f79c1 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 95d34b68f..b19efc0f6 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 8ff300b95..72d0f5253 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 b6e01407f..faa40dbb2 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 3663ad899..9f94a66ed 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 bee85b8b4..e7e23df29 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 32b0f2aa0..e50dc2ebd 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 62a39e567..f4a229f91 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 439d9d5a4..6dd891d61 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 a58b69ac4..ba4b5ec21 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 <stdio.h>
diff --git a/tests/process_vm_readv.c b/tests/process_vm_readv.c
index cfb8f7861..422000b80 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 <asm/unistd.h>
diff --git a/tests/process_vm_writev.c b/tests/process_vm_writev.c
index 6271c01bc..848a9e91a 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 <asm/unistd.h>
diff --git a/tests/pure_executables.list b/tests/pure_executables.list
index c2daf1b2d..1a5238093 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 93d8321d4..2392e8bdb 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 239ab0a4d..956d373d3 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 7f75a8e74..54a3498d7 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 1524405a3..945fc8c72 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 a9937bd31..b81120421 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 6cd953215..d041ebd95 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 4c4bb9cd7..7bcfa8ace 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 95077c8a9..e9041dadf 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 3f819ce89..8bc9c6b09 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 <asm/unistd.h>
diff --git a/tests/rename.c b/tests/rename.c
index 2a2a4e01e..3d77573ce 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 <asm/unistd.h>
diff --git a/tests/renameat.c b/tests/renameat.c
index 2b874efac..7f11893f1 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 <asm/unistd.h>
diff --git a/tests/restart_syscall.test b/tests/restart_syscall.test
index f7dfa04fd..8dde6684f 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 20952d84d..505303ad2 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 <asm/unistd.h>
diff --git a/tests/rt_sigaction.test b/tests/rt_sigaction.test
index fcde3bafa..afbbb5406 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 208aa0f9e..1a0aa7e52 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 5224ff130..7715d2867 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 <asm/unistd.h>
diff --git a/tests/sched_rr_get_interval.c b/tests/sched_rr_get_interval.c
index 000a0be76..b1117f3b4 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 <asm/unistd.h>
diff --git a/tests/sched_xetparam.c b/tests/sched_xetparam.c
index e761a9d0e..e1325a6f7 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 <asm/unistd.h>
diff --git a/tests/sched_xetscheduler.c b/tests/sched_xetscheduler.c
index 8248a0c03..bc48085a4 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 <asm/unistd.h>
diff --git a/tests/sched_yield.c b/tests/sched_yield.c
index 355e7e8da..40b556171 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 <asm/unistd.h>
diff --git a/tests/seccomp-strict.test b/tests/seccomp-strict.test
index b0398717d..3525e20ce 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 4b14882ce..f7f047019 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 <sys/ipc.h>
#include <sys/sem.h>
diff --git a/tests/setdomainname.c b/tests/setdomainname.c
index f3e248409..177c0fd7a 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 <asm/unistd.h>
diff --git a/tests/setfsgid.c b/tests/setfsgid.c
index 871f4b35f..496b26798 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 <asm/unistd.h>
diff --git a/tests/setfsgid32.c b/tests/setfsgid32.c
index 6279abd30..a931602c0 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 <asm/unistd.h>
diff --git a/tests/setfsuid.c b/tests/setfsuid.c
index d6faf9711..269d38f2e 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 <asm/unistd.h>
diff --git a/tests/setfsuid32.c b/tests/setfsuid32.c
index b71cf2354..cfcc0f83b 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 <asm/unistd.h>
diff --git a/tests/setgid.c b/tests/setgid.c
index 8794a0a4b..3374924ae 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 <asm/unistd.h>
diff --git a/tests/setgid32.c b/tests/setgid32.c
index 17f43c585..427c77b04 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 <asm/unistd.h>
diff --git a/tests/setgroups32.c b/tests/setgroups32.c
index ecf00bbde..935b73a99 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 <asm/unistd.h>
diff --git a/tests/setregid.c b/tests/setregid.c
index e1da7862d..68639e6ad 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 <asm/unistd.h>
diff --git a/tests/setregid32.c b/tests/setregid32.c
index 3cf0daf6f..6291bc58a 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 <asm/unistd.h>
diff --git a/tests/setresgid.c b/tests/setresgid.c
index 8701df8ed..f3a160e37 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 <asm/unistd.h>
diff --git a/tests/setresgid32.c b/tests/setresgid32.c
index dfce45727..e05ae8f8d 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 <asm/unistd.h>
diff --git a/tests/setresuid.c b/tests/setresuid.c
index 3a9dbd1fc..855a9bf70 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 <asm/unistd.h>
diff --git a/tests/setresuid32.c b/tests/setresuid32.c
index 387268a7f..ccfc2a51c 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 <asm/unistd.h>
diff --git a/tests/setreuid.c b/tests/setreuid.c
index 68e751923..1e34dd181 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 <asm/unistd.h>
diff --git a/tests/setreuid32.c b/tests/setreuid32.c
index ba0176211..c0345db79 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 <asm/unistd.h>
diff --git a/tests/setuid.c b/tests/setuid.c
index df2e46b17..4a8243e89 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 <asm/unistd.h>
diff --git a/tests/setuid32.c b/tests/setuid32.c
index c837d547c..ba1b2e2da 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 <asm/unistd.h>
diff --git a/tests/shmxt.c b/tests/shmxt.c
index 398667c84..3742a4843 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 <stdio.h>
#include <stdlib.h>
diff --git a/tests/shutdown.c b/tests/shutdown.c
index d770c43a8..5297a0eb1 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 884e3c55f..905f71c78 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 <signal.h>
diff --git a/tests/sigaltstack.test b/tests/sigaltstack.test
index ff83c2eac..a2ff44145 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 ddbe2dea5..ab1eaeb7c 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 3164e72ef..07a8180c6 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 73e93b20c..1d8e7c593 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 <signal.h>
diff --git a/tests/skip_unavailable.c b/tests/skip_unavailable.c
index 074fc3a25..761a10c3c 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 <sys/stat.h>
diff --git a/tests/stack-fcall-0.c b/tests/stack-fcall-0.c
index edd6d326c..8a26a79cb 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 5d0bf0e6c..b5cd89b38 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 e16432078..16beee588 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 d2abe6105..3e0a705d1 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 <signal.h>
#include <unistd.h>
diff --git a/tests/stack-fcall.c b/tests/stack-fcall.c
index cfa904ca6..cf4000e56 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 1a83bad41..8dbe8b285 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 359ddbde2..5d3e37dc2 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 843f27a9a..82b95df53 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 64e4a41e5..4b5be6d90 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 a6dac4e6a..7c3136b78 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 6141814ae..429549f2a 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 106a70047..3789d0ea3 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 00649b560..936f4a15c 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 73303aef1..a06408dbb 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 328565599..4d1331b15 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 7d4435beb..089ff0647 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 f0b7a0263..a2aab6642 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 77b25050a..a854182e2 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 <asm/unistd.h>
diff --git a/tests/symlink.c b/tests/symlink.c
index 3e01cf211..8283a8e24 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 <asm/unistd.h>
diff --git a/tests/symlinkat.c b/tests/symlinkat.c
index 6e5d617db..be36b9419 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 <asm/unistd.h>
diff --git a/tests/sync.c b/tests/sync.c
index e6e7ce372..e0b654d0b 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 <asm/unistd.h>
diff --git a/tests/syslog.c b/tests/syslog.c
index 5df96cb8c..363fdf967 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 <asm/unistd.h>
diff --git a/tests/termsig.test b/tests/termsig.test
index fd8852ced..d41ddf0a0 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 f509e18fe..2ce476d54 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 30d1c11d7..1a3b28199 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 <stdbool.h>
extern bool
diff --git a/tests/times-fail.c b/tests/times-fail.c
index bc8b45950..551803df7 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 <assert.h>
#include <stdio.h>
diff --git a/tests/ugetrlimit.c b/tests/ugetrlimit.c
index a99e496d9..49627c1f9 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 <asm/unistd.h>
diff --git a/tests/uio.test b/tests/uio.test
index 01846852e..75eb5de2d 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 86903a954..1a196f439 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 <stdio.h>
#include <sys/stat.h>
diff --git a/tests/umount.test b/tests/umount.test
index a5840d54b..e98ad9f30 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 c43b38dba..33b466d53 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 5ae8ffa9b..3bfe19003 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 3decbe2b9..278a9675f 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 23b64c142..386fd99bd 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 <asm/unistd.h>
diff --git a/tests/uname.test b/tests/uname.test
index 7ca1b5b42..2272c4f05 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 10ab7ccc5..60def6ab6 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 0bd9a040f..bd59ab7d2 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 bbb1de155..9c33b624e 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 <asm/unistd.h>
diff --git a/tests/unlinkat.c b/tests/unlinkat.c
index 22c3de399..0ae679646 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 <asm/unistd.h>
diff --git a/tests/vhangup.c b/tests/vhangup.c
index e7ddabba2..1a786cc30 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 <asm/unistd.h>
diff --git a/tests/xattr-strings.c b/tests/xattr-strings.c
index 310929a95..a3fdabbdb 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 863f7e21a..2f7fe27a3 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 30c59c81f..5cd97ea94 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 <asm/unistd.h>
diff --git a/truncate.c b/truncate.c
index f18394d97..12918dd99 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 c6d665df7..9502c2d3a 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 d42258a96..43de25e19 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 8fafeabe2..7f431654b 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 6ab6d8923..b6bd119d4 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 4bb8df67b..3e78004a0 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 <stdint.h>
#include "kernel_types.h"
diff --git a/xlat.h b/xlat.h
index e86df7971..05778061a 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 16f9b1791..07dcaac5b 100644
--- a/xstring.h
+++ b/xstring.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2018 Eugene Syromyatnikov <evgsyr@gmail.com>
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
#ifndef STRACE_XSTRING_H
#define STRACE_XSTRING_H