+#ifndef KERNEL
+__BEGIN_DECLS
+int accept(int, struct sockaddr * __restrict, socklen_t * __restrict)
+ __DARWIN_ALIAS_C(accept);
+int bind(int, const struct sockaddr *, socklen_t) __DARWIN_ALIAS(bind);
+int connect(int, const struct sockaddr *, socklen_t) __DARWIN_ALIAS_C( connect);
+int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict)
+ __DARWIN_ALIAS(getpeername);
+int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict)
+ __DARWIN_ALIAS(getsockname);
+int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict);
+int listen(int, int) __DARWIN_ALIAS(listen);
+ssize_t recv(int, void *, size_t, int) __DARWIN_ALIAS_C(recv);
+ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict,
+ socklen_t * __restrict) __DARWIN_ALIAS_C(recvfrom);
+ssize_t recvmsg(int, struct msghdr *, int) __DARWIN_ALIAS_C(recvmsg);
+ssize_t send(int, const void *, size_t, int) __DARWIN_ALIAS_C(send);
+ssize_t sendmsg(int, const struct msghdr *, int) __DARWIN_ALIAS_C(sendmsg);
+ssize_t sendto(int, const void *, size_t,
+ int, const struct sockaddr *, socklen_t) __DARWIN_ALIAS_C(sendto);
+int setsockopt(int, int, int, const void *, socklen_t);
+int shutdown(int, int);
+int sockatmark(int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int socket(int, int, int);
+int socketpair(int, int, int, int *) __DARWIN_ALIAS(socketpair);
+
+#if !defined(_POSIX_C_SOURCE)
+int sendfile(int, int, off_t, off_t *, struct sf_hdtr *, int);
+#endif /* !_POSIX_C_SOURCE */
+
+#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
+void pfctlinput(int, struct sockaddr *);
+#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
+__END_DECLS