1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 14:47:35 +00:00

LibCore+ImageViewer: Add unlink() wrapper, use it

This commit is contained in:
Junior Rantila 2021-12-29 21:47:38 +01:00 committed by Andreas Kling
parent 080c3164c7
commit 9a38d1de07
3 changed files with 20 additions and 3 deletions

View file

@ -98,6 +98,7 @@ ErrorOr<pid_t> fork();
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> unlink(StringView path);
ErrorOr<void> utime(StringView path, Optional<struct utimbuf>);
ErrorOr<struct utsname> uname();
ErrorOr<Array<int, 2>> pipe2(int flags);