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