Back to index

glibc  2.9
sethostname.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, const char *buf, long count)
int sethostname (char *name, size_t namelen) const

Function Documentation

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

Definition at line 28 of file sethostname.c.

  return __sysinfo (SI_SET_HOSTNAME, name, namelen);

Here is the call graph for this function: