Back to index

glibc  2.9
sethostname.c File Reference
#include <unistd.h>
#include "hurdhost.h"

Go to the source code of this file.


int sethostname (char *name, size_t len) const

Function Documentation

int sethostname ( char *  name,
size_t  len 
) const

Definition at line 26 of file sethostname.c.

  /* The host name is just the contents of the file /etc/hostname.  */
  ssize_t n = _hurd_set_host_config ("/etc/hostname", name, len);
  return n < 0 ? -1 : 0;

Here is the call graph for this function: