unix::hosts +linux +x86_64

Index

Functions

fn lookup(str) []ip::addr;

Functions

fn lookup[link]

fn lookup(name: str) []ip::addr;

Looks up a host from /etc/hosts. Aborts the program if the file does not exist, is written in an invalid format, or if any other error occurs.