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