[comp.unix.wizards] FNDELAY and FIONBIO -- any difference?

koreth@ssyx.ucsc.edu (Steven Grimm) (07/13/88)

Do these calls do anything different?

----
one = 1;
ioctl(fd, FIONBIO, &one);
----
fcntl(fd, F_SETFL, FNDELAY);
----

From what little documentation I could find, it looks
like these two do the same thing.  Is that correct?

---
These are my opinions, and in no way reflect those of UCSC, which are wrong.
Steven Grimm		Moderator, comp.{sources,binaries}.atari.st
koreth@ssyx.ucsc.edu	...!ucbvax!ucscc!ssyx!koreth

chris@mimsy.UUCP (Chris Torek) (07/13/88)

In 4.3BSD, at least, FIONBIO is implemented as

	case FIONBIO:
		... fset(fd, FNDELAY, *(int *)data)
		break;

and FIOASYNC as

		... fset(fp, FASYNC, *(int *)data)

so the answer is No, no difference at all.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris@mimsy.umd.edu	Path:	uunet!mimsy!chris