VirtualBox

source: vbox/trunk/src/VBox/Runtime/include/internal/magics.h@ 2413

Last change on this file since 2413 was 1816, checked in by vboxsync, 18 years ago

moved magics to a common header to avoid duplicating the same defines all over the place.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1/* $Id: magics.h 1816 2007-03-29 18:59:35Z vboxsync $ */
2/** @file
3 * InnoTek Portable Runtime - Internal Header Defining The Magic Numbers.
4 */
5
6/*
7 * Copyright (c) 2007 InnoTek Systemberatung GmbH
8 *
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License as published by the Free Software Foundation,
14 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
15 * distribution. VirtualBox OSE is distributed in the hope that it will
16 * be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * If you received this file as part of a commercial VirtualBox
19 * distribution, then only the terms of your commercial VirtualBox
20 * license agreement apply instead of the previous paragraph.
21 *
22 */
23
24#ifndef ___internal_magics_h___
25#define ___internal_magics_h___
26
27/** @name Magic Numbers.
28 * @{ */
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
64/** Magic number for timer handles. (Jared Mason Diamond) */
65#define RTTIMER_MAGIC 0x19370910
66
67/** @} */
68
69#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette