mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibCore: Add an ErrorOr wrapper for uname
This commit is contained in:
parent
35cd7c9a91
commit
91f5fc796b
Notes:
sideshowbarker
2024-07-17 21:43:57 +09:00
Author: https://github.com/mjz19910
Commit: 91f5fc796b
Pull-request: https://github.com/SerenityOS/serenity/pull/11607
Reviewed-by: https://github.com/bgianfo
2 changed files with 15 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <sys/wait.h>
|
||||
#include <termios.h>
|
||||
#include <time.h>
|
||||
|
@ -97,6 +98,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<struct utsname> uname();
|
||||
ErrorOr<Array<int, 2>> pipe2(int flags);
|
||||
|
||||
ErrorOr<int> socket(int domain, int type, int protocol);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue