From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,100b7138c4c1a52c,start X-Google-Attributes: gidfee84,public From: Benno.Kardel@m.dasa.de Subject: How to to an NFS-mount with a C-Program Date: 1998/05/14 Message-ID: <6jfc1n$sn2$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 353252316 X-Http-User-Agent: Mozilla/4.05 [en] (X11; I; OSF1 V4.0 alpha) X-Http-Proxy: 1.0 www2.otn.lm.dasa.de:8180 (Squid/1.1.14) for client 53.146.168.1 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu May 14 18:10:00 1998 GMT Newsgroups: comp.unix.osf.osf1 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 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