diff options
author | 1998-03-01 19:33:54 +0000 | |
---|---|---|
committer | 1998-03-01 19:33:54 +0000 | |
commit | d38868649b5fc60eee0c5697a032f083477dbf27 (patch) | |
tree | 9a62f1ccb4b8979c25262c7c1eb1903305d7c28e | |
parent | Make it look much more like sys/conf/GENERIC, so when DDB comes (diff) | |
download | wireguard-openbsd-d38868649b5fc60eee0c5697a032f083477dbf27.tar.xz wireguard-openbsd-d38868649b5fc60eee0c5697a032f083477dbf27.zip |
crank f_count/f_msgcount to long; when incrementing try to leave 2 slots
empty for unp_gc() in case of cross referenced sockets .
-rw-r--r-- | sys/sys/file.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/file.h b/sys/sys/file.h index 83c0c184304..815bcca6836 100644 --- a/sys/sys/file.h +++ b/sys/sys/file.h @@ -1,4 +1,4 @@ -/* $OpenBSD: file.h,v 1.3 1996/08/27 14:47:06 shawn Exp $ */ +/* $OpenBSD: file.h,v 1.4 1998/03/01 19:33:54 deraadt Exp $ */ /* $NetBSD: file.h,v 1.11 1995/03/26 20:24:13 jtc Exp $ */ /* @@ -56,8 +56,8 @@ struct file { #define DTYPE_SOCKET 2 /* communications endpoint */ #define DTYPE_PIPE 3 /* pipe */ short f_type; /* descriptor type */ - short f_count; /* reference count */ - short f_msgcount; /* references from message queue */ + long f_count; /* reference count */ + long f_msgcount; /* references from message queue */ struct ucred *f_cred; /* credentials associated with descriptor */ struct fileops { int (*fo_read) __P((struct file *fp, struct uio *uio, |