1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 07:57:49 +00:00
serenity/Userland/Libraries
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
..
LibArchive LibArchive+Utilities: Port ZipOutputStream to Core::Stream 2022-12-27 07:24:07 +03:30
LibAudio Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
LibC Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
LibCards Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
LibChess Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
LibCodeComprehension Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
LibCompress LibCompress: Add two missing return statements 2022-12-26 13:56:13 -05:00
LibConfig LibConfig+LibCore+ConfigServer: Support u32 configuration entries 2022-12-23 23:26:21 +01:00
LibCore Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
LibCoredump LibCoredump: Remove i686 support 2022-12-28 11:53:41 +01:00
LibCpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
LibCrypt AK: Stop using DeprecatedString in Base64 encoding 2022-12-20 10:34:19 +01:00
LibCrypto Everywhere: Remove unused includes of AK/Concepts.h 2023-01-02 20:27:20 -05:00
LibDebug LibDebug: Remove i686 support 2022-12-28 11:53:41 +01:00
LibDesktop Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
LibDeviceTree AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LibDiff LibDiff: Make Diff::generate_only_additions take text as StringView 2022-12-20 10:58:54 +01:00
LibDNS Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
LibDSP Everywhere: Use C++ concepts instead of requires clauses 2022-12-09 11:25:30 +00:00
LibEDID LibEDID: Propagate errors using TRY 2023-01-02 11:04:38 -05:00
LibELF Everywhere: Remove unused includes of AK/Concepts.h 2023-01-02 20:27:20 -05:00
LibFileSystemAccessClient LibFileSystemAccessClient: Add save_file() 2022-12-14 18:26:25 +00:00
LibGemini LibCore: Propagate errors from Stream::*_entire_buffer 2022-12-12 14:16:42 +01:00
LibGfx Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
LibGL LibGL: Move AK/Debug.h include to where it is used 2023-01-02 20:27:20 -05:00
LibGLSL LibGLSL: Fill LinkedShaders with dummy IR code 2022-12-17 22:39:09 -07:00
LibGPU Everywhere: Remove unused includes of AK/Array.h 2023-01-02 20:08:35 +00:00
LibGUI Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
LibHTTP Everywhere: Move AK/Debug.h include to using files or remove 2023-01-02 20:27:20 -05:00
LibIDL LibIDL: Use Core::Stream to read imports 2022-12-14 15:19:35 +00:00
LibImageDecoderClient Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
LibIMAP Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
LibIPC Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
LibJS Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
LibKeyboard Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
LibLine Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
LibLocale Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
LibMain Everywhere: Explicitly link all binaries against the LibC target 2022-11-01 14:49:09 +00:00
LibManual Help+LibManual: Open sibling page for subsections 2023-01-02 06:15:13 -07:00
LibMarkdown Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
LibPartition Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
LibPCIDB AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LibPDF Everywhere: Remove unused includes of AK/StdLibExtras.h 2023-01-02 20:27:20 -05:00
LibProtocol AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LibRegex Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
LibSanitizer LibC: Properly implement stack protectors 2022-11-01 14:49:09 +00:00
LibSoftGPU LibGPU+LibSoftGPU: Move size and pixel format information to GPU::Image 2022-12-26 09:39:20 +01:00
LibSQL Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
LibSymbolication LibELF+LibSymbolication: Remove i686 support 2022-12-28 11:53:41 +01:00
LibSyntax LibSyntax: Add common_language_extension() function 2022-12-19 14:13:50 -05:00
LibSystem Meta+Userland: Add ENABLE_USERSPACE_COVERAGE_COLLECTION CMake option 2022-05-02 01:46:18 +02:00
LibTest Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
LibTextCodec Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
LibThreading Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
LibTimeZone AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LibTLS LibCore: Propagate errors from Stream::*_entire_buffer 2022-12-12 14:16:42 +01:00
LibUnicode LibUnicode: Fix compilation when the UCD download is disabled 2022-12-14 15:24:48 +00:00
LibUSBDB AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LibVideo Everywhere: Remove unused includes of AK/Concepts.h 2023-01-02 20:27:20 -05:00
LibVirtGPU LibVirtGPU: Adopt rendering code from VirGLDemo 2022-12-26 09:39:20 +01:00
LibVT Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
LibWasm Everywhere: Move AK/Debug.h include to using files or remove 2023-01-02 20:27:20 -05:00
LibWeb Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
LibWebSocket AK: Stop using DeprecatedString in Base64 encoding 2022-12-20 10:34:19 +01:00
LibWebView Browser+WebContent: Fixup some DOM inspector weirdness 2022-12-19 11:37:56 -05:00
LibX86 LibX86: Remove i686 support 2022-12-28 11:53:41 +01:00
LibXML Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
CMakeLists.txt LibVirtGPU: Add a new GPU device that talks to our VirtIO-GPU driver 2022-12-26 09:39:20 +01:00