相关疑难解决方法(0)

C 标准库中包含哪些内容?

我将给出GNU C 库文档中的一个示例:

13.1 打开和关闭文件

本节介绍使用文件描述符打开和关闭文件的原语。open 和 creat 函数在头文件 fcntl.h 中声明,而 close 函数在 unistd.h 中声明。

我的问题是:

可以unistd.h并被fcntl.h视为标准C吗?据我所知,它们应该是Posix 标准的一部分?

我们可以说 C 标准库 = Posix 函数 + C API 吗?我很困惑,因为C 标准库的维基百科页面不包含unistd.h它,但 GNU C 库文档包含它?

c linux standards posix language-lawyer

3
推荐指数
1
解决办法
2548
查看次数

标签 统计

c ×1

language-lawyer ×1

linux ×1

posix ×1

standards ×1