]> git.saurik.com Git - apple/dyld.git/blob - testing/kernel-cache-tests/auxkc-vtable-metaclass-patching/main.cpp
dyld-832.7.1.tar.gz
[apple/dyld.git] / testing / kernel-cache-tests / auxkc-vtable-metaclass-patching / main.cpp
1
2 #include "metaclass.h"
3 #include "osobject.h"
4
5 int __cxa_pure_virtual = 0;
6 void operator delete(void*) { }
7
8 OSMetaClassBase::~OSMetaClassBase() { }
9 void OSMetaClassBase::placeholder() { }
10 //void OSMetaClassBase::_RESERVEDOSMetaClassBase4() { }
11 //void OSMetaClassBase::_RESERVEDOSMetaClassBase5() { }
12 //void OSMetaClassBase::_RESERVEDOSMetaClassBase6() { }
13 //void OSMetaClassBase::_RESERVEDOSMetaClassBase7() { }
14 int OSMetaClassBase::metaclassBaseUsed4() { return 0; }
15 int OSMetaClassBase::metaclassBaseUsed5() { return 0; }
16 int OSMetaClassBase::metaclassBaseUsed6() { return 0; }
17 int OSMetaClassBase::metaclassBaseUsed7() { return 0; }
18
19 OSMetaClass::~OSMetaClass() { }
20 void OSMetaClass::_RESERVEDOSMetaClass0() { }
21 void OSMetaClass::_RESERVEDOSMetaClass1() { }
22 void OSMetaClass::_RESERVEDOSMetaClass2() { }
23 void OSMetaClass::_RESERVEDOSMetaClass3() { }
24 void OSMetaClass::_RESERVEDOSMetaClass4() { }
25 void OSMetaClass::_RESERVEDOSMetaClass5() { }
26 void OSMetaClass::_RESERVEDOSMetaClass6() { }
27 void OSMetaClass::_RESERVEDOSMetaClass7() { }
28
29 OSObject::OSObject(const OSMetaClass *) { }
30 OSObject::~OSObject() { }
31
32 // OSDefineMetaClassAndAbstractStructors(OSObject, 0);
33 /* Class global data */
34 OSObject::MetaClass OSObject::gMetaClass;
35 const OSMetaClass * const OSObject::metaClass = &OSObject::gMetaClass;
36 const OSMetaClass * const OSObject::superClass = NULL;
37
38 OSObject::MetaClass::MetaClass() { }
39 OSObject* OSObject::MetaClass::alloc() const { return NULL; }
40
41 __attribute__((section(("__HIB, __text"))))
42 extern "C" int _start() {
43 return 0;
44 }