Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: source-changes
Date: 08/03/1999 13:19:23
Module Name:	syssrc
Committed By:	wrstuden
Date:		Tue Aug  3 20:19:22 UTC 1999

Modified Files:
	syssrc/sys/adosfs: advnops.c
	syssrc/sys/coda: coda_vnops.c
	syssrc/sys/compat/svr4: svr4_net.c
	syssrc/sys/filecorefs: filecore_vnops.c
	syssrc/sys/isofs/cd9660: cd9660_vnops.c
	syssrc/sys/kern: kern_descrip.c sys_socket.c vfs_vnops.c
	syssrc/sys/miscfs/fdesc: fdesc_vnops.c
	syssrc/sys/miscfs/genfs: genfs.h genfs_vnops.c
	syssrc/sys/miscfs/kernfs: kernfs_vnops.c
	syssrc/sys/miscfs/portal: portal_vnops.c
	syssrc/sys/miscfs/procfs: procfs_vnops.c
	syssrc/sys/msdosfs: msdosfs_vnops.c
	syssrc/sys/nfs: nfs_vnops.c
	syssrc/sys/sys: fcntl.h file.h socketvar.h vnode.h
	syssrc/sys/ufs/ext2fs: ext2fs_vnops.c
	syssrc/sys/ufs/ffs: ffs_vnops.c
	syssrc/sys/ufs/lfs: lfs_vnops.c
	syssrc/sys/ufs/ufs: ufs_extern.h

Log Message:
Add support for fcntl(2) to generate VOP_FCNTL calls. Any fcntl
call with F_FSCTL set and F_SETFL calls generate calls to a new
fileop fo_fcntl. Add genfs_fcntl() and soo_fcntl() which return 0
for F_SETFL and EOPNOTSUPP otherwise. Have all leaf filesystems
use genfs_fcntl().

Reviewed by: thorpej
Tested by: wrstuden


To generate a diff of this commit:
cvs rdiff -r1.50 -r1.51 syssrc/sys/adosfs/advnops.c
cvs rdiff -r1.10 -r1.11 syssrc/sys/coda/coda_vnops.c
cvs rdiff -r1.19 -r1.20 syssrc/sys/compat/svr4/svr4_net.c
cvs rdiff -r1.7 -r1.8 syssrc/sys/filecorefs/filecore_vnops.c
cvs rdiff -r1.54 -r1.55 syssrc/sys/isofs/cd9660/cd9660_vnops.c
cvs rdiff -r1.60 -r1.61 syssrc/sys/kern/kern_descrip.c
cvs rdiff -r1.20 -r1.21 syssrc/sys/kern/sys_socket.c
cvs rdiff -r1.36 -r1.37 syssrc/sys/kern/vfs_vnops.c
cvs rdiff -r1.49 -r1.50 syssrc/sys/miscfs/fdesc/fdesc_vnops.c
cvs rdiff -r1.9 -r1.10 syssrc/sys/miscfs/genfs/genfs.h
cvs rdiff -r1.12 -r1.13 syssrc/sys/miscfs/genfs/genfs_vnops.c
cvs rdiff -r1.64 -r1.65 syssrc/sys/miscfs/kernfs/kernfs_vnops.c
cvs rdiff -r1.34 -r1.35 syssrc/sys/miscfs/portal/portal_vnops.c
cvs rdiff -r1.64 -r1.65 syssrc/sys/miscfs/procfs/procfs_vnops.c
cvs rdiff -r1.83 -r1.84 syssrc/sys/msdosfs/msdosfs_vnops.c
cvs rdiff -r1.104 -r1.105 syssrc/sys/nfs/nfs_vnops.c
cvs rdiff -r1.15 -r1.16 syssrc/sys/sys/fcntl.h
cvs rdiff -r1.20 -r1.21 syssrc/sys/sys/file.h
cvs rdiff -r1.38 -r1.39 syssrc/sys/sys/socketvar.h
cvs rdiff -r1.62 -r1.63 syssrc/sys/sys/vnode.h
cvs rdiff -r1.20 -r1.21 syssrc/sys/ufs/ext2fs/ext2fs_vnops.c
cvs rdiff -r1.18 -r1.19 syssrc/sys/ufs/ffs/ffs_vnops.c
cvs rdiff -r1.26 -r1.27 syssrc/sys/ufs/lfs/lfs_vnops.c
cvs rdiff -r1.19 -r1.20 syssrc/sys/ufs/ufs/ufs_extern.h

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