]> andersk Git - moira.git/blame - clients/moira/f_defs.h
missed a few possible deadlocks
[moira.git] / clients / moira / f_defs.h
CommitLineData
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
25char * malloc();
26
27/* attach.c */
28
29int GetFS(); /* Get information about named filsys. */
d232c3df 30int GetFSM(); /* Get filesys by machine */
ec47f9a6 31int AddFS(); /* Adds a new Filsys to the database. */
32int ChangeFS(); /* Changes information in a Filsys entry. */
33int DeleteFS(); /* Delete a filesystem from the database. */
34
9e2516d6 35int AddFSToGroup(); /* Add a filesystem to an fsgroup */
36int RemoveFSFromGroup(); /* remove a filesystem from an fsgroup */
37int ChangeFSGroupOrder(); /* change the sortorder on an fsgrouop */
38int FSGroupHelp(); /* print info about fsgroups */
39
ec47f9a6 40int GetFSAlias(); /* Gets the value for a Filsys alias. */
41int CreateFSAlias(); /* Creates a new alias in the database. */
42int DeleteFSAlias(); /* Deletes an FS alias from the database. */
43
44int AttachHelp(); /* Help information specific to filsys. */
45
46/* cluster.c */
47
48int ShowMachineInfo(); /* Show information on a(many) machine(s). */
49int AddMachine(); /* add a new machine to teh database. */
50int UpdateMachine(); /* updates machine information. */
51int DeleteMachine(); /* delete a machine from the database. */
52int MachineToClusterMap(); /* show machines in clusters. */
53int AddMachineToCluster(); /* add a machine to a new cluster. */
54int RemoveMachineFromCluster(); /* remove a machine from a cluster. */
55
56int ShowClusterInfo(); /* Show information about a cluster. */
57int AddCluster(); /* adds a new cluster to the database. */
58int UpdateCluster(); /* updates information about a cluster. */
59int DeleteCluster(); /* removes a cluste from the database. */
60
61int ShowClusterInfo(); /* show information about a cluster. */
62int MachinesInCluster(); /* list all machines in a give cluster. */
63int AddCluster();
64int UpdateCluster(); /* add, update, and delete clusters. */
65int DeleteCluster();
66
67int ShowClusterData(); /* Show, add, and remove data */
68int AddClusterData(); /* associated with a cluster. */
69int RemoveClusterData();
70
71/* delete.c */
72
73int DeleteList(), DeleteUser();
74
75/* lists.c */
76
77int ListByMember(); /* list all list to which a member belongs. */
78int ListByAdministrator(); /* list all list to which a given member can
79 administer. */
80int ListAllGroups();
81int ListAllPublicMailLists(); /* List misc. types of lists. */
82int ListAllMailLists();
83
84int AddMember(), DeleteMember(); /* add and delete mamber of current list. */
85int ListAllMembers();
86int ListUserMembers(); /* List various members of the current list. */
87int ListListMembers();
88int ListStringMembers();
89
90int ShowListInfo(); /* show info about a list. */
91int UpdateList(); /* change info about a list. */
92int InterRemoveItemFromLists(); /* Interactivly remove an item from all lists*/
93
94int ListmaintMemberMenuEntry(); /* entry and exit functions for member menu. */
95int ListmaintMemberMenuExit();
96int ListHelp(); /* help function for lists. */
97
98/* nfs.c */
99
100int ShowNFSService(); /* functions that manipulate nfs physical */
101int AddNFSService(); /* services. */
102int UpdateNFSService();
103int DeleteNFSService();
104
105/* pobox.c */
106
107int GetUserPOBox(); /* operate on user post office boxes. */
108int SetUserPOBox();
109int RemoveUserPOBox();
110
111/* quota.c */
112
113int ShowDefaultQuota(); /* show or change system default quota. */
114int ChangeDefaultQuota();
115
9550857c 116int GetQuota(); /* modify a user's quota. */
117int GetQuotaByFilesys();
118int AddQuota();
119int UpdateQuota();
120int DeleteQuota();
ec47f9a6 121
122/* user.c */
123
124int ShowUserByLogin(); /* misc. ways to show user. */
125int ShowUserByName();
126int ShowUserByClass();
81701699 127int ShowUserById();
ec47f9a6 128int AddNewUser(); /* add a new user to the database. */
129int RegisterUser(); /* register a user. */
130int UpdateUser(); /* modify info about a user. */
8a48c3f7 131int DeactivateUser(); /* change a user's status to DELETED */
ec47f9a6 132int ChangeUserPOBox(); /* change the PO box of a user. */
133int DeleteUserByUid(); /* detete a user by uid. */
2246fa87 134int GetKrbmap(); /* fetch a user->kerberos mapping */
135int AddKrbmap();
136int DeleteKrbmap();
ec47f9a6 137
4bfa54ec 138/* printer.c */
139int AddPcap();
140int GetPcap();
141int ChngPcap();
142int DeletePcap();
2246fa87 143int GetPalladium(), AddPalladium(), ChngPalladium(), DeletePalladium();
144int ShowPalladiumAlias(), AddPalladiumAlias(), DeletePalladiumAlias();
4bfa54ec 145
c6ce81c2 146/* zephyr.c */
147int AddZephyr();
148int GetZephyr();
149int ChngZephyr();
150int DeleteZephyr();
151
4bfa54ec 152/* dcm.c */
153int EnableDcm(), InProgress(), DcmFailed(), Dcm();
154int enabledcm(), showserv(), addserv(), updateserv(), delserv();
155int showhost(), resetsrverr(), resetsrvc(), resethosterr();
156int resethost(), sethostor(), addhost(), updatehost(), delhost();
157int inprogress(), failed(), dcm();
158
58c38ae1 159/* misc.c */
160int TableStats(), ShowClients(), ShowValue(), ShowAlias();
161
ec47f9a6 162/* utils.c */
163
164/*
165 * For descriptions of all of these functions see the
166 * internals documentation.
167 */
168
169void EncryptMITID(); /* Encrypts an mit id number. */
c5ad9c7b 170char **CopyInfo(); /* Copies a NULL terminated array of strings */
ec47f9a6 171void FreeInfo(); /* Frees a NULL terminated array of strings. */
172void FreeQueue(); /* Frees an entire queue. */
173void FreeAndClear(); /* Frees a single pointer. */
174void Loop(); /* Performs an operation on every item in
175 a queue. */
176void QueryLoop(); /* Queries the user before performing
177 an operation on every item in
178 a queue. */
179void RemoveHyphens(); /* Removes the hyphens from a string. */
180void SlipInNewName(); /* Slips a new name into an argument list in
181 the correct place. */
182int CountArgs(); /* Counts the strings in a NULL terminated
183 array. */
184int GetValueFromUser(); /* Updates value by asking the user. */
185int GetYesNoValueFromUser(); /* Updates a yes/no value by asking the user.*/
186int GetFSTypes(); /* Gets Filesystem types from a user. */
187int NullFunc(); /* NULL return function. */
188int Print(); /* Prints out array of strings. */
189int PrintByType(); /* Prints out array of strings by type. */
190int PrintHelp(); /* Prints out help information. */
191int StoreInfo(); /* Stores info returned from and SMS query
192 in a queue. */
193int Scream(); /* Query Return function that yells if called*/
194int ToggleVerboseMode(); /* Turns on and off the verbose variable. */
195char *CanonicalizeHostname(); /* this is what it does. */
196char *NullPrint(); /* Prints nothing, returns argv[0]. */
197char *Strsave(); /* allocated space for a copy of the string. */
3ceae461 198char *atot(); /* convert unix time to date string */
ec47f9a6 199struct qelem * QueueTop(); /* Finds the top of a queue. */
200Bool Confirm(); /* Confirms a delete operation, with user. */
201Bool YesNoQuestion(); /* Asks a user a yes no type question. */
202Bool YesNoQuitQuestion(); /* Asks a user a yes - no - quit question. */
203
c5ad9c7b 204#endif /* _f_defs_ */ /* Do Not Add Anything After This Line */
ec47f9a6 205
206
This page took 0.184966 seconds and 5 git commands to generate.