Back to index

glibc  2.9
nis_util.c File Reference
#include <string.h>
#include <rpcsvc/nis.h>
#include "nis_xdr.h"
#include "nis_intern.h"
#include "nis_hash.c"

Go to the source code of this file.


fd_result * __nis_finddirectory (directory_obj *dir, const_nis_name name)

Function Documentation

fd_result* __nis_finddirectory ( directory_obj *  dir,
const_nis_name  name 

Definition at line 27 of file nis_util.c.

  nis_error status;
  fd_args fd_args;
  fd_result *fd_res;

  fd_args.dir_name = (char *)name;
  fd_args.requester = nis_local_host();
  fd_res = calloc (1, sizeof (fd_result));
  if (fd_res == NULL)
    return NULL;

  status = __do_niscall2 (dir->do_servers.do_servers_val,
                       NIS_FINDDIRECTORY, (xdrproc_t) _xdr_fd_args,
                       (caddr_t) &fd_args, (xdrproc_t) _xdr_fd_result,
                       (caddr_t) fd_res, NO_AUTHINFO|USE_DGRAM, NULL);
  if (status != NIS_SUCCESS)
    fd_res->status = status;

  return fd_res;

Here is the call graph for this function:

Here is the caller graph for this function: