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

LibC: Add pwrite(..) implementation to match the existing pread(..)

Add a basic non-thread safe implementation of pwrite, following the
existing pread(..) design.

This is needed for https://fio.readthedocs.io
This commit is contained in:
Brian Gianforcaro 2021-04-21 02:11:04 -07:00 committed by Linus Groh
parent 56ba3e1cbd
commit 14f6425b8f
2 changed files with 21 additions and 10 deletions

View file

@ -101,6 +101,7 @@ int tcsetpgrp(int fd, pid_t pgid);
ssize_t read(int fd, void* buf, size_t count);
ssize_t pread(int fd, void* buf, size_t count, off_t);
ssize_t write(int fd, const void* buf, size_t count);
ssize_t pwrite(int fd, const void* buf, size_t count, off_t);
int close(int fd);
int chdir(const char* path);
int fchdir(int fd);