OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
int routes_G[MAX_ROUTES];
int debug_routes_G[MAX_LEVELS];
int debug_levels_G[MAX_LEVELS];
/* These two UUIDs could be treated as "well known": i.e. applications */
/* that use the same ACL manager for mgmt operations can use these... */
uuid_t mgmt_acl_mgr_uuid = {/* 0060f928-bbf3-1d35-8d7d-0000c0d4de56 */
0x0060f928, 0xbbf3, 0x1d35, 0x8d, 0x7d, 0x00, 0x00, 0xc0, 0xd4, 0xde, 0x56
};
uuid_t mgmt_object_uuid = {/* 00573b0e-bcc2-1d35-a73e-0000c0d4de56 */
0x00573b0e, 0xbcc2, 0x1d35, 0xa7, 0xe3, 0x00, 0x00, 0xc0, 0xd4, 0xde, 0x56
};
/* These UUIDs are specific to this server... */
/* Some ACL UUIDs that will be globally used: */
uuid_t mgmt_acl_uuid;
uuid_t sample_acl_uuid;
/* The UUID of the sample ACL manager: */
uuid_t sample_acl_mgr_uuid={/* 001a15a9-3382-1d23-a16a-0000c0d4de56 */
0x001a15a9, 0x3382, 0x1d23, 0xa1, 0x6a, 0x00, 0x00, 0xc0, 0xd4, 0xde, 0x56
};
/* A UUID for a sample object: */
uuid_t sample_object_uuid = {/* 00415371-f29a-1d3d-b8c8-0000c0d4de56 */
0x00415371, 0xf29a, 0x1d3d, 0xb8, 0xc8, 0x00, 0x00, 0xc0, 0xd4, 0xde, 0x56
};
/* The mgmt printstrings could be treated as standard for */
/* a standard mgmt ACL manager... */
sec_acl_printstring_t mgmt_info = {"mgmt", "Management Interface"};
/* Note that we don’t need to use the unused bits here; */
/* it’s just less confusing this way... */
sec_acl_printstring_t mgmt_printstr[] = {
{ "i", "m_inq_if", mgmt_perm_inq_if },
{ "n", "m_inq_pname", mgmt_perm_inq_pname },
{ "s", "m_inq_stats", mgmt_perm_inq_stats },
{ "p", "m_ping", mgmt_perm_ping },
{ "k", "m_kill", mgmt_perm_kill },
{ "c", "control", sec_acl_perm_control },
{ "t", "test", sec_acl_perm_test }
};
sec_acl_printstring_t sample_info = {"sample", "Sample RPC Program"};
sec_acl_printstring_t sample_printstr[] = {
A 12 Tandem Computers Incorporated 124246