File: dse_help.c

package info (click to toggle)
fis-gtm 7.1-006-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 32,908 kB
  • sloc: ansic: 344,906; asm: 5,184; csh: 4,859; sh: 2,000; awk: 294; makefile: 73; sed: 13
file content (48 lines) | stat: -rwxr-xr-x 1,489 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/****************************************************************
 *								*
 *	Copyright 2001, 2013 Fidelity Information Services, Inc	*
 *								*
 *	This source code contains the intellectual property	*
 *	of its copyright holder(s), and is made available	*
 *	under a license.  If you do not know the terms of	*
 *	the license, please stop and do not read further.	*
 *								*
 ****************************************************************/

#include "mdef.h"
#include "gdsroot.h"
#include "gtm_facility.h"
#include "fileinfo.h"
#include "gdsbt.h"
#include "gdsfhead.h"
#include "release_name.h"
#include "util.h"
#include "dse.h"

void dse_help(void)
{
	/* This function is a STUB to avoid editting sr_port/dse.h */
}

void dse_version(void)
{
	/*
	 * The following assumptions have been made in this function
	 * 1. GTM_RELEASE_NAME is of the form "GTM_PRODUCT VERSION THEREST"
	 *    (Refer file release_name.h)
	 * 2. A single blank separates GTM_PRODUCT and VERSION
	 * 3. If THEREST exists, it is separated from VERSION by atleast
	 *    one blank
	 */
	char gtm_rel_name[] = GTM_RELEASE_NAME;
	char dse_rel_name[SIZEOF(GTM_RELEASE_NAME) - SIZEOF(GTM_PRODUCT)];
	int  dse_rel_name_len;
	char *cptr;

	for (cptr = gtm_rel_name + SIZEOF(GTM_PRODUCT), dse_rel_name_len = 0;
	     *cptr != ' ' && *cptr != '\0';
	     dse_rel_name[dse_rel_name_len++] = *cptr++);
	dse_rel_name[dse_rel_name_len] = '\0';
	util_out_print("!AD", TRUE, dse_rel_name_len, dse_rel_name);
	return;
}