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
This commit is contained in:
@@ -3,6 +3,7 @@ SubDir HAIKU_TOP src bin network ;
|
|||||||
SubInclude HAIKU_TOP src bin network arp ;
|
SubInclude HAIKU_TOP src bin network arp ;
|
||||||
SubInclude HAIKU_TOP src bin network ftp ;
|
SubInclude HAIKU_TOP src bin network ftp ;
|
||||||
SubInclude HAIKU_TOP src bin network ifconfig ;
|
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 netstat ;
|
||||||
#SubInclude HAIKU_TOP src bin network pppconfig ;
|
#SubInclude HAIKU_TOP src bin network pppconfig ;
|
||||||
#SubInclude HAIKU_TOP src bin network ppp_up ;
|
#SubInclude HAIKU_TOP src bin network ppp_up ;
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
SubDir HAIKU_TOP src bin network mount_nfs ;
|
||||||
|
|
||||||
|
UsePrivateHeaders net ;
|
||||||
|
|
||||||
|
BinCommand mount_nfs :
|
||||||
|
mount_nfs.cpp
|
||||||
|
: libnetwork.so
|
||||||
|
;
|
||||||
@@ -8,6 +8,14 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
#include <fs_volume.h>
|
||||||
|
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
|
struct mount_nfs_params
|
||||||
{
|
{
|
||||||
@@ -31,7 +39,7 @@ int main (int argc, char **argv)
|
|||||||
signal(SIGINT, SIG_IGN);
|
signal(SIGINT, SIG_IGN);
|
||||||
signal(SIGHUP, 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)
|
if (argc!=5)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user