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