/* * ZeroTier One - Network Virtualization Everywhere * Copyright (C) 2011-2015 ZeroTier, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * -- * * ZeroTier may be used and distributed under the terms of the GPLv3, which * are available at: http://www.gnu.org/licenses/gpl-3.0.html * * If you would like to embed ZeroTier into a commercial application or * redistribute it in a modified binary form, please contact ZeroTier Networks * LLC. Start here: http://www.zerotier.com/ */ #ifndef _SDK_SIGNATURES_H #define _SDK_SIGNATURES_H 1 #include #define SETSOCKOPT_SIG int fd, int level, int optname, const void *optval, socklen_t optlen #define GETSOCKOPT_SIG int fd, int level, int optname, void *optval, socklen_t *optlen #define SENDMSG_SIG int fd, const struct msghdr *msg, int flags #define SENDTO_SIG int fd, const void *buf, size_t len, int flags, const struct sockaddr *addr, socklen_t addrlen #define RECV_SIG int fd, void *buf, size_t len, int flags #define RECVFROM_SIG int fd, void *buf, size_t len, int flags, struct sockaddr *addr, socklen_t *addrlen #define RECVMSG_SIG int fd, struct msghdr *msg,int flags #define SEND_SIG int fd, const void *buf, size_t len, int flags #define WRITE_SIG int fd, const void *buf, size_t len #define READ_SIG int fd, void *buf, size_t len #define SOCKET_SIG int socket_family, int socket_type, int protocol #define CONNECT_SIG int fd, const struct sockaddr *addr, socklen_t addrlen #define BIND_SIG int fd, const struct sockaddr *addr, socklen_t addrlen #define LISTEN_SIG int fd, int backlog #define ACCEPT4_SIG int fd, struct sockaddr *addr, socklen_t *addrlen, int flags #define ACCEPT_SIG int fd, struct sockaddr *addr, socklen_t *addrlen #define CLOSE_SIG int fd #define GETSOCKNAME_SIG int fd, struct sockaddr *addr, socklen_t *addrlen #define GETPEERNAME_SIG int fd, struct sockaddr *addr, socklen_t *addrlen #define FCNTL_SIG int fd, int cmd, int flags #define SYSCALL_SIG long number, ... #endif // _SDK_SIGNATURES_H