serenity/Userland/Utilities
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
..
abench.cpp
adjtime.cpp
allocate.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
aplay.cpp aplay: Preload more audio 2022-11-25 17:01:44 -07:00
arp.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
asctl.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
base64.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
basename.cpp
beep.cpp
blockdev.cpp
bt.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
cal.cpp
cat.cpp cat: Return a non-null value if an error occurred 2022-11-24 21:01:54 -05:00
checksum.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
chgrp.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
chmod.cpp
chown.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
chres.cpp
cksum.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
clear.cpp
CMakeLists.txt LibGfx: Start adding a utility for handling ICC color profiles 2022-12-27 07:44:37 -07:00
cmp.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
comm.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
config.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
copy.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
cp.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
cpp-lexer.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
cpp-parser.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
cpp-preprocessor.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
cut.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
date.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
dd.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
df.cpp df: Add an option to display used/available inodes 2023-01-02 20:11:18 +00:00
diff.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
dirname.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
disasm.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
disk_benchmark.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
dmesg.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
du.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
echo.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
env.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
errno.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
expr.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
false.cpp
fdtdump.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
fgrep.cpp Everywhere: Fix badly-formatted includes 2023-01-02 11:06:15 -05:00
file.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
find.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
flock.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
fortune.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
functrace.cpp Kernel+Userland: Remove dependency on i386-specific registers 2022-12-28 11:53:41 +01:00
gml-format.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
grep.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
gron.cpp gron: Add options for enabling/disabling colored output 2022-12-15 12:20:37 +00:00
groupadd.cpp
groupdel.cpp
groups.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
gunzip.cpp LibCompress: Port GzipDecompressor to Core::Stream 2022-12-10 12:05:55 +00:00
gzip.cpp LibCompress: Port GzipDecompressor to Core::Stream 2022-12-10 12:05:55 +00:00
head.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
headless-browser.cpp LibCore: Remove the force parameter from File::remove 2022-12-23 10:38:14 -05:00
hello-world.jakt
hexdump.cpp hexdump: Replace Core::File with Core::Stream::File 2022-11-26 11:07:00 +01:00
host.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
hostname.cpp
icc.cpp LibGfx+icc: Print pcs illuminant 2023-01-02 15:20:51 +01:00
id.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ifconfig.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
ini.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
install.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
jail-attach.cpp Userland: Enhance jail-attach utility to support existing and new jails 2022-11-26 01:47:50 -07:00
jail-create.cpp
js.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
json.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
kcov-example.cpp
keymap.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
kill.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
killall.cpp LibCore: Use Core::Stream for ProcessStatisticsReader 2022-12-10 11:49:24 +00:00
ldd.cpp Utilities: Introduce the ldd utility 2022-12-31 05:06:39 -07:00
less.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ln.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
logout.cpp
ls.cpp Utilities: Print arbitrary bytes in ls 2023-01-01 11:03:29 +00:00
lsblk.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
lscpu.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
lsirq.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
lsjails.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
lsof.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
lspci.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
lsusb.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
man.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
markdown-check.cpp Utilities: Resolve manpage paths more robustly in markdown-check 2023-01-02 06:15:13 -07:00
matroska.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
md.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
mkdir.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
mkfifo.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
mknod.cpp
mktemp.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
mount.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
mv.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
nc.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
netstat.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
nl.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
nologin.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
notify.cpp
nproc.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
ntpquery.cpp ntpquery: Explicitly zero initialize msghdr and fill in fields 2022-12-20 11:04:05 +01:00
open.cpp
passwd.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
paste.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
pathchk.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
pgrep.cpp LibCore: Use Core::Stream for ProcessStatisticsReader 2022-12-10 11:49:24 +00:00
pidof.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
ping.cpp
pkill.cpp LibCore: Use Core::Stream for ProcessStatisticsReader 2022-12-10 11:49:24 +00:00
pledge.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
pls.cpp
pmap.cpp Userland: Remove i686 support 2022-12-28 11:53:41 +01:00
pmemdump.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
printf.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
pro.cpp pro: Fix comment typo 2022-12-30 15:25:03 -05:00
profile.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ps.cpp LibCore: Use Core::Stream for ProcessStatisticsReader 2022-12-10 11:49:24 +00:00
purge.cpp
pwd.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
readelf.cpp Userland: Remove i686 support 2022-12-28 11:53:41 +01:00
readlink.cpp
realpath.cpp
reboot.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
rev.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
rm.cpp LibCore: Remove the force parameter from File::remove 2022-12-23 10:38:14 -05:00
rmdir.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
route.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
run-tests.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
seq.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
shot.cpp LibGfx+Userland: Make PNGWriter::encode() return ErrorOr<ByteBuffer> 2022-12-08 13:01:11 +00:00
shuf.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
shutdown.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
sleep.cpp
sort.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
sql.cpp sql+SQLStudio: Recover from errors preparing SQL statements 2022-12-30 14:17:18 +01:00
stat.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
strace.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
strings.cpp Utilities: Add strings 2022-12-04 12:08:48 +00:00
stty.cpp Everywhere: Remove unused includes of AK/Array.h 2023-01-02 20:08:35 +00:00
su.cpp
sync.cpp
syscall.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
sysctl.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
tac.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
tail.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
tar.cpp Everywhere: Fix badly-formatted includes 2023-01-02 11:06:15 -05:00
tee.cpp
telws.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
test-bindtodevice.cpp
test-fuzz.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
test-imap.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
test-pthread.cpp Everywhere: Run clang-format 2022-12-03 23:52:23 +00:00
test-unveil.cpp
test.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
test_env.cpp
timezone.cpp
top.cpp Utilities: Fix top utility not calling exit() on SIGINT 2022-12-31 00:04:19 +01:00
touch.cpp LibCore: Move Core::Stream::File::exists() to Core::File 2022-12-08 12:52:14 +00:00
tr.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
traceroute.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
tree.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
true.cpp
truncate.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
tsort.cpp tsort: Suppress warnings with -q 2022-12-16 10:41:56 -07:00
tt.cpp
tty.cpp
umount.cpp
uname.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
uniq.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
unveil.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
unzip.cpp LibCore: Remove the force parameter from File::remove 2022-12-23 10:38:14 -05:00
update-cpp-test-results.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
uptime.cpp uptime: Port to Core::Stream::File, use AK::human_readable_time() 2022-12-21 08:41:34 +00:00
useradd.cpp AK: Stop using DeprecatedString in Base64 encoding 2022-12-20 10:34:19 +01:00
userdel.cpp userdel: Use Core::Account::sync() to interact with sensitive files 2022-12-31 04:24:05 -07:00
usermod.cpp
utmpupdate.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
w.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
wallpaper.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
wasm.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
watch.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
wc.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
which.cpp
whoami.cpp
wsctl.cpp
xargs.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
xml.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
yes.cpp
zip.cpp LibArchive+Utilities: Port ZipOutputStream to Core::Stream 2022-12-27 07:24:07 +03:30