Changeset 1816 in vbox
- Timestamp:
- Mar 29, 2007 6:59:35 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 19999
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/alloc/heapsimple.cpp
r331 r1816 32 32 #include <iprt/log.h> 33 33 #include <iprt/param.h> 34 35 #include "internal/magics.h" 34 36 35 37 … … 145 147 } RTHEAPSIMPLEINTERNAL; 146 148 AssertCompileSizeAlignment(RTHEAPSIMPLEINTERNAL, 32); 147 148 /** Magic number for RTHEAPSIMPLEINTERNAL::u32Magic. (Kyoichi Katayama) */149 #define RTHEAPSIMPLE_MAGIC 0x19590105150 149 151 150 -
trunk/src/VBox/Runtime/generic/semsrw-generic.cpp
r403 r1816 73 73 #endif 74 74 }; 75 76 /** RTSEMRWINTERNAL::u32Magic value. (Kosuke Fujishima) */77 #define RTSEMRW_MAGIC 0x1964070778 75 79 76 -
trunk/src/VBox/Runtime/generic/spinlock-generic.cpp
r1 r1816 42 42 #endif 43 43 44 #include "internal/magics.h" 45 44 46 45 47 /******************************************************************************* … … 57 59 } RTSPINLOCKINTERNAL, *PRTSPINLOCKINTERNAL; 58 60 59 /** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */60 #define RTSPINLOCK_MAGIC 0x1948042861 61 62 62 RTDECL(int) RTSpinlockCreate(PRTSPINLOCK pSpinlock) -
trunk/src/VBox/Runtime/include/internal/dir.h
r1 r1816 26 26 #include <iprt/cdefs.h> 27 27 #include <iprt/types.h> 28 #include "internal/magics.h" 28 29 29 30 … … 98 99 } RTDIR; 99 100 100 /** The value of RTDIR::u32Magic. (Michael Ende) */101 #define RTDIR_MAGIC 0x19291112102 /** The value of RTDIR::u32Magic after RTDirClose(). */103 #define RTDIR_MAGIC_DEAD 0x19950829104 105 101 106 102 /** -
trunk/src/VBox/Runtime/include/internal/ldr.h
r1 r1816 24 24 25 25 #include <iprt/types.h> 26 #include "internal/magics.h" 26 27 27 28 __BEGIN_DECLS … … 320 321 } RTLDRMODINTERNAL; 321 322 322 /** The magic value for RTLDRMODINTERNAL::u32Magic. (Alan Moore) */323 #define RTLDRMOD_MAGIC 0x19531118324 325 323 326 324 /** -
trunk/src/VBox/Runtime/include/internal/magics.h
-
Property svn:keywords
set to
Id
r1815 r1816 1 /* $Id :$ */1 /* $Id$ */ 2 2 /** @file 3 3 * InnoTek Portable Runtime - Internal Header Defining The Magic Numbers. … … 22 22 */ 23 23 24 #ifndef INCLUDED_internal_magics_h25 #define INCLUDED_internal_magics_h24 #ifndef ___internal_magics_h___ 25 #define ___internal_magics_h___ 26 26 27 27 /** @name Magic Numbers. 28 28 * @{ */ 29 29 30 /** The value of RTDIR::u32Magic. (Michael Ende) */ 31 #define RTDIR_MAGIC 0x19291112 32 /** The value of RTDIR::u32Magic after RTDirClose(). */ 33 #define RTDIR_MAGIC_DEAD 0x19950829 34 /** Magic number for RTHEAPSIMPLEINTERNAL::u32Magic. (Kyoichi Katayama) */ 35 #define RTHEAPSIMPLE_MAGIC 0x19590105 36 /** The magic value for RTLDRMODINTERNAL::u32Magic. (Alan Moore) */ 37 #define RTLDRMOD_MAGIC 0x19531118 38 /** Magic number for heap blocks. (Edgar Allan Poe) */ 39 #define RTMEMHDR_MAGIC 0x18090119 40 /** RTR0MEMOBJ::u32Magic. (Masakazu Katsura) */ 41 #define RTR0MEMOBJ_MAGIC 0x19611210 42 /** Magic for the event semaphore structure. (Neil Gaiman) */ 43 #define RTSEMEVENT_MAGIC 0x19601110 44 /** Magic for the multiple release event semaphore structure. (Isaac Asimov) */ 45 #define RTSEMEVENTMULTI_MAGIC 0x19200102 46 /** Magic value for RTSEMFASTMUTEXINTERNAL::u32Magic. (John Ronald Reuel Tolkien) */ 47 #define RTSEMFASTMUTEX_MAGIC 0x18920102 48 /** Dead magic value for RTSEMFASTMUTEXINTERNAL::u32Magic. */ 49 #define RTSEMFASTMUTEX_MAGIC_DEAD 0x19730902 50 /** Magic for the mutex semaphore structure. (Douglas Adams) */ 51 #define RTSEMMUTEX_MAGIC 0x19520311 52 /** Dead magic for the mutex semaphore structure. */ 53 #define RTSEMMUTEX_MAGIC_DEAD 0x20010511 54 /** RTSEMRWINTERNAL::u32Magic value. (Kosuke Fujishima) */ 55 #define RTSEMRW_MAGIC 0x19640707 56 /** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */ 57 #define RTSPINLOCK_MAGIC 0x19480428 58 /** The value of RTSTREAM::u32Magic for a valid stream. */ 59 #define RTSTREAM_MAGIC 0xe44e44ee 60 /** RTTHREADINT::u32Magic value. (Gilbert Keith Chesterton) */ 61 #define RTTHREADINT_MAGIC 0x18740529 62 /** RTTHREADINT::u32Magic value for a dead thread. */ 63 #define RTTHREADINT_MAGIC_DEAD 0x19360614 30 64 /** Magic number for timer handles. (Jared Mason Diamond) */ 31 #define RTTIMER_MAGIC 0x1937091065 #define RTTIMER_MAGIC 0x19370910 32 66 33 67 /** @} */ -
Property svn:keywords
set to
-
trunk/src/VBox/Runtime/include/internal/memobj.h
r1300 r1816 25 25 #include <iprt/memobj.h> 26 26 #include <iprt/assert.h> 27 #include "internal/magics.h" 27 28 28 29 … … 188 189 } RTR0MEMOBJINTERNAL; 189 190 190 /** RTR0MEMOBJ::u32Magic. (Masakazu Katsura) */191 #define RTR0MEMOBJ_MAGIC 0x19611210192 193 191 194 192 /** -
trunk/src/VBox/Runtime/include/internal/thread.h
r1766 r1816 30 30 # include <iprt/critsect.h> 31 31 #endif 32 #include "internal/magics.h" 32 33 33 34 __BEGIN_DECLS … … 131 132 } RTTHREADINT, *PRTTHREADINT; 132 133 133 /** RTTHREADINT::u32Magic value. (Gilbert Keith Chesterton) */134 #define RTTHREADINT_MAGIC 0x18740529135 /** RTTHREADINT::u32Magic value for a dead thread. */136 #define RTTHREADINT_MAGIC_DEAD 0x19360614137 134 138 135 /** @name RTTHREADINT::fIntFlags Masks and Bits. -
trunk/src/VBox/Runtime/r0drv/alloc-r0drv.h
r289 r1816 25 25 #include <iprt/cdefs.h> 26 26 #include <iprt/types.h> 27 #include "internal/magics.h" 27 28 28 29 __BEGIN_DECLS … … 43 44 } RTMEMHDR, *PRTMEMHDR; 44 45 45 /** Magic number for heap blocks. (Edgar Allan Poe) */46 #define RTMEMHDR_MAGIC 0x1809011947 46 48 47 /** @name RTMEMHDR::fFlags. -
trunk/src/VBox/Runtime/r0drv/darwin/semaphore-r0drv-darwin.cpp
r1189 r1816 26 26 *******************************************************************************/ 27 27 #include "the-darwin-kernel.h" 28 28 29 #include <iprt/semaphore.h> 29 30 #include <iprt/alloc.h> … … 31 32 #include <iprt/asm.h> 32 33 #include <iprt/err.h> 34 35 #include "internal/magics.h" 33 36 34 37 … … 53 56 } RTSEMEVENTINTERNAL, *PRTSEMEVENTINTERNAL; 54 57 55 /** Magic for the Darwin event semaphore structure. (Neil Gaiman) */56 #define RTSEMEVENT_MAGIC 0x1960111057 58 58 59 59 /** … … 74 74 } RTSEMEVENTMULTIINTERNAL, *PRTSEMEVENTMULTIINTERNAL; 75 75 76 /** Magic for the Darwin multiple release event semaphore structure. (Isaac Asimov) */77 #define RTSEMEVENTMULTI_MAGIC 0x1920010278 79 76 80 77 #if 0 /** @todo */ … … 90 87 } RTSEMMUTEXINTERNAL, *PRTSEMMUTEXINTERNAL; 91 88 92 /** Magic for the Darwin mutex semaphore structure. (Douglas Adams) */93 #define RTSEMMUTEX_MAGIC 0x1952031194 89 #endif 95 90 … … 106 101 } RTSEMFASTMUTEXINTERNAL, *PRTSEMFASTMUTEXINTERNAL; 107 102 108 /** Magic value for RTSEMFASTMUTEXINTERNAL::u32Magic (John Ronald Reuel Tolkien). */109 #define RTSEMFASTMUTEX_MAGIC 0x18920102110 103 111 104 -
trunk/src/VBox/Runtime/r0drv/darwin/spinlock-r0drv-darwin.cpp
r1 r1816 31 31 #include <iprt/asm.h> 32 32 33 #include "internal/magics.h" 34 33 35 34 36 /******************************************************************************* … … 45 47 lck_spin_t *pSpinLock; 46 48 } RTSPINLOCKINTERNAL, *PRTSPINLOCKINTERNAL; 47 48 /** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */49 #define RTSPINLOCK_MAGIC 0x1948042850 49 51 50 -
trunk/src/VBox/Runtime/r0drv/linux/semaphore-r0drv-linux.c
r1 r1816 32 32 #include <iprt/err.h> 33 33 34 #include "internal/magics.h" 35 34 36 35 37 /******************************************************************************* … … 48 50 wait_queue_head_t Head; 49 51 } RTSEMEVENTINTERNAL, *PRTSEMEVENTINTERNAL; 50 51 /** Magic for the Linux event semaphore structure. (Neil Gaiman) */52 #define RTSEMEVENT_MAGIC 0x1960111053 52 54 53 … … 68 67 } RTSEMMUTEXINTERNAL, *PRTSEMMUTEXINTERNAL; 69 68 70 /** Magic for the Linux mutex semaphore structure. (Douglas Adams) */71 #define RTSEMMUTEX_MAGIC 0x1952031172 73 69 74 70 /** … … 82 78 struct semaphore Semaphore; 83 79 } RTSEMFASTMUTEXINTERNAL, *PRTSEMFASTMUTEXINTERNAL; 84 85 /** Magic value for RTSEMFASTMUTEXINTERNAL::u32Magic (John Ronald Reuel Tolkien). */86 #define RTSEMFASTMUTEX_MAGIC 0x1892010287 80 88 81 -
trunk/src/VBox/Runtime/r0drv/linux/spinlock-r0drv-linux.c
r1 r1816 25 25 *******************************************************************************/ 26 26 #include "the-linux-kernel.h" 27 27 28 #include <iprt/spinlock.h> 28 29 #include <iprt/err.h> … … 30 31 #include <iprt/assert.h> 31 32 #include <iprt/asm.h> 33 #include "internal/magics.h" 32 34 33 #include <linux/spinlock.h> 35 #include <linux/spinlock.h> /** @todo why is this here and not in the-linux-kernel.h? */ 36 34 37 35 38 /******************************************************************************* … … 50 53 #endif 51 54 } RTSPINLOCKINTERNAL, *PRTSPINLOCKINTERNAL; 52 53 /** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */54 #define RTSPINLOCK_MAGIC 0x1948042855 55 56 56 -
trunk/src/VBox/Runtime/r0drv/nt/semaphore-r0drv-nt.cpp
r1 r1816 32 32 #include <iprt/err.h> 33 33 34 #include "internal/magics.h" 35 34 36 35 37 /******************************************************************************* … … 47 49 } RTSEMEVENTINTERNAL, *PRTSEMEVENTINTERNAL; 48 50 49 /** Magic for the NT event semaphore structure. (Neil Gaiman) */50 #define RTSEMEVENT_MAGIC 0x1960111051 51 52 52 … … 67 67 } RTSEMMUTEXINTERNAL, *PRTSEMMUTEXINTERNAL; 68 68 69 /** Magic for the NT mutex semaphore structure. (Douglas Adams) */70 #define RTSEMMUTEX_MAGIC 0x1952031171 69 72 70 … … 82 80 } RTSEMFASTMUTEXINTERNAL, *PRTSEMFASTMUTEXINTERNAL; 83 81 84 /** Magic value for RTSEMFASTMUTEXINTERNAL::u32Magic (John Ronald Reuel Tolkien). */85 #define RTSEMFASTMUTEX_MAGIC 0x1892010286 82 87 83 -
trunk/src/VBox/Runtime/r0drv/nt/spinlock-r0drv-nt.cpp
r1 r1816 25 25 *******************************************************************************/ 26 26 #include "the-nt-kernel.h" 27 27 28 #include <iprt/spinlock.h> 28 29 #include <iprt/err.h> … … 30 31 #include <iprt/assert.h> 31 32 #include <iprt/asm.h> 33 34 #include "internal/magics.h" 32 35 33 36 … … 45 48 KSPIN_LOCK Spinlock; 46 49 } RTSPINLOCKINTERNAL, *PRTSPINLOCKINTERNAL; 47 48 /** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */49 #define RTSPINLOCK_MAGIC 0x1948042850 50 51 51 -
trunk/src/VBox/Runtime/r0drv/os2/semevent-r0drv-os2.cpp
r1191 r1816 41 41 #include <iprt/err.h> 42 42 43 #include "internal/magics.h" 44 43 45 44 46 /******************************************************************************* … … 61 63 SpinLock_t Spinlock; 62 64 } RTSEMEVENTINTERNAL, *PRTSEMEVENTINTERNAL; 63 64 /** Magic for the OS/2 event semaphore structure. (Neil Gaiman) */65 #define RTSEMEVENT_MAGIC 0x1960111066 65 67 66 -
trunk/src/VBox/Runtime/r0drv/os2/semeventmulti-r0drv-os2.cpp
r1191 r1816 40 40 #include <iprt/assert.h> 41 41 #include <iprt/err.h> 42 #include "internal/magics.h" 42 43 43 44 … … 61 62 SpinLock_t Spinlock; 62 63 } RTSEMEVENTMULTIINTERNAL, *PRTSEMEVENTMULTIINTERNAL; 63 64 /** Magic for the OS/2 multiple release event semaphore structure. (Isaac Asimov) */65 #define RTSEMEVENTMULTI_MAGIC 0x1920010266 64 67 65 -
trunk/src/VBox/Runtime/r0drv/os2/semfastmutex-r0drv-os2.cpp
r1191 r1816 40 40 #include <iprt/asm.h> 41 41 42 #include "internal/magics.h" 43 42 44 43 45 /******************************************************************************* … … 54 56 MutexLock_t Mtx; 55 57 } RTSEMFASTMUTEXINTERNAL, *PRTSEMFASTMUTEXINTERNAL; 56 57 /** Magic value for RTSEMFASTMUTEXINTERNAL::u32Magic (John Ronald Reuel Tolkien). */58 #define RTSEMFASTMUTEX_MAGIC 0x1892010259 /** Dead magic value. */60 #define RTSEMFASTMUTEX_MAGIC_DEAD 0x0000000 /// @todo61 58 62 59 -
trunk/src/VBox/Runtime/r0drv/os2/spinlock-r0drv-os2.cpp
r1191 r1816 40 40 #include <iprt/asm.h> 41 41 42 #include "internal/magics.h" 43 42 44 43 45 /******************************************************************************* … … 54 56 SpinLock_t Spinlock; 55 57 } RTSPINLOCKINTERNAL, *PRTSPINLOCKINTERNAL; 56 57 /** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */58 #define RTSPINLOCK_MAGIC 0x1948042859 60 58 61 59 -
trunk/src/VBox/Runtime/r0drv/os2/timer-r0drv-os2.cpp
r1191 r1816 42 42 #include <iprt/assert.h> 43 43 #include <iprt/alloc.h> 44 45 #include "internal/magics.h" 44 46 45 47 … … 79 81 } RTTIMER; 80 82 81 /** Magic number for timer handles. (Jared Mason Diamond) */82 #define RTTIMER_MAGIC 0x1937091083 84 83 85 84 /******************************************************************************* -
trunk/src/VBox/Runtime/r3/linux/sems-linux.cpp
r849 r1816 28 28 #include <iprt/asm.h> 29 29 #include <iprt/err.h> 30 #include "internal/magics.h" 30 31 31 32 #include <errno.h> … … 62 63 }; 63 64 64 #define RTSEMEVENT_MAGIC ((intptr_t)-16)65 66 65 67 66 /** … … 80 79 }; 81 80 82 #define RTSEMEVENTMULTI_MAGIC ((intptr_t)-128)83 81 84 82 /** -
trunk/src/VBox/Runtime/r3/posix/alloc-posix.cpp
r845 r1816 57 57 } RTMEMEXECHDR, *PRTMEMEXECHDR; 58 58 59 /** M Agic for RTMEMEXECHDR. */59 /** Magic for RTMEMEXECHDR. */ 60 60 #define RTMEMEXECHDR_MAGIC (~(size_t)0xfeedbabe) 61 61 -
trunk/src/VBox/Runtime/r3/stream.cpp
r537 r1816 33 33 #include <iprt/param.h> 34 34 #include <iprt/string.h> 35 #include "internal/magics.h" 35 36 36 37 #include <stdio.h> … … 57 58 FILE *pFile; 58 59 } RTSTREAM; 59 60 /** The value of RTSTREAM::u32Magic for a valid stream. */61 #define RTSTREAM_MAGIC 0xe44e44ee62 60 63 61
Note:
See TracChangeset
for help on using the changeset viewer.