socksdp.c revision b5fca8f855054d167d04d3b4de5210c83ed2083c
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/Asosdp_init(void)
2N/A if (is_system_labeled()) {
goto done;
goto done;
if (error == 0) {
done:
return (error);
int error = 0;
goto done;
if (backlog < 0) {
backlog = 0;
goto done;
if (error == 0) {
done:
return (error);
int error;
goto done;
goto done;
SS_CANTSENDMORE)) {
goto done;
goto done;
if (error == 0) {
switch (error) {
case EINPROGRESS:
case EALREADY:
case EINTR:
done:
return (error);
int size;
SS_CANTRCVMORE))) {
return (ENOTCONN);
if (error != 0) {
return (error);
done:
return (error);
int flags;
int error;
return (EOPNOTSUPP);
return (EPIPE);
return (error);
return (ENOTCONN);
if (error == 0)
return (EPIPE);
return (error);
int error;
return (error);
int error;
error = 0;
return (error);
int error = 0;
short wakesig = 0;
switch (how) {
case SHUT_RD:
case SHUT_WR:
case SHUT_RDWR:
goto done;
done:
error = 0;
return (error);
int error = 0;
switch (option_name) {
case SO_TYPE:
case SO_ERROR:
case SO_DEBUG:
case SO_ACCEPTCONN:
case SO_REUSEADDR:
case SO_KEEPALIVE:
case SO_DONTROUTE:
case SO_BROADCAST:
case SO_USELOOPBACK:
case SO_OOBINLINE:
case SO_SNDBUF:
case SO_RCVBUF:
case SO_SNDLOWAT:
case SO_RCVLOWAT:
case SO_DGRAM_ERRIND:
goto done;
case SO_LINGER:
goto done;
switch (option_name) {
case SO_TYPE:
goto copyout;
case SO_ERROR:
goto copyout;
case SO_ACCEPTCONN:
SO_ACCEPTCONN : 0;
goto copyout;
case SO_DEBUG:
case SO_REUSEADDR:
case SO_KEEPALIVE:
case SO_DONTROUTE:
case SO_BROADCAST:
case SO_USELOOPBACK:
case SO_OOBINLINE:
case SO_DGRAM_ERRIND:
goto copyout;
case SO_LINGER:
case SO_SNDBUF:
goto copyout;
case SO_RCVBUF:
goto copyout;
case SO_SNDLOWAT:
goto copyout;
case SO_RCVLOWAT:
goto copyout;
if (error != 0) {
goto free;
error = 0;
goto copyout;
free:
done:
return (error);
int error;
return (EINVAL);
if (optlen == 0) {
return (error);
switch (option_name) {
case SO_DEBUG:
case SO_REUSEADDR:
case SO_KEEPALIVE:
case SO_DONTROUTE:
case SO_BROADCAST:
case SO_USELOOPBACK:
case SO_OOBINLINE:
case SO_SNDBUF:
case SO_RCVBUF:
case SO_SNDLOWAT:
case SO_RCVLOWAT:
case SO_DGRAM_ERRIND:
goto done;
case SO_LINGER:
goto done;
switch (option_name) {
case SO_TYPE:
case SO_ERROR:
case SO_ACCEPTCONN:
goto done;
case SO_LINGER: {
if (l->l_onoff) {
case SO_DEBUG:
case SO_REUSEADDR:
case SO_KEEPALIVE:
case SO_DONTROUTE:
case SO_BROADCAST:
case SO_USELOOPBACK:
case SO_OOBINLINE:
case SO_DGRAM_ERRIND:
if (intvalue != 0) {
option_name));
option_name));
case SO_SNDBUF:
case SO_RCVBUF:
case SO_SNDLOWAT:
case SO_RCVLOWAT:
if (error != 0) {
error = 0;
done:
return (error);
int error;
return (NULL);
return (NULL);
return (NULL);
return (nss);
int event = 0;
* If socket is already disconnected/disconnecting,
if (event != 0)
if (!writeable) {