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
Get the domain name of the current host
#include <unistd.h>
int getdomainname( char * name,
size_t namelen );
- name
- A buffer where the function can store the domain name.
- namelen
- The size of the name array.
libsocket
Use the -l socket option to
qcc
to link against this library.
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.
|
If the buffer is too small, the name is truncated. |
- 0
- Success.
- -1
- An error occurred (errno is set).
- EFAULT
- The name or namelen parameters gave an invalid address.
Unix
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
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