Implemented most of getnetent()