What does errno 121 (ESOCKTNOSUPPORT) mean?

 
Could be also:
ConstantTypeOS
ERROR_SEM_TIMEOUTWin32 errorWindows
EREMOTEIOerrnoLinux
ENOLINKerrnoWindows
MISMATCHED_HALBugCheck CodeWindows
Previous Next
EREMOTEIO ENOLINK

ESOCKTNOSUPPORT

Socket type controls communication semantics

ESOCKTNOSUPPORT is about the requested socket type. Solaris says support for the type is not configured or implemented. POSIX defines types such as SOCK_STREAM, SOCK_DGRAM, and SOCK_SEQPACKET, and notes that support is implementation- and address-family-dependent.

The failure is different from EPROTONOSUPPORT: a system can know the family yet not provide the requested communication semantics. POSIX also documents historical variation where implementations may report EPROTONOSUPPORT or EPROTOTYPE for some unsupported-type cases, so the complete socket argument tuple matters.

What to record

  • Capture domain, type including any type flags, and protocol from the exact socket() call.
  • Verify the requested type is supported by the selected address family on Solaris rather than assuming another UNIX implementation's matrix.
  • If a wrapper adds SOCK_NONBLOCK or close-on-exec flags, log the final type value seen by the syscall.

References


Looking for a different code? Search another status or error code.