pub fn socket(domain: i32, ty: i32, protocol: i32) -> SysResult<RawFd>
Creates an endpoint for communication and returns its file descriptor.