1
/*********************************************************
2
* Copyright (C) 1998 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License as published
6
* by the Free Software Foundation version 2.1 and no later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
11
* License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
*********************************************************/
22
* Stub for unuseful functions. Stolen from one of the other
23
* 13 stub.c files in bora. This is necessary because the
24
* toolbox uses FileIO_* API, which in turn uses these suckers
37
#include <sys/types.h>
47
#include "vm_version.h"
48
#include "vm_assert.h"
57
#if defined(N_PLAT_NLM)
59
File_GetTmpDir(Bool useConf)
67
*----------------------------------------------------------------------
81
*----------------------------------------------------------------------
85
StubVprintf(const char *prefix,
91
/* Doesn't work yet. [greg] */
93
str = Str_Vasprintf(NULL, fmt, args);
96
Debug("%s: %s", prefix, str);
97
printf("%s: %s", prefix, str);
98
// how do we print to stderr? fprintf(stderr,...) doesn't work
100
fprintf(stderr, "%s: %s", prefix, str);
109
Panic(const char *fmt, ...)
114
StubVprintf("PANIC", fmt, args);
123
Panic_PostPanicMsg(const char *format,
128
Log_DisableThrottling(void)
132
Log_SetAlwaysKeep(Bool unused)
137
Config_GetBool(Bool defaultValue,
146
Config_GetLong(int32 defaultValue,
161
StubVprintf("Log", fmt, args);
166
Warning(const char *fmt,
172
StubVprintf("Warning", fmt, args);
178
Msg_Append(const char *idFmt,
184
va_start(args, idFmt);
185
str = Str_Vasprintf(NULL, idFmt, args);
188
Warning("Msg_Append: %s\n", str);
193
Msg_Question(void *buttons,
202
str = Str_Vasprintf(NULL, fmt, args);
205
Warning("Msg_Question: %s\n", str);
211
typedef int MsgSeverity;
214
Msg_Post(MsgSeverity severity,
221
va_start(args, idFmt);
222
str = Str_Vasprintf(NULL, idFmt, args);
225
Warning("Msg_Post: %s\n", str);
232
Preference_GetBool(Bool defaultValue,
240
Preference_GetString(char *defaultValue,
248
Poll_CB_RTime(PollerFunction f, // IN
249
void *clientData, // IN
252
struct DeviceLock *lock) // IN
255
return VMWARE_STATUS_SUCCESS;
260
Poll_CB_RTimeRemove(PollerFunction f, // IN
261
void *clientData, // IN