summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-03-01 19:33:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-03-01 19:33:55 +0000
commit180d1a8fdeb91b3359c8cd52423477adb265905d (patch)
treef9f0d8b3ecd1eec7feeaa0394a99c617287f3c28
parent94da1273a8b07c59b361dfdddcce4776ef4fdf64 (diff)
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.h6
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,