summaryrefslogtreecommitdiff
path: root/lib/libc/socket/bind.c
blob: 50c1f7ac5540d0f1a39ebdc52437e2d82e4b9f59 (plain)
1
2
3
4
5
6
7
8
9


#include <sys/socket.h> // for bind, socklen_t
#include <syscall.h>	// for __syscall_3, syscall

int bind(int socket, const struct sockaddr *address, socklen_t address_len)
{
	return syscall(bind, socket, address, address_len);
}