more lint
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Tue, 17 Nov 1981 06:24:55 +0000 (22:24 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Tue, 17 Nov 1981 06:24:55 +0000 (22:24 -0800)
SCCS-vsn: sys/sys/socketvar.h 4.4
SCCS-vsn: sys/sys/systm.h 4.19

usr/src/sys/sys/socketvar.h
usr/src/sys/sys/systm.h

index 5d4f0a5..bf5b40e 100644 (file)
@@ -1,4 +1,4 @@
-/* socketvar.h 4.3 81/11/14 */
+/* socketvar.h 4.4 81/11/16 */
 
 /*
  * Kernel structure per socket.
 
 /*
  * Kernel structure per socket.
@@ -61,6 +61,10 @@ struct socket {
 #define        soreadable(so) \
     ((so)->so_rcv.sb_cc || ((so)->so_state & (SS_CANTRCVMORE|SS_CONNAWAITING)))
 
 #define        soreadable(so) \
     ((so)->so_rcv.sb_cc || ((so)->so_state & (SS_CANTRCVMORE|SS_CONNAWAITING)))
 
+/* can we write something to so? */
+#define        sowriteable(so) \
+    (sbspace(&(so)->so_snd) > 0 || ((so)->so_state & SS_CANTSENDMORE))
+
 /* adjust counters in sb reflecting allocation of m */
 #define        sballoc(sb, m) { \
        (sb)->sb_cc += (m)->m_len; \
 /* adjust counters in sb reflecting allocation of m */
 #define        sballoc(sb, m) { \
        (sb)->sb_cc += (m)->m_len; \
@@ -99,5 +103,5 @@ struct socket {
 #define        sowwakeup(so)   sbwakeup(&(so)->so_snd)
 
 #ifdef KERNEL
 #define        sowwakeup(so)   sbwakeup(&(so)->so_snd)
 
 #ifdef KERNEL
-struct mbuf *sb_copy();
+struct mbuf *sbcopy();
 #endif
 #endif
index 9177145..efbfd1c 100644 (file)
@@ -1,4 +1,4 @@
-/*     systm.h 4.18    81/10/17        */
+/*     systm.h 4.19    81/11/16        */
 
 /*
  * Random set of variables
 
 /*
  * Random set of variables
@@ -84,4 +84,8 @@ extern        int catcher[256];
 char   *panicstr;
 int    wantin;
 int    boothowto;              /* reboot flags, from console subsystem */
 char   *panicstr;
 int    wantin;
 int    boothowto;              /* reboot flags, from console subsystem */
-int    select();
+int    selwait;
+
+/* casts to keep lint happy */
+#define        insque(q,p)     _insque((caddr_t)q,(caddr_t)p)
+#define        remque(q)       _remque((caddr_t)q)