VirtualBox

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

Last change on this file since 94869 was 93115, checked in by vboxsync, 3 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 17.0 KB
Line 
1/* $Id: magics.h 93115 2022-01-01 11:31:46Z vboxsync $ */
2/** @file
3 * IPRT - Internal header defining The Magic Numbers.
4 */
5
6/*
7 * Copyright (C) 2007-2022 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 magic value for RTFTPSERVERINTERNAL::u32Magic. */
87#define RTFTPSERVER_MAGIC UINT32_C(0x20170610)
88/** The value of RTFTPSERVERINTERNAL::u32Magic after close. */
89#define RTFTPSERVER_MAGIC_DEAD (~RTFTPSERVER_MAGIC)
90/** The magic value for RTFTPSERVERINTERNAL::u32Magic. */
91#define RTHTTPSERVER_MAGIC UINT32_C(0x20200602)
92/** The value for RTFTPSERVERINTERNAL::u32Magic after close. */
93#define RTHTTPSERVER_MAGIC_DEAD (~RTHTTPSERVER_MAGIC)
94/** The value of RTENVINTERNAL::u32Magic. (Rumiko Takahashi) */
95#define RTENV_MAGIC UINT32_C(0x19571010)
96/** The value of RTERRVARS::ai32Vars[0]. (Ryuichi Sakamoto) */
97#define RTERRVARS_MAGIC UINT32_C(0x19520117)
98/** The value of RTFSISOMAKERINT::uMagic. (Brian Blade) */
99#define RTFSISOMAKERINT_MAGIC UINT32_C(0x19700725)
100/** Magic number for RTHANDLETABLEINT::u32Magic. (Hitomi Kanehara) */
101#define RTHANDLETABLE_MAGIC UINT32_C(0x19830808)
102/** Magic number for RTHEAPOFFSETINTERNAL::u32Magic. (Neal Town Stephenson) */
103#define RTHEAPOFFSET_MAGIC UINT32_C(0x19591031)
104/** Magic number for RTHEAPSIMPLEINTERNAL::uMagic. (Kyoichi Katayama) */
105#define RTHEAPSIMPLE_MAGIC UINT32_C(0x19590105)
106/** The magic value for RTHTTPINTERNAL::u32Magic. (Karl May) */
107#define RTHTTP_MAGIC UINT32_C(0x18420225)
108/** The value of RTHTTPINTERNAL::u32Magic after close. */
109#define RTHTTP_MAGIC_DEAD UINT32_C(0x19120330)
110/** The magic value for RTHTTPHEADERLISTINTERNAL::u32Magic. (Ken Follett) */
111#define RTHTTPHEADERLIST_MAGIC UINT32_C(0x19490605)
112/** The value of RTHTTPHEADERLISTINTERNAL::u32Magic after close. */
113#define RTHTTPHEADERLIST_MAGIC_DEAD (~RTHTTPHEADERLIST_MAGIC)
114/** The value of RTINIFILEINT::u32Magic. (Jane Austen) */
115#define RTINIFILE_MAGIC UINT32_C(0x17751216)
116/** The value of RTINIFILEINT::u32Magic after close. */
117#define RTINIFILE_MAGIC_DEAD UINT32_C(0x18170718)
118/** The magic value for RTLDRMODINTERNAL::u32Magic. (Alan Moore) */
119#define RTLDRMOD_MAGIC UINT32_C(0x19531118)
120/** The magic value for RTLOCALIPCSERVER::u32Magic. (Naoki Yamamoto) */
121#define RTLOCALIPCSERVER_MAGIC UINT32_C(0x19600201)
122/** The magic value for RTLOCALIPCSERVER::u32Magic. (Katsuhiro Otomo) */
123#define RTLOCALIPCSESSION_MAGIC UINT32_C(0x19530414)
124/** The magic value for RTLOCKVALCLASSINT::u32Magic. (Thomas Mann) */
125#define RTLOCKVALCLASS_MAGIC UINT32_C(0x18750605)
126/** The magic value for RTLOCKVALCLASSINT::u32Magic after destruction. */
127#define RTLOCKVALCLASS_MAGIC_DEAD UINT32_C(0x19550812)
128/** The magic value for RTLOCKVALRECEXCL::u32Magic. (Vladimir Vladimirovich Nabokov) */
129#define RTLOCKVALRECEXCL_MAGIC UINT32_C(0x18990422)
130/** The dead magic value for RTLOCKVALRECEXCL::u32Magic. */
131#define RTLOCKVALRECEXCL_MAGIC_DEAD UINT32_C(0x19770702)
132/** The magic value for RTLOCKVALRECSHRD::u32Magic. (Agnar Mykle) */
133#define RTLOCKVALRECSHRD_MAGIC UINT32_C(0x19150808)
134/** The magic value for RTLOCKVALRECSHRD::u32Magic after deletion. */
135#define RTLOCKVALRECSHRD_MAGIC_DEAD UINT32_C(0x19940115)
136/** The magic value for RTLOCKVALRECSHRDOWN::u32Magic. (Jens Ingvald Bjoerneboe) */
137#define RTLOCKVALRECSHRDOWN_MAGIC UINT32_C(0x19201009)
138/** The magic value for RTLOCKVALRECSHRDOWN::u32Magic after deletion. */
139#define RTLOCKVALRECSHRDOWN_MAGIC_DEAD UINT32_C(0x19760509)
140/** The magic value for RTLOCKVALRECNEST::u32Magic. (Anne Desclos) */
141#define RTLOCKVALRECNEST_MAGIC UINT32_C(0x19071123)
142/** The magic value for RTLOCKVALRECNEST::u32Magic after deletion. */
143#define RTLOCKVALRECNEST_MAGIC_DEAD UINT32_C(0x19980427)
144/** Magic number for RTMEMCACHEINT::u32Magic. (Joseph Weizenbaum) */
145#define RTMEMCACHE_MAGIC UINT32_C(0x19230108)
146/** Dead magic number for RTMEMCACHEINT::u32Magic. */
147#define RTMEMCACHE_MAGIC_DEAD UINT32_C(0x20080305)
148/** The magic value for RTMEMPOOL::u32Magic. (Jane Austin) */
149#define RTMEMPOOL_MAGIC UINT32_C(0x17751216)
150/** The magic value for RTMEMPOOL::u32Magic after RTMemPoolDestroy. */
151#define RTMEMPOOL_MAGIC_DEAD UINT32_C(0x18170718)
152/** The magic value for heap blocks. (Edgar Allan Poe) */
153#define RTMEMHDR_MAGIC UINT32_C(0x18090119)
154/** The magic value for heap blocks after freeing. */
155#define RTMEMHDR_MAGIC_DEAD UINT32_C(0x18491007)
156/** The value of RTPIPEINTERNAL::u32Magic. (Frank Schaetzing) */
157#define RTPIPE_MAGIC UINT32_C(0x19570528)
158/** The value of RTPOLLSETINTERNAL::u32Magic. (Ai Yazawa) */
159#define RTPOLLSET_MAGIC UINT32_C(0x19670307)
160/** RTR0MEMOBJ::u32Magic. (Masakazu Katsura) */
161#define RTR0MEMOBJ_MAGIC UINT32_C(0x19611210)
162/** RTRANDINT::u32Magic. (Alan Moore) */
163#define RTRANDINT_MAGIC UINT32_C(0x19531118)
164/** The value of RTREQ::u32Magic. */
165#define RTREQ_MAGIC UINT32_C(0xfeed0001) /**< @todo find a value */
166/** The value of RTREQ::u32Magic of a freed request. */
167#define RTREQ_MAGIC_DEAD (~RTREQ_MAGIC)
168/** The value of RTREQPOOLINT::u32Magic. */
169#define RTREQPOOL_MAGIC UINT32_C(0xfeed0002)/**< @todo find a value */
170/** The value of RTREQPOOLINT::u32Magic after destruction. */
171#define RTREQPOOL_MAGIC_DEAD (~RTREQPOOL_MAGIC)
172/** The value of RTREQQUEUEINT::u32Magic. */
173#define RTREQQUEUE_MAGIC UINT32_C(0xfeed0003)/**< @todo find a value */
174/** The value of RTREQQUEUEINT::u32Magic after destruction. */
175#define RTREQQUEUE_MAGIC_DEAD (~RTREQQUEUE_MAGIC)
176/** The value of RTS3::u32Magic. (Edgar Wallace) */
177#define RTS3_MAGIC UINT32_C(0x18750401)
178/** The value of RTS3::u32Magic after RTS3Destroy(). */
179#define RTS3_MAGIC_DEAD UINT32_C(0x19320210)
180/** Magic for the event semaphore structure. (Neil Gaiman) */
181#define RTSEMEVENT_MAGIC UINT32_C(0x19601110)
182/** Magic for the multiple release event semaphore structure. (Isaac Asimov) */
183#define RTSEMEVENTMULTI_MAGIC UINT32_C(0x19200102)
184/** Dead magic value for multiple release event semaphore structures. */
185#define RTSEMEVENTMULTI_MAGIC_DEAD UINT32_C(0x19920406)
186/** Magic value for RTSEMFASTMUTEXINTERNAL::u32Magic. (John Ronald Reuel Tolkien) */
187#define RTSEMFASTMUTEX_MAGIC UINT32_C(0x18920103)
188/** Dead magic value for RTSEMFASTMUTEXINTERNAL::u32Magic. */
189#define RTSEMFASTMUTEX_MAGIC_DEAD UINT32_C(0x19730902)
190/** Magic for the mutex semaphore structure. (Douglas Adams) */
191#define RTSEMMUTEX_MAGIC UINT32_C(0x19520311)
192/** Dead magic for the mutex semaphore structure. */
193#define RTSEMMUTEX_MAGIC_DEAD UINT32_C(0x20010511)
194/** Magic for the spinning mutex semaphore structure. (Natsume Soseki) */
195#define RTSEMSPINMUTEX_MAGIC UINT32_C(0x18670209)
196/** Dead magic value for RTSEMSPINMUTEXINTERNAL::u32Magic. */
197#define RTSEMSPINMUTEX_MAGIC_DEAD UINT32_C(0x19161209)
198/** RTSEMRWINTERNAL::u32Magic value. (Kosuke Fujishima) */
199#define RTSEMRW_MAGIC UINT32_C(0x19640707)
200/** RTSEMXROADSINTERNAL::u32Magic value. (Kenneth Elton "Ken" Kesey) */
201#define RTSEMXROADS_MAGIC UINT32_C(0x19350917)
202/** RTSEMXROADSINTERNAL::u32Magic value after RTSemXRoadsDestroy. */
203#define RTSEMXROADS_MAGIC_DEAD UINT32_C(0x20011110)
204/** RTSERIALPORTINTERNAL::u32Magic value (Jules-Gabriel Verne). */
205#define RTSERIALPORT_MAGIC UINT32_C(0x18280208)
206/** RTSERIALPORTINTERNAL::u32Magic value after RTSerialPortClose. */
207#define RTSERIALPORT_MAGIC_DEAD UINT32_C(0x19050324)
208/** RTSHMEMINT::u32Magic value (Stephen William Hawking) */
209#define RTSHMEM_MAGIC UINT32_C(0x19420108)
210/** RTSHMEMINT::u32Magic value after RTShMemClose */
211#define RTSHMEM_MAGIC_DEAD UINT32_C(0x20180314)
212/** The magic value for RTSOCKETINT::u32Magic. (Stanislaw Lem) */
213#define RTSOCKET_MAGIC UINT32_C(0x19210912)
214/** The magic value for RTSOCKETINT::u32Magic after destruction. */
215#define RTSOCKET_MAGIC_DEAD UINT32_C(0x20060326)
216/** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */
217#define RTSPINLOCK_MAGIC UINT32_C(0x19480428)
218/** Magic value for generic RTSPINLOCKINTERNAL::u32Magic (Georges Prosper Remi). */
219#define RTSPINLOCK_GEN_MAGIC UINT32_C(0x10970522)
220/** Magic value for RTSTRCACHE::u32Magic. (Sir Arthur Charles Clarke) */
221#define RTSTRCACHE_MAGIC UINT32_C(0x19171216)
222/** Magic value for RTSTRCACHE::u32Magic after RTStrCacheDestroy. */
223#define RTSTRCACHE_MAGIC_DEAD UINT32_C(0x20080319)
224/** The value of RTSTREAM::u32Magic for a valid stream. */
225#define RTSTREAM_MAGIC UINT32_C(0xe44e44ee)
226/** Magic value for RTTCPSERVER::u32Magic. (Jan Garbarek) */
227#define RTTCPSERVER_MAGIC UINT32_C(0x19470304)
228/** Magic value for RTTCPSERVER::u32Magic. (Harlan Ellison) */
229#define RTUDPSERVER_MAGIC UINT32_C(0x19340527)
230/** The value of RTTAR::u32Magic. (Donald Ervin Knuth) */
231#define RTTAR_MAGIC UINT32_C(0x19380110)
232/** The value of RTTAR::u32Magic after RTTarClose(). */
233#define RTTAR_MAGIC_DEAD ~RTTAR_MAGIC
234/** The value of RTTARFILE::u32Magic. (Abraham Stoker) */
235#define RTTARFILE_MAGIC UINT32_C(0x18471108)
236/** The value of RTTARFILE::u32Magic after RTTarFileClose(). */
237#define RTTARFILE_MAGIC_DEAD UINT32_C(0x19120420)
238/** RTTESTINT::u32Magic value. (Daniel Kehlmann) */
239#define RTTESTINT_MAGIC UINT32_C(0x19750113)
240/** RTTHREADCTXHOOKINT::u32Magic value. (Dennis MacAlistair Ritchie) */
241#define RTTHREADCTXHOOKINT_MAGIC UINT32_C(0x19410909)
242/** RTTHREADINT::u32Magic value. (Gilbert Keith Chesterton) */
243#define RTTHREADINT_MAGIC UINT32_C(0x18740529)
244/** RTTHREADINT::u32Magic value for a dead thread. */
245#define RTTHREADINT_MAGIC_DEAD UINT32_C(0x19360614)
246/** Magic number for timer handles. (Jared Mason Diamond) */
247#define RTTIMER_MAGIC UINT32_C(0x19370910)
248/** Magic number for timer low resolution handles. (Saki Hiwatari) */
249#define RTTIMERLR_MAGIC UINT32_C(0x19610715)
250/** Magic value of RTTRACEBUFINT::u32Magic. (George Orwell) */
251#define RTTRACEBUF_MAGIC UINT32_C(0x19030625)
252/** Magic value of RTTRACEBUFINT::u32Magic after the final release. */
253#define RTTRACEBUF_MAGIC_DEAD UINT32_C(0x19500121)
254/** The value of RTTRACELOGRDRINT::u32Magic. (John Michael Scalzi) */
255#define RTTRACELOGRDR_MAGIC UINT32_C(0x19690510)
256/** The value of RTTRACELOGRDRINT::u32Magic after RTTraceLogRdrDestroy(). */
257#define RTTRACELOGRDR_MAGIC_DEAD (~RTTRACELOGRDR_MAGIC)
258/** The value of RTTRACELOGWRINT::u32Magic. (Herbert George Wells) */
259#define RTTRACELOGWR_MAGIC UINT32_C(0x18660921)
260/** The value of RTTRACELOGWRINT::u32Magic after RTTraceLogWrDestroy(). */
261#define RTTRACELOGWR_MAGIC_DEAD UINT32_C(0x19460813)
262/** The value of RTVFSOBJINTERNAL::u32Magic. (Yasunari Kawabata) */
263#define RTVFSOBJ_MAGIC UINT32_C(0x18990614)
264/** The value of RTVFSOBJINTERNAL::u32Magic after close. */
265#define RTVFSOBJ_MAGIC_DEAD UINT32_C(0x19720416)
266/** The value of RTVFSINTERNAL::u32Magic. (Sir Kingsley William Amis) */
267#define RTVFS_MAGIC UINT32_C(0x19220416)
268/** The value of RTVFSINTERNAL::u32Magic after close. */
269#define RTVFS_MAGIC_DEAD UINT32_C(0x19951022)
270/** The value of RTVFSFSSTREAMINTERNAL::u32Magic. (William McGuire "Bill" Bryson) */
271#define RTVFSFSSTREAM_MAGIC UINT32_C(0x19511208)
272/** The value of RTVFSFSSTREAMINTERNAL::u32Magic after close */
273#define RTVFSFSSTREAM_MAGIC_DEAD (~RTVFSFSSTREAM_MAGIC)
274/** The value of RTVFSDIRINTERNAL::u32Magic. (Franklin Patrick Herbert, Jr.) */
275#define RTVFSDIR_MAGIC UINT32_C(0x19201008)
276/** The value of RTVFSDIRINTERNAL::u32Magic after close. */
277#define RTVFSDIR_MAGIC_DEAD UINT32_C(0x19860211)
278/** The value of RTVFSFILEINTERNAL::u32Magic. (Charles John Huffam Dickens) */
279#define RTVFSFILE_MAGIC UINT32_C(0x18120207)
280/** The value of RTVFSFILEINTERNAL::u32Magic after close. */
281#define RTVFSFILE_MAGIC_DEAD UINT32_C(0x18700609)
282/** The value of RTVFSIOSTREAMINTERNAL::u32Magic. (Ernest Miller Hemingway) */
283#define RTVFSIOSTREAM_MAGIC UINT32_C(0x18990721)
284/** The value of RTVFSIOSTREAMINTERNAL::u32Magic after close. */
285#define RTVFSIOSTREAM_MAGIC_DEAD UINT32_C(0x19610702)
286/** The value of RTVFSSYMLINKINTERNAL::u32Magic. (Francis Scott Key Fitzgerald) */
287#define RTVFSSYMLINK_MAGIC UINT32_C(0x18960924)
288/** The value of RTVFSSYMLINKINTERNAL::u32Magic after close. */
289#define RTVFSSYMLINK_MAGIC_DEAD UINT32_C(0x19401221)
290
291/** @} */
292
293#endif /* !IPRT_INCLUDED_INTERNAL_magics_h */
294
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