aboutsummaryrefslogtreecommitdiff
path: root/include/sys/un.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/un.h')
-rw-r--r--include/sys/un.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sys/un.h b/include/sys/un.h
index bdbee99..152afd9 100644
--- a/include/sys/un.h
+++ b/include/sys/un.h
@@ -1 +1,13 @@
#include <socket/sys/un.h>
+
+#ifndef _ISOMAC
+
+/* Set ADDR->sun_family to AF_UNIX and ADDR->sun_path to PATHNAME.
+ Return 0 on success or -1 on failure (due to overlong PATHNAME).
+ The caller should always use sizeof (struct sockaddr_un) as the
+ socket address length, disregaring the length of PATHNAME.
+ Only concrete (non-abstract) pathnames are supported. */
+int __sockaddr_un_set (struct sockaddr_un *addr, const char *pathname)
+ attribute_hidden;
+
+#endif /* _ISOMAC */