Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 
 

GETHOSTID

Section: Manual del Programador de Linux (2)
Updated: 1 julio 1996
Index Return to Main Contents
 

NOMBRE

gethostid, sethostid - obtiene o asigna un identificador único al anfitrión (host) actual.  

SINOPSIS

#include <unistd.h>

long int gethostid(void);
int sethostid(long int hostid);  

DESCRIPCIÓN

Obtiene o asigna un identificador único de 32-bits para el ordenador actual. El identificador de 32-bits pretende ser único entre todos los sistemas UNIX existentes. Este normalmente asemeja la dirección Internet para el sistema local, dado por gethostbyname(3), y por lo tanto, normalmente nunca necesita ser asignado.

El uso de la llamada sethostid está restringida al superusuario.

El argumento hostid se encuentra almacenado en el fichero /etc/hostid.  

VALOR DEVUELTO

gethostid devuelve el identificador de 32-bits del anfitrión (host) actual asignado por sethostid(2).  

CONFORME A

4.2BSD. Estas funciones se encuentran en 4.4BSD. POSIX.1 no define estas funciones, pero ISO/IEC 9945-1:1990 las menciona en B.4.4.1. SVr4 incluye gethostid pero no sethostid.  

FICHEROS

/etc/hostid  

VÉASE TAMBIÉN

hostid(1), gethostbyname(3)


 

Index

NOMBRE
SINOPSIS
DESCRIPCIÓN
VALOR DEVUELTO
CONFORME A
FICHEROS
VÉASE TAMBIÉN

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Linuxinfor Man Pages in HTML Format: man2". See Index Page for more info about Authorship and Copyright.

1999-2008 Linuxinfor.com. No rights reserved.