24 lines
1.1 KiB
HTML
24 lines
1.1 KiB
HTML
<html><!-- This HTML file has been created by texi2html 1.29
|
|
from syscalls.texi on 4 June 1994 -->
|
|
|
|
<TITLE>Syscall specifications of Linux - gethostid</TITLE>
|
|
<P>Go to the <A HREF="syscalls_44.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_44.html">previous</A>, <A HREF="syscalls_46.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_46.html">next</A> section.<P>
|
|
<H2><A NAME="SEC45" HREF="syscalls_toc.html#SEC45" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC45">gethostid and sethostid</A></H2>
|
|
<P>
|
|
<H3>SYNOPSIS</H3>
|
|
<P>
|
|
<CODE>long int gethostid(void);</CODE>
|
|
<P>
|
|
<CODE>int sethostid(long int hostid);</CODE>
|
|
<P>
|
|
<H3>DESCRIPTION</H3>
|
|
<P>
|
|
<CODE>gethostid</CODE> returns the host id and <CODE>sethostid</CODE> sets it. The
|
|
host id is usually the network address of the host.
|
|
<P>
|
|
<H3>RETURN VALUE</H3>
|
|
<P>
|
|
<CODE>gethostid</CODE> returns the 32 bits host id.
|
|
<P>
|
|
<P>Go to the <A HREF="syscalls_44.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_44.html">previous</A>, <A HREF="syscalls_46.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_46.html">next</A> section.<P>
|