[][src]Constant interprocess::os::unix::udsocket::MAX_UDSOCKET_PATH_LEN

pub const MAX_UDSOCKET_PATH_LEN: usize = _MAX_UDSOCKET_PATH_LEN; // 108usize

The maximum path length for Unix domain sockets. UdStreamListener::bind panics if the specified path exceeds this value.

When using the socket namespace, this value is reduced by 1, since enabling the usage of that namespace takes up one character.

Value

The following platforms define the value of this constant as 108:

  • Linux
    • includes Android
  • uClibc
  • Newlib
    • Only supported on Xtensa
  • Emscripten
  • Redox
  • HermitCore
  • Solaris
  • Illumos

The following platforms define the value of this constant as 104:

  • FreeBSD
  • OpenBSD
  • NetBSD
  • DragonflyBSD
  • macOS
  • iOS