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.
6 * By: Chris D. Peterson
12 * Copyright 1988 by the Massachusetts Institute of Technology.
14 * For further information on copyright and distribution
15 * see the file mit-copyright.h
18 #include "mit-copyright.h"
23 /* general Library functions. */
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. */
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. */
38 int AttachHelp(); /* Help information specific to filsys. */
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. */
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. */
55 int ShowClusterInfo(); /* show information about a cluster. */
56 int MachinesInCluster(); /* list all machines in a give cluster. */
58 int UpdateCluster(); /* add, update, and delete clusters. */
61 int ShowClusterData(); /* Show, add, and remove data */
62 int AddClusterData(); /* associated with a cluster. */
63 int RemoveClusterData();
67 int DeleteList(), DeleteUser();
71 int ListByMember(); /* list all list to which a member belongs. */
72 int ListByAdministrator(); /* list all list to which a given member can
75 int ListAllPublicMailLists(); /* List misc. types of lists. */
76 int ListAllMailLists();
78 int AddMember(), DeleteMember(); /* add and delete mamber of current list. */
80 int ListUserMembers(); /* List various members of the current list. */
81 int ListListMembers();
82 int ListStringMembers();
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*/
88 int ListmaintMemberMenuEntry(); /* entry and exit functions for member menu. */
89 int ListmaintMemberMenuExit();
90 int ListHelp(); /* help function for lists. */
94 int ShowNFSService(); /* functions that manipulate nfs physical */
95 int AddNFSService(); /* services. */
96 int UpdateNFSService();
97 int DeleteNFSService();
101 int GetUserPOBox(); /* operate on user post office boxes. */
103 int RemoveUserPOBox();
107 int ShowDefaultQuota(); /* show or change system default quota. */
108 int ChangeDefaultQuota();
110 int ShowUserQuota(); /* modify a user's quota. */
111 int ChangeUserQuota();
113 int RemoveUserQuota();
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. */
123 int DeactivateUser(); /* change a user's status to DELETED */
124 int ChangeUserPOBox(); /* change the PO box of a user. */
125 int DeleteUserByUid(); /* detete a user by uid. */
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();
141 int TableStats(), ShowClients(), ShowValue(), ShowAlias();
146 * For descriptions of all of these functions see the
147 * internals documentation.
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
156 void QueryLoop(); /* Queries the user before performing
157 an operation on every item in
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
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
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. */
183 #endif _f_defs_ /* Do Not Add Anything After This Line */