OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
uuid_t server_uuid; /* The UUID that identifies this server in- */
/* stance; i.e., the object UUID that */
/* identifies our server’s bindings. It is */
/* created by us, in create_server_uuid(), */
/* and goes into server_entry_ptr->id in */
/* make_server_entry(). It actually ends */
/* up being identical to the configuration */
/* UUID, if one is created (by calling the */
/* dced_server_create() routine). */
dce_error_string_t error_string; /* Used to directly retrieve er- */
/* ror message strings in cases where the */
/* serviceability call can’t be used, be- */
/* cause the svc table hasn’t been regis- */
/* tered yet. */
int print_status; /* Used to return status from the */
/* dce_error_inq_text() routine. */
databases_open = FALSE;
/* Process the command line... */
do_command_line(argc,
argv,
&server_principal_name,
&entryname_vector);
/* The following calls set up default routing of serviceability */
/* messages. Note that these must be called before */
/* dce_svc_register()... */
for (i = 0, route_error = FALSE; (i < MAX_DEFAULT_ROUTES) && (!route_error); i++)
{
fprintf(stdout, " Setting default route %s ...0,
default_routes[i]);
dce_svc_routing(default_routes[i], &status);
if (status != svc_s_ok)
{
print_server_error("dce_svc_routing(default_routes[i])",
status);
status = svc_s_ok;
}
}
/* Set the default serviceability debug level and route... */
dce_svc_debug_routing(default_debug_route, &status);
if (status != error_status_ok)
{
dce_error_inq_text(status, error_string, &print_status);
fprintf(stdout, "dce_svc_routing(): %s0, error_string);
/* exit(1); */
}
/* Get serviceability handle... */
smp_svc_handle = dce_svc_register(smp_svc_table,
A 14 Tandem Computers Incorporated 124246