wut/libraries/wutsocket/send.c
GaryOderNichts c237a8d29d
Run clang-format
`find . -regex '.*\.\(cpp\|hpp\|cu\|cuh\|c\|h\)' -exec clang-format -style=file -i {} \;`
2025-06-05 10:46:21 +01:00

17 lines
310 B
C

#include "wut_socket.h"
ssize_t
send(int sockfd,
const void *buf,
size_t len,
int flags)
{
int rc;
sockfd = __wut_get_nsysnet_fd(sockfd);
if (sockfd == -1) {
return -1;
}
rc = RPLWRAP(send)(sockfd, buf, len, flags);
return (ssize_t)__wut_get_nsysnet_result(NULL, rc);
}