Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   gethostid.3p    ( 3 )

получить идентификатор текущего хоста (get an identifier for the current host)

Пролог (Prolog)

This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.


Имя (Name)

gethostid — get an identifier for the current host


Синопсис (Synopsis)

#include <unistd.h>

long gethostid(void);


Описание (Description)

The gethostid() function shall retrieve a 32-bit identifier for the current host.


Возвращаемое значение (Return value)

Upon successful completion, gethostid() shall return an identifier for the current host.


Ошибки (Error)

No errors are defined.

The following sections are informative.


Примеры (Examples)

None.

Использование в приложениях (Application usage)

This volume of POSIX.1‐2017 does not define the domain in which the return value is unique.


Обоснование (Rationale)

None.


Будущие направления (Future directions)

None.


Смотри также (See also)

initstate(3p)

The Base Definitions volume of POSIX.1‐2017, unistd.h(0p)