Subject: CVS commit: src/sys/compat/linux/common
To: None <source-changes@NetBSD.org>
From: YAMAMOTO Takashi <yamt@netbsd.org>
List: source-changes
Date: 06/03/2004 01:53:29
Module Name:	src
Committed By:	yamt
Date:		Thu Jun  3 01:53:29 UTC 2004

Modified Files:
	src/sys/compat/linux/common: linux_ioctl.c

Log Message:
linux_sys_ioctl: map EPASSTHROUGH to EINVAL as sys_ioctl does.
otherwise, linux_syscall() returns garbage, at least on i386.
(it returns native_to_linux_errno[EPASSTHROUGH] where EPASSTHROUGH == -4.)

i choose EINVAL rather than ENOTTY, because linux's pipe returns it
and i think that it's a common case.


To generate a diff of this commit:
cvs rdiff -r1.38 -r1.39 src/sys/compat/linux/common/linux_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.