GETHOSTID(3) BSD Programmer's Manual GETHOSTID(3) NNAAMMEE ggeetthhoossttiidd, sseetthhoossttiidd - get/set unique identifier of current host SSYYNNOOPPSSIISS ##iinncclluuddee <<uunniissttdd..hh>> _l_o_n_g ggeetthhoossttiidd(_v_o_i_d); _i_n_t sseetthhoossttiidd(_l_o_n_g _h_o_s_t_i_d); DDEESSCCRRIIPPTTIIOONN SSeetthhoossttiidd() establishes a 32-bit identifier for the current processor that is intended to be unique among all UNIX systems in existence. This is normally a DARPA Internet address for the local machine. This call is allowed only to the super-user and is normally performed at boot time. GGeetthhoossttiidd() returns the 32-bit identifier for the current processor. This function has been deprecated. The hostid should be set or retrieved by use of sysctl(2). SSEEEE AALLSSOO sysctl(2), gethostname(3), sysctl(8). BBUUGGSS 32 bits for the identifier is too small. HHIISSTTOORRYY The ggeetthhoossttiidd() and sseetthhoossttiidd() syscalls appeared in 4.2BSD and were dropped in 4.4BSD. 4.2 Berkeley Distribution June 2, 1993 1