diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-12-21 06:16:46 +0330 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-12-31 02:19:45 +0330 |
commit | ee46cee31f95b893a89fa6a0bf59396a966296ba (patch) | |
tree | dcafb6601d1cf445689e9424f79f6396867f3a50 /Userland/Libraries/LibCore/System.h | |
parent | b303b8cf4e03835ca542172333b4575b6f142fc3 (diff) | |
download | serenity-ee46cee31f95b893a89fa6a0bf59396a966296ba.zip |
LibCore: Make Core::System::pipe2() available on Lagom
Note that this drops the flags on the floor if not on linux or serenity.
Diffstat (limited to 'Userland/Libraries/LibCore/System.h')
-rw-r--r-- | Userland/Libraries/LibCore/System.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/System.h b/Userland/Libraries/LibCore/System.h index 5c5a277a90..addd51ddcd 100644 --- a/Userland/Libraries/LibCore/System.h +++ b/Userland/Libraries/LibCore/System.h @@ -27,7 +27,6 @@ namespace Core::System { #ifdef __serenity__ ErrorOr<void> pledge(StringView promises, StringView execpromises = {}); ErrorOr<void> unveil(StringView path, StringView permissions); -ErrorOr<Array<int, 2>> pipe2(int flags); ErrorOr<void> sendfd(int sockfd, int fd); ErrorOr<int> recvfd(int sockfd, int options); ErrorOr<void> ptrace_peekbuf(pid_t tid, void const* tracee_addr, Bytes destination_buf); @@ -85,6 +84,7 @@ ErrorOr<int> mkstemp(Span<char> pattern); ErrorOr<void> fchmod(int fd, mode_t mode); ErrorOr<void> rename(StringView old_path, StringView new_path); ErrorOr<void> utime(StringView path, Optional<struct utimbuf>); +ErrorOr<Array<int, 2>> pipe2(int flags); ErrorOr<int> socket(int domain, int type, int protocol); ErrorOr<void> bind(int sockfd, struct sockaddr const*, socklen_t); |