OSF DCE Application Development Guide--Introduction and Style Guide
A Sample Application
{ "r", "read", sec_acl_perm_read },
{ "w", "write", sec_acl_perm_write },
{ "d", "delete", sec_acl_perm_delete },
{ "c", "control", sec_acl_perm_control },
{ "t", "test", sec_acl_perm_test },
{ "x", "execute", sec_acl_perm_execute }
};
/***************
*
*
* main --
*
*
*
*
**************/
int
main(
int argc,
char *argv[]
)
{
unsigned32 status; /* For status returned from library calls. */
rpc_binding_vector_t *binding_vector; /* For bindings from RPC run- */
/* time. */
unsigned_char_t *string_binding; /* For string binding conversions. */
unsigned_char_t *server_principal_name; /* Our server principal */
/* name, read from command line. */
unsigned_char_t *uuid_string; /* For UUID string conversions. */
entryname_vector_t entryname_vector; /* List of server entry names, */
/* read from command line. */
sec_login_handle_t login_context; /* Our login context, for server- */
/* assumed identity. */
pthread_t sigcatcher; /* Handle to signal catcher thread. */
uuid_vector_t server_uuid_v; /* Array of server instance UUIDs. */
/* At present there is only one of these, */
/* and it is generated dynamically at the */
/* beginning of the program. This ends up */
/* being used as an object UUID for the */
/* server’s exported bindings and regis- */
/* tered mappings. */
int i; /* Utility index variable. */
int route_error; /* Condition variable for setting up de- */
/* fault serviceability routings. Not used */
/* yet, however. */
124246 Tandem Computers Incorporated A− 13










