/*********************************************************
- * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2018 VMware, Inc. All rights reserved.
*
* 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
HostinfoProcessQuery Hostinfo_QueryProcessExistence(int pid);
-char *Hostinfo_NameGet(void); /* don't free result */
-char *Hostinfo_HostName(void); /* free result */
+char *Hostinfo_NameGet(void); // Don't free result
+char *Hostinfo_HostName(void); // free result
+char *Hostinfo_GetOSName(void); // free result
+char *Hostinfo_GetOSGuestString(void); // free result
void Hostinfo_MachineID(uint32 *hostNameHash,
uint64 *hostHardwareID);
if (len != -1) {
if (Hostinfo_GetSystemBitness() == 64) {
- len = Str_Snprintf(osName, sizeof osName, "%s%d%s", distroShort,
- Hostinfo_OSVersion(0), STR_OS_64BIT_SUFFIX);
+ len = Str_Snprintf(osName, sizeof osName, "%s%s", distroShort,
+ STR_OS_64BIT_SUFFIX);
} else {
- len = Str_Snprintf(osName, sizeof osName, "%s%d", distroShort,
- Hostinfo_OSVersion(0));
+ len = Str_Snprintf(osName, sizeof osName, "%s", distroShort);
}
}
if (len != -1) {
if (Hostinfo_GetSystemBitness() == 64) {
- len = Str_Snprintf(osName, sizeof osName, "%s%d%s", distroShort,
- Hostinfo_OSVersion(0), STR_OS_64BIT_SUFFIX);
+ len = Str_Snprintf(osName, sizeof osName, "%s%s", distroShort,
+ STR_OS_64BIT_SUFFIX);
} else {
- len = Str_Snprintf(osName, sizeof osName, "%s%d", distroShort,
- Hostinfo_OSVersion(0));
+ len = Str_Snprintf(osName, sizeof osName, "%s", distroShort);
}
}