OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
#define NAMELEN 20
#define DEFNAME "sample_server_entry"
#define IF_ANNOTATION "Sample interface, version 1.0"
/* At present we set up only two objects... */
/* A "well-known" residual name for the management "object": */
#define MGMT_OBJ_NAME "server_mgmt"
/* */
/* A residual name for a sample object: */
#define SAMPLE_OBJECT_NAME "sample_object"
/* Relative pathname at which to locate newly-created backing store */
/* databases. Note that this is interpreted as the name of a subdirectory: */
#define ACL_DB_PATH "db_sample_acl"
/* Maximum length of a database pathname string... */
#define MAX_ACL_PATH_SIZE 50
/* Time allowed for cleanup of name space: */
#define CLEANUPTIME 60
/* Maximum number of serviceability routings allowed: */
#define MAX_ROUTES 10
/* Maximum number of separate debug levels allowed: */
#define MAX_LEVELS 9
/* Data structure for holding server entry names to pass to */
/* server_export_objects(): */
typedef struct {
unsigned32 count;
unsigned_char_t *name[1];
} entryname_vector_t;
/* Handle for serviceability calls */
dce_svc_handle_t smp_svc_handle;
/* Sample server-specific definitions: */
/* Used by remote bind interface... */
/* These are the backing store database handles: */
dce_db_handle_t db_acl, db_object, db_name;
#define mgmt_perm_inq_if sec_acl_perm_unused_00000080
#define mgmt_perm_inq_pname sec_acl_perm_unused_00000100
#define mgmt_perm_inq_stats sec_acl_perm_unused_00000200
#define mgmt_perm_ping sec_acl_perm_unused_00000400
#define mgmt_perm_kill sec_acl_perm_unused_00000800
A− 6 Tandem Computers Incorporated 124246