file.h (72521) | file.h (77115) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)file.h 8.3 (Berkeley) 1/9/95 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)file.h 8.3 (Berkeley) 1/9/95 |
34 * $FreeBSD: head/sys/sys/file.h 72521 2001-02-15 16:34:11Z jlemon $ | 34 * $FreeBSD: head/sys/sys/file.h 77115 2001-05-24 07:22:27Z dillon $ |
35 */ 36 37#ifndef _SYS_FILE_H_ 38#define _SYS_FILE_H_ 39 40#ifndef _KERNEL 41#include <sys/fcntl.h> 42#include <sys/unistd.h> --- 8 unchanged lines hidden (view full) --- 51struct knote; 52 53/* 54 * Kernel descriptor table. 55 * One entry for each open kernel vnode and socket. 56 */ 57struct file { 58 LIST_ENTRY(file) f_list;/* list of active files */ | 35 */ 36 37#ifndef _SYS_FILE_H_ 38#define _SYS_FILE_H_ 39 40#ifndef _KERNEL 41#include <sys/fcntl.h> 42#include <sys/unistd.h> --- 8 unchanged lines hidden (view full) --- 51struct knote; 52 53/* 54 * Kernel descriptor table. 55 * One entry for each open kernel vnode and socket. 56 */ 57struct file { 58 LIST_ENTRY(file) f_list;/* list of active files */ |
59 short f_flag; /* see fcntl.h */ | 59 short f_FILLER3; /* (old f_flag) */ |
60#define DTYPE_VNODE 1 /* file */ 61#define DTYPE_SOCKET 2 /* communications endpoint */ 62#define DTYPE_PIPE 3 /* pipe */ 63#define DTYPE_FIFO 4 /* fifo (named pipe) */ 64#define DTYPE_KQUEUE 5 /* event queue */ 65 short f_type; /* descriptor type */ 66 int f_count; /* reference count */ 67 int f_msgcount; /* references from message queue */ --- 20 unchanged lines hidden (view full) --- 88 * count of sequential accesses -- cleared 89 * by most seek operations. 90 */ 91 off_t f_nextoff; /* 92 * offset of next expected read or write 93 */ 94 off_t f_offset; 95 caddr_t f_data; /* vnode or socket */ | 60#define DTYPE_VNODE 1 /* file */ 61#define DTYPE_SOCKET 2 /* communications endpoint */ 62#define DTYPE_PIPE 3 /* pipe */ 63#define DTYPE_FIFO 4 /* fifo (named pipe) */ 64#define DTYPE_KQUEUE 5 /* event queue */ 65 short f_type; /* descriptor type */ 66 int f_count; /* reference count */ 67 int f_msgcount; /* references from message queue */ --- 20 unchanged lines hidden (view full) --- 88 * count of sequential accesses -- cleared 89 * by most seek operations. 90 */ 91 off_t f_nextoff; /* 92 * offset of next expected read or write 93 */ 94 off_t f_offset; 95 caddr_t f_data; /* vnode or socket */ |
96 u_int f_flag; /* see fcntl.h */ |
|
96}; 97 98#ifdef MALLOC_DECLARE 99MALLOC_DECLARE(M_FILE); 100#endif 101 102LIST_HEAD(filelist, file); 103extern struct filelist filehead; /* head of list of open files */ --- 127 unchanged lines hidden --- | 97}; 98 99#ifdef MALLOC_DECLARE 100MALLOC_DECLARE(M_FILE); 101#endif 102 103LIST_HEAD(filelist, file); 104extern struct filelist filehead; /* head of list of open files */ --- 127 unchanged lines hidden --- |