SO_TYPE
if (_getsockopt(fd, SOL_SOCKET, SO_TYPE, &type, &len) < 0)
case SO_TYPE:
if (getsockopt(p->fd, SOL_SOCKET, SO_TYPE, &type, &sz) == -1) {
if (getsockopt(p->fd, SOL_SOCKET, SO_TYPE, &type, &sz) == -1) {
if (getsockopt(0, SOL_SOCKET, SO_TYPE,
if (getsockopt(0, SOL_SOCKET, SO_TYPE,
if (getsockopt(0, SOL_SOCKET, SO_TYPE,
SO_TYPE, &type, &len) == -1) {
SO_TYPE, &type, &len) == -1) {
if (getsockopt(0, SOL_SOCKET, SO_TYPE,