diff options
Diffstat (limited to '')
-rw-r--r-- | lang/modula-3-socks/files/socket.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/modula-3-socks/files/socket.c b/lang/modula-3-socks/files/socket.c new file mode 100644 index 000000000000..64dcae3737d1 --- /dev/null +++ b/lang/modula-3-socks/files/socket.c @@ -0,0 +1,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; +} |