}
bool
-create (const char *file)
+create (const char *file, unsigned initial_size)
{
- return syscall (SYS_create, file);
+ return syscall (SYS_create, file, initial_size);
}
bool
return syscall (SYS_write, fd, buffer, size);
}
+void
+seek (int fd, unsigned position)
+{
+ syscall (SYS_seek, fd, position);
+}
+
+unsigned
+tell (int fd)
+{
+ return syscall (SYS_tell, fd);
+}
+
void
close (int fd)
{
syscall (SYS_close, fd);
}
+
+bool
+mmap (int fd, void *addr, unsigned length)
+{
+ return syscall (SYS_mmap, fd, addr, length);
+}
+
+bool
+munmap (void *addr, unsigned length)
+{
+ return syscall (SYS_munmap, addr, length);
+}
+
+bool
+chdir (const char *dir)
+{
+ return syscall (SYS_chdir, dir);
+}
+
+bool
+mkdir (const char *dir)
+{
+ return syscall (SYS_mkdir, dir);
+}
+
+void
+lsdir (void)
+{
+ syscall (SYS_lsdir);
+}
+