From 698a7e12d0fbb51c6126b8d49e032b7fd2f09382 Mon Sep 17 00:00:00 2001 From: newton Date: Sat, 30 Jan 1999 06:26:35 +0000 Subject: 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 --- sys/sys/socketvar.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ }; /* -- cgit v1.1