[问题]一些头文件和函数的问题

软件和网站开发以及相关技术探讨
回复
luchen
帖子: 52
注册时间: 2007-07-16 18:40
来自: 浙江

[问题]一些头文件和函数的问题

#1

帖子 luchen » 2007-12-09 23:18

请问<errno.h>的作用;<fcntl.h>的作用
函数strerror(errno)的作用(最好详细点)
dbzhang800
帖子: 3182
注册时间: 2006-03-10 15:10
来自: xi'an China
联系:

#2

帖子 dbzhang800 » 2007-12-10 9:53

man strerror
自己看看
头像
奇诺
帖子: 3
注册时间: 2007-11-27 16:14

#3

帖子 奇诺 » 2007-12-10 15:50

引用自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)
回复