1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/lang/modula-3-socks/files/send.c

16 lines
259 B
C
Raw Normal View History

#include "wrap.h"
#include <sys/types.h>
#include <sys/socket.h>
ssize_t
m3_send(int s, const void *msg, size_t len, int flags)
{
int result;
ENTER_CRITICAL;
MAKE_READABLE(msg);
result = send(s, msg, len, flags);
EXIT_CRITICAL;
return result;
}