VirtualBox

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

Last change on this file was 106061, checked in by vboxsync, 3 months ago

Copyright year updates by scm.

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