SYS_SHUTDOWN


Shuts down part of a full-duplex connection.

Arguments:

1st Socket descriptor.
2nd Direction to shutdown. Currently this argument is discarded (actually always treated as READ+WRITE)

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EBADF 1st argument is not a valid descriptor.
-ENOTCONN The specified socket is not connected.
-ENOTSOCK 1st argument is a file, not a socket.

Remarks

n/a

Compatibility

n/a