Subject: fcntl(F_SETOWN) Linux emulation
To: None <>
From: Jaromir Dolecek <>
List: tech-kern
Date: 04/10/2000 12:16:42
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,

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 Dolecek <>
@@@@  Wanna a real operating system ? Go and get NetBSD, damn!  @@@@