mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:17:45 +00:00
LibCore: Add wrapper for signal()
This commit is contained in:
parent
8eca395e4c
commit
4178479ee5
2 changed files with 18 additions and 0 deletions
|
@ -31,6 +31,11 @@ ErrorOr<void> mount(int source_fd, StringView target, StringView fs_type, int fl
|
|||
#endif
|
||||
|
||||
ErrorOr<void> sigaction(int signal, struct sigaction const* action, struct sigaction* old_action);
|
||||
#ifdef __APPLE__
|
||||
ErrorOr<sig_t> signal(int signal, sig_t handler);
|
||||
#else
|
||||
ErrorOr<sighandler_t> signal(int signal, sighandler_t handler);
|
||||
#endif
|
||||
ErrorOr<struct stat> fstat(int fd);
|
||||
ErrorOr<int> fcntl(int fd, int command, ...);
|
||||
ErrorOr<void*> mmap(void* address, size_t, int protection, int flags, int fd, off_t, size_t alignment = 0, StringView name = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue