mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:17:35 +00:00
More LibC portability work while trying to get figlet building.
This commit is contained in:
parent
bb90c8ecab
commit
9160fd0d47
12 changed files with 128 additions and 2 deletions
|
@ -64,12 +64,18 @@ pid_t waitpid(pid_t waitee, int* wstatus, int options)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int lstat(const char* path, stat* statbuf)
|
||||
int lstat(const char* path, struct stat* statbuf)
|
||||
{
|
||||
int rc = Syscall::invoke(Syscall::PosixLstat, (dword)path, (dword)statbuf);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int stat(const char* path, struct stat* statbuf)
|
||||
{
|
||||
int rc = Syscall::invoke(Syscall::PosixStat, (dword)path, (dword)statbuf);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int chdir(const char* path)
|
||||
{
|
||||
int rc = Syscall::invoke(Syscall::PosixChdir, (dword)path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue