Pull Kselftest updates from Shuah Khan: - fixes to seccomp test, and kselftest framework - cleanups to remove duplicate header defines - fixes to efivarfs "make clean" target - cgroup cleanup path - Moving the IMA kexec_load selftest to selftests/kexec work from Mimi Johar and Petr Vorel - A framework to kselftest for writing kernel test modules addition from Tobin C. Harding * tag 'linux-kselftest-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (29 commits) selftests: build and run gpio when output directory is the src dir selftests/ipc: Fix msgque compiler warnings selftests/efivarfs: clean up test files from test_create*() selftests: fix headers_install circular dependency selftests/kexec: update get_secureboot_mode selftests/kexec: make kexec_load test independent of IMA being enabled selftests/kexec: check kexec_load and kexec_file_load are enabled selftests/kexec: Add missing '=y' to config options selftests/kexec: kexec_file_load syscall test selftests/kexec: define "require_root_privileges" selftests/kexec: define common logging functions selftests/kexec: define a set of common functions selftests/kexec: cleanup the kexec selftest selftests/kexec: move the IMA kexec_load selftest to selftests/kexec selftests/harness: Add 30 second timeout per test selftests/seccomp: Handle namespace failures gracefully selftests: cgroup: fix cleanup path in test_memcg_subtree_control() selftests: efivarfs: remove the test_create_read file if it was exist rseq/selftests: Adapt number of threads to the number of detected cpus lib: Add test module for strscpy_pad ...
Showing the changes to include/linux (1 of 35 files). Show all
Unified · Split
| @@ -31,6 +31,10 @@ size_t strlcpy(char *, const char *, size_t); · 30 unmodified lines | |||
| 31 | #ifndef __HAVE_ARCH_STRSCPY | 31 | #ifndef __HAVE_ARCH_STRSCPY |
| 32 | ssize_t strscpy(char *, const char *, size_t); | 32 | ssize_t strscpy(char *, const char *, size_t); |
| 33 | #endif | 33 | #endif |
| 34 | |||
| 35 | /* Wraps calls to strscpy()/memset(), no arch specific code required */ | ||
| 36 | ssize_t strscpy_pad(char *dest, const char *src, size_t count); | ||
| 37 | |||
| 34 | #ifndef __HAVE_ARCH_STRCAT | 38 | #ifndef __HAVE_ARCH_STRCAT |
| 35 | extern char * strcat(char *, const char *); | 39 | extern char * strcat(char *, const char *); |
| 36 | #endif | 40 | #endif |