|
|
@ -21,7 +21,7 @@ package rpc |
|
|
|
/* |
|
|
|
/* |
|
|
|
#include <sys/un.h> |
|
|
|
#include <sys/un.h> |
|
|
|
|
|
|
|
|
|
|
|
int max_socket_path_size() { |
|
|
|
int maximum_socket_path_size() { |
|
|
|
struct sockaddr_un s; |
|
|
|
struct sockaddr_un s; |
|
|
|
return sizeof(s.sun_path); |
|
|
|
return sizeof(s.sun_path); |
|
|
|
} |
|
|
|
} |
|
|
@ -29,5 +29,5 @@ return sizeof(s.sun_path); |
|
|
|
import "C" |
|
|
|
import "C" |
|
|
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
var ( |
|
|
|
max_path_size = C.max_socket_path_size() |
|
|
|
max_path_size = C.maximum_socket_path_size() |
|
|
|
) |
|
|
|
) |
|
|
|