ladybird/Userland/Utilities
Tim Schumacher 38677f63c6 pls: Don't rely on getenv to find TERM
This allows us to skip storing the actual backing data in a separate
`Vector`, as we know that we are working with `environ`-backed storage
here.

Also, while the logic is currently very similar to what `getenv` does
internally, this allows us to eventually implement custom environment
variable filters while remaining linear in run time.
2022-06-28 19:09:23 +01:00
..
abench.cpp LibAudio+Userland: Use new audio queue in client-server communication 2022-04-21 13:55:00 +02:00
adjtime.cpp adjtime: Port to LibMain 2022-01-21 01:52:22 +01:00
allocate.cpp allocate: Port to LibMain :^) 2021-11-27 11:14:16 +01:00
aplay.cpp LibAudio+Userland: Use new audio queue in client-server communication 2022-04-21 13:55:00 +02:00
arp.cpp arp: Add hostname resolution 2022-04-21 13:17:29 +02:00
asctl.cpp LibAudio+Userland: Remove Audio::LegacyBuffer 2022-05-03 23:09:20 +02:00
base64.cpp base64: Replace char pointer with StringView 2022-05-02 22:18:27 +02:00
basename.cpp Everywhere: Use default execpromises argument for Core::System::pledge 2021-11-28 08:04:57 +01:00
beep.cpp beep: Port to LibMain :^) 2022-01-09 11:16:00 +03:30
blockdev.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
bt.cpp Everywhere: Use default execpromises argument for Core::System::pledge 2021-11-28 08:04:57 +01:00
cal.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
cat.cpp Everywhere: Use default execpromises argument for Core::System::pledge 2021-11-28 08:04:57 +01:00
checksum.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
chgrp.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
chmod.cpp chmod: Use FilePermissionsMask to handle mode argument 2022-01-01 17:33:43 +00:00
chown.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
chres.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
cksum.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
clear.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
CMakeLists.txt Utilities: Remove ddate joke program 2022-06-15 17:15:04 +02:00
cmp.cpp cmp: Implement cmp(1) 2022-03-19 11:01:49 -07:00
comm.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
config.cpp config: Allow setting a key to the empty string 2022-04-26 22:42:54 +02:00
copy.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
cp.cpp cp: Print proper error message with strerror 2021-12-20 10:40:02 -08:00
cpp-lexer.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
cpp-parser.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
cpp-preprocessor.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
cut.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
date.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
dd.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
df.cpp df: Port to LibMain 2021-12-16 02:10:47 -08:00
diff.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
dirname.cpp dirname: Port to LibMain 2021-12-16 02:10:47 -08:00
disasm.cpp LibX86+disasm: Use an output format closer to objdump 2022-04-07 16:50:34 +02:00
disk_benchmark.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
dmesg.cpp Everywhere: Use default execpromises argument for Core::System::pledge 2021-11-28 08:04:57 +01:00
du.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
echo.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
edid-dump.cpp Utilities: Add edid-dump program to dump EDID from Display connectors 2022-05-27 22:27:44 +01:00
env.cpp env: Use Core::System::exec() 2022-04-11 21:09:42 +02:00
errno.cpp errno: Port to LibMain 2022-01-01 14:40:41 +01:00
expr.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
false.cpp false: Port to LibMain 2022-01-14 19:42:19 +02:00
fdtdump.cpp fdtdump: Port to LibMain 2021-12-16 02:10:47 -08:00
fgrep.cpp fgrep: Port fgrep to LibMain 2022-01-01 14:40:41 +01:00
file.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
find.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
flock.cpp LibCore+flock: Make Core::System::waitpid more ergonomic 2022-01-11 16:04:29 +01:00
fortune.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
functrace.cpp Kernel: Stop requiring working malloc for syscall.h includes 2022-05-02 12:44:34 +02:00
gml-format.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
grep.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
gron.cpp gron: Use StringView literals more (instead of raw C strings) 2021-12-04 14:24:04 +01:00
groupadd.cpp groupadd: Port to LibMain and use the new Core::Group abstraction :^) 2022-01-16 11:19:07 +01:00
groupdel.cpp groupdel: Port to LibMain 2022-02-28 14:05:04 +01:00
groups.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
gunzip.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
gzip.cpp gzip: Don't fail when trying to compress empty files 2022-01-08 15:29:38 +01:00
head.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
headless-browser.cpp Browser+LibWeb+WebContent: Allow Browser to load local files 2022-06-27 20:22:15 +01:00
hello-world.jakt Meta+Userland: Add jakt as an optional Lagom Tool 2022-05-23 23:05:45 +02:00
hexdump.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
host.cpp host: Use AK/IPv4Address to determine if argument is host/ip 2022-04-16 22:16:29 -07:00
hostname.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
id.cpp LibCore+id: Make more use of Core::System wrappers in Core::Account 2022-01-02 18:08:02 +01:00
ifconfig.cpp ifconfig: Stop supporting setting/displaying default gateway 2022-05-01 13:34:27 +02:00
ini.cpp ini: Use String for arguments 2022-04-25 10:47:56 +02:00
install.cpp LibCore+Userland: Remove File::ensure_parent_directories 2022-04-11 00:08:48 +02:00
jp.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
js.cpp js: Add a loadINI() function for loading INI files :^) 2022-06-06 20:14:28 +01:00
kcov-example.cpp kcov-example: Port to LibMain 2022-03-29 21:28:29 -07:00
keymap.cpp Keymap: Fix switching selected keymap 2022-06-16 14:58:43 +01:00
kill.cpp kill: Parse CLI arguments using Arguments.strings 2022-02-12 10:53:07 -05:00
killall.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
less.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
ln.cpp ln: Fix typo in arguments argument 2022-06-28 09:20:30 +01:00
logout.cpp Everywhere: Use default execpromises argument for Core::System::pledge 2021-11-28 08:04:57 +01:00
ls.cpp ls: Use Core::System::pledge(..) instead of LibC API 2022-04-03 17:13:51 -07:00
lscpu.cpp lscpu: Show size of L1 data/instruction, L2, and L3 CPU caches 2022-05-29 15:23:57 +02:00
lsirq.cpp lsirq: Port to LibMain 2022-01-31 15:25:07 +01:00
lsof.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
lspci.cpp AK/ByteBuffer+Everywhere: Handle errors in ByteBuffer::slice() 2022-06-13 15:38:51 +01:00
lsusb.cpp lsusb: Add -v flag to lsusb :^) 2022-06-02 13:14:29 +02:00
man.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
markdown-check.cpp markdown-check: Use Core::ArgsParser 2022-03-29 21:28:29 -07:00
matroska.cpp matroska: Port to LibMain 2022-03-22 11:39:20 +01:00
md.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
mkdir.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
mkfifo.cpp mkfifo: Add support for setting permissions with -m 2022-04-20 18:35:08 +02:00
mknod.cpp mknod: Port to LibMain 2022-01-24 14:01:58 +03:30
mktemp.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
mount.cpp Mount: Implement wxallowed mount option 2022-03-22 12:20:19 +01:00
mv.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
nc.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
netstat.cpp netstat: Stop needing LookupServer for parsing arguments 2022-05-26 21:49:52 +01:00
nl.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
notify.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
nproc.cpp Everywhere: Use default execpromises argument for Core::System::pledge 2021-11-28 08:04:57 +01:00
ntpquery.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
open.cpp open: Use more StringView instead of const char* 2022-01-31 15:25:07 +01:00
pape.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
passwd.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
paste.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
pathchk.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
pgrep.cpp pgrep: Port to LibMain 2022-02-10 14:10:58 +00:00
pidof.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
ping.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
pls.cpp pls: Don't rely on getenv to find TERM 2022-06-28 19:09:23 +01:00
pmap.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
pmemdump.cpp Userland: Introduce the pmemdump utility 2022-01-08 13:21:16 +02:00
printf.cpp AK: Differ between long and long long formats 2022-04-14 03:12:56 +04:30
pro.cpp AK/ByteBuffer+Everywhere: Handle errors in ByteBuffer::slice() 2022-06-13 15:38:51 +01:00
profile.cpp Utilities/profile: Call split_view() using StringView for command parts 2022-04-18 14:17:01 +02:00
ps.cpp Userland: Fix crash when inputting non-tty device into ps 2022-04-02 21:49:16 +02:00
purge.cpp purge: Port to LibMain 2022-03-22 11:39:20 +01:00
pwd.cpp pwd: Add missing rpath pledge 2022-01-21 22:10:23 +01:00
readelf.cpp LibELF: Name library maps with the full file path 2022-05-07 20:02:00 +02:00
readlink.cpp readlink: Use StringView instead of const char* 2022-03-24 11:57:51 +01:00
realpath.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
reboot.cpp reboot: Port to LibMain 2022-03-03 15:42:44 -08:00
rev.cpp rev: Port to LibMain 2022-01-24 05:38:30 +00:00
rm.cpp rm: Port to LibMain 2022-01-25 02:50:10 +00:00
rmdir.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
route.cpp route: Add the flags column 2022-05-26 16:33:10 +02:00
run-tests.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
seq.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
shot.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
shuf.cpp shuf: Port to LibMain 2022-01-24 05:38:30 +00:00
shutdown.cpp shutdown: Port to LibMain 2022-02-01 04:58:24 +00:00
sleep.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
sort.cpp sort: Port to LibMain 2022-01-24 05:38:30 +00:00
sql.cpp sql: Re-prompt user for input after unrecognized command 2022-03-24 07:25:04 -04:00
stat.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
strace.cpp Everywhere: Purge all support and usage of framebuffer devices 2022-05-05 20:55:57 +02:00
stty.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
su.cpp su: Change the HOME enviroment variable on login 2022-05-05 20:49:18 +02:00
sync.cpp sync: Port to LibMain 2022-02-01 04:58:24 +00:00
syscall.cpp Kernel: Stop requiring working malloc for syscall.h includes 2022-05-02 12:44:34 +02:00
sysctl.cpp sysctl: Port to LibMain 2022-02-01 04:58:24 +00:00
tac.cpp Userland: Port tac to LibMain 2022-01-09 04:26:16 -08:00
tail.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
tar.cpp tar: Implement support for GNU longname headers 2022-06-06 20:12:30 +01:00
tee.cpp tee: Port to LibMain and move to SerenityOS code patterns 2022-03-26 18:39:58 +00:00
telws.cpp telws: Port to LibMain 2022-03-29 21:28:29 -07:00
test_env.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
test-bindtodevice.cpp test-bindtodevice: Port to LibMain 2022-03-29 21:28:29 -07:00
test-fuzz.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
test-imap.cpp LibIMAP+Userland: Convert LibIMAP::Client to the Serenity Stream APIs 2022-01-13 15:16:12 +03:30
test-pthread.cpp test-pthread: Port to LibMain and let local functions return ErrorOr<T> 2022-03-29 21:28:29 -07:00
test-unveil.cpp test-unveil: Port to LibMain 2022-03-29 21:28:29 -07:00
test.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
timezone.cpp Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2022-01-31 18:23:22 +00:00
top.cpp top: Add support for quitting top by pressing q 2022-04-02 23:48:17 +01:00
touch.cpp touch: Support custom timestamps 2022-05-21 18:15:00 +02:00
tr.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
traceroute.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
tree.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
true.cpp true: Port to LibMain 2022-03-22 11:39:20 +01:00
truncate.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
tt.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
tty.cpp tty: Port to LibMain 2022-03-29 21:28:29 -07:00
umount.cpp umount: Port to LibMain 2022-01-22 13:31:52 +02:00
uname.cpp uname: Port to LibMain 2022-01-04 07:33:23 +00:00
uniq.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
unzip.cpp unzip: Create parent directory before extracting files 2022-04-27 11:54:57 +02:00
update-cpp-test-results.cpp Everywhere: Move cpp-tests under /home/anon/Tests 2022-03-20 22:20:59 +01:00
uptime.cpp uptime: Port to LibMain :^) 2022-01-02 09:42:56 +00:00
useradd.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
userdel.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
usermod.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
utmpupdate.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
w.cpp Revert "Userland: Invoke tzset in apps that care about time zones" 2022-01-28 15:13:35 +00:00
wasm.cpp Userland: Port wasm to LibMain 2022-01-09 04:26:16 -08:00
watch.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
wc.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
which.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
whoami.cpp whoami: Port to LibMain :^) 2021-11-30 23:34:40 +01:00
wsctl.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
xargs.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
xml.cpp xml: Avoid UAF in Error return from serenity_main() 2022-05-08 16:34:58 +02:00
yes.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
zip.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00