first cut with UNIX ipc domain
authorBill Joy <root@ucbvax.Berkeley.EDU>
Mon, 2 Aug 1982 15:05:55 +0000 (07:05 -0800)
committerBill Joy <root@ucbvax.Berkeley.EDU>
Mon, 2 Aug 1982 15:05:55 +0000 (07:05 -0800)
SCCS-vsn: sys/sys/unpcb.h 5.2

usr/src/sys/sys/unpcb.h

index 23a9968..757f180 100644 (file)
@@ -1,4 +1,4 @@
-/*     unpcb.h 5.1     82/08/01        */
+/*     unpcb.h 5.2     82/08/02        */
 
 /*
  * Protocol control block for an active
 
 /*
  * Protocol control block for an active
@@ -28,3 +28,5 @@ struct        unpcb {
        struct  unpcb *unp_refs;        /* referencing socket linked list */
        struct  unpcb *unp_nextref;     /* link in unp_refs list */
 };
        struct  unpcb *unp_refs;        /* referencing socket linked list */
        struct  unpcb *unp_nextref;     /* link in unp_refs list */
 };
+
+#define        sotounpcb(so)   ((struct unpcb *)((so)->so_pcb))