1570af302Sopenharmony_ci#include <sys/socket.h>
2570af302Sopenharmony_ci#include "syscall.h"
3570af302Sopenharmony_ci
4570af302Sopenharmony_ciint getpeername(int fd, struct sockaddr *restrict addr, socklen_t *restrict len)
5570af302Sopenharmony_ci{
6570af302Sopenharmony_ci	return socketcall(getpeername, fd, addr, len, 0, 0, 0);
7570af302Sopenharmony_ci}
8