sethostname man page on OSF1

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
OSF1 logo
[printable version]

sethostname(2)							sethostname(2)

NAME
       sethostname - Set the name of the current host

SYNOPSIS
       int sethostname(
	       char *name,
	       int name_len );

PARAMETERS
       Points  to  an array of bytes where the host name is stored.  Specifies
       the length of the array pointed to by the name parameter.

DESCRIPTION
       The sethostname() function allows a  calling  process  with  root  user
       authority to set the internal host name of a machine on a network.

       System  host  names  are	 limited  to  MAXHOSTNAMELEN as defined in the
       /usr/include/sys/param.h file.

       The sethostid() function fails if the calling process does not have the
       superuser privilege.

RETURN VALUES
       Upon successful completion, the system returns a value of 0 (zero).  If
       the sethostname() function fails, -1 is returned and errno  is  set  to
       indicate the error.

ERRORS
       If  the	sethostname()  function	 fails, errno may be set to one of the
       following values: The name parameter or the name_len parameter gives an
       address that is not valid.  The calling process does not have appropriā€
       ate privilege.

SEE ALSO
       Functions: gethostid(2), sethostid(2), gethostname(2)

								sethostname(2)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OSF1

List of man pages available for OSF1

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net