OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
status);
/* Null the data header... */
bzero(&datahdr, sizeof datahdr);
/* Store the object ACL... */
server_store_acl(
*db_acl, /* The ACL UUID-indexed store. */
*db_object, /* The object UUID-indexed store. */
*db_name, /* The name ("residual")-indexed store. */
&new_acl, /* The ACL itself. */
object_acl_uuid, /* The object ACL UUID. */
&object_uuid, /* The object UUID. */
object_name, /* The object name. */
/* (void*) */ &datahdr, /* The data header = object */
/* contents. */
/* is_container */ 0, /* Is this a container */
/* ACL? */
status);
/* Finally, free the space we were using... */
dce_acl_obj_free_entries(&new_acl, status);
/* ...end of object ACL creation code. */
/********************************************************************/
}
else /* ACL databases already exist; get the two ACL UUIDs... */
{
/* This is a call to sample_resolve_by_name() (see below); */
/* it gives us the UUID of the ACL of the object whose */
/* name we pass it... */
(*resolver)(
NULL, /* No client bind handle; local call. */
object_name, /* Object whose ACL UUID we want. */
0, /* Type of ACL we want UUID of. */
&sample_acl_mgr_uuid, /* Object’s manager type. */
0, /* Ignored as far as we’re concerned. */
NULL, /* "resolver_arg"; unused. */
object_acl_uuid, /* Will contain object ACL UUID. */
status);
(*resolver)(
NULL, /* No client bind handle; local call. */
(sec_acl_component_name_t)MGMT_OBJ_NAME, /* We want */
/* mgmt object’s ACL UUID. */
0, /* Type of ACL we want UUID of. */
&mgmt_acl_mgr_uuid, /* Object’s manager type=mgmt. */
0, /* Ignored as far as we’re concerned. */
NULL, /* "resolver_arg"; ignored. */
mgmt_acl_uuid, /* Will contain mgmt ACL UUID. */
status);
}
3 42 Tandem Computers Incorporated 124246