IPB
>  Man Pages > Linux > Suse Linux 10.1 > Section 2 > setdomainname man page

setdomainname man page

Section 2 - Suse Linux 10.1 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!


GETDOMAINNAME(2)           Linux Programmer's Manual          GETDOMAINNAME(2)




NAME

       getdomainname, setdomainname - get/set domain name


SYNOPSIS

       #include <unistd.h>

       int getdomainname(char *name, size_t len);
       int setdomainname(const char *name, size_t len);


DESCRIPTION

       These  functions are used to access or to change the domain name of the
       current processor.  If the null-terminated domain  name  requires  more
       than  len bytes, getdomainname() returns the first len bytes (glibc) or
       returns an error (libc).


RETURN VALUE

       On success, zero is returned.  On error, -1 is returned, and  errno  is
       set appropriately.


ERRORS

       EFAULT For setdomainname(): name pointed outside of user address space.

       EINVAL For getdomainname() under libc: name is NULL or name  is  longer
              than len bytes.

       EINVAL For setdomainname(): len was negative or too large.

       EPERM  For setdomainname(): the caller is unprivileged (Linux: does not
              have the CAP_SYS_ADMIN capability).


CONFORMING TO

       POSIX does not specify these calls.


SEE ALSO

       gethostname(2), sethostname(2), uname(2)



Linux 2.6.7                       2004-06-17                  GETDOMAINNAME(2)


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Tue Feb 13 02:17:34 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5323 hits)
(openSUSE 10.2)

svn man page (5161 hits)
(FreeBSD 6.2)

adv_cap_autoneg man page (4865 hits)
(Solaris 10 11_06)

CPAN man page (4602 hits)
(Suse Linux 10.1)

ssh man page (4337 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2838 hits)
(Solaris 10 11_06)

netcat man page (2687 hits)
(Suse Linux 10.1)

pprosetup man page (2472 hits)
(Solaris 10 11_06)

startproc man page (2450 hits)
(Suse Linux 10.1)

signal man page (2393 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Mountain Holidays Contact Us :: Electronic Circuit Design :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum