| changeset 0 | 068428edee47 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ndelay_off.c Fri Oct 19 14:06:22 2007 +0200 @@ -0,0 +1,13 @@ +#include <sys/types.h> +#include <fcntl.h> +#include "ndelay.h" + +#ifndef O_NONBLOCK +#define O_NONBLOCK O_NDELAY +#endif + +int ndelay_off(fd) +int fd; +{ + return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK); +}