]>
Commit | Line | Data |
---|---|---|
ec47f9a6 | 1 | /* This is the file f_defs.h for the SMS Client, which allows a nieve |
2 | * user to quickly and easily maintain most parts of the SMS database. | |
3 | * It Contains: useful definitions. | |
4 | * | |
5 | * Created: 4/12/88 | |
6 | * By: Chris D. Peterson | |
7 | * | |
8 | * $Source$ | |
9 | * $Author$ | |
10 | * $Header$ | |
11 | * | |
12 | * Copyright 1988 by the Massachusetts Institute of Technology. | |
13 | * | |
14 | * For further information on copyright and distribution | |
15 | * see the file mit-copyright.h | |
16 | */ | |
17 | ||
18 | #include "mit-copyright.h" | |
19 | ||
20 | #ifndef _f_defs_ | |
21 | #define _f_defs_ | |
22 | ||
23 | /* general Library functions. */ | |
24 | ||
25 | char * malloc(); | |
26 | ||
27 | /* attach.c */ | |
28 | ||
29 | int GetFS(); /* Get information about named filsys. */ | |
30 | int AddFS(); /* Adds a new Filsys to the database. */ | |
31 | int ChangeFS(); /* Changes information in a Filsys entry. */ | |
32 | int DeleteFS(); /* Delete a filesystem from the database. */ | |
33 | ||
34 | int GetFSAlias(); /* Gets the value for a Filsys alias. */ | |
35 | int CreateFSAlias(); /* Creates a new alias in the database. */ | |
36 | int DeleteFSAlias(); /* Deletes an FS alias from the database. */ | |
37 | ||
38 | int AttachHelp(); /* Help information specific to filsys. */ | |
39 | ||
40 | /* cluster.c */ | |
41 | ||
42 | int ShowMachineInfo(); /* Show information on a(many) machine(s). */ | |
43 | int AddMachine(); /* add a new machine to teh database. */ | |
44 | int UpdateMachine(); /* updates machine information. */ | |
45 | int DeleteMachine(); /* delete a machine from the database. */ | |
46 | int MachineToClusterMap(); /* show machines in clusters. */ | |
47 | int AddMachineToCluster(); /* add a machine to a new cluster. */ | |
48 | int RemoveMachineFromCluster(); /* remove a machine from a cluster. */ | |
49 | ||
50 | int ShowClusterInfo(); /* Show information about a cluster. */ | |
51 | int AddCluster(); /* adds a new cluster to the database. */ | |
52 | int UpdateCluster(); /* updates information about a cluster. */ | |
53 | int DeleteCluster(); /* removes a cluste from the database. */ | |
54 | ||
55 | int ShowClusterInfo(); /* show information about a cluster. */ | |
56 | int MachinesInCluster(); /* list all machines in a give cluster. */ | |
57 | int AddCluster(); | |
58 | int UpdateCluster(); /* add, update, and delete clusters. */ | |
59 | int DeleteCluster(); | |
60 | ||
61 | int ShowClusterData(); /* Show, add, and remove data */ | |
62 | int AddClusterData(); /* associated with a cluster. */ | |
63 | int RemoveClusterData(); | |
64 | ||
65 | /* delete.c */ | |
66 | ||
67 | int DeleteList(), DeleteUser(); | |
68 | ||
69 | /* lists.c */ | |
70 | ||
71 | int ListByMember(); /* list all list to which a member belongs. */ | |
72 | int ListByAdministrator(); /* list all list to which a given member can | |
73 | administer. */ | |
74 | int ListAllGroups(); | |
75 | int ListAllPublicMailLists(); /* List misc. types of lists. */ | |
76 | int ListAllMailLists(); | |
77 | ||
78 | int AddMember(), DeleteMember(); /* add and delete mamber of current list. */ | |
79 | int ListAllMembers(); | |
80 | int ListUserMembers(); /* List various members of the current list. */ | |
81 | int ListListMembers(); | |
82 | int ListStringMembers(); | |
83 | ||
84 | int ShowListInfo(); /* show info about a list. */ | |
85 | int UpdateList(); /* change info about a list. */ | |
86 | int InterRemoveItemFromLists(); /* Interactivly remove an item from all lists*/ | |
87 | ||
88 | int ListmaintMemberMenuEntry(); /* entry and exit functions for member menu. */ | |
89 | int ListmaintMemberMenuExit(); | |
90 | int ListHelp(); /* help function for lists. */ | |
91 | ||
92 | /* nfs.c */ | |
93 | ||
94 | int ShowNFSService(); /* functions that manipulate nfs physical */ | |
95 | int AddNFSService(); /* services. */ | |
96 | int UpdateNFSService(); | |
97 | int DeleteNFSService(); | |
98 | ||
99 | /* pobox.c */ | |
100 | ||
101 | int GetUserPOBox(); /* operate on user post office boxes. */ | |
102 | int SetUserPOBox(); | |
103 | int RemoveUserPOBox(); | |
104 | ||
105 | /* quota.c */ | |
106 | ||
107 | int ShowDefaultQuota(); /* show or change system default quota. */ | |
108 | int ChangeDefaultQuota(); | |
109 | ||
110 | int ShowUserQuota(); /* modify a user's quota. */ | |
111 | int ChangeUserQuota(); | |
112 | int AddUserQuota(); | |
113 | int RemoveUserQuota(); | |
114 | ||
115 | /* user.c */ | |
116 | ||
117 | int ShowUserByLogin(); /* misc. ways to show user. */ | |
118 | int ShowUserByName(); | |
119 | int ShowUserByClass(); | |
120 | int AddNewUser(); /* add a new user to the database. */ | |
121 | int RegisterUser(); /* register a user. */ | |
122 | int UpdateUser(); /* modify info about a user. */ | |
8a48c3f7 | 123 | int DeactivateUser(); /* change a user's status to DELETED */ |
ec47f9a6 | 124 | int ChangeUserPOBox(); /* change the PO box of a user. */ |
125 | int DeleteUserByUid(); /* detete a user by uid. */ | |
126 | ||
4bfa54ec | 127 | /* printer.c */ |
128 | int AddPcap(); | |
129 | int GetPcap(); | |
130 | int ChngPcap(); | |
131 | int DeletePcap(); | |
132 | ||
133 | /* dcm.c */ | |
134 | int EnableDcm(), InProgress(), DcmFailed(), Dcm(); | |
135 | int enabledcm(), showserv(), addserv(), updateserv(), delserv(); | |
136 | int showhost(), resetsrverr(), resetsrvc(), resethosterr(); | |
137 | int resethost(), sethostor(), addhost(), updatehost(), delhost(); | |
138 | int inprogress(), failed(), dcm(); | |
139 | ||
58c38ae1 | 140 | /* misc.c */ |
141 | int TableStats(), ShowClients(), ShowValue(), ShowAlias(); | |
142 | ||
ec47f9a6 | 143 | /* utils.c */ |
144 | ||
145 | /* | |
146 | * For descriptions of all of these functions see the | |
147 | * internals documentation. | |
148 | */ | |
149 | ||
150 | void EncryptMITID(); /* Encrypts an mit id number. */ | |
151 | void FreeInfo(); /* Frees a NULL terminated array of strings. */ | |
152 | void FreeQueue(); /* Frees an entire queue. */ | |
153 | void FreeAndClear(); /* Frees a single pointer. */ | |
154 | void Loop(); /* Performs an operation on every item in | |
155 | a queue. */ | |
156 | void QueryLoop(); /* Queries the user before performing | |
157 | an operation on every item in | |
158 | a queue. */ | |
159 | void RemoveHyphens(); /* Removes the hyphens from a string. */ | |
160 | void SlipInNewName(); /* Slips a new name into an argument list in | |
161 | the correct place. */ | |
162 | int CountArgs(); /* Counts the strings in a NULL terminated | |
163 | array. */ | |
164 | int GetValueFromUser(); /* Updates value by asking the user. */ | |
165 | int GetYesNoValueFromUser(); /* Updates a yes/no value by asking the user.*/ | |
166 | int GetFSTypes(); /* Gets Filesystem types from a user. */ | |
167 | int NullFunc(); /* NULL return function. */ | |
168 | int Print(); /* Prints out array of strings. */ | |
169 | int PrintByType(); /* Prints out array of strings by type. */ | |
170 | int PrintHelp(); /* Prints out help information. */ | |
171 | int StoreInfo(); /* Stores info returned from and SMS query | |
172 | in a queue. */ | |
173 | int Scream(); /* Query Return function that yells if called*/ | |
174 | int ToggleVerboseMode(); /* Turns on and off the verbose variable. */ | |
175 | char *CanonicalizeHostname(); /* this is what it does. */ | |
176 | char *NullPrint(); /* Prints nothing, returns argv[0]. */ | |
177 | char *Strsave(); /* allocated space for a copy of the string. */ | |
178 | struct qelem * QueueTop(); /* Finds the top of a queue. */ | |
179 | Bool Confirm(); /* Confirms a delete operation, with user. */ | |
180 | Bool YesNoQuestion(); /* Asks a user a yes no type question. */ | |
181 | Bool YesNoQuitQuestion(); /* Asks a user a yes - no - quit question. */ | |
182 | ||
183 | #endif _f_defs_ /* Do Not Add Anything After This Line */ | |
184 | ||
185 |