VirtualBox

Changeset 107099 in vbox for trunk/include


Ignore:
Timestamp:
Nov 22, 2024 1:44:29 AM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166065
Message:

IPRT: Adding RTArchValToString and RTSystemGetNativeArch for detecting win.amd64 binaries running in an emulator in win.arm64 and suchlike. jiraref:VBP-1466

Location:
trunk/include/iprt
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mangling.h

    r107064 r107099  
    425425# define RTAcpiTblUuidAppend                            RT_MANGLER(RTAcpiTblUuidAppend)
    426426# define RTAcpiTblUuidAppendFromStr                     RT_MANGLER(RTAcpiTblUuidAppendFromStr)
     427# define RTArchValToString                              RT_MANGLER(RTArchValToString)
    427428# define RTAssertAreQuiet                               RT_MANGLER(RTAssertAreQuiet)
    428429# define RTAssertMayPanic                               RT_MANGLER(RTAssertMayPanic)
     
    25102511# define RTSymlinkRead                                  RT_MANGLER(RTSymlinkRead)
    25112512# define RTSymlinkReadA                                 RT_MANGLER(RTSymlinkReadA)
     2513# define RTSystemGetNativeArch                          RT_MANGLER(RTSystemGetNativeArch)
    25122514# define RTSystemGetPageSize                            RT_MANGLER(RTSystemGetPageSize)
    25132515# define RTSystemGetPageOffsetMask                      RT_MANGLER(RTSystemGetPageOffsetMask)
  • trunk/include/iprt/system.h

    r106061 r107099  
    192192 */
    193193RTDECL(size_t) RTSystemPageAlignSize(size_t cb);
     194
     195
     196/**
     197 * Get the architecture the OS is actually running on.
     198 *
     199 * This bypasses WoW64, Rosetta(2), and similar application compatibility
     200 * emulators.
     201 *
     202 * @returns RT_ARCH_VAL_XXX
     203 *
     204 * @sa      RTArchValToString
     205 */
     206RTDECL(uint32_t) RTSystemGetNativeArch(void);
    194207
    195208
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette