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 b8ec8918b7
commit 9a8512887f

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);
}