diff options
author | Joseph Henry <josephjah@gmail.com> | 2015-12-14 09:06:58 -0800 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2015-12-14 09:06:58 -0800 |
commit | f558b088e6c62c3531ce3e85f28c9284f0898971 (patch) | |
tree | 7bc1dacd36b1693866afa4c3e8e27ca6d7d3de40 /netcon/Intercept.h | |
parent | 99afc740215b84858d272642c62cacbc7f07e990 (diff) | |
download | infinitytier-f558b088e6c62c3531ce3e85f28c9284f0898971.tar.gz infinitytier-f558b088e6c62c3531ce3e85f28c9284f0898971.zip |
Library functions are now static, RPC return value tuning, and cleanup
Diffstat (limited to 'netcon/Intercept.h')
-rw-r--r-- | netcon/Intercept.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/netcon/Intercept.h b/netcon/Intercept.h index fe549f22..26d5213a 100644 --- a/netcon/Intercept.h +++ b/netcon/Intercept.h @@ -46,17 +46,15 @@ #define RPC_UNDEFINED 0 #define RPC_CONNECT 1 #define RPC_CONNECT_SOCKARG 2 -#define RPC_SELECT 3 -#define RPC_POLL 4 -#define RPC_CLOSE 5 -#define RPC_READ 6 -#define RPC_WRITE 7 -#define RPC_BIND 8 -#define RPC_ACCEPT 9 -#define RPC_LISTEN 10 -#define RPC_SOCKET 11 -#define RPC_SHUTDOWN 12 -#define RPC_GETSOCKNAME 13 +#define RPC_CLOSE 3 +#define RPC_READ 4 +#define RPC_WRITE 5 +#define RPC_BIND 6 +#define RPC_ACCEPT 7 +#define RPC_LISTEN 8 +#define RPC_SOCKET 9 +#define RPC_SHUTDOWN 10 +#define RPC_GETSOCKNAME 11 /* Administration RPC codes */ #define RPC_MAP 20 /* Give the service the value we "see" for the new buffer fd */ @@ -183,9 +181,7 @@ struct getsockname_st socklen_t addrlen; }; - #define CONNECT_SOCKARG struct sockaddr * -#define SELECT_SIG int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout #define IOCTL_SIG int __fd, unsigned long int __request, ... #define FCNTL_SIG int __fd, int __cmd, ... #define DAEMON_SIG int nochdir, int noclose @@ -193,9 +189,7 @@ struct getsockname_st #define GETSOCKOPT_SIG int sockfd, int level, int optname, void *optval, socklen_t *optlen #define SYSCALL_SIG long number, ... #define CLONE_SIG int (*fn)(void *), void *child_stack, int flags, void *arg, ... -#define POLL_SIG struct pollfd *fds, nfds_t nfds, int timeout #define GETSOCKNAME_SIG int sockfd, struct sockaddr *addr, socklen_t *addrlen - #define DUP2_SIG int oldfd, int newfd #define DUP3_SIG int oldfd, int newfd, int flags |