summaryrefslogtreecommitdiff
path: root/lib/libc/socket/bind.c
blob: ef39d03bc004398dccecff24a9dd294abd035b6f (plain)
1
2
3
4
5
6
7
8
9
#include "asm/unistd_64.h" // for __NR_bind

#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);
}