OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
"Calling server_get_identity()"));
server_get_identity(server_principal_name,
&login_context,
(unsigned_char_p_t)KEYTAB,
&status);
if (status != error_status_ok)
{
print_server_error("server_get_identity()", status);
exit(1);
}
/* Spin off a thread to wait for signals... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
"Spawning signal handler thread"));
if (pthread_create(&sigcatcher,
pthread_attr_default,
(pthread_startroutine_t)signal_handler,
(void*)0))
{
dce_svc_printf(NO_SIGNAL_CATCHER_MSG);
exit(1);
}
/* Export objects to namespace and register them in end- */
/* point map... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
"Calling server_export_objects()"));
server_export_objects(sample_v1_0_s_ifspec,
binding_vector,
&server_uuid_v,
&entryname_vector,
(unsigned_char_t *)IF_ANNOTATION,
&status);
if (status != error_status_ok)
{
print_server_error("server_export_objects()", status);
goto CLEANUP_EXIT;
}
/* Register the remote binding interface... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
"Calling sample_bind_export()"));
sample_bind_export(binding_vector, &server_uuid_v, &status);
if (status != error_status_ok)
{
print_server_error("sample_bind_export()", status);
exit(1);
}
/* Create a default ACL manager... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
"Calling server_acl_mgr_setup()"));
server_acl_mgr_setup(
(unsigned_char_t *)ACL_DB_PATH, /* Pathname for */
/* database files. */
A− 16 Tandem Computers Incorporated 124246