From e867ec51af680963bbe99c3b3370e8d53ffc74d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 9 Aug 2002 20:48:30 +0000 Subject: [PATCH] Added mount.c, implementation of mount() and unmount(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@670 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/unistd.h | 6 +++--- src/kernel/Jamfile | 2 ++ src/kernel/core/fd.c | 14 +++++++------- 3 files changed, 12 insertions(+), 10 deletions(-) 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