From ca9f61b3d80a4ecba985e8e82f8629052b4e0142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 20 Jan 2007 20:24:46 +0000 Subject: [PATCH] Add mount_nfs to the build. this should probably go away, mount should be enough. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19885 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/network/Jamfile | 1 + src/bin/network/mount_nfs/Jamfile | 8 ++++++++ src/bin/network/mount_nfs/mount_nfs.cpp | 10 +++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/bin/network/mount_nfs/Jamfile diff --git a/src/bin/network/Jamfile b/src/bin/network/Jamfile index 80238bb7e8..c1679357d2 100644 --- a/src/bin/network/Jamfile +++ b/src/bin/network/Jamfile @@ -3,6 +3,7 @@ SubDir HAIKU_TOP src bin network ; SubInclude HAIKU_TOP src bin network arp ; SubInclude HAIKU_TOP src bin network ftp ; SubInclude HAIKU_TOP src bin network ifconfig ; +SubInclude HAIKU_TOP src bin network mount_nfs ; SubInclude HAIKU_TOP src bin network netstat ; #SubInclude HAIKU_TOP src bin network pppconfig ; #SubInclude HAIKU_TOP src bin network ppp_up ; diff --git a/src/bin/network/mount_nfs/Jamfile b/src/bin/network/mount_nfs/Jamfile new file mode 100644 index 0000000000..0a8b13d01a --- /dev/null +++ b/src/bin/network/mount_nfs/Jamfile @@ -0,0 +1,8 @@ +SubDir HAIKU_TOP src bin network mount_nfs ; + +UsePrivateHeaders net ; + +BinCommand mount_nfs : + mount_nfs.cpp + : libnetwork.so +; diff --git a/src/bin/network/mount_nfs/mount_nfs.cpp b/src/bin/network/mount_nfs/mount_nfs.cpp index a864c8ee30..eec1297695 100644 --- a/src/bin/network/mount_nfs/mount_nfs.cpp +++ b/src/bin/network/mount_nfs/mount_nfs.cpp @@ -8,6 +8,14 @@ #include #include #include +#ifdef __HAIKU__ +#include +int mount(const char *filesystem, const char *where, const char *device, ulong flags, void *parameters, size_t len) +{ + (void) len; + return fs_mount_volume(where, device, filesystem, flags, (const char *)parameters); +} +#endif struct mount_nfs_params { @@ -31,7 +39,7 @@ int main (int argc, char **argv) signal(SIGINT, SIG_IGN); signal(SIGHUP, SIG_IGN); - BApplication theApp ("application/x-vnd.barecode-mount_nfs"); + //BApplication theApp ("application/x-vnd.barecode-mount_nfs"); if (argc!=5) {