windows中用什么替代fcntl函数啊
有个linux程序需要转到wince下面,其中的fcntl函数不知道用什么函数来替换掉。
重要功能就是声明一个管道,将其fd[0]读端设为无阻塞的,这个功能在我windows中怎么实现呀
就是下面这段在windows中如何替换:
int ret;
int filedes[2];
ret = pipe(filedes);
if (ret < 0) {
LOGE("Error in pipe() errno:%d", errno);
return NULL;
}
s_fdRead = filedes[0];
s_fdWrite = filedes[1];
fcntl(s_fdpRead, F_SETFL, O_NONBLOCK);
请赐教。