1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:04:59 +00:00
serenity/Tests/Kernel
Ben Wiederhake 6b7ce19161 Everywhere: Remove unused includes of LibC/stdlib.h
These instances were detected by searching for files that include
stdlib.h, but don't match the regex:

\\b(_abort|abort|abs|aligned_alloc|arc4random|arc4random_buf|arc4random_
uniform|atexit|atof|atoi|atol|atoll|bsearch|calloc|clearenv|div|div_t|ex
it|_Exit|EXIT_FAILURE|EXIT_SUCCESS|free|getenv|getprogname|grantpt|labs|
ldiv|ldiv_t|llabs|lldiv|lldiv_t|malloc|malloc_good_size|malloc_size|mble
n|mbstowcs|mbtowc|mkdtemp|mkstemp|mkstemps|mktemp|posix_memalign|posix_o
penpt|ptsname|ptsname_r|putenv|qsort|qsort_r|rand|RAND_MAX|random|reallo
c|realpath|secure_getenv|serenity_dump_malloc_stats|serenity_setenv|sete
nv|setprogname|srand|srandom|strtod|strtof|strtol|strtold|strtoll|strtou
l|strtoull|system|unlockpt|unsetenv|wcstombs|wctomb)\\b

(Without the linebreaks.)

This regex is pessimistic, so there might be more files that don't
actually use anything from the stdlib.

In theory, one might use LibCPP to detect things like this
automatically, but let's do this one step after another.
2023-01-02 20:27:20 -05:00
..
bind-local-socket-to-symlink.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
CMakeLists.txt Tests: Skip legacy exploit reproducer test on aarch64 2022-12-31 23:21:06 +01:00
crash-fcntl-invalid-cmd.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
crash.cpp Kernel: Reorganize Arch/x86 directory to Arch/x86_64 after i686 removal 2022-12-28 11:53:41 +01:00
elf-execve-mmap-race.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
elf-symbolication-kernel-read-exploit.cpp Kernel: Remove i686 support 2022-12-28 11:53:41 +01:00
fuzz-syscalls.cpp Kernel+LibC+Tests: Implement pwritev(2) 2022-12-11 19:55:37 -07:00
kill-pidtid-confusion.cpp Everywhere: Refer to pthread.h by its non-prefixed name 2022-07-19 11:00:35 +01:00
mmap-write-into-running-programs-executable-file.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
mprotect-multi-region-mprotect.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
munmap-multi-region-unmapping.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
nanosleep-race-outbuf-munmap.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
null-deref-close-during-select.cpp Tests: Fix -Wunreachable-code warnings from clang 2021-10-08 23:33:46 +02:00
null-deref-crash-during-pthread_join.cpp Tests+Userland: Prefer using __builtin_trap() instead of UD2 2022-10-14 13:01:13 +02:00
path-resolution-race.cpp Tests: Fix -Wunreachable-code warnings from clang 2021-10-08 23:33:46 +02:00
pthread-cond-timedwait-example.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
setpgid-across-sessions-without-leader.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
siginfo-example.cpp Tests: Fix new GCC 12 warnings 2022-05-12 13:12:37 +02:00
stress-truncate.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
stress-writeread.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
TestEFault.cpp Tests/Kernel: Make sure inaccessible area in TestEFault is actually that 2022-08-24 18:35:41 +02:00
TestEmptyPrivateInodeVMObject.cpp Tests/Kernel: Add missing mode parameter to open() calls in inode tests 2023-01-01 15:15:25 +01:00
TestEmptySharedInodeVMObject.cpp Tests/Kernel: Add missing mode parameter to open() calls in inode tests 2023-01-01 15:15:25 +01:00
TestInvalidUIDSet.cpp Kernel: Return EINVAL when specifying -1 for setuid and similar syscalls 2021-12-20 11:32:16 +01:00
TestKernelAlarm.cpp Tests: Add coverage for sys$alarm() success case 2021-08-03 18:44:01 +02:00
TestKernelFilePermissions.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TestKernelPledge.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TestKernelUnveil.cpp Tests: Add test coverage for sys$unveil(..) argument validation 2021-07-23 19:02:25 +02:00
TestMemoryDeviceMmap.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
TestMunMap.cpp Kernel: Unmapping a non-mapped region with munmap() should be a no-op 2021-07-30 13:16:55 +02:00
TestPosixFallocate.cpp Tests/Kernel: Add a very simple test for posix_fallocate() 2022-11-29 11:09:19 +01:00
TestPrivateInodeVMObject.cpp Tests/Kernel: Add missing mode parameter to open() calls in inode tests 2023-01-01 15:15:25 +01:00
TestProcFS.cpp Tests: TestProcFs cannot assume stdin/stdout/stderr are the same 2021-06-30 08:18:28 +04:30
TestProcFSWrite.cpp Kernel: Write test that crashes ProcFS 2021-10-31 18:44:12 +01:00
TestSharedInodeVMObject.cpp Tests/Kernel: Add missing mode parameter to open() calls in inode tests 2023-01-01 15:15:25 +01:00
TestSigAltStack.cpp AK+Everywhere: Add AK_COMPILER_{GCC,CLANG} and use them most places 2022-10-04 23:35:07 +01:00
TestSigHandler.cpp Tests: Add tests for inheriting signal handlers 2022-07-05 20:58:38 +03:00
TestSigWait.cpp Tests: Add tests for sigwait/sigwaitinfo/sigtimedwait 2021-12-12 08:34:19 +02:00
uaf-close-while-blocked-in-read.cpp Tests: Fix -Wunreachable-code warnings from clang 2021-10-08 23:33:46 +02:00
unveil-symlinks.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00