stand.h (64185) | stand.h (65470) |
---|---|
1/* 2 * Copyright (c) 1998 Michael Smith. 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 1998 Michael Smith. 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/lib/libstand/stand.h 64185 2000-08-03 09:08:29Z jhb $ | 26 * $FreeBSD: head/lib/libstand/stand.h 65470 2000-09-05 09:52:50Z msmith $ |
27 * From $NetBSD: stand.h,v 1.22 1997/06/26 19:17:40 drochner Exp $ 28 */ 29 30/*- 31 * Copyright (c) 1993 32 * The Regents of the University of California. All rights reserved. 33 * 34 * Redistribution and use in source and binary forms, with or without --- 119 unchanged lines hidden (view full) --- 154extern int errno; 155 156struct open_file { 157 int f_flags; /* see F_* below */ 158 struct devsw *f_dev; /* pointer to device operations */ 159 void *f_devdata; /* device specific data */ 160 struct fs_ops *f_ops; /* pointer to file system operations */ 161 void *f_fsdata; /* file system specific data */ | 27 * From $NetBSD: stand.h,v 1.22 1997/06/26 19:17:40 drochner Exp $ 28 */ 29 30/*- 31 * Copyright (c) 1993 32 * The Regents of the University of California. All rights reserved. 33 * 34 * Redistribution and use in source and binary forms, with or without --- 119 unchanged lines hidden (view full) --- 154extern int errno; 155 156struct open_file { 157 int f_flags; /* see F_* below */ 158 struct devsw *f_dev; /* pointer to device operations */ 159 void *f_devdata; /* device specific data */ 160 struct fs_ops *f_ops; /* pointer to file system operations */ 161 void *f_fsdata; /* file system specific data */ |
162 off_t f_offset; /* current file offset (F_RAW) */ | 162 off_t f_offset; /* current file offset */ 163 char *f_rabuf; /* readahead buffer pointer */ 164 size_t f_ralen; /* valid data in readahead buffer */ 165 off_t f_raoffset; /* consumer offset in readahead buffer */ 166#define SOPEN_RASIZE 512 |
163}; 164 165#define SOPEN_MAX 8 166extern struct open_file files[]; 167 168/* f_flags values */ 169#define F_READ 0x0001 /* file opened for reading */ 170#define F_WRITE 0x0002 /* file opened for writing */ --- 193 unchanged lines hidden --- | 167}; 168 169#define SOPEN_MAX 8 170extern struct open_file files[]; 171 172/* f_flags values */ 173#define F_READ 0x0001 /* file opened for reading */ 174#define F_WRITE 0x0002 /* file opened for writing */ --- 193 unchanged lines hidden --- |