Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Bump f_flag to a full int in order to provide suffic...



details:   https://anonhg.NetBSD.org/src/rev/d844832fe692
branches:  trunk
changeset: 474331:d844832fe692
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sat Jul 03 20:04:10 1999 +0000

description:
Bump f_flag to a full int in order to provide sufficient space to hold all
currently defined flag bits; thanks go to Bill Studenmund for noticing this.

diffstat:

 sys/sys/file.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 5dc90f4ff67a -r d844832fe692 sys/sys/file.h
--- a/sys/sys/file.h    Sat Jul 03 19:55:03 1999 +0000
+++ b/sys/sys/file.h    Sat Jul 03 20:04:10 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: file.h,v 1.19 1999/05/05 20:01:12 thorpej Exp $        */
+/*     $NetBSD: file.h,v 1.20 1999/07/03 20:04:10 kleink Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -54,12 +54,13 @@
  */
 struct file {
        LIST_ENTRY(file) f_list;/* list of active files */
-       short   f_flag;         /* see fcntl.h */
+       int     f_flag;         /* see fcntl.h */
 #define        DTYPE_VNODE     1       /* file */
 #define        DTYPE_SOCKET    2       /* communications endpoint */
        short   f_type;         /* descriptor type */
        short   f_count;        /* reference count */
        short   f_msgcount;     /* references from message queue */
+       short   f_pad0;         /* spare */
        struct  ucred *f_cred;  /* credentials associated with descriptor */
        struct  fileops {
                int     (*fo_read)      __P((struct file *fp, off_t *offset,



Home | Main Index | Thread Index | Old Index