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

 
 

 

GETHOSTID

Section: Manuel du programmeur Linux (2)
Updated: 18 juillet 2003
Index Return to Main Contents
 

NOM

gethostid, sethostid - Lire / écrire l'identifiant unique de l'hôte.  

SYNOPSIS

#include <unistd.h>

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

DESCRIPTION

Lit ou écrit un identifiant unique sur 32 bits pour la station utilisée. Cet identificateur est censé être unique pour l'ensemble des stations UNIX existantes. Il correspond généralement à l'adresse Internet de la machine locale, comme renvoyé par gethostbyname(3), et est normalement fixé une fois pour toutes.

L'appel de sethostid est bien sûr limité au Super-User.

L'argument hostid est mémorisé dans le fichier /etc/hostid.  

VALEUR RENVOYÉE

gethostid retourne l'identifiant sur 32 bits de l'hôte, tel qu'il a été positionné par sethostid(2).  

CONFORMITÉ

4.2BSD. Ces fonctions ont été abandonnées dans 4.4BSD. POSIX.1 ne définit pas ces fonctions, mais ISO/IEC 9945-1:1990 les mentionne au paragraphe B.4.4.1. SVr4 contient gethostid mais pas sethostid.  

FICHIERS

/etc/hostid  

VOIR AUSSI

hostid(1), gethostbyname(3).  

TRADUCTION

Christophe Blaess, 1996-2003.


 

Index

NOM
SYNOPSIS
DESCRIPTION
VALEUR RENVOYÉE
CONFORMITÉ
FICHIERS
VOIR AUSSI
TRADUCTION

 
 
 
 
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-2009 Linuxinfor.com. No rights reserved.