#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>
#incldue <sys/types.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdarg.h>
#include <math.h>
#include <pwd.h>
#include <limits.h>
int main()
{
int fd;
fd=open("nn",O_CREAT|O_RDWR,0611);
int b=fcntl(fd,F_GETFL,0);
fcntl(fd,F_SETFL,b|O_NONBLOCK);
return 0;
}
#include <stdio.h>
#include <sys/stat.h>
#incldue <sys/types.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdarg.h>
#include <math.h>
#include <pwd.h>
#include <limits.h>
int main()
{
int fd;
fd=open("nn",O_CREAT|O_RDWR,0611);
int b=fcntl(fd,F_GETFL,0);
fcntl(fd,F_SETFL,b|O_NONBLOCK);
return 0;
}
1324

被折叠的 条评论
为什么被折叠?



