Back to index

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

Go to the source code of this file.


int getdomainname (char *name, size_t len)

Function Documentation

int getdomainname ( char *  name,
size_t  len 

Definition at line 26 of file getdomain.c.

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

Here is the call graph for this function: