17c478bd9Sstevel@tonic-gate /* 2*56a424ccSmp153739 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3*56a424ccSmp153739 * Use is subject to license terms. 47c478bd9Sstevel@tonic-gate */ 57c478bd9Sstevel@tonic-gate 67c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 77c478bd9Sstevel@tonic-gate 87c478bd9Sstevel@tonic-gate /* 97c478bd9Sstevel@tonic-gate * Various minor routines... 107c478bd9Sstevel@tonic-gate * 117c478bd9Sstevel@tonic-gate * Copyright 1987, 1988, 1989 by MIT 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * For copyright information, see mit-sipb-copyright.h. 147c478bd9Sstevel@tonic-gate */ 157c478bd9Sstevel@tonic-gate 167c478bd9Sstevel@tonic-gate #include <stdio.h> 177c478bd9Sstevel@tonic-gate #include "ss_internal.h" 187c478bd9Sstevel@tonic-gate #include <libintl.h> 197c478bd9Sstevel@tonic-gate 20*56a424ccSmp153739 #define DECLARE(name) void name(argc,argv,sci_idx,info_ptr)int argc,sci_idx;const char * const *argv; pointer info_ptr; 217c478bd9Sstevel@tonic-gate 227c478bd9Sstevel@tonic-gate /* 237c478bd9Sstevel@tonic-gate * ss_self_identify -- assigned by default to the "." request 247c478bd9Sstevel@tonic-gate */ 257c478bd9Sstevel@tonic-gate DECLARE(ss_self_identify) 267c478bd9Sstevel@tonic-gate { 277c478bd9Sstevel@tonic-gate register ss_data *info = ss_info(sci_idx); 287c478bd9Sstevel@tonic-gate printf((char *)dgettext(TEXT_DOMAIN, 297c478bd9Sstevel@tonic-gate "%s version %s\n"), info->subsystem_name, 307c478bd9Sstevel@tonic-gate info->subsystem_version); 317c478bd9Sstevel@tonic-gate } 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate /* 347c478bd9Sstevel@tonic-gate * ss_subsystem_name -- print name of subsystem 357c478bd9Sstevel@tonic-gate */ 367c478bd9Sstevel@tonic-gate DECLARE(ss_subsystem_name) 377c478bd9Sstevel@tonic-gate { 387c478bd9Sstevel@tonic-gate printf("%s\n", ss_info(sci_idx)->subsystem_name); 397c478bd9Sstevel@tonic-gate } 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gate /* 427c478bd9Sstevel@tonic-gate * ss_subsystem_version -- print version of subsystem 437c478bd9Sstevel@tonic-gate */ 447c478bd9Sstevel@tonic-gate DECLARE(ss_subsystem_version) 457c478bd9Sstevel@tonic-gate { 467c478bd9Sstevel@tonic-gate printf("%s\n", ss_info(sci_idx)->subsystem_version); 477c478bd9Sstevel@tonic-gate } 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate /* 507c478bd9Sstevel@tonic-gate * ss_unimplemented -- routine not implemented (should be 517c478bd9Sstevel@tonic-gate * set up as (dont_list,dont_summarize)) 527c478bd9Sstevel@tonic-gate */ 537c478bd9Sstevel@tonic-gate DECLARE(ss_unimplemented) 547c478bd9Sstevel@tonic-gate { 557c478bd9Sstevel@tonic-gate ss_perror(sci_idx, SS_ET_UNIMPLEMENTED, ""); 567c478bd9Sstevel@tonic-gate } 57