Logo Search packages:      
Sourcecode: daemontools version File versions  Download package

ndelay_on.c

/* Public domain. */

#include <sys/types.h>
#include <fcntl.h>
#include "ndelay.h"

#ifndef O_NONBLOCK
#define O_NONBLOCK O_NDELAY
#endif

int ndelay_on(int fd)
{
  return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK);
}

Generated by  Doxygen 1.6.0   Back to index