summaryrefslogtreecommitdiff
path: root/xc/unsupported/doc/PHIGS/man3/p215
blob: 6bc741e618b8efea2feddb4747399110091edb94 (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.\"##
.\" $XConsortium: p215,v 5.1 91/02/16 09:40:51 rws Exp $
.\"##
.\"## 
$XMCOPY
.\"## Copyright (c) 1990, 1991 by Sun Microsystems, Inc. 
.\"## 
.\"##                         All Rights Reserved
.\"## 
.\"## Permission to use, copy, modify, and distribute this software and its 
.\"## documentation for any purpose and without fee is hereby granted, 
.\"## provided that the above copyright notice appear in all copies and that
.\"## both that copyright notice and this permission notice appear in 
.\"## supporting documentation, and that the name of Sun Microsystems,
.\"## not be used in advertising or publicity 
.\"## pertaining to distribution of the software without specific, written 
.\"## prior permission.  
.\"## 
.\"## SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
.\"## INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
.\"## EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
.\"## CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
.\"## USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
.\"## OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\"## PERFORMANCE OF THIS SOFTWARE.
.TH "INQUIRE SYSTEM STATE VALUE" 3P "29 February 1991"
.SH NAME
INQUIRE SYSTEM STATE VALUE \- inquire state value of PHIGS
.IX "Operating States" "INQUIRE SYSTEM STATE VALUE"
.SH SYNOPSIS
.SS C Syntax
.ft B
.ta 1.25i 3i
.nf
void
pinq_sys_st ( sys_state )
Psys_st	*sys_state;	\fIOUT the system state\fP
.fi
.ft R
.SS Required PHIGS Operating States
(*, *, *, *)
.SH DESCRIPTION
.SS Purpose
Use \s-2INQUIRE SYSTEM STATE VALUE\s+2 to determine the current state of
the PHIGS system. The state value may be either \fI\s-2PHIGS\s+2 open\fP (\s-2PHOP\s+2)
or \fI\s-2PHIGS\s+2 closed\fP (\s-2PHCL\s+2).
.LP
\s-2PHIGS\s+2 must be opened with the \s-2OPEN PHIGS\s+2 subroutine before any operations can be performed with the \s-2PHIGS\s+2 subroutines.
This function may be used to verify that \s-2OPEN PHIGS\s+2 was
successful before performing additional \s-2PHIGS\s+2 operations.
.SS C Output Parameters
.IP \fIsys_state \fP
A pointer to a Psys_st enumerated variable in which the current state
of the \s-2PHIGS\s+2 system is returned.
Values for Psys_st are defined in phigs.h as follows:
.nf
.ta .5i +1.25i
.sp .4
typdef enum {
.sp .2
	PSYS_ST_PHCL,	/* \s-2PHIGS\s+2 closed */
	PSYS_ST_PHOP	/* \s-2PHIGS\s+2 open */
.sp .2
} Psys_st;
.fi
.SH ERRORS
.IP 
None
.SH SEE ALSO
.nf
.IP
.ta 0.5i
.SM "OPEN PHIGS (3P)"
.SM "CLOSE PHIGS (3P)"
.SM "EMERGENCY CLOSE PHIGS (3P)"
.SM "INQUIRE ARCHIVE STATE VALUE (3P)"
.SM "INQUIRE STRUCTURE STATE VALUE (3P)"
.SM "INQUIRE WORKSTATION STATE VALUE (3P)"
.fi