mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
LibCore: Add syscall wrapper for dup()
This commit is contained in:
parent
cb9cac4e40
commit
83056efc1a
2 changed files with 9 additions and 0 deletions
|
@ -32,6 +32,7 @@ ErrorOr<struct stat> stat(StringView path);
|
|||
ErrorOr<ssize_t> read(int fd, Bytes buffer);
|
||||
ErrorOr<ssize_t> write(int fd, ReadonlyBytes buffer);
|
||||
ErrorOr<void> kill(pid_t, int signal);
|
||||
ErrorOr<int> dup(int source_fd);
|
||||
ErrorOr<int> dup2(int source_fd, int destination_fd);
|
||||
ErrorOr<String> ptsname(int fd);
|
||||
ErrorOr<String> gethostname();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue