1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "wrap.h" #include <sys/types.h> #include <sys/socket.h> int m3_socket(int domain, int type, int protocol) { int result; ENTER_CRITICAL; result = socket(domain, type, protocol); EXIT_CRITICAL; return result; }