version 1.54, 2001/02/27 05:19:13 |
version 1.54.2.1, 2001/03/05 22:49:46 |
|
|
|
|
#include <sys/param.h> |
#include <sys/param.h> |
#include <sys/systm.h> |
#include <sys/systm.h> |
|
#include <sys/lwp.h> |
#include <sys/proc.h> |
#include <sys/proc.h> |
#include <sys/file.h> |
#include <sys/file.h> |
#include <sys/malloc.h> |
#include <sys/malloc.h> |
Line 81 socreate(int dom, struct socket **aso, i |
|
Line 82 socreate(int dom, struct socket **aso, i |
|
struct socket *so; |
struct socket *so; |
int error, s; |
int error, s; |
|
|
p = curproc; /* XXX */ |
p = curproc->l_proc; /* XXX */ |
if (proto) |
if (proto) |
prp = pffindproto(dom, proto, type); |
prp = pffindproto(dom, proto, type); |
else |
else |
Line 272 soconnect(struct socket *so, struct mbuf |
|
Line 273 soconnect(struct socket *so, struct mbuf |
|
struct proc *p; |
struct proc *p; |
int s, error; |
int s, error; |
|
|
p = curproc; /* XXX */ |
p = curproc->l_proc; /* XXX */ |
if (so->so_options & SO_ACCEPTCONN) |
if (so->so_options & SO_ACCEPTCONN) |
return (EOPNOTSUPP); |
return (EOPNOTSUPP); |
s = splsoftnet(); |
s = splsoftnet(); |
Line 355 sosend(struct socket *so, struct mbuf *a |
|
Line 356 sosend(struct socket *so, struct mbuf *a |
|
long space, len, resid; |
long space, len, resid; |
int clen, error, s, dontroute, mlen, atomic; |
int clen, error, s, dontroute, mlen, atomic; |
|
|
p = curproc; /* XXX */ |
p = curproc->l_proc; /* XXX */ |
clen = 0; |
clen = 0; |
atomic = sosendallatonce(so) || top; |
atomic = sosendallatonce(so) || top; |
if (uio) |
if (uio) |