mount的api使用笔记

命令下的mount使用时带各种参数,我在写c代码时却不知道参数加在什么地方,查了下资料,自己再做个记录:

命令行:

 

1 mount -o iocharset=gb2312 /dev/sdb1 /mnt

 

对应的c:

 

1 rest = mount(devPath, mntPath, "vfat", S_WRITE, "iocharset=gb2312");
2 //如果有多个options,以“,”分开

 

 

posted on 2012-08-10 16:53  J.evan  阅读(486)  评论(0编辑  收藏  举报