Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netiso adjust for SA_SIGINFO changes



details:   https://anonhg.NetBSD.org/src/rev/9ad93961bf31
branches:  trunk
changeset: 551470:9ad93961bf31
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 06 23:56:27 2003 +0000

description:
adjust for SA_SIGINFO changes

diffstat:

 sys/netiso/tp_driver.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (67 lines):

diff -r e837a4bf0990 -r 9ad93961bf31 sys/netiso/tp_driver.c
--- a/sys/netiso/tp_driver.c    Sat Sep 06 23:54:47 2003 +0000
+++ b/sys/netiso/tp_driver.c    Sat Sep 06 23:56:27 2003 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: tp_driver.c,v 1.15 2001/11/13 01:10:49 lukem Exp $     */
+/*     $NetBSD: tp_driver.c,v 1.16 2003/09/06 23:56:27 christos Exp $  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tp_driver.c,v 1.15 2001/11/13 01:10:49 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tp_driver.c,v 1.16 2003/09/06 23:56:27 christos Exp $");
 
 #include "tp_states.h"
 
@@ -37,7 +37,7 @@
 #include <netiso/cons.h>
 
 #define DRIVERTRACE TPPTdriver
-#define sbwakeup(sb)   sowakeup(p->tp_sock, sb);
+#define sbwakeup(sb, dir)      sowakeup(p->tp_sock, sb, dir);
 #define MCPY(d, w) (d ? m_copym(d, 0, (int)M_COPYALL, w): 0)
 
 static int trick_hc = 1;
@@ -382,7 +382,7 @@
                break;
        case 0x1a:
                tp0_stash(p, e);
-               sbwakeup(&p->tp_sock->so_rcv);
+               sbwakeup(&p->tp_sock->so_rcv, POLL_IN);
 
 #ifdef ARGO_DEBUG
                if (argo_debug[D_DATA]) {
@@ -392,7 +392,7 @@
                break;
        case 0x1b:
                tp_ctimeout(p, TM_inact, (int) p->tp_inact_ticks);
-               sbwakeup(&p->tp_sock->so_rcv);
+               sbwakeup(&p->tp_sock->so_rcv, POLL_IN);
 
                doack = tp_stash(p, e);
 #ifdef ARGO_DEBUG
@@ -480,7 +480,7 @@
                }
 #endif
                tp_indicate(T_XDATA, p, 0);
-               sbwakeup(&p->tp_Xrcv);
+               sbwakeup(&p->tp_Xrcv, POLL_IN);
 
                (void) tp_emit(XAK_TPDU_type, p, p->tp_Xrcvnxt, 0, NULL);
                SEQ_INC(p, p->tp_Xrcvnxt);
@@ -718,7 +718,7 @@
                if (p->tp_class != TP_CLASS_0) {
                        tp_ctimeout(p, TM_inact, (int) p->tp_inact_ticks);
                }
-               sbwakeup(sb);
+               sbwakeup(sb, POLL_OUT);
 #ifdef ARGO_DEBUG
                if (argo_debug[D_ACKRECV]) {
                        printf("GOOD ACK new sndnxt 0x%x\n", p->tp_sndnxt);
@@ -749,7 +749,7 @@
                tp_ctimeout(p, TM_inact, (int) p->tp_inact_ticks);
                tp_cuntimeout(p, TM_retrans);
 
-               sbwakeup(&p->tp_sock->so_snd);
+               sbwakeup(&p->tp_sock->so_snd, POLL_OUT);
 
                /* resume normal data */
                tp_send(p);



Home | Main Index | Thread Index | Old Index