Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/g/getdomainname.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/g/getdomainname.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/g/getdomainname.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/g/getdomainname.html on line 8

getdomainname()

Get the domain name of the current host

Synopsis:

#include <unistd.h>

int getdomainname( char * name,
                   size_t namelen );

Arguments:

name
A buffer where the function can store the domain name.
namelen
The size of the name array.

Library:

libsocket

Use the -l socket option to qcc to link against this library.

Description:

The getdomainname() function gets the standard domain name for the current processor and stores it in the buffer that name points to. The name is null-terminated.


Note: If the buffer is too small, the name is truncated.

Returns:

0
Success.
-1
An error occurred (errno is set).

Errors:

EFAULT
The name or namelen parameters gave an invalid address.

Classification:

Unix

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

setdomainname()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/g/getdomainname.html on line 148

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/g/getdomainname.html on line 148