Provided by:
manpages-pt-dev_20040726-1_all 
NOME
gethostid, sethostid - obtém ou fixa o identificador único do host
atual
SINOPSE
#include <unistd.h>
long int gethostid(void);
int sethostid(long int hostid);
DESCRIÇÃO
Obtém ou fixa um identificador único de 32 bit para a máquina atual. O
identificador de 32 bit pretende ser o único entre todos os sistemas
UNIX existentes. Este geralmente parece o endereço Internet para a
máquina local, como retornado por gethostbyname(3), e dessa forma
geralmente nunca precisaria ser fixado.
A chamada sethostid é restrita para o super usuário.
O argumento hostid é armazenado no arquivo /etc/hostid.
VALORES RETORNADOS
gethostid retorna o identificador de 32 bit para a máquina atual como
fixado por sethostid(2).
DE ACORDO COM
4.2BSD. Estas funções estão presentes no 4.4BSD. POSIX.1 não define
estas funções, mas ISO/IEC 9945-1:1990 as menciona no B.4.4.1. SVr4
inclui gethostid mas não sethostid.
ARQUIVOS
/etc/hostid
VEJA TAMBÉM
hostid(1), gethostbyname(3)
TRADUZIDO POR LDP-BR em 21/08/2000.
André L. Fassone Canova <lonelywolf@blv.com.br> (tradução)
xxxxxxxxxxxxxxxxxxxxxxxxx <xxx@xxxxxx.xxx.xx> (revisão)