un.h 483 B

12345678910111213
  1. #include <socket/sys/un.h>
  2. #ifndef _ISOMAC
  3. /* Set ADDR->sun_family to AF_UNIX and ADDR->sun_path to PATHNAME.
  4. Return 0 on success or -1 on failure (due to overlong PATHNAME).
  5. The caller should always use sizeof (struct sockaddr_un) as the
  6. socket address length, disregaring the length of PATHNAME.
  7. Only concrete (non-abstract) pathnames are supported. */
  8. int __sockaddr_un_set (struct sockaddr_un *addr, const char *pathname)
  9. attribute_hidden;
  10. #endif /* _ISOMAC */