MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / SRVRMGR_msg_get

Function SRVRMGR_msg_get

src/utilities/ibmgr/srvrmgr.cpp:182–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181
182void SRVRMGR_msg_get( USHORT number, TEXT * msg)
183{
184/**************************************
185 *
186 * S R V R M G R _ m s g _ g e t
187 *
188 **************************************
189 *
190 * Functional description
191 * Retrieve a message from the error file
192 *
193 **************************************/
194
195 /* The following line will be the future of this function
196
197 static const SafeArg arg;
198 fb_msg_format (0, MSG_FAC, number, MSG_LEN, msg, arg);
199 */
200
201 const char* rs = 0;
202
203 switch (number)
204 {
205 case MSG_PROMPT:
206 rs = "FBMGR>";
207 break;
208 case MSG_OPSPEC:
209 rs = "operation already specified";
210 break;
211 case MSG_NOOPSPEC:
212 rs = "no operation specified";
213 break;
214 case MSG_INVSWOP:
215 rs = "illegal operation/switch combination";
216 break;
217 case MSG_SHUTDOWN:
218 rs = "warning: shutdown is in progress";
219 break;
220 case MSG_CANTCHANGE:
221 rs = "can not change host, password or user";
222 break;
223 case MSG_VERSION:
224 rs = "fbmgr version";
225 break;
226 case MSG_INVSW:
227 rs = "invalid switch";
228 break;
229 case MSG_AMBSW:
230 rs = "ambiguous switch";
231 break;
232 case MSG_INVSWSW:
233 rs = "invalid switch combination";
234 break;
235 case MSG_WARNPASS:
236 rs = "warning: only 8 significant bytes of password used";
237 break;
238 case MSG_INVUSER:
239 rs = "invalid user (only 32 bytes allowed";

Callers 5

start_serverFunction · 0.85
CLIB_ROUTINE mainFunction · 0.85
get_lineFunction · 0.85
get_switchesFunction · 0.85
parse_cmd_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected