Subject: fcntl(F_SETOWN) Linux emulation
To: None <tech-kern@netbsd.org>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
List: tech-kern
Date: 04/10/2000 12:16:42
Hi,
guessing by Linux fs/fcntl.c, the fcntl should not return any
error and should always succeed - specifically, it should
not return EINVAL for !VCHR devices or if the underlying device
is not a tty.

I've seen a software whih uses the fcntl() quite a lot and
I have some problems with it. It could not be related,
but noticed this as one of possible problems (changing
the emulation code to return "success" didn't make the program work,
though).

Shouldn't the code in sys/compat/linux/common/linux_file.c,
linux_sys_fcntl() lines 374-375, 379-380 be changed to silently
ignore the EINVAL and return success ?

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
@@@@  Wanna a real operating system ? Go and get NetBSD, damn!  @@@@