OSF DCE Application Development Guide--Introduction and Style Guide

A Sample Application
/* Unexport server objects from namespace and from endpoint */
/* map... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
"Calling server_cleanup_objects()"));
server_cleanup_objects(sample_v1_0_s_ifspec,
binding_vector,
&server_uuid_v,
&entryname_vector,
&status);
if (status != error_status_ok)
{
print_server_error("server_cleanup_objects()", status);
exit(1);
}
/* Unregister the remote ACL interface from the endpoint */
/* map... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
"Calling server_rdacl_cleanup()"));
server_rdacl_cleanup(binding_vector, &server_uuid_v, &status);
if (status != error_status_ok)
{
print_server_error("server_rdacl_cleanup()", status);
}
/* Unregister the remote bind interface from the endpoint */
/* map... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
"Calling server_bind_cleanup()"));
server_bind_cleanup(binding_vector, &server_uuid_v, &status);
if (status != error_status_ok)
{
print_server_error("server_bind_cleanup()", status);
}
/* Print server exit message... */
dce_svc_printf(SERVER_EXIT_MSG);
}
124246 Tandem Computers Incorporated A 19