VirtualBox

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

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

IPRT/crypto: Simple symmetric cipher abstraction with just was we need right now. Untested. bugref:9246

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