mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-10 00:52:28 +02:00
This is a convenient wrapper around readlink() that hides away the details of buffers and buffer sizes, and simply returns a String. The best part is it doesn't rely on PATH_MAX :D It comes in two versions, for Serenity, where we can pass non-null-terminated strings to syscalls, and where sys$readlink() returns the total link size, and for other systems, where we have to copy out the string, and always have to do two syscalls.
6.3 KiB
6.3 KiB