Subject: CVS commit: src/sys
To: None <>
From: Jaromir Dolecek <>
List: source-changes
Date: 09/21/2003 19:17:19
Module Name:	src
Committed By:	jdolecek
Date:		Sun Sep 21 19:17:18 UTC 2003

Modified Files:
	src/sys/arch/amiga/dev: kbd.c ms.c
	src/sys/arch/atari/dev: kbd.c ms.c
	src/sys/arch/x68k/dev: kbd.c ms.c
	src/sys/compat/netbsd32: netbsd32_ioctl.c
	src/sys/dev: mm.c
	src/sys/dev/sun: kbd.c ms.c
	src/sys/dev/usb: uhid.c
	src/sys/dev/wscons: wskbd.c wsmouse.c wsmux.c
	src/sys/kern: kern_descrip.c subr_log.c sys_generic.c sys_pipe.c
	    sys_socket.c tty.c uipc_socket2.c
	src/sys/net: bpf.c if_tun.c if_tun.h
	src/sys/sys: file.h

Log Message:
cleanup & uniform descriptor owner handling:
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals
  the owner of descriptor, according to appropriate sematics
  these routines instead of custom code where appropriate
* make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN
  properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP
  in sys_ioctl() & sys_fcntl()
* also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and
  pass the ioctls down to soo_ioctl() as any other ioctl

change discussed on tech-kern@

To generate a diff of this commit:
cvs rdiff -r1.45 -r1.46 src/sys/arch/amiga/dev/kbd.c
cvs rdiff -r1.26 -r1.27 src/sys/arch/amiga/dev/ms.c
cvs rdiff -r1.26 -r1.27 src/sys/arch/atari/dev/kbd.c
cvs rdiff -r1.14 -r1.15 src/sys/arch/atari/dev/ms.c
cvs rdiff -r1.18 -r1.19 src/sys/arch/x68k/dev/kbd.c \
cvs rdiff -r1.20 -r1.21 src/sys/compat/netbsd32/netbsd32_ioctl.c
cvs rdiff -r1.4 -r1.5 src/sys/dev/mm.c
cvs rdiff -r1.38 -r1.39 src/sys/dev/sun/kbd.c
cvs rdiff -r1.27 -r1.28 src/sys/dev/sun/ms.c
cvs rdiff -r1.59 -r1.60 src/sys/dev/usb/uhid.c
cvs rdiff -r1.70 -r1.71 src/sys/dev/wscons/wskbd.c
cvs rdiff -r1.32 -r1.33 src/sys/dev/wscons/wsmouse.c
cvs rdiff -r1.33 -r1.34 src/sys/dev/wscons/wsmux.c
cvs rdiff -r1.112 -r1.113 src/sys/kern/kern_descrip.c
cvs rdiff -r1.31 -r1.32 src/sys/kern/subr_log.c
cvs rdiff -r1.78 -r1.79 src/sys/kern/sys_generic.c
cvs rdiff -r1.42 -r1.43 src/sys/kern/sys_pipe.c
cvs rdiff -r1.38 -r1.39 src/sys/kern/sys_socket.c
cvs rdiff -r1.157 -r1.158 src/sys/kern/tty.c
cvs rdiff -r1.55 -r1.56 src/sys/kern/uipc_socket2.c
cvs rdiff -r1.84 -r1.85 src/sys/net/bpf.c
cvs rdiff -r1.63 -r1.64 src/sys/net/if_tun.c
cvs rdiff -r1.10 -r1.11 src/sys/net/if_tun.h
cvs rdiff -r1.46 -r1.47 src/sys/sys/file.h

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