|
Lines 66-71
Link Here
|
| 66 |
#include <compat/svr4/svr4_signal.h> |
66 |
#include <compat/svr4/svr4_signal.h> |
| 67 |
#include <compat/svr4/svr4_sockmod.h> |
67 |
#include <compat/svr4/svr4_sockmod.h> |
| 68 |
#include <compat/svr4/svr4_proto.h> |
68 |
#include <compat/svr4/svr4_proto.h> |
|
|
69 |
#include <compat/svr4/svr4_stropts.h> |
| 69 |
|
70 |
|
| 70 |
struct svr4_sockcache_entry { |
71 |
struct svr4_sockcache_entry { |
| 71 |
struct proc *p; /* Process for the socket */ |
72 |
struct proc *p; /* Process for the socket */ |
|
Lines 168-173
Link Here
|
| 168 |
mtx_unlock(&svr4_sockcache_lock); |
169 |
mtx_unlock(&svr4_sockcache_lock); |
| 169 |
} |
170 |
} |
| 170 |
|
171 |
|
|
|
172 |
struct svr4_strm * |
| 173 |
svr4_stream_get(fp) |
| 174 |
struct file *fp; |
| 175 |
{ |
| 176 |
struct socket *so; |
| 177 |
|
| 178 |
if (fp == NULL || fp->f_type != DTYPE_SOCKET) |
| 179 |
return NULL; |
| 180 |
|
| 181 |
so = fp->f_data; |
| 182 |
return so->so_emuldata; |
| 183 |
} |
| 184 |
|
| 171 |
void |
185 |
void |
| 172 |
svr4_purge_sockcache(arg, p) |
186 |
svr4_purge_sockcache(arg, p) |
| 173 |
void *arg; |
187 |
void *arg; |