VirtualBox

Changeset 19040 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Apr 21, 2009 2:02:36 AM (16 years ago)
Author:
vboxsync
Message:

IPRT/fileaio-linux.cpp: A quick code review and cleanup:

  • RTFileAioCtxWait was a bit weird, tried to fix it.
  • Added magics to the handle structures and checks for them in the IPRT tradition.
  • Also follow the tradition for internal names.
  • Limit variable scope where possible.
  • The typical style adjustments.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/magics.h

    r18364 r19040  
    4141/** The value of RTDIR::u32Magic after RTDirClose().  */
    4242#define RTDIR_MAGIC_DEAD            0x19950829
     43/** The value of RTFILEAIOCTXINT::u32Magic. (Howard Phillips Lovecraft) */
     44#define RTFILEAIOCTX_MAGIC          0x18900820
     45/** The value of RTFILEAIOCTXINT::u32Magic after RTFileAioCtxDestroy(). */
     46#define RTFILEAIOCTX_MAGIC_DEAD     0x19370315
     47/** The value of RTFILEAIOREQINT::u32Magic. (Stephen Edwin King)  */
     48#define RTFILEAIOREQ_MAGIC          0x19470921
    4349/** Magic number for RTHANDLETABLEINT::u32Magic. (Hitomi Kanehara) */
    4450#define RTHANDLETABLE_MAGIC         0x19830808
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