VirtualBox

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

Last change on this file since 76585 was 76585, checked in by vboxsync, 6 years ago

*: scm --fix-header-guard-endif

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 16.3 KB
Line 
1/* $Id: magics.h 76585 2019-01-01 06:31:29Z vboxsync $ */
2/** @file
3 * IPRT - Internal header defining The Magic Numbers.
4 */
5
6/*
7 * Copyright (C) 2007-2019 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * The contents of this file may alternatively be used under the terms
18 * of the Common Development and Distribution License Version 1.0
19 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20 * VirtualBox OSE distribution, in which case the provisions of the
21 * CDDL are applicable instead of those of the GPL.
22 *
23 * You may elect to license modified versions of this file under the
24 * terms and conditions of either the GPL or the CDDL or both.
25 */
26
27#ifndef IPRT_INCLUDED_INTERNAL_magics_h
28#define IPRT_INCLUDED_INTERNAL_magics_h
29#ifndef RT_WITHOUT_PRAGMA_ONCE
30# pragma once
31#endif
32
33/** @name Magic Numbers.
34 * @{ */
35
36/** Magic number for RTAIOMGRINT::u32Magic. (Emil Erich Kaestner) */
37#define RTAIOMGR_MAGIC UINT32_C(0x18990223)
38/** Magic number for RTAIOMGRINTFILE::u32Magic. (Ephraim Kishon) */
39#define RTAIOMGRFILE_MAGIC UINT32_C(0x19240823)
40/** Magic number for RTCRCIPHERINT::u32Magic. (Michael Wolff) */
41#define RTCRCIPHERINT_MAGIC UINT32_C(0x19530827)
42/** Magic value for RTCRKEYINT::u32Magic. (Ronald Linn Rivest) */
43#define RTCRKEYINT_MAGIC UINT32_C(0x19470506)
44/** Magic value for RTCRSSLINT::u32Magic. (Robert Upshur Woodward) */
45#define RTCRSSLINT_MAGIC UINT32_C(0x19430326)
46/** Magic value for RTCRSSLSESSIONINT::u32Magic. (Carl Berstein) */
47#define RTCRSSLSESSIONINT_MAGIC UINT32_C(0x19440214)
48/** Magic number for RTDBGMODINT::u32Magic. (Charles Lloyd) */
49#define RTDBGAS_MAGIC UINT32_C(0x19380315)
50/** Magic number for RTDBGCFGINT::u32Magic. (McCoy Tyner) */
51#define RTDBGCFG_MAGIC UINT32_C(0x19381211)
52/** Magic number for RTDBGMODINT::u32Magic. (Keith Jarrett) */
53#define RTDBGMOD_MAGIC UINT32_C(0x19450508)
54/** Magic number for RTDBGMODDEFERRED::u32Magic. (Chet Baker) */
55#define RTDBGMODDEFERRED_MAGIC UINT32_C(0x19291223)
56/** Magic number for RTDBGMODDEFERRED::u32Magic after release. */
57#define RTDBGMODDEFERRED_MAGIC_DEAD UINT32_C(0x19880513)
58/** Magic number for RTDBGMODLDR::u32Magic. (Gerry Mulligan) */
59#define RTDBGMODLDR_MAGIC UINT32_C(0x19270406)
60/** Magic number for RTDBGMODLDR::u32Magic after close. */
61#define RTDBGMODLDR_MAGIC_DEAD UINT32_C(0x19960120)
62/** Magic number for RTDBGMODVTIMG::u32Magic. (Jack DeJohnette) */
63#define RTDBGMODVTDBG_MAGIC UINT32_C(0x19420809)
64/** Magic number for RTDBGMODVTIMG::u32Magic. (Cecil McBee) */
65#define RTDBGMODVTIMG_MAGIC UINT32_C(0x19350419)
66/** Magic value for RTDBGKRNLINFOINT::u32Magic. (John Carmack) */
67#define RTDBGKRNLINFO_MAGIC UINT32_C(0x19700820)
68/** The value of RTDIRINTERNAL::u32Magic. (Michael Ende) */
69#define RTDIR_MAGIC UINT32_C(0x19291112)
70/** The value of RTDIRINTERNAL::u32Magic after RTDirClose(). */
71#define RTDIR_MAGIC_DEAD UINT32_C(0x19950829)
72/** The value of RTDVMINTERNAL::u32Magic. (Dan Brown) */
73#define RTDVM_MAGIC UINT32_C(0x19640622)
74/** The value of RTDVMINTERNAL::u32Magic after close. */
75#define RTDVM_MAGIC_DEAD (~RTDVM_MAGIC)
76/** The value of RTDVMVOLUMEINTERNAL::u32Magic. (Daniel Defoe) */
77#define RTDVMVOLUME_MAGIC UINT32_C(0x16591961)
78/** The value of RTDVMVOLUMEINTERNAL::u32Magic after close. */
79#define RTDVMVOLUME_MAGIC_DEAD UINT32_C(0x17310424)
80/** The value of RTFILEAIOCTXINT::u32Magic. (Howard Phillips Lovecraft) */
81#define RTFILEAIOCTX_MAGIC UINT32_C(0x18900820)
82/** The value of RTFILEAIOCTXINT::u32Magic after RTFileAioCtxDestroy(). */
83#define RTFILEAIOCTX_MAGIC_DEAD UINT32_C(0x19370315)
84/** The value of RTFILEAIOREQINT::u32Magic. (Stephen Edwin King) */
85#define RTFILEAIOREQ_MAGIC UINT32_C(0x19470921)
86/** The value of RTENVINTERNAL::u32Magic. (Rumiko Takahashi) */
87#define RTENV_MAGIC UINT32_C(0x19571010)
88/** The value of RTERRVARS::ai32Vars[0]. (Ryuichi Sakamoto) */
89#define RTERRVARS_MAGIC UINT32_C(0x19520117)
90/** The value of RTFSISOMAKERINT::uMagic. (Brian Blade) */
91#define RTFSISOMAKERINT_MAGIC UINT32_C(0x19700725)
92/** Magic number for RTHANDLETABLEINT::u32Magic. (Hitomi Kanehara) */
93#define RTHANDLETABLE_MAGIC UINT32_C(0x19830808)
94/** Magic number for RTHEAPOFFSETINTERNAL::u32Magic. (Neal Town Stephenson) */
95#define RTHEAPOFFSET_MAGIC UINT32_C(0x19591031)
96/** Magic number for RTHEAPSIMPLEINTERNAL::uMagic. (Kyoichi Katayama) */
97#define RTHEAPSIMPLE_MAGIC UINT32_C(0x19590105)
98/** The magic value for RTHTTPINTERNAL::u32Magic. (Karl May) */
99#define RTHTTP_MAGIC UINT32_C(0x18420225)
100/** The value of RTHTTPINTERNAL::u32Magic after close. */
101#define RTHTTP_MAGIC_DEAD UINT32_C(0x19120330)
102/** The value of RTINIFILEINT::u32Magic. (Jane Austen) */
103#define RTINIFILE_MAGIC UINT32_C(0x17751216)
104/** The value of RTINIFILEINT::u32Magic after close. */
105#define RTINIFILE_MAGIC_DEAD UINT32_C(0x18170718)
106/** The magic value for RTLDRMODINTERNAL::u32Magic. (Alan Moore) */
107#define RTLDRMOD_MAGIC UINT32_C(0x19531118)
108/** The magic value for RTLOCALIPCSERVER::u32Magic. (Naoki Yamamoto) */
109#define RTLOCALIPCSERVER_MAGIC UINT32_C(0x19600201)
110/** The magic value for RTLOCALIPCSERVER::u32Magic. (Katsuhiro Otomo) */
111#define RTLOCALIPCSESSION_MAGIC UINT32_C(0x19530414)
112/** The magic value for RTLOCKVALCLASSINT::u32Magic. (Thomas Mann) */
113#define RTLOCKVALCLASS_MAGIC UINT32_C(0x18750605)
114/** The magic value for RTLOCKVALCLASSINT::u32Magic after destruction. */
115#define RTLOCKVALCLASS_MAGIC_DEAD UINT32_C(0x19550812)
116/** The magic value for RTLOCKVALRECEXCL::u32Magic. (Vladimir Vladimirovich Nabokov) */
117#define RTLOCKVALRECEXCL_MAGIC UINT32_C(0x18990422)
118/** The dead magic value for RTLOCKVALRECEXCL::u32Magic. */
119#define RTLOCKVALRECEXCL_MAGIC_DEAD UINT32_C(0x19770702)
120/** The magic value for RTLOCKVALRECSHRD::u32Magic. (Agnar Mykle) */
121#define RTLOCKVALRECSHRD_MAGIC UINT32_C(0x19150808)
122/** The magic value for RTLOCKVALRECSHRD::u32Magic after deletion. */
123#define RTLOCKVALRECSHRD_MAGIC_DEAD UINT32_C(0x19940115)
124/** The magic value for RTLOCKVALRECSHRDOWN::u32Magic. (Jens Ingvald Bjoerneboe) */
125#define RTLOCKVALRECSHRDOWN_MAGIC UINT32_C(0x19201009)
126/** The magic value for RTLOCKVALRECSHRDOWN::u32Magic after deletion. */
127#define RTLOCKVALRECSHRDOWN_MAGIC_DEAD UINT32_C(0x19760509)
128/** The magic value for RTLOCKVALRECNEST::u32Magic. (Anne Desclos) */
129#define RTLOCKVALRECNEST_MAGIC UINT32_C(0x19071123)
130/** The magic value for RTLOCKVALRECNEST::u32Magic after deletion. */
131#define RTLOCKVALRECNEST_MAGIC_DEAD UINT32_C(0x19980427)
132/** Magic number for RTMEMCACHEINT::u32Magic. (Joseph Weizenbaum) */
133#define RTMEMCACHE_MAGIC UINT32_C(0x19230108)
134/** Dead magic number for RTMEMCACHEINT::u32Magic. */
135#define RTMEMCACHE_MAGIC_DEAD UINT32_C(0x20080305)
136/** The magic value for RTMEMPOOL::u32Magic. (Jane Austin) */
137#define RTMEMPOOL_MAGIC UINT32_C(0x17751216)
138/** The magic value for RTMEMPOOL::u32Magic after RTMemPoolDestroy. */
139#define RTMEMPOOL_MAGIC_DEAD UINT32_C(0x18170718)
140/** The magic value for heap blocks. (Edgar Allan Poe) */
141#define RTMEMHDR_MAGIC UINT32_C(0x18090119)
142/** The magic value for heap blocks after freeing. */
143#define RTMEMHDR_MAGIC_DEAD UINT32_C(0x18491007)
144/** The value of RTPIPEINTERNAL::u32Magic. (Frank Schaetzing) */
145#define RTPIPE_MAGIC UINT32_C(0x19570528)
146/** The value of RTPOLLSETINTERNAL::u32Magic. (Ai Yazawa) */
147#define RTPOLLSET_MAGIC UINT32_C(0x19670307)
148/** RTR0MEMOBJ::u32Magic. (Masakazu Katsura) */
149#define RTR0MEMOBJ_MAGIC UINT32_C(0x19611210)
150/** RTRANDINT::u32Magic. (Alan Moore) */
151#define RTRANDINT_MAGIC UINT32_C(0x19531118)
152/** The value of RTREQ::u32Magic. */
153#define RTREQ_MAGIC UINT32_C(0xfeed0001) /**< @todo find a value */
154/** The value of RTREQ::u32Magic of a freed request. */
155#define RTREQ_MAGIC_DEAD (~RTREQ_MAGIC)
156/** The value of RTREQPOOLINT::u32Magic. */
157#define RTREQPOOL_MAGIC UINT32_C(0xfeed0002)/**< @todo find a value */
158/** The value of RTREQPOOLINT::u32Magic after destruction. */
159#define RTREQPOOL_MAGIC_DEAD (~RTREQPOOL_MAGIC)
160/** The value of RTREQQUEUEINT::u32Magic. */
161#define RTREQQUEUE_MAGIC UINT32_C(0xfeed0003)/**< @todo find a value */
162/** The value of RTREQQUEUEINT::u32Magic after destruction. */
163#define RTREQQUEUE_MAGIC_DEAD (~RTREQQUEUE_MAGIC)
164/** The value of RTS3::u32Magic. (Edgar Wallace) */
165#define RTS3_MAGIC UINT32_C(0x18750401)
166/** The value of RTS3::u32Magic after RTS3Destroy(). */
167#define RTS3_MAGIC_DEAD UINT32_C(0x19320210)
168/** Magic for the event semaphore structure. (Neil Gaiman) */
169#define RTSEMEVENT_MAGIC UINT32_C(0x19601110)
170/** Magic for the multiple release event semaphore structure. (Isaac Asimov) */
171#define RTSEMEVENTMULTI_MAGIC UINT32_C(0x19200102)
172/** Dead magic value for multiple release event semaphore structures. */
173#define RTSEMEVENTMULTI_MAGIC_DEAD UINT32_C(0x19920406)
174/** Magic value for RTSEMFASTMUTEXINTERNAL::u32Magic. (John Ronald Reuel Tolkien) */
175#define RTSEMFASTMUTEX_MAGIC UINT32_C(0x18920103)
176/** Dead magic value for RTSEMFASTMUTEXINTERNAL::u32Magic. */
177#define RTSEMFASTMUTEX_MAGIC_DEAD UINT32_C(0x19730902)
178/** Magic for the mutex semaphore structure. (Douglas Adams) */
179#define RTSEMMUTEX_MAGIC UINT32_C(0x19520311)
180/** Dead magic for the mutex semaphore structure. */
181#define RTSEMMUTEX_MAGIC_DEAD UINT32_C(0x20010511)
182/** Magic for the spinning mutex semaphore structure. (Natsume Soseki) */
183#define RTSEMSPINMUTEX_MAGIC UINT32_C(0x18670209)
184/** Dead magic value for RTSEMSPINMUTEXINTERNAL::u32Magic. */
185#define RTSEMSPINMUTEX_MAGIC_DEAD UINT32_C(0x19161209)
186/** RTSEMRWINTERNAL::u32Magic value. (Kosuke Fujishima) */
187#define RTSEMRW_MAGIC UINT32_C(0x19640707)
188/** RTSEMXROADSINTERNAL::u32Magic value. (Kenneth Elton "Ken" Kesey) */
189#define RTSEMXROADS_MAGIC UINT32_C(0x19350917)
190/** RTSEMXROADSINTERNAL::u32Magic value after RTSemXRoadsDestroy. */
191#define RTSEMXROADS_MAGIC_DEAD UINT32_C(0x20011110)
192/** RTSERIALPORTINTERNAL::u32Magic value (Jules-Gabriel Verne). */
193#define RTSERIALPORT_MAGIC UINT32_C(0x18280208)
194/** RTSERIALPORTINTERNAL::u32Magic value after RTSerialPortClose. */
195#define RTSERIALPORT_MAGIC_DEAD UINT32_C(0x19050324)
196/** RTSHMEMINT::u32Magic value (Stephen William Hawking) */
197#define RTSHMEM_MAGIC UINT32_C(0x19420108)
198/** RTSHMEMINT::u32Magic value after RTShMemClose */
199#define RTSHMEM_MAGIC_DEAD UINT32_C(0x20180314)
200/** The magic value for RTSOCKETINT::u32Magic. (Stanislaw Lem) */
201#define RTSOCKET_MAGIC UINT32_C(0x19210912)
202/** The magic value for RTSOCKETINT::u32Magic after destruction. */
203#define RTSOCKET_MAGIC_DEAD UINT32_C(0x20060326)
204/** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */
205#define RTSPINLOCK_MAGIC UINT32_C(0x19480428)
206/** Magic value for generic RTSPINLOCKINTERNAL::u32Magic (Georges Prosper Remi). */
207#define RTSPINLOCK_GEN_MAGIC UINT32_C(0x10970522)
208/** Magic value for RTSTRCACHE::u32Magic. (Sir Arthur Charles Clarke) */
209#define RTSTRCACHE_MAGIC UINT32_C(0x19171216)
210/** Magic value for RTSTRCACHE::u32Magic after RTStrCacheDestroy. */
211#define RTSTRCACHE_MAGIC_DEAD UINT32_C(0x20080319)
212/** The value of RTSTREAM::u32Magic for a valid stream. */
213#define RTSTREAM_MAGIC UINT32_C(0xe44e44ee)
214/** Magic value for RTTCPSERVER::u32Magic. (Jan Garbarek) */
215#define RTTCPSERVER_MAGIC UINT32_C(0x19470304)
216/** Magic value for RTTCPSERVER::u32Magic. (Harlan Ellison) */
217#define RTUDPSERVER_MAGIC UINT32_C(0x19340527)
218/** The value of RTTAR::u32Magic. (Donald Ervin Knuth) */
219#define RTTAR_MAGIC UINT32_C(0x19380110)
220/** The value of RTTAR::u32Magic after RTTarClose(). */
221#define RTTAR_MAGIC_DEAD ~RTTAR_MAGIC
222/** The value of RTTARFILE::u32Magic. (Abraham Stoker) */
223#define RTTARFILE_MAGIC UINT32_C(0x18471108)
224/** The value of RTTARFILE::u32Magic after RTTarFileClose(). */
225#define RTTARFILE_MAGIC_DEAD UINT32_C(0x19120420)
226/** RTTESTINT::u32Magic value. (Daniel Kehlmann) */
227#define RTTESTINT_MAGIC UINT32_C(0x19750113)
228/** RTTHREADCTXHOOKINT::u32Magic value. (Dennis MacAlistair Ritchie) */
229#define RTTHREADCTXHOOKINT_MAGIC UINT32_C(0x19410909)
230/** RTTHREADINT::u32Magic value. (Gilbert Keith Chesterton) */
231#define RTTHREADINT_MAGIC UINT32_C(0x18740529)
232/** RTTHREADINT::u32Magic value for a dead thread. */
233#define RTTHREADINT_MAGIC_DEAD UINT32_C(0x19360614)
234/** Magic number for timer handles. (Jared Mason Diamond) */
235#define RTTIMER_MAGIC UINT32_C(0x19370910)
236/** Magic number for timer low resolution handles. (Saki Hiwatari) */
237#define RTTIMERLR_MAGIC UINT32_C(0x19610715)
238/** Magic value of RTTRACEBUFINT::u32Magic. (George Orwell) */
239#define RTTRACEBUF_MAGIC UINT32_C(0x19030625)
240/** Magic value of RTTRACEBUFINT::u32Magic after the final release. */
241#define RTTRACEBUF_MAGIC_DEAD UINT32_C(0x19500121)
242/** The value of RTTRACELOGRDRINT::u32Magic. (John Michael Scalzi) */
243#define RTTRACELOGRDR_MAGIC UINT32_C(0x19690510)
244/** The value of RTTRACELOGRDRINT::u32Magic after RTTraceLogRdrDestroy(). */
245#define RTTRACELOGRDR_MAGIC_DEAD (~RTTRACELOGRDR_MAGIC)
246/** The value of RTTRACELOGWRINT::u32Magic. (Herbert George Wells) */
247#define RTTRACELOGWR_MAGIC UINT32_C(0x18660921)
248/** The value of RTTRACELOGWRINT::u32Magic after RTTraceLogWrDestroy(). */
249#define RTTRACELOGWR_MAGIC_DEAD UINT32_C(0x19460813)
250/** The value of RTVFSOBJINTERNAL::u32Magic. (Yasunari Kawabata) */
251#define RTVFSOBJ_MAGIC UINT32_C(0x18990614)
252/** The value of RTVFSOBJINTERNAL::u32Magic after close. */
253#define RTVFSOBJ_MAGIC_DEAD UINT32_C(0x19720416)
254/** The value of RTVFSINTERNAL::u32Magic. (Sir Kingsley William Amis) */
255#define RTVFS_MAGIC UINT32_C(0x19220416)
256/** The value of RTVFSINTERNAL::u32Magic after close. */
257#define RTVFS_MAGIC_DEAD UINT32_C(0x19951022)
258/** The value of RTVFSFSSTREAMINTERNAL::u32Magic. (William McGuire "Bill" Bryson) */
259#define RTVFSFSSTREAM_MAGIC UINT32_C(0x19511208)
260/** The value of RTVFSFSSTREAMINTERNAL::u32Magic after close */
261#define RTVFSFSSTREAM_MAGIC_DEAD (~RTVFSFSSTREAM_MAGIC)
262/** The value of RTVFSDIRINTERNAL::u32Magic. (Franklin Patrick Herbert, Jr.) */
263#define RTVFSDIR_MAGIC UINT32_C(0x19201008)
264/** The value of RTVFSDIRINTERNAL::u32Magic after close. */
265#define RTVFSDIR_MAGIC_DEAD UINT32_C(0x19860211)
266/** The value of RTVFSFILEINTERNAL::u32Magic. (Charles John Huffam Dickens) */
267#define RTVFSFILE_MAGIC UINT32_C(0x18120207)
268/** The value of RTVFSFILEINTERNAL::u32Magic after close. */
269#define RTVFSFILE_MAGIC_DEAD UINT32_C(0x18700609)
270/** The value of RTVFSIOSTREAMINTERNAL::u32Magic. (Ernest Miller Hemingway) */
271#define RTVFSIOSTREAM_MAGIC UINT32_C(0x18990721)
272/** The value of RTVFSIOSTREAMINTERNAL::u32Magic after close. */
273#define RTVFSIOSTREAM_MAGIC_DEAD UINT32_C(0x19610702)
274/** The value of RTVFSSYMLINKINTERNAL::u32Magic. (Francis Scott Key Fitzgerald) */
275#define RTVFSSYMLINK_MAGIC UINT32_C(0x18960924)
276/** The value of RTVFSSYMLINKINTERNAL::u32Magic after close. */
277#define RTVFSSYMLINK_MAGIC_DEAD UINT32_C(0x19401221)
278
279/** @} */
280
281#endif /* !IPRT_INCLUDED_INTERNAL_magics_h */
282
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