1 /* @(#)scsihelp.c 1.7 09/07/11 Copyright 2002-2009 J. Schilling */
2 #include <schily/mconfig.h>
3 #ifndef lint
4 static UConst char sccsid[] =
5 "@(#)scsihelp.c 1.7 09/07/11 Copyright 2002-2009 J. Schilling";
6 #endif
7 /*
8 * scg Library
9 * Help subsystem
10 *
11 * Copyright (c) 2002-2009 J. Schilling
12 */
13 /*
14 * The contents of this file are subject to the terms of the
15 * Common Development and Distribution License, Version 1.0 only
16 * (the "License"). You may not use this file except in compliance
17 * with the License.
18 *
19 * See the file CDDL.Schily.txt in this distribution for details.
20 * A copy of the CDDL is also available via the Internet at
21 * http://www.opensource.org/licenses/cddl1.txt
22 *
23 * The following exceptions apply:
24 * CDDL �3.6 needs to be replaced by: "You may create a Larger Work by
25 * combining Covered Software with other code if all other code is governed by
26 * the terms of a license that is OSI approved (see www.opensource.org) and
27 * you may distribute the Larger Work as a single product. In such a case,
28 * You must make sure the requirements of this License are fulfilled for
29 * the Covered Software."
30 *
31 * When distributing Covered Code, include this CDDL HEADER in each
32 * file and include the License file CDDL.Schily.txt from this distribution.
33 */
34
35 #include <schily/stdio.h>
36 #include <schily/standard.h>
37 #include <schily/schily.h>
38
39 #include <scg/scsitransp.h>
40
41 EXPORT void __scg_help __PR((FILE *f, char *name, char *tcomment,
42 char *tind,
43 char *tspec,
44 char *texample,
45 BOOL mayscan,
46 BOOL bydev));
47
48 EXPORT void
__scg_help(f,name,tcomment,tind,tspec,texample,mayscan,bydev)49 __scg_help(f, name, tcomment, tind, tspec, texample, mayscan, bydev)
50 FILE *f;
51 char *name;
52 char *tcomment;
53 char *tind;
54 char *tspec;
55 char *texample;
56 BOOL mayscan;
57 BOOL bydev;
58 {
59 fprintf(f, "\nTransport name: %s\n", name);
60 fprintf(f, "Transport descr.: %s\n", tcomment);
61 fprintf(f, "Transp. layer ind.: %s\n", tind);
62 fprintf(f, "Target specifier: %s\n", tspec);
63 fprintf(f, "Target example: %s\n", texample);
64 fprintf(f, "SCSI Bus scanning: %ssupported\n", mayscan? "":"not ");
65 fprintf(f, "Open via UNIX device: %ssupported\n", bydev? "":"not ");
66 }
67