mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibC+Kernel: Switch off_t to 64 bits
This commit is contained in:
parent
b05b4d4b24
commit
7a079f7780
7 changed files with 23 additions and 13 deletions
|
@ -440,8 +440,8 @@ ssize_t readlink(const char* path, char* buffer, size_t size)
|
|||
|
||||
off_t lseek(int fd, off_t offset, int whence)
|
||||
{
|
||||
int rc = syscall(SC_lseek, fd, offset, whence);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
int rc = syscall(SC_lseek, fd, &offset, whence);
|
||||
__RETURN_WITH_ERRNO(rc, offset, -1);
|
||||
}
|
||||
|
||||
int link(const char* old_path, const char* new_path)
|
||||
|
@ -633,7 +633,7 @@ char* getlogin()
|
|||
|
||||
int ftruncate(int fd, off_t length)
|
||||
{
|
||||
int rc = syscall(SC_ftruncate, fd, length);
|
||||
int rc = syscall(SC_ftruncate, fd, &length);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue