X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..7ee9d059c4eecf68ae4f8b0fb99ae2471eda79af:/bsd/sys/un.h diff --git a/bsd/sys/un.h b/bsd/sys/un.h index 92017608d..400620396 100644 --- a/bsd/sys/un.h +++ b/bsd/sys/un.h @@ -83,13 +83,19 @@ struct sockaddr_un { }; #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) + +/* Level number of get/setsockopt for local domain sockets */ +#define SOL_LOCAL 0 + /* Socket options. */ #define LOCAL_PEERCRED 0x001 /* retrieve peer credentails */ + #endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */ #ifdef KERNEL #ifdef PRIVATE +#include __BEGIN_DECLS struct mbuf; struct socket; @@ -103,6 +109,9 @@ void unp_dispose(struct mbuf *m); int unp_externalize(struct mbuf *rights); void unp_init(void) __attribute__((section("__TEXT, initcode"))); extern struct pr_usrreqs uipc_usrreqs; +int unp_lock(struct socket *, int, void *); +int unp_unlock(struct socket *, int, void *); +lck_mtx_t* unp_getlock(struct socket *, int); __END_DECLS #endif /* PRIVATE */ #else /* !KERNEL */