VirtualBox

Ignore:
Timestamp:
Nov 19, 2017 2:27:58 PM (7 years ago)
Author:
vboxsync
Message:

iprt/dir: Morphing PRTDIR into a handle named RTDIR. (Been wanting to correct this for years. Don't know why I makde it a pointer rather than an abstrct handle like everything else.)

File:
1 edited

Legend:

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

    r66829 r69753  
    19701970        DIR *dirp;
    19711971#else
    1972         PRTDIR pDir;
     1972        RTDIR hDir;
    19731973        RTDIRENTRY DirEntry;
    19741974        const char *p;
     
    19881988        }
    19891989#else
    1990         rc = RTDirOpen(&pDir, path);
     1990        rc = RTDirOpen(&hDir, path);
    19911991        if (RT_FAILURE(rc)) {
    19921992                dt_dprintf("skipping lib dir %s: %s\n", path, RTErrGetShort(rc));
     
    19991999        while ((dp = readdir(dirp)) != NULL) {
    20002000#else
    2001         while (RT_SUCCESS(RTDirRead(pDir, &DirEntry, 0))) {
     2001        while (RT_SUCCESS(RTDirRead(hDir, &DirEntry, 0))) {
    20022002                struct FakeDirEntry {
    20032003                        const char *d_name;
     
    20412041        (void) closedir(dirp);
    20422042#else
    2043         RTDirClose(pDir);
     2043        RTDirClose(hDir);
    20442044#endif
    20452045        /*
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