set errno when search type is unknown.
add a skeletal function for KCN local database search.
cosmtic change in order to make names of functions consistent.
simplify arguments of kcn_search() because complicated arguments were
only for key2loc.
remove an unused function.