Re: mount() = mount -f NFS,bg

From: gdm (ggdm123a._sans_le_a_at_club-internet.fr)
Date: 11/17/03


Date: Mon, 17 Nov 2003 20:42:55 +0100

Fletcher Glenn wrote:
> gdm wrote:
>> in my program, I want to use mount to mount NFS. the rigth command is
>> #mount -f NFS,bg u8:/ /nfs/u8

>> in my program I write:
>> mflag=0;
>> fstyp=0;
>> cc=mount("u8/","/nfs/u8",mflag, fstyp,NULL,0);

>> this function does not work. what should be mflag? what should be
>> fstyp? gdm

> Your mount() function call does not match the prototype on the
> mount(2) man page for Solaris. You probably need to specify your O/S
> if you
> want specific help. BTW - on the Solaris function, fstyp is a char *.

I use SCO openserver5.0.5. But I am not sure that the syscall could be so
different according to the O/S. it seems that my problem is to know what
value is mflag and to know what value is fstyp.

gdm



Relevant Pages

  • mount() = mount -f NFS,bg
    ... I want to use mount to mount NFS. ... the rigth command is ... what should be fstyp? ...
    (comp.unix.programmer)
  • Re: mount() = mount -f NFS,bg
    ... gdm wrote: ... > value is mflag and to know what value is fstyp. ... Well, fstyp is "NFS", but the mflags would be in the header file ... Fletcher Glenn ...
    (comp.unix.programmer)