Browse code

lib/binrpc modules/ctl utils/kamcmd : set UNIX_PATH_MAX to lowest common value

sockaddr_un.sun_path[] seem to be either 104 or 108 in following Unices:
104 - NetBSD, OpenBSD, FreeBSD, DragonFly BSD, MINIX, XNU(Apple OS X)
108 - illumos, Solaris, Linux

Mikko Lehto authored on 28/04/2016 12:02:29
Showing 3 changed files
... ...
@@ -53,7 +53,7 @@
53 53
 #define binrpc_free internal_free
54 54
 
55 55
 #ifndef UNIX_PATH_MAX
56
-#define UNIX_PATH_MAX 108
56
+#define UNIX_PATH_MAX 104
57 57
 #endif
58 58
 
59 59
 #ifndef INT2STR_MAX_LEN
... ...
@@ -37,7 +37,7 @@
37 37
 #include <fcntl.h>
38 38
 
39 39
 #ifndef UNIX_PATH_MAX
40
-#define UNIX_PATH_MAX 108
40
+#define UNIX_PATH_MAX 104
41 41
 #endif
42 42
 
43 43
 
... ...
@@ -82,7 +82,7 @@
82 82
 
83 83
 
84 84
 #ifndef UNIX_PATH_MAX
85
-#define UNIX_PATH_MAX 100
85
+#define UNIX_PATH_MAX 104
86 86
 #endif
87 87
 
88 88
 static char id[]="$Id$";