Chinaunix
标题:
fcntl(pipe_fd[0],F_SETFL,0x800)是什么意思?
[打印本页]
作者:
heikefangxian23
时间:
2016-07-05 09:41
标题:
fcntl(pipe_fd[0],F_SETFL,0x800)是什么意思?
int pipe_fd[2];
if (pipe(pipe_fd)<0)
{
puts("pipe failed...\n");
return ret;
}
fcntl(pipe_fd[0],F_SETFL,0x800);
fcntl(pipe_fd[1],F_SETFL,0x800);
这里fcntl是修改文件属性参数,第三个参数 0x800怎么理解??
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2