diff options
Diffstat (limited to '')
-rw-r--r-- | lang/modula-3-socks/files/shutdown.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/modula-3-socks/files/shutdown.c b/lang/modula-3-socks/files/shutdown.c new file mode 100644 index 000000000000..828d25e9a131 --- /dev/null +++ b/lang/modula-3-socks/files/shutdown.c @@ -0,0 +1,14 @@ +#include "wrap.h" +#include <sys/types.h> +#include <sys/socket.h> + +int +m3_shutdown(int s, int how) +{ + int result; + + ENTER_CRITICAL; + result = shutdown(s, how); + EXIT_CRITICAL; + return result; +} |