Back to index

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

Go to the source code of this file.


int setdomainname (char *name, size_t len) const

Function Documentation

int setdomainname ( char *  name,
size_t  len 
) const

Definition at line 25 of file setdomain.c.

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

Here is the call graph for this function: