VirtualBox

Changeset 96070 in vbox


Ignore:
Timestamp:
Aug 5, 2022 11:08:39 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152869
Message:

IPRT/nocrt: atexit, fstat, isatty, read, unlink, rand, qsort and qsort_r. bugref:10261

Location:
trunk
Files:
8 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nocrt/stdlib.h

    r96017 r96070  
    4444typedef FNRTNOCRTATEXITCALLBACK *PFNRTNOCRTATEXITCALLBACK;
    4545#if defined(_MSC_VER) && defined(RT_WITHOUT_NOCRT_WRAPPERS) /* Clashes with compiler internal prototype or smth. */
    46 int          rtnocrt_atexit(PFNRTNOCRTATEXITCALLBACK) RT_NOEXCEPT;
    47 # define     atexit rtnocrt_atexit
     46int          nocrt_atexit(PFNRTNOCRTATEXITCALLBACK) RT_NOEXCEPT;
     47# define     atexit nocrt_atexit
    4848#else
    4949int          RT_NOCRT(atexit)(PFNRTNOCRTATEXITCALLBACK) RT_NOEXCEPT;
  • trunk/include/iprt/nocrt/unistd.h

    r96018 r96070  
    3232#include <iprt/nocrt/sys/types.h>
    3333
     34#ifdef IPRT_NO_CRT_FOR_3RD_PARTY
    3435
    35 #ifdef IPRT_NO_CRT_FOR_3RD_PARTY
     36RT_C_DECLS_BEGIN
    3637
    3738int             RT_NOCRT(access)(const char *, int) RT_NOEXCEPT;
     
    8182# endif
    8283
     84RT_C_DECLS_END
     85
    8386#endif /* IPRT_NO_CRT_FOR_3RD_PARTY */
    8487
  • trunk/src/VBox/Runtime/Makefile.kmk

    r96067 r96070  
    18001800        ,$(RuntimeBaseR3_SOURCES)) \
    18011801       \
     1802        common/file/nocrt-fstat.cpp \
     1803        common/file/nocrt-isatty.cpp \
     1804        common/file/nocrt-read.cpp \
     1805        common/path/nocrt-unlink.cpp \
     1806        common/rand/nocrt-rand.cpp \
     1807        common/sort/nocrt-qsort.cpp \
     1808        common/sort/nocrt-qsort_r.cpp \
    18021809        common/string/nocrt-strdup.cpp \
    18031810        common/string/nocrt-stricmp.cpp \
  • trunk/src/VBox/Runtime/common/compiler/vcc/atexit-vcc.cpp

    r95870 r96070  
    5959
    6060/* Note! not using atexit here because it'll clash with built-in prototype.  */
    61 extern "C" int rtnocrt_atexit(PFNRTNOCRTATEXITCALLBACK pfnCallback) RT_NOEXCEPT
     61extern "C" int nocrt_atexit(PFNRTNOCRTATEXITCALLBACK pfnCallback) RT_NOEXCEPT
    6262{
    6363    AssertPtr(pfnCallback);
     
    9595    return 0;
    9696}
     97RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(atexit);
    9798
    9899
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