VirtualBox

Changeset 53998 in vbox for trunk/src/VBox/ExtPacks


Ignore:
Timestamp:
Jan 28, 2015 12:13:07 AM (10 years ago)
Author:
vboxsync
Message:

bzero/bcopy fixes.

Location:
trunk/src/VBox/ExtPacks/VBoxDTrace/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceLibCWrappers.h

    r53996 r53998  
    8585#define strndup(a_psz, a_cchMax)    ((char *)RTMemDupEx(a_psz, RTStrNLen(a_psz, a_cchMax), 1))
    8686
     87/* For various stupid reasons, these are duplicated in VBoxDTraceTypes.h. */
     88#undef bcopy
     89#define bcopy(a_pSrc, a_pDst, a_cb) ((void)memmove(a_pDst, a_pSrc, a_cb))
     90#undef bzero
     91#define bzero(a_pDst, a_cb)         ((void)memset(a_pDst, 0, a_cb))
     92#undef bcmp
     93#define bcmp(a_p1, a_p2, a_cb)      (memcmp(a_p1, a_p2, a_cb))
     94
    8795#endif
    8896
  • trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h

    r53995 r53998  
    134134 * string
    135135 */
     136#undef bcopy
     137#define bcopy(a_pSrc, a_pDst, a_cb) ((void)memmove(a_pDst, a_pSrc, a_cb))
     138#undef bzero
     139#define bzero(a_pDst, a_cb)         ((void)memset(a_pDst, 0, a_cb))
     140#undef bcmp
     141#define bcmp(a_p1, a_p2, a_cb)      (memcmp(a_p1, a_p2, a_cb))
    136142#if defined(_MSC_VER) || defined(IN_RING0)
    137 # define bcopy(a_pSrc, a_pDst, a_cb) memmove(a_pDst, a_pSrc, a_cb)
    138 # define bzero(a_pDst, a_cb)        RT_BZERO(a_pDst, a_cb)
    139 # define bcmp(a_p1, a_p2, a_cb)     memcmp(a_p1, a_p2, a_cb)
    140143# define snprintf                   RTStrPrintf
    141144# define vsnprintf                  RTStrPrintfV
Note: See TracChangeset for help on using the changeset viewer.

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