mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:37:45 +00:00
LibC: Implement crappy version of pread()
This patch adds a crappy pread() just to get "git" working locally. A proper version would be implemented in the kernel so that we don't have to mess with the file descriptor's offset at all.
This commit is contained in:
parent
7c12d66f61
commit
cd495786a8
2 changed files with 11 additions and 0 deletions
|
@ -99,6 +99,7 @@ int setgid(gid_t);
|
|||
pid_t tcgetpgrp(int fd);
|
||||
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);
|
||||
int close(int fd);
|
||||
int chdir(const char* path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue