ndelay.c
changeset 0 068428edee47
equal deleted inserted replaced
-1:000000000000 0:068428edee47
       
     1 #include <sys/types.h>
       
     2 #include <fcntl.h>
       
     3 #include "ndelay.h"
       
     4 
       
     5 #ifndef O_NONBLOCK
       
     6 #define O_NONBLOCK O_NDELAY
       
     7 #endif
       
     8 
       
     9 int ndelay_on(fd)
       
    10 int fd;
       
    11 {
       
    12   return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK);
       
    13 }