* How to to an NFS-mount with a C-Program
@ 1998-05-14 4:00 Benno.Kardel
0 siblings, 0 replies; only message in thread
From: Benno.Kardel @ 1998-05-14 4:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-05-14 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-14 4:00 How to to an NFS-mount with a C-Program Benno.Kardel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox