blob: e6185c486ba01675c5308f833a1e32a127864aed (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
|
/*
* Copyright (c) 1992 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software_Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
/*
* supmsg.h - global definitions/variables used in msg routines.
*
**********************************************************************
* HISTORY
*
* 7-July-93 Nate Williams at Montana State University
* Modified SUP to use gzip based compression when sending files
* across the network to save BandWidth
*
* $Log: supmsg.h,v $
* Revision 1.1.1.1 1995/12/26 04:54:47 peter
* Import the unmodified version of the sup that we are using.
* The heritage of this version is not clear. It appears to be NetBSD
* derived from some time ago.
*
* Revision 1.1.1.1 1993/08/21 00:46:35 jkh
* Current sup with compression support.
*
* Revision 1.1.1.1 1993/05/21 14:52:19 cgd
* initial import of CMU's SUP to NetBSD
*
* Revision 1.7 92/08/11 12:08:20 mrt
* Added copyright.
* [92/08/10 mrt]
*
* Revision 1.6 89/08/23 14:56:42 gm0w
* Changed MSGF to MSG constants.
* [89/08/23 gm0w]
*
* 27-Dec-87 Glenn Marcy (gm0w) at Carnegie-Mellon University
* Added crosspatch support. Removed nameserver support.
*
* 29-Jun-87 Glenn Marcy (gm0w) at Carnegie-Mellon University
* Added "release" support.
*
* 27-May-87 Doug Philips (dwp) at Carnegie-Mellon University
* Added MSGFDONE and subvalues, added doneack and donereason.
*
* 20-May-87 Glenn Marcy (gm0w) at Carnegie-Mellon University
* Added changes to make lint happy.
*
* 04-Jan-86 Glenn Marcy (gm0w) at Carnegie-Mellon University
* Changed hostname to hostT to support multiple repositories per
* collection. Added FSETUPBUSY to tell clients that server is
* currently busy.
*
* 19-Dec-85 Glenn Marcy (gm0w) at Carnegie-Mellon University
* Created.
*
**********************************************************************
*/
/* Special messages reserved for SCM */
#define MSGGOAWAY (-1) /* see scm.c */
/* Message types -- see supmsg.c */
#define MSGSIGNON (101)
#define MSGSIGNONACK (102)
#define MSGSETUP (103)
#define MSGSETUPACK (104)
#define MSGLOGIN (105)
#define MSGLOGACK (106)
#define MSGCRYPT (107)
#define MSGCRYPTOK (108)
#define MSGREFUSE (109)
#define MSGLIST (110)
#define MSGNEED (111)
#define MSGDENY (112)
#define MSGSEND (113)
#define MSGRECV (114)
#define MSGDONE (115)
#define MSGXPATCH (117)
#define MSGCOMPRESS (118)
/* MSGSETUPACK data codes - setupack */
#define FSETUPOK (999)
#define FSETUPHOST (998)
#define FSETUPSAME (997)
#define FSETUPOLD (996)
#define FSETUPBUSY (995)
#define FSETUPRELEASE (994)
/* MSGLOGACK data codes - loginack */
#define FLOGOK (989)
#define FLOGNG (988)
/* MSGDONE data codes - doneack */
#define FDONESUCCESS (979)
#define FDONEDONTLOG (978)
#define FDONESRVERROR (977)
#define FDONEUSRERROR (976)
#define FDONEGOAWAY (975)
#ifdef MSGSUBR
/* used in all msg routines */
extern int server; /* true if we are the server */
extern int protver; /* protocol version of partner */
#else MSGSUBR
#ifdef MSGFILE
#define EXTERN
#else MSGFILE
#define EXTERN extern
#endif MSGFILE
/* used in all msg routines */
EXTERN int server; /* true if we are the server */
/* msggoaway */
EXTERN char *goawayreason; /* reason for goaway */
/* msgsignon */
EXTERN int pgmversion; /* version of this program */
EXTERN int protver; /* protocol version of partner */
EXTERN int pgmver; /* program version of partner */
EXTERN char *scmver; /* scm version of partner */
EXTERN int fspid; /* process id of fileserver */
/* msgsetup */
EXTERN int xpatch; /* setup crosspatch to a new client */
EXTERN char *xuser; /* user for crosspatch */
EXTERN char *collname; /* collection name */
EXTERN char *basedir; /* base directory */
EXTERN int basedev; /* base directory device */
EXTERN int baseino; /* base directory inode */
EXTERN long lasttime; /* time of last upgrade */
EXTERN int listonly; /* only listing files, no data xfer */
EXTERN int newonly; /* only send new files */
EXTERN char *release; /* release name */
EXTERN int setupack; /* ack return value for setup */
/* msgcrypt */
EXTERN char *crypttest; /* encryption test string */
/* msglogin */
EXTERN char *logcrypt; /* login encryption test */
EXTERN char *loguser; /* login username */
EXTERN char *logpswd; /* password for login */
EXTERN int logack; /* login ack status */
EXTERN char *logerror; /* error string from oklogin */
/* msgxpatch */
EXTERN int xargc; /* arg count for crosspatch */
EXTERN char **xargv; /* arg array for crosspatch */
/* msgrefuse */
EXTERN TREE *refuseT; /* tree of files to refuse */
/* msglist */
EXTERN TREE *listT; /* tree of files to list */
EXTERN TREE *renameT; /* tree of file rename targets */
EXTERN long scantime; /* time that collection was scanned */
/* msgneed */
EXTERN TREE *needT; /* tree of files to need */
/* msgdeny */
EXTERN TREE *denyT; /* tree of files to deny */
/* msgrecv */
/* msgsend */
EXTERN TREE *upgradeT; /* pointer to file being upgraded */
/* msgdone */
EXTERN int doneack; /* done ack status */
EXTERN char *donereason; /* set if indicated by doneack */
#undef EXTERN
#endif MSGSUBR
|