1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

Add getwd().

This commit is contained in:
Andreas Kling 2018-11-06 15:59:57 +01:00
parent 7c3746592b
commit e5e0bffd76
4 changed files with 11 additions and 1 deletions

View file

@ -156,6 +156,11 @@ char* getcwd(char* buffer, size_t size)
__RETURN_WITH_ERRNO(rc, buffer, nullptr);
}
char* getwd(char* buf)
{
return getcwd(buf, PATH_MAX);
}
int sleep(unsigned seconds)
{
return Syscall::invoke(Syscall::SC_sleep, (dword)seconds);