#include <stdarg.h>
// === CODE ===
+int unlink(const char *pathname)
+{
+ return _SysUnlink(pathname);
+}
+
int open(const char *path, int openmode, ...)
{
mode_t create_mode = 0;
return _SysRead(fd, buf, count);
}
+int seek(int fd, int whence, off_t dest)
+{
+ return _SysSeek(fd, whence, dest);
+}
+
+off_t tell(int fd)
+{
+ return _SysTell(fd);
+}
+
int fork(void)
{
return _SysClone(CLONE_VM, 0);
{
return _SysExecVE(b, v, NULL);
}
+
+int dup2(int oldfd, int newfd)
+{
+ // NOTE: Acess's CopyFD doesn't cause offset sharing
+ return _SysCopyFD(oldfd, newfd);
+}
+