summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornewton <newton@FreeBSD.org>1999-01-30 06:26:35 +0000
committernewton <newton@FreeBSD.org>1999-01-30 06:26:35 +0000
commit698a7e12d0fbb51c6126b8d49e032b7fd2f09382 (patch)
treeb077b76381161edbd1618cc7810fc9a3d80a5b70
parent3a4cced85e34bb367db0c471ee6e8f6429ea4e34 (diff)
downloadFreeBSD-src-698a7e12d0fbb51c6126b8d49e032b7fd2f09382.zip
FreeBSD-src-698a7e12d0fbb51c6126b8d49e032b7fd2f09382.tar.gz
Changed struct socket to include a new field (at the end, so as not
to break existing software) acting as a pointer to emulator-specific state data that some emulators may (or may not) need to maintain about a socket. Used by the svr4 module as a place for maintaining STREAMS emulation state. Discussed with: Mike Smith, Garrett Wollman back in Sept 98
-rw-r--r--sys/sys/socketvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index 41f6e53..ac05e73 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)socketvar.h 8.3 (Berkeley) 2/19/95
- * $Id: socketvar.h,v 1.32 1998/11/11 10:56:07 truckman Exp $
+ * $Id: socketvar.h,v 1.33 1999/01/25 16:58:56 fenner Exp $
*/
#ifndef _SYS_SOCKETVAR_H_
@@ -108,6 +108,7 @@ struct socket {
uid_t so_uid; /* who opened the socket */
/* NB: generation count must not be first; easiest to make it last. */
so_gen_t so_gencnt; /* generation count */
+ void *so_emuldata; /* Private data for emulators */
};
/*
OpenPOWER on IntegriCloud