diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-02-08 21:08:01 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-13 00:50:07 +0000 |
commit | d43a7eae545cd699f301471bd0f82399174339c1 (patch) | |
tree | c0a55f768f845041c3aebed3f126d462155a799f /Base/usr | |
parent | 14951b92ca6160664ccb68c5e1b2d40133763e5f (diff) | |
download | serenity-d43a7eae545cd699f301471bd0f82399174339c1.zip |
LibCore: Rename `File` to `DeprecatedFile`
As usual, this removes many unused includes and moves used includes
further down the chain.
Diffstat (limited to 'Base/usr')
-rw-r--r-- | Base/usr/share/man/man2/readlink.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Base/usr/share/man/man2/readlink.md b/Base/usr/share/man/man2/readlink.md index 9a2fedb622..e4c7c24e62 100644 --- a/Base/usr/share/man/man2/readlink.md +++ b/Base/usr/share/man/man2/readlink.md @@ -26,12 +26,12 @@ and sets `errno` to describe the error. ## Notes The underlying system call always returns the full size of the target path on -success, not the number of bytes written. `Core::File::read_link()` makes use +success, not the number of bytes written. `Core::DeprecatedFile::read_link()` makes use of this to provide an alternative way to read links that doesn't require the caller to pick a buffer size and allocate a buffer straight up. Since it's essentially impossible to guess the right buffer size for reading -links, it's strongly recommended that everything uses `Core::File::read_link()` +links, it's strongly recommended that everything uses `Core::DeprecatedFile::read_link()` instead. ## Examples @@ -40,7 +40,7 @@ The following example demonstrates how one could implement an alternative version of `getpid(2)` which reads the calling process ID from ProcFS: ```c++ -#include <LibCore/File.h> +#include <LibCore/DeprecatedFile.h> #include <unistd.h> pid_t read_pid_using_readlink() @@ -55,7 +55,7 @@ pid_t read_pid_using_readlink() pid_t read_pid_using_core_file() { - auto target = Core::File::read_link("/proc/self"); + auto target = Core::DeprecatedFile::read_link("/proc/self"); if (target.is_null()) return -1; auto pid = target.to_uint(); |