| version 1.98, 2004/04/17 15:15:29 |
version 1.99, 2004/04/22 01:01:40 |
|
|
| socreate(int dom, struct socket **aso, int type, int proto) |
socreate(int dom, struct socket **aso, int type, int proto) |
| { |
{ |
| struct proc *p; |
struct proc *p; |
| struct protosw *prp; |
const struct protosw *prp; |
| struct socket *so; |
struct socket *so; |
| int error, s; |
int error, s; |
| |
|
| Line 942 soreceive(struct socket *so, struct mbuf |
|
| Line 942 soreceive(struct socket *so, struct mbuf |
|
| { |
{ |
| struct mbuf *m, **mp; |
struct mbuf *m, **mp; |
| int flags, len, error, s, offset, moff, type, orig_resid; |
int flags, len, error, s, offset, moff, type, orig_resid; |
| struct protosw *pr; |
const struct protosw *pr; |
| struct mbuf *nextrecord; |
struct mbuf *nextrecord; |
| int mbuf_removed = 0; |
int mbuf_removed = 0; |
| |
|
| Line 1345 soreceive(struct socket *so, struct mbuf |
|
| Line 1345 soreceive(struct socket *so, struct mbuf |
|
| int |
int |
| soshutdown(struct socket *so, int how) |
soshutdown(struct socket *so, int how) |
| { |
{ |
| struct protosw *pr; |
const struct protosw *pr; |
| |
|
| pr = so->so_proto; |
pr = so->so_proto; |
| if (!(how == SHUT_RD || how == SHUT_WR || how == SHUT_RDWR)) |
if (!(how == SHUT_RD || how == SHUT_WR || how == SHUT_RDWR)) |
|
|
| sorflush(struct socket *so) |
sorflush(struct socket *so) |
| { |
{ |
| struct sockbuf *sb, asb; |
struct sockbuf *sb, asb; |
| struct protosw *pr; |
const struct protosw *pr; |
| int s; |
int s; |
| |
|
| sb = &so->so_rcv; |
sb = &so->so_rcv; |