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 AddFSToGroup(); /* Add a filesystem to an fsgroup */
35 int RemoveFSFromGroup(); /* remove a filesystem from an fsgroup */
36 int ChangeFSGroupOrder(); /* change the sortorder on an fsgrouop */
37 int FSGroupHelp(); /* print info about fsgroups */
39 int GetFSAlias(); /* Gets the value for a Filsys alias. */
40 int CreateFSAlias(); /* Creates a new alias in the database. */
41 int DeleteFSAlias(); /* Deletes an FS alias from the database. */
43 int AttachHelp(); /* Help information specific to filsys. */
47 int ShowMachineInfo(); /* Show information on a(many) machine(s). */
48 int AddMachine(); /* add a new machine to teh database. */
49 int UpdateMachine(); /* updates machine information. */
50 int DeleteMachine(); /* delete a machine from the database. */
51 int MachineToClusterMap(); /* show machines in clusters. */
52 int AddMachineToCluster(); /* add a machine to a new cluster. */
53 int RemoveMachineFromCluster(); /* remove a machine from a cluster. */
55 int ShowClusterInfo(); /* Show information about a cluster. */
56 int AddCluster(); /* adds a new cluster to the database. */
57 int UpdateCluster(); /* updates information about a cluster. */
58 int DeleteCluster(); /* removes a cluste from the database. */
60 int ShowClusterInfo(); /* show information about a cluster. */
61 int MachinesInCluster(); /* list all machines in a give cluster. */
63 int UpdateCluster(); /* add, update, and delete clusters. */
66 int ShowClusterData(); /* Show, add, and remove data */
67 int AddClusterData(); /* associated with a cluster. */
68 int RemoveClusterData();
72 int DeleteList(), DeleteUser();
76 int ListByMember(); /* list all list to which a member belongs. */
77 int ListByAdministrator(); /* list all list to which a given member can
80 int ListAllPublicMailLists(); /* List misc. types of lists. */
81 int ListAllMailLists();
83 int AddMember(), DeleteMember(); /* add and delete mamber of current list. */
85 int ListUserMembers(); /* List various members of the current list. */
86 int ListListMembers();
87 int ListStringMembers();
89 int ShowListInfo(); /* show info about a list. */
90 int UpdateList(); /* change info about a list. */
91 int InterRemoveItemFromLists(); /* Interactivly remove an item from all lists*/
93 int ListmaintMemberMenuEntry(); /* entry and exit functions for member menu. */
94 int ListmaintMemberMenuExit();
95 int ListHelp(); /* help function for lists. */
99 int ShowNFSService(); /* functions that manipulate nfs physical */
100 int AddNFSService(); /* services. */
101 int UpdateNFSService();
102 int DeleteNFSService();
106 int GetUserPOBox(); /* operate on user post office boxes. */
108 int RemoveUserPOBox();
112 int ShowDefaultQuota(); /* show or change system default quota. */
113 int ChangeDefaultQuota();
115 int ShowUserQuota(); /* modify a user's quota. */
116 int ChangeUserQuota();
118 int RemoveUserQuota();
122 int ShowUserByLogin(); /* misc. ways to show user. */
123 int ShowUserByName();
124 int ShowUserByClass();
125 int AddNewUser(); /* add a new user to the database. */
126 int RegisterUser(); /* register a user. */
127 int UpdateUser(); /* modify info about a user. */
128 int DeactivateUser(); /* change a user's status to DELETED */
129 int ChangeUserPOBox(); /* change the PO box of a user. */
130 int DeleteUserByUid(); /* detete a user by uid. */
139 int EnableDcm(), InProgress(), DcmFailed(), Dcm();
140 int enabledcm(), showserv(), addserv(), updateserv(), delserv();
141 int showhost(), resetsrverr(), resetsrvc(), resethosterr();
142 int resethost(), sethostor(), addhost(), updatehost(), delhost();
143 int inprogress(), failed(), dcm();
146 int TableStats(), ShowClients(), ShowValue(), ShowAlias();
151 * For descriptions of all of these functions see the
152 * internals documentation.
155 void EncryptMITID(); /* Encrypts an mit id number. */
156 void FreeInfo(); /* Frees a NULL terminated array of strings. */
157 void FreeQueue(); /* Frees an entire queue. */
158 void FreeAndClear(); /* Frees a single pointer. */
159 void Loop(); /* Performs an operation on every item in
161 void QueryLoop(); /* Queries the user before performing
162 an operation on every item in
164 void RemoveHyphens(); /* Removes the hyphens from a string. */
165 void SlipInNewName(); /* Slips a new name into an argument list in
166 the correct place. */
167 int CountArgs(); /* Counts the strings in a NULL terminated
169 int GetValueFromUser(); /* Updates value by asking the user. */
170 int GetYesNoValueFromUser(); /* Updates a yes/no value by asking the user.*/
171 int GetFSTypes(); /* Gets Filesystem types from a user. */
172 int NullFunc(); /* NULL return function. */
173 int Print(); /* Prints out array of strings. */
174 int PrintByType(); /* Prints out array of strings by type. */
175 int PrintHelp(); /* Prints out help information. */
176 int StoreInfo(); /* Stores info returned from and SMS query
178 int Scream(); /* Query Return function that yells if called*/
179 int ToggleVerboseMode(); /* Turns on and off the verbose variable. */
180 char *CanonicalizeHostname(); /* this is what it does. */
181 char *NullPrint(); /* Prints nothing, returns argv[0]. */
182 char *Strsave(); /* allocated space for a copy of the string. */
183 struct qelem * QueueTop(); /* Finds the top of a queue. */
184 Bool Confirm(); /* Confirms a delete operation, with user. */
185 Bool YesNoQuestion(); /* Asks a user a yes no type question. */
186 Bool YesNoQuitQuestion(); /* Asks a user a yes - no - quit question. */
188 #endif _f_defs_ /* Do Not Add Anything After This Line */