/* $Id: magics.h 32751 2010-09-24 09:34:18Z vboxsync $ */ /** @file * IPRT - Internal header defining The Magic Numbers. */ /* * Copyright (C) 2007-2008 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the terms of the GNU * General Public License (GPL) as published by the Free Software * Foundation, in version 2 as it comes in the "COPYING" file of the * VirtualBox OSE distribution. VirtualBox OSE is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. * * The contents of this file may alternatively be used under the terms * of the Common Development and Distribution License Version 1.0 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the * VirtualBox OSE distribution, in which case the provisions of the * CDDL are applicable instead of those of the GPL. * * You may elect to license modified versions of this file under the * terms and conditions of either the GPL or the CDDL or both. */ #ifndef ___internal_magics_h #define ___internal_magics_h /** @name Magic Numbers. * @{ */ /** Magic number for RTDBGMODINT::u32Magic. (Charles Lloyd) */ #define RTDBGAS_MAGIC UINT32_C(0x19380315) /** Magic number for RTDBGMODINT::u32Magic. (Keith Jarrett) */ #define RTDBGMOD_MAGIC UINT32_C(0x19450508) /** Magic number for RTDBGMODVTIMG::u32Magic. (Jack DeJohnette) */ #define RTDBGMODVTDBG_MAGIC UINT32_C(0x19420809) /** Magic number for RTDBGMODVTIMG::u32Magic. (Cecil McBee) */ #define RTDBGMODVTIMG_MAGIC UINT32_C(0x19350419) /** The value of RTDIR::u32Magic. (Michael Ende) */ #define RTDIR_MAGIC UINT32_C(0x19291112) /** The value of RTDIR::u32Magic after RTDirClose(). */ #define RTDIR_MAGIC_DEAD UINT32_C(0x19950829) /** The value of RTFILEAIOCTXINT::u32Magic. (Howard Phillips Lovecraft) */ #define RTFILEAIOCTX_MAGIC UINT32_C(0x18900820) /** The value of RTFILEAIOCTXINT::u32Magic after RTFileAioCtxDestroy(). */ #define RTFILEAIOCTX_MAGIC_DEAD UINT32_C(0x19370315) /** The value of RTFILEAIOREQINT::u32Magic. (Stephen Edwin King) */ #define RTFILEAIOREQ_MAGIC UINT32_C(0x19470921) /** The value of RTENVINTERNAL::u32Magic. (Rumiko Takahashi) */ #define RTENV_MAGIC UINT32_C(0x19571010) /** Magic number for RTHANDLETABLEINT::u32Magic. (Hitomi Kanehara) */ #define RTHANDLETABLE_MAGIC UINT32_C(0x19830808) /** Magic number for RTHEAPOFFSETINTERNAL::u32Magic. (Neal Town Stephenson) */ #define RTHEAPOFFSET_MAGIC UINT32_C(0x19591031) /** Magic number for RTHEAPSIMPLEINTERNAL::uMagic. (Kyoichi Katayama) */ #define RTHEAPSIMPLE_MAGIC UINT32_C(0x19590105) /** The magic value for RTLDRMODINTERNAL::u32Magic. (Alan Moore) */ #define RTLDRMOD_MAGIC UINT32_C(0x19531118) /** The magic value for RTLOCALIPCSERVER::u32Magic. (Naoki Yamamoto) */ #define RTLOCALIPCSERVER_MAGIC UINT32_C(0x19600201) /** The magic value for RTLOCALIPCSERVER::u32Magic. (Katsuhiro Otomo) */ #define RTLOCALIPCSESSION_MAGIC UINT32_C(0x19530414) /** The magic value for RTLOCKVALCLASSINT::u32Magic. (Thomas Mann) */ #define RTLOCKVALCLASS_MAGIC UINT32_C(0x18750605) /** The magic value for RTLOCKVALCLASSINT::u32Magic after destruction. */ #define RTLOCKVALCLASS_MAGIC_DEAD UINT32_C(0x19550812) /** The magic value for RTLOCKVALRECEXCL::u32Magic. (Vladimir Vladimirovich Nabokov) */ #define RTLOCKVALRECEXCL_MAGIC UINT32_C(0x18990422) /** The dead magic value for RTLOCKVALRECEXCL::u32Magic. */ #define RTLOCKVALRECEXCL_MAGIC_DEAD UINT32_C(0x19770702) /** The magic value for RTLOCKVALRECSHRD::u32Magic. (Agnar Mykle) */ #define RTLOCKVALRECSHRD_MAGIC UINT32_C(0x19150808) /** The magic value for RTLOCKVALRECSHRD::u32Magic after deletion. */ #define RTLOCKVALRECSHRD_MAGIC_DEAD UINT32_C(0x19940115) /** The magic value for RTLOCKVALRECSHRDOWN::u32Magic. (Jens Ingvald Bjoerneboe) */ #define RTLOCKVALRECSHRDOWN_MAGIC UINT32_C(0x19201009) /** The magic value for RTLOCKVALRECSHRDOWN::u32Magic after deletion. */ #define RTLOCKVALRECSHRDOWN_MAGIC_DEAD UINT32_C(0x19760509) /** The magic value for RTLOCKVALRECNEST::u32Magic. (Anne Desclos) */ #define RTLOCKVALRECNEST_MAGIC UINT32_C(0x19071123) /** The magic value for RTLOCKVALRECNEST::u32Magic after deletion. */ #define RTLOCKVALRECNEST_MAGIC_DEAD UINT32_C(0x19980427) /** Magic number for RTMEMCACHEINT::u32Magic. (Joseph Weizenbaum) */ #define RTMEMCACHE_MAGIC UINT32_C(0x19230108) /** Dead magic number for RTMEMCACHEINT::u32Magic. */ #define RTMEMCACHE_MAGIC_DEAD UINT32_C(0x20080305) /** The magic value for RTMEMPOOL::u32Magic. (Jane Austin) */ #define RTMEMPOOL_MAGIC UINT32_C(0x17751216) /** The magic value for RTMEMPOOL::u32Magic after RTMemPoolDestroy. */ #define RTMEMPOOL_MAGIC_DEAD UINT32_C(0x18170718) /** The magic value for heap blocks. (Edgar Allan Poe) */ #define RTMEMHDR_MAGIC UINT32_C(0x18090119) /** The value of RTPIPEINTERNAL::u32Magic. (Frank Schaetzing) */ #define RTPIPE_MAGIC UINT32_C(0x19570528) /** The value of RTPOLLSETINTERNAL::u32Magic. (Ai Yazawa) */ #define RTPOLLSET_MAGIC UINT32_C(0x19670307) /** RTR0MEMOBJ::u32Magic. (Masakazu Katsura) */ #define RTR0MEMOBJ_MAGIC UINT32_C(0x19611210) /** RTRANDINT::u32Magic. (Alan Moore) */ #define RTRANDINT_MAGIC UINT32_C(0x19531118) /** Magic for the event semaphore structure. (Neil Gaiman) */ #define RTSEMEVENT_MAGIC UINT32_C(0x19601110) /** Magic for the multiple release event semaphore structure. (Isaac Asimov) */ #define RTSEMEVENTMULTI_MAGIC UINT32_C(0x19200102) /** Dead magic value for multiple release event semaphore structures. */ #define RTSEMEVENTMULTI_MAGIC_DEAD UINT32_C(0x19920406) /** Magic value for RTSEMFASTMUTEXINTERNAL::u32Magic. (John Ronald Reuel Tolkien) */ #define RTSEMFASTMUTEX_MAGIC UINT32_C(0x18920103) /** Dead magic value for RTSEMFASTMUTEXINTERNAL::u32Magic. */ #define RTSEMFASTMUTEX_MAGIC_DEAD UINT32_C(0x19730902) /** Magic for the mutex semaphore structure. (Douglas Adams) */ #define RTSEMMUTEX_MAGIC UINT32_C(0x19520311) /** Dead magic for the mutex semaphore structure. */ #define RTSEMMUTEX_MAGIC_DEAD UINT32_C(0x20010511) /** Magic for the spinning mutex semaphore structure. (Natsume Soseki) */ #define RTSEMSPINMUTEX_MAGIC UINT32_C(0x18670209) /** Dead magic value for RTSEMSPINMUTEXINTERNAL::u32Magic. */ #define RTSEMSPINMUTEX_MAGIC_DEAD UINT32_C(0x19161209) /** RTSEMRWINTERNAL::u32Magic value. (Kosuke Fujishima) */ #define RTSEMRW_MAGIC UINT32_C(0x19640707) /** RTSEMXROADSINTERNAL::u32Magic value. (Kenneth Elton "Ken" Kesey) */ #define RTSEMXROADS_MAGIC UINT32_C(0x19350917) /** RTSEMXROADSINTERNAL::u32Magic value after RTSemXRoadsDestroy. */ #define RTSEMXROADS_MAGIC_DEAD UINT32_C(0x20011110) /** The magic value for RTSOCKETINT::u32Magic. (Stanislaw Lem) */ #define RTSOCKET_MAGIC UINT32_C(0x19210912) /** The magic value for RTSOCKETINT::u32Magic after destruction. */ #define RTSOCKET_MAGIC_DEAD UINT32_C(0x20060326) /** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */ #define RTSPINLOCK_MAGIC UINT32_C(0x19480428) /** Magic value for RTSTRCACHE::u32Magic. (Sir Arthur Charles Clarke) */ #define RTSTRCACHE_MAGIC UINT32_C(0x19171216) /** Magic value for RTSTRCACHE::u32Magic after RTStrCacheDestroy. */ #define RTSTRCACHE_MAGIC_DEAD UINT32_C(0x20080319) /** The value of RTSTREAM::u32Magic for a valid stream. */ #define RTSTREAM_MAGIC UINT32_C(0xe44e44ee) /** Magic value for RTTCPSERVER::u32Magic. (Jan Garbarek) */ #define RTTCPSERVER_MAGIC UINT32_C(0x19540304) /** RTTESTINT::u32Magic value. (Daniel Kehlmann) */ #define RTTESTINT_MAGIC UINT32_C(0x19750113) /** RTTHREADINT::u32Magic value. (Gilbert Keith Chesterton) */ #define RTTHREADINT_MAGIC UINT32_C(0x18740529) /** RTTHREADINT::u32Magic value for a dead thread. */ #define RTTHREADINT_MAGIC_DEAD UINT32_C(0x19360614) /** Magic number for timer handles. (Jared Mason Diamond) */ #define RTTIMER_MAGIC UINT32_C(0x19370910) /** Magic number for timer low resolution handles. (Saki Hiwatari) */ #define RTTIMERLR_MAGIC UINT32_C(0x19610715) /** The value of RTS3::u32Magic. (Edgar Wallace) */ #define RTS3_MAGIC UINT32_C(0x18750401) /** The value of RTS3::u32Magic after RTS3Destroy(). */ #define RTS3_MAGIC_DEAD UINT32_C(0x19320210) /** The value of RTTAR::u32Magic. (Donald Ervin Knuth) */ #define RTTAR_MAGIC UINT32_C(0x19380110) /** The value of RTTAR::u32Magic after RTTarClose(). */ #define RTTAR_MAGIC_DEAD ~RTTAR_MAGIC /** The value of RTTARFILE::u32Magic. (Abraham Stoker) */ #define RTTARFILE_MAGIC UINT32_C(0x18471108) /** The value of RTTARFILE::u32Magic after RTTarFileClose(). */ #define RTTARFILE_MAGIC_DEAD UINT32_C(0x19120420) /** @} */ #endif