struct sockaddr_in_bsd {
	sin_len Int8
	sin_family Int8
	sin_port Int16
	sin_addr Int64
	sin_zero Int64
}

socket(family Int, type Int, protocol Int) -> Int {
	return syscall(0x2000061, family, type, protocol)
}

accept(fd Int, address *Any, length Int) -> Int {
	return syscall(0x200001E, fd, address, length)
}

bind(fd Int, address *sockaddr_in_bsd, length Int) -> Int {
	return syscall(0x2000068, fd, address, length)
}

listen(fd Int, backlog Int) -> Int {
	return syscall(0x200006A, fd, backlog)
}