This function opens the hosts database file and resets the file
    marker to the beginning of the file.
    Passing a nonzero value to the stay_open argument keeps the
    connection open until the endhostent() or exit()  function is
    called.
    Related Functions
    See also endhostent().