version 1.147.2.2, 2007/12/26 21:39:47 |
version 1.148, 2007/12/05 07:06:55 |
Line 580 sobind(struct socket *so, struct mbuf *n |
|
Line 580 sobind(struct socket *so, struct mbuf *n |
|
} |
} |
|
|
int |
int |
solisten(struct socket *so, int backlog, struct lwp *l) |
solisten(struct socket *so, int backlog) |
{ |
{ |
int s, error; |
int s, error; |
|
|
s = splsoftnet(); |
s = splsoftnet(); |
error = (*so->so_proto->pr_usrreq)(so, PRU_LISTEN, NULL, |
error = (*so->so_proto->pr_usrreq)(so, PRU_LISTEN, NULL, |
NULL, NULL, l); |
NULL, NULL, NULL); |
if (error != 0) { |
if (error != 0) { |
splx(s); |
splx(s); |
return error; |
return error; |
Line 1795 soo_kqfilter(struct file *fp, struct kno |
|
Line 1795 soo_kqfilter(struct file *fp, struct kno |
|
sb = &so->so_snd; |
sb = &so->so_snd; |
break; |
break; |
default: |
default: |
return (EINVAL); |
return (1); |
} |
} |
SLIST_INSERT_HEAD(&sb->sb_sel.sel_klist, kn, kn_selnext); |
SLIST_INSERT_HEAD(&sb->sb_sel.sel_klist, kn, kn_selnext); |
sb->sb_flags |= SB_KNOTE; |
sb->sb_flags |= SB_KNOTE; |