Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,279   Yesterday: 1,345   Max: 1,872   Total: 468,361   Current Users : 17 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 
Search Linux manpages For:  

setdomainname(2) -- Linux man page

 

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 NUL-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

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 was not the superuser.
EFAULT
For setdomainname: name pointed outside of user address space.
 

CONFORMING TO

POSIX does not specify these calls.  

SEE ALSO

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


 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.