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("18.104.22.168:/usr/test124", "/usr/test","nfs",MS_MGC_VAL,"rw,async") .
If I use mount executable it works.
mount -t nfs 22.214.171.124:/usr/test124 /usr/test .works