LibC: implement close
This commit is contained in:
@@ -187,6 +187,11 @@ long syscall(long syscall, ...)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int close(int fd)
|
||||
{
|
||||
return syscall(SYS_CLOSE, fd);
|
||||
}
|
||||
|
||||
int execl(const char* pathname, const char* arg0, ...)
|
||||
{
|
||||
if (arg0 == nullptr)
|
||||
|
||||
Reference in New Issue
Block a user