1 2 3 4 5 6 7 8 9 10 11
/* This is a system call. We only have to provide the wrapper. */ #include <sys/socket.h> #undef __connect int __connect (int fd, __CONST_SOCKADDR_ARG addr, socklen_t len) { return connect (fd, addr, len); } INTDEF(__connect)