当前位置: 技术问答>linux和unix
什么是非阻塞啊?我用下面的程序设计的,用非阻塞和不用都一样啊?
来源: 互联网 发布时间:2016-12-19
本文导语: #include #include #include #include #include int main() { int flag; char buf[10] = {''}; int fd; if ( (fd = open("2.txt", O_CREAT | O_TRUNC | O_RDWR) )
#include
#include
#include
#include
#include
int main()
{
int flag;
char buf[10] = {''};
int fd;
if ( (fd = open("2.txt", O_CREAT | O_TRUNC | O_RDWR) )
#include
#include
#include
#include
int main()
{
int flag;
char buf[10] = {''};
int fd;
if ( (fd = open("2.txt", O_CREAT | O_TRUNC | O_RDWR) )