minor nit in fcntl

salkind%nyu at sri-unix.UUCP salkind%nyu at sri-unix.UUCP
Sat Jan 28 11:10:56 AEST 1984


From:  Lou Salkind <salkind at nyu>

Subject: minor nit in fcntl
Index:	sys/sys/kern_descrip.c 4.2BSD

Description:
	If you try fcntl(fd, F_DUPFD, NOFILE), you get the error
	EMFILE instead of EINVAL.
Repeat-By:
	fcntl(fd, F_DUPFD, NOFILE);
Fix:
	In fcntl, replace the test
		if (i < 0 || i > NOFILE)
	by
		if (i < 0 || i >= NOFILE)

	Like I said, a minor nit.



More information about the Comp.unix.wizards mailing list