请问<errno.h>的作用;<fcntl.h>的作用
函数strerror(errno)的作用(最好详细点)
[问题]一些头文件和函数的问题
-
- 帖子: 52
- 注册时间: 2007-07-16 18:40
- 来自: 浙江
-
- 帖子: 3182
- 注册时间: 2006-03-10 15:10
- 来自: xi'an China
- 联系:
- 奇诺
- 帖子: 3
- 注册时间: 2007-11-27 16:14
引用自APUE2
3.14. fcntl Function
The fcntl function can change the properties of a file that is already open.
The fcntl function is used for five different purposes.
1、Duplicate an existing descriptor (cmd = F_DUPFD)
2、Get/set file descriptor flags (cmd = F_GETFD or F_SETFD)
3、Get/set file status flags (cmd = F_GETFL or F_SETFL)
4、Get/set asynchronous I/O ownership (cmd = F_GETOWN or F_SETOWN)
5、Get/set record locks (cmd = F_GETLK, F_SETLK, or F_SETLKW)