diff --git a/headers/posix/unistd.h b/headers/posix/unistd.h index 75d33a082c..9952648b87 100644 --- a/headers/posix/unistd.h +++ b/headers/posix/unistd.h @@ -109,9 +109,9 @@ extern off_t lseek(int fd, off_t offset, int whence); #define B_MOUNT_READ_ONLY 1 #define B_MOUNT_VIRTUAL_DEVICE 2 -//extern int mount(const char *filesystem, const char *where, const char *device, -// ulong flags, void *parms, int len); -//extern int unmount(const char *path); +extern int mount(const char *filesystem, const char *where, const char *device, + ulong flags, void *parms, int len); +extern int unmount(const char *path); extern int getdtablesize(void); extern long sysconf(int name); diff --git a/src/kernel/Jamfile b/src/kernel/Jamfile index 4bdea08b83..6f93c64a7a 100644 --- a/src/kernel/Jamfile +++ b/src/kernel/Jamfile @@ -361,6 +361,7 @@ KernelStaticLibraryObjects libc.a : <$(SOURCE_GRIST)!libc!unistd>sleep.o <$(SOURCE_GRIST)!libc!unistd>usleep.o <$(SOURCE_GRIST)!libc!unistd>ioctl.o + <$(SOURCE_GRIST)!libc!unistd>mount.o <$(SOURCE_GRIST)!libc!unistd>conf.o ; @@ -478,6 +479,7 @@ KernelLd libc.so : <$(SOURCE_GRIST)!libc!unistd>sleep.o <$(SOURCE_GRIST)!libc!unistd>usleep.o <$(SOURCE_GRIST)!libc!unistd>ioctl.o + <$(SOURCE_GRIST)!libc!unistd>mount.o <$(SOURCE_GRIST)!libc!unistd>conf.o : $(SUBDIR)/ldscripts/$(OBOS_ARCH)/library.ld diff --git a/src/kernel/core/fd.c b/src/kernel/core/fd.c index 7d9e3a59d4..be0e1fef8d 100644 --- a/src/kernel/core/fd.c +++ b/src/kernel/core/fd.c @@ -1,11 +1,11 @@ -/* fd.c - * - * Operations on file descriptors... - * see fd.h for the definitions - * - */ +/* Operations on file descriptors +** +** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the OpenBeOS License. +*/ -#include + +//#include #include #include #include