/*********************************************************
- * Copyright (c) 1998-2023 VMware, Inc. All rights reserved.
+ * Copyright (c) 1998-2024 Broadcom. All rights reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* Have a long enough delta to ensure that we have really missed a
* collection.
*/
- if (((int) delta * 1000) >= (2 * guestInfoPollInterval)) {
+ if (((int64)delta * 1000) >= ((int64) 2 * guestInfoPollInterval)) {
gchar *msg, *rpcMsg;
msg = g_strdup_printf(
"*** WARNING: GuestInfo collection interval longer than "
- "expected; actual=%d sec, expected=%d sec. ***\n",
- (int) delta, guestInfoPollInterval / 1000);
+ "expected; actual=%"FMT64"d sec, expected=%d sec. ***\n",
+ (int64) delta, guestInfoPollInterval / 1000);
rpcMsg = g_strdup_printf("log %s", msg);
/*********************************************************
- * Copyright (c) 2007-2023 VMware, Inc. All rights reserved.
+ * Copyright (c) 2007-2024 Broadcom. All rights reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
const char *name,
uint64 pid,
const char *user,
- int start,
+ time_t start,
int exitCode,
- int exitTime);
+ time_t exitTime);
static VixError VixToolsListDirectory(VixCommandRequestHeader *requestMsg,
size_t maxBufferSize,
"<debugged>%d</debugged>"
#endif
"<user>%s</user>"
- "<start>%d</start>"
+ "<start>%"FMT64"d</start>"
"</proc>",
cmdNamePtr, name, (int) procInfo->procId,
#if defined(_WIN32)
(int) procInfo->procDebugged,
#endif
- user, (int) procInfo->procStartTime);
+ user, (int64) procInfo->procStartTime);
if (NULL == procBufPtr) {
err = VIX_E_OUT_OF_MEMORY;
goto quit;
spList->fullCommandLine,
spList->pid,
spList->user,
- (int) spList->startTime,
+ spList->startTime,
spList->exitCode,
- (int) spList->endTime);
+ spList->endTime);
if (VIX_OK != err) {
goto quit;
}
spList->fullCommandLine,
spList->pid,
spList->user,
- (int) spList->startTime,
+ spList->startTime,
spList->exitCode,
- (int) spList->endTime);
+ spList->endTime);
if (VIX_OK != err) {
goto quit;
}
procInfo->procId,
(NULL == procInfo->procOwner)
? "" : procInfo->procOwner,
- (int) procInfo->procStartTime,
+ procInfo->procStartTime,
0, 0);
if (VIX_OK != err) {
goto quit;
procInfo->procId,
(NULL == procInfo->procOwner)
? "" : procInfo->procOwner,
- (int) procInfo->procStartTime,
+ procInfo->procStartTime,
0, 0);
if (VIX_OK != err) {
goto quit;
const char *name, // IN
uint64 pid, // IN
const char *user, // IN
- int start, // IN
+ time_t start, // IN
int exitCode, // IN
- int exitTime) // IN
+ time_t exitTime) // IN
{
VixError err;
char *escapedName = NULL;
"<name>%s</name>"
"<pid>%"FMT64"d</pid>"
"<user>%s</user>"
- "<start>%d</start>"
+ "<start>%"FMT64"d</start>"
"<eCode>%d</eCode>"
- "<eTime>%d</eTime>"
+ "<eTime>%"FMT64"d</eTime>"
"</proc>",
cmdNamePtr, escapedName, pid, escapedUser,
- start, exitCode, exitTime);
+ (int64) start, exitCode, (int64) exitTime);
if (NULL == procInfoEntry) {
err = VIX_E_OUT_OF_MEMORY;
goto quit;