Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Benno.Kardel@m.dasa.de
Subject: How to to an NFS-mount with a C-Program
Date: 1998/05/14	[thread overview]
Message-ID: <6jfc1n$sn2$1@nnrp1.dejanews.com> (raw)


Hi folks,

I'm just trying to port some code from IRIX to DEC-Unix. This code does
contain NFS-mount a remote-disk using the mount(2)-call.
Finally I got it to compile without error, but now I'm getting a runtime
error [46, Protocol family not supported] which tells me that I have
some mount-argument wrong [# mount xxx:/tmp /mnt works, trying the
same with my code does not].

I looked at the man-page (see below) but didn't get to far.
  #include <sys/mount.h>
  mount(
          int type,
          char *mnt-path,
          int mnt_flag,
          caddr_t data );

I went through all online- and paper-documentation I have, but I cannot
find anything that describes, what "data" must be supplied for NFS-mounts.

Sure enough in sys/mount.h there is a "struct nfs_args", but with
that information alone I'm still stuck, because I don't know which
args to use.

Does anyone have a programming example for this problem ?

I'm new to news, I hope this was the right place to ask. If not
where else should I try ?

PS.: Don't suggest using the "system" call, because with that I would
     have to change even a lot more code.


============================================================================
       I do not speak for my company - nor do they speak for me
============================================================================

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading



                 reply	other threads:[~1998-05-14  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox