mirror of
https://github.com/devkitPro/wut.git
synced 2026-03-21 17:34:47 -05:00
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
`find . -regex '.*\.\(cpp\|hpp\|cu\|cuh\|c\|h\)' -exec clang-format -style=file -i {} \;`
13 lines
292 B
C
13 lines
292 B
C
#include "wut_socket.h"
|
|
|
|
ssize_t
|
|
__wut_socket_read(struct _reent *r,
|
|
void *fd,
|
|
char *ptr,
|
|
size_t len)
|
|
{
|
|
int sockfd = *(int *)fd;
|
|
int rc = RPLWRAP(recv)(sockfd, ptr, len, 0);
|
|
return (ssize_t)__wut_get_nsysnet_result(r, rc);
|
|
}
|