Back to index

glibc  2.9
gethostname.c File Reference
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/systeminfo.h>

Go to the source code of this file.


int __sysinfo (int command, char *buf, long int count)
int __gethostname (char *name, size_t namelen)

Function Documentation

int __gethostname ( char *  name,
size_t  namelen 

Definition at line 28 of file gethostname.c.

  return __sysinfo (SI_HOSTNAME, name, namelen);

Here is the call graph for this function:

int __sysinfo ( int  command,
char *  buf,
long int  count 

Here is the caller graph for this function: