1995-01-19 21:28:01 +00:00
|
|
|
/*
|
|
|
|
* Various minor routines...
|
|
|
|
*
|
|
|
|
* Copyright 1987, 1988, 1989 by MIT
|
|
|
|
*
|
1995-01-19 22:28:38 +00:00
|
|
|
* For copyright information, see copyright.h.
|
1995-01-19 21:28:01 +00:00
|
|
|
*/
|
|
|
|
|
1995-01-19 22:28:38 +00:00
|
|
|
#include "copyright.h"
|
1995-01-19 21:28:01 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "ss_internal.h"
|
|
|
|
|
|
|
|
#define DECLARE(name) name(argc,argv,sci_idx)int argc,sci_idx;char **argv;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ss_self_identify -- assigned by default to the "." request
|
|
|
|
*/
|
1996-07-12 18:57:58 +00:00
|
|
|
void
|
1995-01-19 21:28:01 +00:00
|
|
|
DECLARE(ss_self_identify)
|
|
|
|
{
|
|
|
|
register ss_data *info = ss_info(sci_idx);
|
|
|
|
printf("%s version %s\n", info->subsystem_name,
|
|
|
|
info->subsystem_version);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ss_subsystem_name -- print name of subsystem
|
|
|
|
*/
|
1996-07-12 18:57:58 +00:00
|
|
|
void
|
1995-01-19 21:28:01 +00:00
|
|
|
DECLARE(ss_subsystem_name)
|
|
|
|
{
|
|
|
|
printf("%s\n", ss_info(sci_idx)->subsystem_name);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ss_subsystem_version -- print version of subsystem
|
|
|
|
*/
|
1996-07-12 18:57:58 +00:00
|
|
|
void
|
1995-01-19 21:28:01 +00:00
|
|
|
DECLARE(ss_subsystem_version)
|
|
|
|
{
|
|
|
|
printf("%s\n", ss_info(sci_idx)->subsystem_version);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ss_unimplemented -- routine not implemented (should be
|
|
|
|
* set up as (dont_list,dont_summarize))
|
|
|
|
*/
|
1996-07-12 18:57:58 +00:00
|
|
|
void
|
1995-01-19 21:28:01 +00:00
|
|
|
DECLARE(ss_unimplemented)
|
|
|
|
{
|
|
|
|
ss_perror(sci_idx, SS_ET_UNIMPLEMENTED, "");
|
|
|
|
}
|