freebsd-dev/sys/compat/linux
Ian Dowse b0cb4883b1 Deal with a few issues that cropped up following the recent changes
to the code for translating socket and private ioctls:

- Only perform socket ioctl translation if the file descriptor is a
  socket.
- Treat socket ioctls on non-sockets specially, and for now assume
  that these are directed at a tap/vmnet device, so translate the
  ioctl numbers as appropriate (the way if_tap abuses some socket
  ioctls to pass non-ifreq data is utterly bogus, but this is how
  VMware on FreeBSD has always "worked"; I will deal with this
  later).
- Add (untested) support for translating SIOCSIFADDR.
- In all cases where we fail to translate an ioctl, return ENOIOCTL
  so that other handlers have a chance to do the translation.

This should fix the "/dev/vmnet1: Invalid argument" errors that
users of VMware were experiencing, though I have only verified this
on RELENG_4.

Submitted by:	des (mostly)
MFC after:	3 days
2001-11-19 15:43:50 +00:00
..
linux_file.c Implement linux_chown and linux_lchown. The fchown syscall maps 2001-10-16 06:15:36 +00:00
linux_getcwd.c Fix warning in debug printf. This is a long on alpha, and int on i386, 2001-11-17 01:16:10 +00:00
linux_ioctl.c Deal with a few issues that cropped up following the recent changes 2001-11-19 15:43:50 +00:00
linux_ioctl.h Deal with a few issues that cropped up following the recent changes 2001-11-19 15:43:50 +00:00
linux_ipc.c Introduce [IPC|SHM]_[INFO|STAT] to shmctl to make 2001-10-28 09:29:10 +00:00
linux_ipc.h KSE Milestone 2 2001-09-12 08:38:13 +00:00
linux_mib.c o Replace reference to 'struct proc' with 'struct thread' in 'struct 2001-11-08 02:13:18 +00:00
linux_mib.h Fix typo in license. 2000-08-25 07:32:24 +00:00
linux_misc.c Make MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ, SGROWSIZ loader 2001-10-10 23:06:54 +00:00
linux_signal.c KSE Milestone 2 2001-09-12 08:38:13 +00:00
linux_signal.h KSE Milestone 2 2001-09-12 08:38:13 +00:00
linux_socket.c Fix missing holdsock()->fgetsock() 2001-11-17 18:43:13 +00:00
linux_socket.h translate the flags in recvfrom and recvmsg from linux to bsd ones 2000-12-19 00:24:25 +00:00
linux_stats.c Fix abuse of vtagtype. In addition, after this the linux programs will be 2001-09-19 12:35:51 +00:00
linux_sysctl.c KSE Milestone 2 2001-09-12 08:38:13 +00:00
linux_uid16.c When casting from uid16/gid16 to uid/gid respectively, make sure 2001-10-14 03:56:53 +00:00
linux_util.c Eliminate the prefix parameter to linux_emul_find(), which was always 2001-10-27 11:15:19 +00:00
linux_util.h Eliminate the prefix parameter to linux_emul_find(), which was always 2001-10-27 11:15:19 +00:00