| 1359 | } |
| 1360 | |
| 1361 | int |
| 1362 | sodisconnect(struct socket *so) |
| 1363 | { |
| 1364 | int error; |
| 1365 | |
| 1366 | if ((so->so_state & SS_ISCONNECTED) == 0) |
| 1367 | return (ENOTCONN); |
| 1368 | if (so->so_state & SS_ISDISCONNECTING) |
| 1369 | return (EALREADY); |
| 1370 | VNET_SO_ASSERT(so); |
| 1371 | error = (*so->so_proto->pr_usrreqs->pru_disconnect)(so); |
| 1372 | return (error); |
| 1373 | } |
| 1374 | |
| 1375 | #define SBLOCKWAIT(f) (((f) & MSG_DONTWAIT) ? 0 : SBL_WAIT) |
| 1376 |
no outgoing calls
no test coverage detected