The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

setdomainname (3)
  • setdomainname (2) ( Русские man: Системные вызовы )
  • setdomainname (2) ( Linux man: Системные вызовы )
  • >> setdomainname (3) ( FreeBSD man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    getdomainname
    
     
    setdomainname
    
     - get/set the NIS domain name of current host
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <unistd.h>
    int getdomainname (char *name int namelen);
    int setdomainname (const char *name int namelen);
     

    DESCRIPTION

    The getdomainname ();
    function returns the standard NIS domain name for the current host, as previously set by setdomainname (.);
    The Fa namelen argument specifies the size of the Fa name array. The returned name is null-terminated unless insufficient space is provided.

    The setdomainname ();
    function sets the NIS domain name of the host machine to be Fa name , which has length Fa namelen . This call is restricted to the super-user and is normally used only when the system is bootstrapped.  

    RETURN VALUES

    Rv -std  

    ERRORS

    The following errors may be returned by these calls:

    Bq Er EFAULT
    The Fa name or Fa namelen argument gave an invalid address.
    Bq Er EPERM
    The caller tried to set the hostname and was not the super-user.

     

    SEE ALSO

    gethostid(3), gethostname(3), sysctl(3)  

    HISTORY

    The getdomainname ();
    function appeared in BSD 4.2  

    BUGS

    Domain names are limited to MAXHOSTNAMELEN (from In sys/param.h ) characters, currently 256.


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO
    HISTORY
    BUGS


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру