DCE Application Programming Guide
Sample Application Listings
HP NonStop DCE Application Programming Guide—429551-003
A-9
The Installation File
The Installation File
The installation file is shown in Figure A-6.
Figure A-6. The Installation File in a Straight Port (page 1 of 3)
/* infpls_i.c */
/*
 * (c) Copyright 1993 Harold W. Lockhart and Frederic M. Oldfield
 * ALL RIGHTS RESERVED
 *
 * Permission is hereby granted to use, copy, modify and freely
 * distribute this software for any purpose without fee, provided
 * that the above copyright notice and this permission notice are
 * retained in it.
 *
 * The authors make no representations about the suitability of
 * this software for any purpose. It is provided "as is" without
 * express or implied warranty. The authors assume no liability,
 * direct or consequential, resulting from its use.
 */
#include <stdlib.h> /* (a) */
#include <stdio.h>
#include <string.h>
#include <dce/rpc.h>
#include <dce/dce_cf.h>
#include "infpls.h"
#include "errmac.h" 
/**** dummy operation entry point since declared in stub ******/
error_status_t get_system_info(
 rpc_binding_handle_t binding,
 sys_info_t *system_info_p)
{
return rpc_s_ok;
}
/***** Information Server Installation Program *****/
main( int argc, char *argv[] )
{
error_status_t status;
rpc_binding_vector_t *bindings;
unsigned_char_t name[100];
unsigned_char_t group_name[] = "/.:/applications/info_server_group";
char *hostname_p, *cp;
if (argc < 2)
 {
 printf("Usage: %s -i [ host name ] or %s -r [ host name ]\n",
 argv[0], argv[0]);
 exit(1);
 }
/*
***** Construct server entry name from the host name typed by the user *****
***** If none was typed use the local hostname as reported by DCE *****
*/










