Added mount.c, implementation of mount() and unmount().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@670 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2002-08-09 20:48:30 +00:00
parent beddff0f56
commit e867ec51af
3 changed files with 12 additions and 10 deletions

View File

@ -109,9 +109,9 @@ extern off_t lseek(int fd, off_t offset, int whence);
#define B_MOUNT_READ_ONLY 1 #define B_MOUNT_READ_ONLY 1
#define B_MOUNT_VIRTUAL_DEVICE 2 #define B_MOUNT_VIRTUAL_DEVICE 2
//extern int mount(const char *filesystem, const char *where, const char *device, extern int mount(const char *filesystem, const char *where, const char *device,
// ulong flags, void *parms, int len); ulong flags, void *parms, int len);
//extern int unmount(const char *path); extern int unmount(const char *path);
extern int getdtablesize(void); extern int getdtablesize(void);
extern long sysconf(int name); extern long sysconf(int name);

View File

@ -361,6 +361,7 @@ KernelStaticLibraryObjects libc.a :
<$(SOURCE_GRIST)!libc!unistd>sleep.o <$(SOURCE_GRIST)!libc!unistd>sleep.o
<$(SOURCE_GRIST)!libc!unistd>usleep.o <$(SOURCE_GRIST)!libc!unistd>usleep.o
<$(SOURCE_GRIST)!libc!unistd>ioctl.o <$(SOURCE_GRIST)!libc!unistd>ioctl.o
<$(SOURCE_GRIST)!libc!unistd>mount.o
<$(SOURCE_GRIST)!libc!unistd>conf.o <$(SOURCE_GRIST)!libc!unistd>conf.o
; ;
@ -478,6 +479,7 @@ KernelLd libc.so :
<$(SOURCE_GRIST)!libc!unistd>sleep.o <$(SOURCE_GRIST)!libc!unistd>sleep.o
<$(SOURCE_GRIST)!libc!unistd>usleep.o <$(SOURCE_GRIST)!libc!unistd>usleep.o
<$(SOURCE_GRIST)!libc!unistd>ioctl.o <$(SOURCE_GRIST)!libc!unistd>ioctl.o
<$(SOURCE_GRIST)!libc!unistd>mount.o
<$(SOURCE_GRIST)!libc!unistd>conf.o <$(SOURCE_GRIST)!libc!unistd>conf.o
: :
$(SUBDIR)/ldscripts/$(OBOS_ARCH)/library.ld $(SUBDIR)/ldscripts/$(OBOS_ARCH)/library.ld

View File

@ -1,11 +1,11 @@
/* fd.c /* Operations on file descriptors
* **
* Operations on file descriptors... ** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* see fd.h for the definitions ** Distributed under the terms of the OpenBeOS License.
* */
*/
#include <ktypes.h>
//#include <ktypes.h>
#include <OS.h> #include <OS.h>
#include <fd.h> #include <fd.h>
#include <vfs.h> #include <vfs.h>