How to use mount system call to mount nfs exported file system. When I use mount call as mentioned below ,I am getting invalid arguments error.
mount("220.127.116.11:/usr/test124", "/usr/test","nfs",MS_MGC_VAL,"rw,async") .
If I use mount executable it works.
mount -t nfs 18.104.22.168:/usr/test124 /usr/test .works