this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add more framework and library stubs

* PlugInKit
* IOPlatformPluginFamily
* libsysmon.dylib

+1278
+6
src/CMakeLists.txt
··· 161 161 ${CMAKE_CURRENT_SOURCE_DIR}/CrashReporterSupport/include 162 162 ${CMAKE_CURRENT_SOURCE_DIR}/SecurityFoundation/include 163 163 ${CMAKE_CURRENT_SOURCE_DIR}/AuthKit/include 164 + ${CMAKE_CURRENT_SOURCE_DIR}/IOPlatformPluginFamily/include 165 + ${CMAKE_CURRENT_SOURCE_DIR}/PlugInKit/include 166 + ${CMAKE_CURRENT_SOURCE_DIR}/libsysmon/include 164 167 ${CMAKE_CURRENT_SOURCE_DIR}/lkm/include 165 168 ) 166 169 ··· 311 314 add_subdirectory(CrashReporterSupport) 312 315 add_subdirectory(SecurityFoundation) 313 316 add_subdirectory(AuthKit) 317 + add_subdirectory(IOPlatformPluginFamily) 318 + add_subdirectory(PlugInKit) 319 + add_subdirectory(libsysmon) 314 320 add_subdirectory(external/bsm) 315 321 add_subdirectory(external/gdb) 316 322 add_subdirectory(external/Heimdal)
+19
src/IOPlatformPluginFamily/CMakeLists.txt
··· 1 + project(IOPlatformPluginFamily) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + file(GLOB PPF_C src/*.c) 7 + 8 + add_framework(IOPlatformPluginFamily 9 + FAT 10 + CURRENT_VERSION 11 + PRIVATE 12 + VERSION "A" 13 + 14 + SOURCES 15 + ${PPF_C} 16 + 17 + DEPENDENCIES 18 + system 19 + )
+28
src/IOPlatformPluginFamily/include/IOPlatformPluginFamily/IOPlatformPluginFamily.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <Foundation/Foundation.h> 21 + 22 + void* IOPPFGetDiagProperty(void); 23 + void* IOPPFGetDiagPropertyFromDict(void); 24 + void* IOPPFGetHandler(void); 25 + void* IOPPFGetProperty(void); 26 + void* IOPPFPrintTest(void); 27 + void* IOPPFSetFanThrottleMode(void); 28 + void* IOPPFSetProperties(void);
+32
src/IOPlatformPluginFamily/src/functions.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <stdlib.h> 22 + static int verbose = 0; 23 + __attribute__((constructor)) static void initme(void) { 24 + verbose = getenv("STUB_VERBOSE") != NULL; 25 + } 26 + void* IOPPFGetDiagProperty(void) { if (verbose) puts("STUB: IOPPFGetDiagProperty called"); return NULL; } 27 + void* IOPPFGetDiagPropertyFromDict(void) { if (verbose) puts("STUB: IOPPFGetDiagPropertyFromDict called"); return NULL; } 28 + void* IOPPFGetHandler(void) { if (verbose) puts("STUB: IOPPFGetHandler called"); return NULL; } 29 + void* IOPPFGetProperty(void) { if (verbose) puts("STUB: IOPPFGetProperty called"); return NULL; } 30 + void* IOPPFPrintTest(void) { if (verbose) puts("STUB: IOPPFPrintTest called"); return NULL; } 31 + void* IOPPFSetFanThrottleMode(void) { if (verbose) puts("STUB: IOPPFSetFanThrottleMode called"); return NULL; } 32 + void* IOPPFSetProperties(void) { if (verbose) puts("STUB: IOPPFSetProperties called"); return NULL; }
+23
src/PlugInKit/CMakeLists.txt
··· 1 + project(PlugInKit) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + file(GLOB PK_C src/*.c) 7 + file(GLOB PK_OBJC src/*.m) 8 + 9 + add_framework(PlugInKit 10 + FAT 11 + CURRENT_VERSION 12 + PRIVATE 13 + VERSION "A" 14 + 15 + SOURCES 16 + ${PK_C} 17 + ${PK_OBJC} 18 + 19 + DEPENDENCIES 20 + system 21 + objc 22 + Foundation 23 + )
+22
src/PlugInKit/include/PlugInKit/PKBundle.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKBundle : NSObject 21 + 22 + @end
+22
src/PlugInKit/include/PlugInKit/PKDaemonClient.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKDaemonClient : NSObject 21 + 22 + @end
+22
src/PlugInKit/include/PlugInKit/PKDiscoveryDriver.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKDiscoveryDriver : NSObject 21 + 22 + @end
+22
src/PlugInKit/include/PlugInKit/PKDiscoveryLSWatcher.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKDiscoveryLSWatcher : NSObject 21 + 22 + @end
+22
src/PlugInKit/include/PlugInKit/PKHost.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKHost : NSObject 21 + 22 + @end
+22
src/PlugInKit/include/PlugInKit/PKHostDefaults.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKHostDefaults : NSUserDefaults 21 + 22 + @end
+24
src/PlugInKit/include/PlugInKit/PKHostPlugIn.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PKPlugInCore.h> 21 + 22 + @interface PKHostPlugIn : PKPlugInCore 23 + 24 + @end
+22
src/PlugInKit/include/PlugInKit/PKManager.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKManager : NSObject 21 + 22 + @end
+22
src/PlugInKit/include/PlugInKit/PKPlugInCore.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKPlugInCore : NSObject 21 + 22 + @end
+22
src/PlugInKit/include/PlugInKit/PKSandboxExtension.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKSandboxExtension : NSObject 21 + 22 + @end
+22
src/PlugInKit/include/PlugInKit/PKService.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKService : NSObject 21 + 22 + @end
+22
src/PlugInKit/include/PlugInKit/PKServiceDefaults.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKServiceDefaults : NSUserDefaults 21 + 22 + @end
+22
src/PlugInKit/include/PlugInKit/PKServicePersonality.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKServicePersonality : PKPlugInCore 21 + 22 + @end
+22
src/PlugInKit/include/PlugInKit/PKXPCObject.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface PKXPCObject : NSObject 21 + 22 + @end
+48
src/PlugInKit/include/PlugInKit/PlugInKit.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <Foundation/Foundation.h> 21 + 22 + void* oslog(void); 23 + void* oslog_ext(void); 24 + void* oslog_ls(void); 25 + void* oslog_traffic(void); 26 + void* pkAugmentInterface(void); 27 + void* pkError(void); 28 + void* pkErrorf(void); 29 + void* pkFindProtocol(void); 30 + void* pkFindProtocols(void); 31 + void* pkIssueSandboxExtension(void); 32 + void* xpc_dictionary_get_array(void); 33 + void* xpc_dictionary_get_dictionary(void); 34 + 35 + #import <PlugInKit/PKHostPlugIn.h> 36 + #import <PlugInKit/PKDiscoveryDriver.h> 37 + #import <PlugInKit/PKDiscoveryLSWatcher.h> 38 + #import <PlugInKit/PKHost.h> 39 + #import <PlugInKit/PKPlugInCore.h> 40 + #import <PlugInKit/PKServicePersonality.h> 41 + #import <PlugInKit/PKService.h> 42 + #import <PlugInKit/PKHostDefaults.h> 43 + #import <PlugInKit/PKServiceDefaults.h> 44 + #import <PlugInKit/PKDaemonClient.h> 45 + #import <PlugInKit/PKBundle.h> 46 + #import <PlugInKit/PKSandboxExtension.h> 47 + #import <PlugInKit/PKXPCObject.h> 48 + #import <PlugInKit/PKManager.h>
+32
src/PlugInKit/src/PKBundle.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKBundle 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKDaemonClient.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKDaemonClient 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKDiscoveryDriver.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKDiscoveryDriver 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKDiscoveryLSWatcher.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKDiscoveryLSWatcher 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKHost.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKHost 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKHostDefaults.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKHostDefaults 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKHostPlugIn.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKHostPlugIn 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKManager.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKManager 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKPlugInCore.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKPlugInCore 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKSandboxExtension.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKSandboxExtension 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKService.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKService 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKServiceDefaults.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKServiceDefaults 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKServicePersonality.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKServicePersonality 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/PlugInKit/src/PKXPCObject.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <PlugInKit/PlugInKit.h> 21 + 22 + @implementation PKXPCObject 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+37
src/PlugInKit/src/functions.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <stdlib.h> 22 + static int verbose = 0; 23 + __attribute__((constructor)) static void initme(void) { 24 + verbose = getenv("STUB_VERBOSE") != NULL; 25 + } 26 + void* oslog(void) { if (verbose) puts("STUB: oslog called"); return NULL; } 27 + void* oslog_ext(void) { if (verbose) puts("STUB: oslog_ext called"); return NULL; } 28 + void* oslog_ls(void) { if (verbose) puts("STUB: oslog_ls called"); return NULL; } 29 + void* oslog_traffic(void) { if (verbose) puts("STUB: oslog_traffic called"); return NULL; } 30 + void* pkAugmentInterface(void) { if (verbose) puts("STUB: pkAugmentInterface called"); return NULL; } 31 + void* pkError(void) { if (verbose) puts("STUB: pkError called"); return NULL; } 32 + void* pkErrorf(void) { if (verbose) puts("STUB: pkErrorf called"); return NULL; } 33 + void* pkFindProtocol(void) { if (verbose) puts("STUB: pkFindProtocol called"); return NULL; } 34 + void* pkFindProtocols(void) { if (verbose) puts("STUB: pkFindProtocols called"); return NULL; } 35 + void* pkIssueSandboxExtension(void) { if (verbose) puts("STUB: pkIssueSandboxExtension called"); return NULL; } 36 + void* xpc_dictionary_get_array(void) { if (verbose) puts("STUB: xpc_dictionary_get_array called"); return NULL; } 37 + void* xpc_dictionary_get_dictionary(void) { if (verbose) puts("STUB: xpc_dictionary_get_dictionary called"); return NULL; }
+16
src/libsysmon/CMakeLists.txt
··· 1 + project(sysmon) 2 + 3 + set(DYLIB_INSTALL_NAME "/usr/lib/libsysmon.dylib") 4 + set(DYLIB_COMPAT_VERSION "1.0.0") 5 + set(DYLIB_CURRENT_VERSION "1.0.0") 6 + 7 + file(GLOB sysmon_objc "src/*.m") 8 + 9 + add_darling_library(sysmon 10 + src/sysmon.c 11 + ${sysmon_objc} 12 + ) 13 + make_fat(sysmon) 14 + target_link_libraries(sysmon system objc Foundation) 15 + 16 + install(TARGETS sysmon DESTINATION libexec/darling/usr/lib)
+26
src/libsysmon/include/sysmon/OS_sysmon_object.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface OS_object 21 + 22 + @end 23 + 24 + @interface OS_sysmon_object : OS_object 25 + 26 + @end
+22
src/libsysmon/include/sysmon/OS_sysmon_request.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface OS_sysmon_request : OS_sysmon_object 21 + 22 + @end
+22
src/libsysmon/include/sysmon/OS_sysmon_row.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface OS_sysmon_row : OS_sysmon_object 21 + 22 + @end
+22
src/libsysmon/include/sysmon/OS_sysmon_table.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + @interface OS_sysmon_table : OS_sysmon_object 21 + 22 + @end
+46
src/libsysmon/include/sysmon/sysmon.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <Foundation/Foundation.h> 21 + 22 + void* sysmon_copy_process_info(void); 23 + void* sysmon_release(void); 24 + void* sysmon_request_add_attribute(void); 25 + void* sysmon_request_add_attributes(void); 26 + void* sysmon_request_alloc(void); 27 + void* sysmon_request_cancel(void); 28 + void* sysmon_request_create(void); 29 + void* sysmon_request_execute(void); 30 + void* sysmon_request_set_flags(void); 31 + void* sysmon_request_set_interval(void); 32 + void* sysmon_retain(void); 33 + void* sysmon_row_alloc(void); 34 + void* sysmon_row_apply(void); 35 + void* sysmon_row_get_value(void); 36 + void* sysmon_table_alloc(void); 37 + void* sysmon_table_apply(void); 38 + void* sysmon_table_copy_row(void); 39 + void* sysmon_table_get_count(void); 40 + void* sysmon_table_get_row(void); 41 + void* sysmon_table_get_timestamp(void); 42 + 43 + #import <sysmon/OS_sysmon_object.h> 44 + #import <sysmon/OS_sysmon_request.h> 45 + #import <sysmon/OS_sysmon_table.h> 46 + #import <sysmon/OS_sysmon_row.h>
+32
src/libsysmon/src/OS_sysmon_object.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <sysmon/sysmon.h> 21 + 22 + @implementation OS_sysmon_object 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/libsysmon/src/OS_sysmon_request.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <sysmon/sysmon.h> 21 + 22 + @implementation OS_sysmon_request 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/libsysmon/src/OS_sysmon_row.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <sysmon/sysmon.h> 21 + 22 + @implementation OS_sysmon_row 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/libsysmon/src/OS_sysmon_table.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <sysmon/sysmon.h> 21 + 22 + @implementation OS_sysmon_table 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+45
src/libsysmon/src/sysmon.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <stdlib.h> 22 + static int verbose = 0; 23 + __attribute__((constructor)) static void initme(void) { 24 + verbose = getenv("STUB_VERBOSE") != NULL; 25 + } 26 + void* sysmon_copy_process_info(void) { if (verbose) puts("STUB: sysmon_copy_process_info called"); return NULL; } 27 + void* sysmon_release(void) { if (verbose) puts("STUB: sysmon_release called"); return NULL; } 28 + void* sysmon_request_add_attribute(void) { if (verbose) puts("STUB: sysmon_request_add_attribute called"); return NULL; } 29 + void* sysmon_request_add_attributes(void) { if (verbose) puts("STUB: sysmon_request_add_attributes called"); return NULL; } 30 + void* sysmon_request_alloc(void) { if (verbose) puts("STUB: sysmon_request_alloc called"); return NULL; } 31 + void* sysmon_request_cancel(void) { if (verbose) puts("STUB: sysmon_request_cancel called"); return NULL; } 32 + void* sysmon_request_create(void) { if (verbose) puts("STUB: sysmon_request_create called"); return NULL; } 33 + void* sysmon_request_execute(void) { if (verbose) puts("STUB: sysmon_request_execute called"); return NULL; } 34 + void* sysmon_request_set_flags(void) { if (verbose) puts("STUB: sysmon_request_set_flags called"); return NULL; } 35 + void* sysmon_request_set_interval(void) { if (verbose) puts("STUB: sysmon_request_set_interval called"); return NULL; } 36 + void* sysmon_retain(void) { if (verbose) puts("STUB: sysmon_retain called"); return NULL; } 37 + void* sysmon_row_alloc(void) { if (verbose) puts("STUB: sysmon_row_alloc called"); return NULL; } 38 + void* sysmon_row_apply(void) { if (verbose) puts("STUB: sysmon_row_apply called"); return NULL; } 39 + void* sysmon_row_get_value(void) { if (verbose) puts("STUB: sysmon_row_get_value called"); return NULL; } 40 + void* sysmon_table_alloc(void) { if (verbose) puts("STUB: sysmon_table_alloc called"); return NULL; } 41 + void* sysmon_table_apply(void) { if (verbose) puts("STUB: sysmon_table_apply called"); return NULL; } 42 + void* sysmon_table_copy_row(void) { if (verbose) puts("STUB: sysmon_table_copy_row called"); return NULL; } 43 + void* sysmon_table_get_count(void) { if (verbose) puts("STUB: sysmon_table_get_count called"); return NULL; } 44 + void* sysmon_table_get_row(void) { if (verbose) puts("STUB: sysmon_table_get_row called"); return NULL; } 45 + void* sysmon_table_get_timestamp(void) { if (verbose) puts("STUB: sysmon_table_get_timestamp called"); return NULL; }