nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

ndelay_off.c (211B)


      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_off(fd)
     10 int fd;
     11 {
     12   return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK);
     13 }