OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
print_server_error("uuid_create()", *status);
return;
}
/* Store the default object ACL into UUID-indexed store... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling dce_db_store_by_uuid()"));
dce_db_store_by_uuid(db_acl, &def_object, acl, status);
if (*status != error_status_ok)
{
print_server_error("dce_db_store_by_uuid()", *status);
return;
}
/* Store the default container ACL into UUID-indexed */
/* store... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling dce_db_store_by_uuid()"));
dce_db_store_by_uuid(db_acl, &def_container, acl, status);
if (*status != error_status_ok)
{
print_server_error("dce_db_store_by_uuid()", *status);
return;
}
}
/* Store the plain object ACL into ACL UUID-indexed store... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling dce_db_store_by_uuid()"));
dce_db_store_by_uuid(db_acl, acl_uuid, acl, status);
if (*status != error_status_ok)
{
print_server_error("dce_db_store_by_uuid()", *status);
return;
}
/* Store the ACL UUID(s) into a standard object header... */
/* Observe how this all seems to work: the following call sets up */
/* some general info in the object-indexed database that is asso- */
/* ciated with the Object and ACL UUIDs passed. This is where the */
/* ACL on an object actually gets connected with that object. Up */
/* above the information connected with the ACL UUID was stored */
/* in a sec_acl_t structure, but it’s the following call that ac- */
/* tually associates this structure with some object. Afterward */
/* the object data itself (what is being "ACL’d") gets stored via */
/* the dce_db_store_by_uuid() call, and finally the object UUID */
/* itself is stored by name via the dce_db_store_by_name() call. */
/* So the reverse process (beginning with the name) will be: */
/* */
/* 1. Look up the object UUID by name by calling */
/* dce_db_fetch_by_name(). */
/* */
/* 2. Look up the data (i.e., object data) for the object */
A 38 Tandem Computers Incorporated 124246