Changeset 54962 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Mar 26, 2015 9:16:03 AM (10 years ago)
- Location:
- trunk/src/VBox/Runtime/r3/freebsd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/freebsd/fileaio-freebsd.cpp
r45678 r54962 125 125 &cbParameter, /* Size of the memory pointed to. */ 126 126 NULL, /* Where the new value is located. */ 127 NULL);/* Where the size of the new value is stored. */127 0); /* Where the size of the new value is stored. */ 128 128 if (rcBSD == -1) 129 129 { -
trunk/src/VBox/Runtime/r3/freebsd/mp-freebsd.cpp
r44529 r54962 94 94 size_t cbDriver = sizeof(szDriver); 95 95 RT_ZERO(szDriver); /* this shouldn't be necessary. */ 96 int rcBsd = sysctlbyname(szName, szDriver, &cbDriver, NULL, NULL);96 int rcBsd = sysctlbyname(szName, szDriver, &cbDriver, NULL, 0); 97 97 if (rcBsd == 0) 98 98 return true; … … 155 155 156 156 /* CPU's have a common frequency. */ 157 int rc = sysctlbyname("dev.cpu.0.freq", &uFreqCurr, &cbParameter, NULL, NULL);157 int rc = sysctlbyname("dev.cpu.0.freq", &uFreqCurr, &cbParameter, NULL, 0); 158 158 if (rc) 159 159 return 0; … … 177 177 * levels but only the first one. 178 178 */ 179 int rc = sysctlbyname("dev.cpu.0.freq_levels", szFreqLevels, &cbFreqLevels, NULL, NULL);179 int rc = sysctlbyname("dev.cpu.0.freq_levels", szFreqLevels, &cbFreqLevels, NULL, 0); 180 180 if ( (rc && (errno != ENOMEM)) 181 181 || (cbFreqLevels == 0))
Note:
See TracChangeset
for help on using the changeset viewer.