Backlinks

  • Hello

UnixDomainSocketMaxPathLength

07 Feb 2017 (modified 07 Feb 2017)1 min read

  • TechnicalNotes
  • http://serverfault.com/questions/641347/check-if-a-path-exceeds-maximum-for-unix-domain-socket
  • http://www.thomasstover.com/uds.html
  • http://man7.org/linux/man-pages/man7/unix.7.html

On Linux, this length is usually defined as 108.

It is defined by the UNIX_PATH_MAX variable in the /usr/include/linux/un.h header file:

cat /usr/include/linux/un.h | grep "define UNIX_PATH_MAX"

#define UNIX_PATH_MAX   108

~nicolaw

Übergeek & CatLoaf Facilitator