1 /* $NetBSD: supcdefs.h,v 1.12 2002/07/10 20:19:44 wiz Exp $ */
4 * Copyright (c) 1992 Carnegie Mellon University
7 * Permission to use, copy, modify and distribute this software and its
8 * documentation is hereby granted, provided that both the copyright
9 * notice and this permission notice appear in all copies of the
10 * software, derivative works or modified versions, and any portions
11 * thereof, and that both notices appear in supporting documentation.
13 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
14 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
15 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 * Carnegie Mellon requests users of this software to return to
19 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
20 * School of Computer Science
21 * Carnegie Mellon University
22 * Pittsburgh PA 15213-3890
24 * any improvements or extensions that they make and grant Carnegie Mellon
25 * the rights to redistribute these changes.
28 * supcdefs.h -- Declarations shared by the collection of files
29 * that build the sup client.
31 **********************************************************************
33 * 7-July-93 Nate Williams at Montana State University
34 * Modified SUP to use gzip based compression when sending files
35 * across the network to save BandWidth
37 * Revision 1.6 92/08/11 12:06:52 mrt
38 * Added CFURELSUF - use-release-suffix flag
39 * Made rpause code conditional on MACH rather than CMUCS
42 * Revision 1.5 92/02/08 18:23:57 mja
46 * 10-Feb-88 Glenn Marcy (gm0w) at Carnegie-Mellon University
47 * Added timeout for backoff.
49 * 28-Jun-87 Glenn Marcy (gm0w) at Carnegie-Mellon University
50 * Added Crelease for "release" support.
52 * 25-May-87 Doug Philips (dwp) at Carnegie-Mellon University
55 **********************************************************************
68 #include <sys/types.h>
72 #if MACH /* used by resource pausing code only */
73 #include <sys/ioctl.h>
74 #include <sys/resource.h>
80 extern int PGMVERSION
;
82 /*******************************************
83 *** D A T A S T R U C T U R E S ***
84 *******************************************/
86 struct collstruct
{ /* one per collection to be upgraded */
87 char *Cname
; /* collection name */
88 TREE
*Chost
; /* attempted host for collection */
89 TREE
*Chtree
; /* possible hosts for collection */
90 char *Cbase
; /* local base directory */
91 char *Chbase
; /* remote base directory */
92 char *Cprefix
; /* local collection pathname prefix */
93 char *Crelease
; /* release name */
94 char *Cnotify
; /* user to notify of status */
95 char *Clogin
; /* remote login name */
96 char *Cpswd
; /* remote password */
97 char *Ccrypt
; /* data encryption key */
98 int Ctimeout
; /* timeout for backoff */
99 int Cflags
; /* collection flags */
100 int Cnogood
; /* upgrade no good, "when" unchanged */
101 int Clockfd
; /* >= 0 if collection is locked */
102 struct collstruct
*Cnext
; /* next collection */
104 typedef struct collstruct COLLECTION
;
107 #define CFBACKUP 00002
108 #define CFDELETE 00004
109 #define CFEXECUTE 00010
111 #define CFLOCAL 00040
114 #define CFVERBOSE 00400
116 #define CFURELSUF 02000
117 #define CFCOMPRESS 04000
118 #define CFSILENT 10000
120 /*************************
122 *************************/
124 #define vnotify if (thisC->Cflags&CFVERBOSE) notify