社区
Linux/Unix社区
帖子详情
unistd.h 和 fcntl.h到底什么联系与区别?
勇敢小鱼
2014-04-10 01:24:19
都说:
fcntl.h定义了很多宏和open,fcntl函数原型
unistd.h定义了更多的函数原型
那意思是说read write等这些函数是定义在unistd中?
为何我文件中不引入unistd 只引入fcntl 仍然可以用read write等函数
求指教。谢谢
...全文
514
5
打赏
收藏
unistd.h 和 fcntl.h到底什么联系与区别?
都说: fcntl.h定义了很多宏和open,fcntl函数原型 unistd.h定义了更多的函数原型 那意思是说read write等这些函数是定义在unistd中? 为何我文件中不引入unistd 只引入fcntl 仍然可以用read write等函数 求指教。谢谢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
CyberLogix
2014-04-12
打赏
举报
回复
因为fcntl中引入了unistd ,说的对
qq120848369
2014-04-11
打赏
举报
回复
根据manpage引入头文件,不要假设fctnl.h包含了unistd.h
gaomingjava
2014-04-10
打赏
举报
回复
2楼正解。能够找到肯定是直接或者间接引用过。
SweetTimeRose
2014-04-10
打赏
举报
回复
因为fcntl中引入了unistd
ZG
2014-04-10
打赏
举报
回复
头文件只是函数声明,在哪个头文件中声明中都可以,具体的函数定义在源文件中 如果将要调用的函数直接声明在你的源文件中,你可以两个头文件都不包
C语言
uni
std
.h
C语言
uni
std
.h
s5pv210 camera test
s5pv210 camera test #include
#include <
fcn
tl
.h> #include
tl.h> #include
#include
#include
#include <
uni
std
.h> #include
#include <
std
io.h> #include <
std
lib.h> #include
#include
#include
#include
#include
#include "videodev2_samsung.h"
源代码_BT下载程序
licux 下 源代码_BT下载程序 #include #include #include #include #include #include #include #include #include "data.h" #include "sha1.h" #include "parse_metafile.h" #include "bitfield.h" #include "message.h" #include "policy.h" #include "torrent.h"
v4l.c和v4l.h
v4l.c v4l.h #include <
uni
std
.h> #include <
std
io.h> #include <
std
lib.h> #include
#include
tl.h> #include
#include <
fcn
tl
.h> #include
#include
#include "v4l.h"
Linux中常用C/C++一些头文件的作用
目录项 文件控制 文件名匹配类型 路径名模式匹配类型 组文件 网络数据库操作 口令文件 正则表达式 TAR归档值 终端I/O 符号常量 文件时间 ......
Linux/Unix社区
23,223
社区成员
74,537
社区内容
发帖
与我相关
我的任务
Linux/Unix社区
Linux/Unix社区 应用程序开发区
复制链接
扫一扫
分享
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章