VirtualBox

Ignore:
Timestamp:
Jan 2, 2015 12:40:55 PM (10 years ago)
Author:
vboxsync
Message:

VBoxDTrace: Hello world works. (r65)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c

    r53687 r53688  
    4848# endif
    4949# include <VBox/sup.h>
     50# include <VBox/err.h>
    5051#endif /* VBOX */
    5152
     
    499500        rc = SUPR3TracerIoCtl(val, (uintptr_t)arg, &iRetVal);
    500501        if (RT_FAILURE(rc)) {
    501                 errno = RTErrConvertToErrno(rc);
     502                switch (rc) {
     503                case VERR_SUPDRV_TRACER_NOT_OPENED: errno = EBADF; break;
     504                default:
     505                        errno = RTErrConvertToErrno(rc);
     506                }
    502507                return (-1);
    503508        }
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