source: rtems/cpukit/librpc/include/rpcsvc/sm_inter.x @ 6deb2f18

4.104.114.84.95
Last change on this file since 6deb2f18 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on 06/12/00 at 15:00:15

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 3.6 KB
Line 
1/* @(#)sm_inter.x       2.2 88/08/01 4.0 RPCSRC */
2/* @(#)sm_inter.x 1.7 87/06/24 Copyr 1987 Sun Micro */
3
4/*
5 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
6 * unrestricted use provided that this legend is included on all tape
7 * media and as a part of the software program in whole or part.  Users
8 * may copy or modify Sun RPC without charge, but are not authorized
9 * to license or distribute it to anyone else except as part of a product or
10 * program developed by the user.
11 *
12 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
13 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
14 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
15 *
16 * Sun RPC is provided with no support and without any obligation on the
17 * part of Sun Microsystems, Inc. to assist in its use, correction,
18 * modification or enhancement.
19 *
20 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
21 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
22 * OR ANY PART THEREOF.
23 *
24 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
25 * or profits or other special, indirect and consequential damages, even if
26 * Sun has been advised of the possibility of such damages.
27 *
28 * Sun Microsystems, Inc.
29 * 2550 Garcia Avenue
30 * Mountain View, California  94043
31 */
32
33/*
34 * Status monitor protocol specification
35 * Copyright (C) 1986 Sun Microsystems, Inc.
36 *
37 */
38
39#ifndef RPC_HDR
40%#ifndef lint
41%static const char rcsid[] =
42%  "$FreeBSD: src/include/rpcsvc/sm_inter.x,v 1.8 1999/08/27 23:45:11 peter Exp $";
43%#endif /* not lint */
44#endif
45
46program SM_PROG {
47        version SM_VERS  {
48                /* res_stat = stat_succ if status monitor agrees to monitor */
49                /* res_stat = stat_fail if status monitor cannot monitor */
50                /* if res_stat == stat_succ, state = state number of site sm_name */
51                struct sm_stat_res                       SM_STAT(struct sm_name) = 1;
52
53                /* res_stat = stat_succ if status monitor agrees to monitor */
54                /* res_stat = stat_fail if status monitor cannot monitor */
55                /* stat consists of state number of local site */
56                struct sm_stat_res                       SM_MON(struct mon) = 2;
57
58                /* stat consists of state number of local site */
59                struct sm_stat                           SM_UNMON(struct mon_id) = 3;
60
61                /* stat consists of state number of local site */
62                struct sm_stat                           SM_UNMON_ALL(struct my_id) = 4;
63
64                void                                     SM_SIMU_CRASH(void) = 5;
65
66        } = 1;
67} = 100024;
68
69const   SM_MAXSTRLEN = 1024;
70
71struct sm_name {
72        string mon_name<SM_MAXSTRLEN>;
73};
74
75struct my_id {
76        string   my_name<SM_MAXSTRLEN>;         /* name of the site iniates the monitoring request*/
77        int     my_prog;                        /* rpc program # of the requesting process */
78        int     my_vers;                        /* rpc version # of the requesting process */
79        int     my_proc;                        /* rpc procedure # of the requesting process */
80};
81
82struct mon_id {
83        string  mon_name<SM_MAXSTRLEN>;         /* name of the site to be monitored */
84        struct my_id my_id;
85};
86
87
88struct mon{
89        struct mon_id mon_id;
90        opaque priv[16];                /* private information to store at monitor for requesting process */
91};
92
93
94/*
95 * state # of status monitor monitonically increases each time
96 * status of the site changes:
97 * an even number (>= 0) indicates the site is down and
98 * an odd number (> 0) indicates the site is up;
99 */
100struct sm_stat {
101        int state;              /* state # of status monitor */
102};
103
104enum res {
105        stat_succ = 0,          /* status monitor agrees to monitor */
106        stat_fail = 1           /* status monitor cannot monitor */
107};
108
109struct sm_stat_res {
110        res res_stat;
111        int state;
112};
113
114/*
115 * structure of the status message sent back by the status monitor
116 * when monitor site status changes
117 */
118struct status {
119        string mon_name<SM_MAXSTRLEN>;
120        int state;
121        opaque priv[16];                /* stored private information */
122};
Note: See TracBrowser for help on using the repository browser.