VirtualBox

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

Last change on this file since 86186 was 82665, checked in by vboxsync, 5 years ago

IPRT: First commit of FTP server code, along with a tool to run a standalone server. Work in progress. bugref:9437

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