LibC: open() now just returns syscall(SYS_OPEN, ...)

errno is handled in syscall()
This commit is contained in:
Bananymous 2023-05-29 20:19:17 +03:00
parent 3d95cf02f3
commit 2a34391b71
1 changed files with 1 additions and 7 deletions

View File

@ -5,11 +5,5 @@
int open(const char* path, int oflag, ...)
{
int ret = syscall(SYS_OPEN, path, oflag);
if (ret < 0)
{
errno = -ret;
return -1;
}
return ret;
return syscall(SYS_OPEN, path, oflag);
}