1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.
--- 22 unchanged lines hidden (view full) ---
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94
39 * $Id: vfs_vnops.c,v 1.70 1999/07/08 06:05:56 mckusick Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/fcntl.h>
45#include <sys/file.h>
46#include <sys/stat.h>
47#include <sys/proc.h>
48#include <sys/mount.h>
49#include <sys/namei.h>
50#include <sys/vnode.h>
51#include <sys/filio.h>
52#include <sys/ttycom.h>
53
54static int vn_closefile __P((struct file *fp, struct proc *p));
55static int vn_ioctl __P((struct file *fp, u_long com, caddr_t data,
56 struct proc *p));
57static int vn_read __P((struct file *fp, struct uio *uio,
58 struct ucred *cred, int flags));
--- 499 unchanged lines hidden (view full) ---
558 * File table vnode close routine.
559 */
560static int
561vn_closefile(fp, p)
562 struct file *fp;
563 struct proc *p;
564{
565
566 return (vn_close(((struct vnode *)fp->f_data), fp->f_flag,
567 fp->f_cred, p));
568}
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.
--- 22 unchanged lines hidden (view full) ---
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94
39 * $Id: vfs_vnops.c,v 1.70 1999/07/08 06:05:56 mckusick Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/fcntl.h>
45#include <sys/file.h>
46#include <sys/stat.h>
47#include <sys/proc.h>
48#include <sys/mount.h>
49#include <sys/namei.h>
50#include <sys/vnode.h>
51#include <sys/filio.h>
52#include <sys/ttycom.h>
53
54static int vn_closefile __P((struct file *fp, struct proc *p));
55static int vn_ioctl __P((struct file *fp, u_long com, caddr_t data,
56 struct proc *p));
57static int vn_read __P((struct file *fp, struct uio *uio,
58 struct ucred *cred, int flags));
--- 499 unchanged lines hidden (view full) ---
558 * File table vnode close routine.
559 */
560static int
561vn_closefile(fp, p)
562 struct file *fp;
563 struct proc *p;
564{
565
566 return (vn_close(((struct vnode *)fp->f_data), fp->f_flag,
567 fp->f_cred, p));
568}