Lines Matching defs:optval
288 void *optval, socklen_t *optlenp, int flags, cred_t *cr)
290 return (SOP_GETSOCKOPT(so, level, option_name, optval,
299 const void *optval, t_uscalar_t optlen, cred_t *cr)
302 /* Caller allocates aligned optval, or passes null */
303 ASSERT(((uintptr_t)optval & (sizeof (t_scalar_t) - 1)) == 0);
304 /* If optval is null optlen is 0, and vice-versa */
305 ASSERT(optval != NULL || optlen == 0);
306 ASSERT(optlen != 0 || optval == NULL);
308 if (optval == NULL && optlen == 0)
309 optval = &val;
311 return (SOP_SETSOCKOPT(so, level, option_name, optval, optlen, cr));