SCCS-vsn: sys/sys/socketvar.h 4.4
SCCS-vsn: sys/sys/systm.h 4.19
-/* socketvar.h 4.3 81/11/14 */
+/* socketvar.h 4.4 81/11/16 */
/*
* Kernel structure per socket.
/*
* Kernel structure per 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; \
#define sowwakeup(so) sbwakeup(&(so)->so_snd)
#ifdef KERNEL
#define sowwakeup(so) sbwakeup(&(so)->so_snd)
#ifdef KERNEL
-/* systm.h 4.18 81/10/17 */
+/* systm.h 4.19 81/11/16 */
/*
* Random set of variables
/*
* Random set of variables
char *panicstr;
int wantin;
int boothowto; /* reboot flags, from console subsystem */
char *panicstr;
int wantin;
int boothowto; /* reboot flags, from console subsystem */
+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)