Last active
July 7, 2016 01:27
-
-
Save lorin/1e81340db0dd3012d5e3 to your computer and use it in GitHub Desktop.
Output maximum path length of unix domain socket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/un.h> | |
#include <stdio.h> | |
int main() | |
{ | |
struct sockaddr_un s; | |
printf("%lu\n", sizeof(s.sun_path)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Linux, this is 108. On Mac OS X, it's 104.