免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2988 | 回复: 9
打印 上一主题 下一主题

请问挂载的函数是什么 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-01 16:16 |只看该作者 |倒序浏览
本人知道常用的文件和目录函数有openidr,closedir等,但是现在我需要挂载一些东西,在shell下是mount,但是在编程的时候请问应该用什么函数呢?谢谢大家。

论坛徽章:
0
2 [报告]
发表于 2008-02-01 16:32 |只看该作者
原帖由 双对论 于 2008-2-1 16:16 发表
本人知道常用的文件和目录函数有openidr,closedir等,但是现在我需要挂载一些东西,在shell下是mount,但是在编程的时候请问应该用什么函数呢?谢谢大家。


man 2 mount

--

论坛徽章:
95
程序设计版块每日发帖之星
日期:2015-09-05 06:20:00程序设计版块每日发帖之星
日期:2015-09-17 06:20:00程序设计版块每日发帖之星
日期:2015-09-18 06:20:002015亚冠之阿尔艾因
日期:2015-09-18 10:35:08月度论坛发贴之星
日期:2015-09-30 22:25:002015亚冠之阿尔沙巴布
日期:2015-10-03 08:57:39程序设计版块每日发帖之星
日期:2015-10-05 06:20:00每日论坛发贴之星
日期:2015-10-05 06:20:002015年亚冠纪念徽章
日期:2015-10-06 10:06:482015亚冠之塔什干棉农
日期:2015-10-19 19:43:35程序设计版块每日发帖之星
日期:2015-10-21 06:20:00每日论坛发贴之星
日期:2015-09-14 06:20:00
3 [报告]
发表于 2008-02-01 18:11 |只看该作者
man -k mount

论坛徽章:
0
4 [报告]
发表于 2008-02-02 12:29 |只看该作者
you should use system call mout(), you can get its exhaustive description by command: man 2 mount

论坛徽章:
0
5 [报告]
发表于 2008-02-03 15:46 |只看该作者

man 2 mount有问题啊

原帖由 rockins 于 2008-2-2 12:29 发表
you should use system call mout(), you can get its exhaustive description by command: man 2 mount

输入后有错误提示啊
No manual entry for mount in section 2

论坛徽章:
0
6 [报告]
发表于 2008-02-03 15:48 |只看该作者

看不明白啊,求救

原帖由 MMMIX 于 2008-2-1 18:11 发表
man -k mount

输入以上命令后有如下显示:
drivemount_applet (1) - Drive Mount Applet for the GNOME panel.
fdlist (1)           - Floppy disk mount utility
fdmount (1)          - Floppy disk mount utility
fdmountd (1)         - Floppy disk mount utility
fdumount (1)         - Floppy disk mount utility
fdutilsconfig (    - configure the suid bit of fdmount
free (1)             - Display amount of free and used memory in the system
gnome-eject (1)      - Mount drives and volumes using HAL and read settings from the GNOME desktop configuration system gconf.
gnome-mount (1)      - Mount drives and volumes using HAL and read settings from the GNOME desktop configuration system gconf.
gnome-umount (1)     - Mount drives and volumes using HAL and read settings from the GNOME desktop configuration system gconf.
gnome-volume-manager (1) - GNOME daemon to auto-mount and manage media devices
mklost+found (     - create a lost+found directory on a mounted Linux second extended file system
mount (            - mount a file system
mountd (           - NFS mount daemon
mountpoint (1)       - see if a directory is a mountpoint
rpc.mountd (       - NFS mount daemon
showmount (        - show mount information for an NFS server
sleep (1)            - delay for a specified amount of time
umount (           - unmount file systems
究竟是什么意思呢?括号里面的数字又是指什么呢?

论坛徽章:
0
7 [报告]
发表于 2008-02-03 16:53 |只看该作者

晕倒

以上的表情原来是(8),传上来就变成这样了

论坛徽章:
0
8 [报告]
发表于 2008-02-03 17:34 |只看该作者
原帖由 双对论 于 2008-2-3 15:46 发表

输入后有错误提示啊
No manual entry for mount in section 2


請告知你的發行版本.

找不到該 manpage,以 rh-based 來說表示你沒安裝 deveopment 的 package,像是 glibc-devel 就沒這類 manpage 說明。

--

论坛徽章:
0
9 [报告]
发表于 2008-02-03 18:42 |只看该作者
原帖由 双对论 于 2008-2-3 15:48 发表 究竟是什么意思呢?括号里面的数字又是指什么呢?
  1. $ man man
复制代码

论坛徽章:
0
10 [报告]
发表于 2008-02-04 09:45 |只看该作者
就是mount函数,你的机器如果没安装man, google一下,网页版的linux man page会告诉你的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP