Back to index

glibc  2.9
Functions
nis_mkdir.c File Reference
#include <rpcsvc/nis.h>
#include "nis_xdr.h"
#include "nis_intern.h"

Go to the source code of this file.

Functions

nis_error nis_mkdir (const_nis_name dir, const nis_server *server)

Function Documentation

nis_error nis_mkdir ( const_nis_name  dir,
const nis_server *  server 
)

Definition at line 26 of file nis_mkdir.c.

{
  nis_error res, res2;

  if (server == NULL)
    res2 = __do_niscall (dir, NIS_MKDIR, (xdrproc_t) _xdr_nis_name,
                      (caddr_t) &dir, (xdrproc_t) _xdr_nis_error,
                      (caddr_t) &res, 0, NULL);
  else
    res2 = __do_niscall2 (server, 1, NIS_MKDIR,
                       (xdrproc_t) _xdr_nis_name,
                       (caddr_t) &dir, (xdrproc_t) _xdr_nis_error,
                       (caddr_t) &res, 0, NULL);
  if (res2 != NIS_SUCCESS)
    return res2;

  return res;
}

Here is the call graph for this function: