this repo has no description
1
fork

Configure Feed

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

Fixes for xcodebuild

+130
+1
src/CoreServices/CMakeLists.txt
··· 46 46 LSApplicationProxy.m 47 47 LSApplicationWorkspace.m 48 48 constants.m 49 + src/FSEvents.c 49 50 ) 50 51 51 52 if (WITH_COREAUDIO)
+7
src/CoreServices/LaunchServices.cpp
··· 7 7 #include <algorithm> 8 8 #include <errno.h> 9 9 #include <fcntl.h> 10 + #include <stdio.h> 10 11 #include <unicode/unistr.h> 11 12 #include "UniChar.h" 12 13 ··· 109 110 110 111 environ = orig_env; 111 112 return ret; 113 + } 114 + 115 + OSStatus LSRegisterURL(CFURLRef inURL, Boolean inUpdate) 116 + { 117 + printf("STUB: LSRegisterURL"); 118 + return 0; 112 119 } 113 120 114 121 OSStatus LSOpenApplication(const LSApplicationParameters *appParams, ProcessSerialNumber *outPSN)
+57
src/CoreServices/include/FSEvents/FSEvents.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2019 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 + #include <CoreFoundation/CoreFoundation.h> 21 + #include <sys/types.h> 22 + #include <Availability.h> 23 + 24 + typedef struct __FSEventStream* FSEventStreamRef; 25 + typedef const struct __FSEventStream* ConstFSEventStreamRef; 26 + 27 + typedef UInt32 FSEventStreamCreateFlags; 28 + typedef UInt64 FSEventStreamEventId; 29 + typedef UInt32 FSEventStreamEventFlags; 30 + 31 + typedef CALLBACK_API_C(void, FSEventStreamCallback)( 32 + ConstFSEventStreamRef streamRef, 33 + void *clientCallBackInfo, 34 + size_t numEvents, 35 + void *eventPaths, 36 + const FSEventStreamEventFlags *eventFlags, 37 + const FSEventStreamEventId *eventIds); 38 + 39 + struct FSEventStreamContext { 40 + CFIndex version; 41 + void *info; 42 + CFAllocatorRetainCallBack retain; 43 + CFAllocatorReleaseCallBack release; 44 + CFAllocatorCopyDescriptionCallBack copyDesc; 45 + }; 46 + typedef struct FSEventStreamContext FSEventStreamContext; 47 + 48 + extern FSEventStreamRef FSEventStreamCreate( 49 + CFAllocatorRef allocator, 50 + FSEventStreamCallback callback, 51 + FSEventStreamContext *context, 52 + CFArrayRef pathsToWatch, 53 + FSEventStreamEventId sinceWhen, 54 + CFTimeInterval latency, 55 + FSEventStreamCreateFlags flags); 56 + 57 + extern CF_RETURNS_RETAINED CFArrayRef FSEventStreamCopyPathsBeingWatched(ConstFSEventStreamRef streamRef);
+53
src/CoreServices/src/FSEvents.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2019 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 + #include <FSEvents/FSEvents.h> 21 + #include <stdio.h> 22 + #include <stdlib.h> 23 + 24 + struct __FSEventStream { 25 + CFAllocatorRef allocator; 26 + CFArrayRef pathsToWatch; 27 + }; 28 + 29 + FSEventStreamRef FSEventStreamCreate( 30 + CFAllocatorRef allocator, 31 + FSEventStreamCallback callback, 32 + FSEventStreamContext *context, 33 + CFArrayRef pathsToWatch, 34 + FSEventStreamEventId sinceWhen, 35 + CFTimeInterval latency, 36 + FSEventStreamCreateFlags flags) 37 + { 38 + FSEventStreamRef stream = NULL; 39 + printf("STUB %s\n", __PRETTY_FUNCTION__); 40 + stream = CFAllocatorAllocate(allocator, sizeof(struct __FSEventStream), 0); 41 + stream->allocator = allocator; 42 + stream->pathsToWatch = pathsToWatch; 43 + return stream; 44 + } 45 + 46 + CFArrayRef FSEventStreamCopyPathsBeingWatched(ConstFSEventStreamRef streamRef) 47 + { 48 + CFArrayRef copy; 49 + printf("STUB %s\n", __PRETTY_FUNCTION__); 50 + copy = CFArrayCreateCopy(streamRef->allocator, streamRef->pathsToWatch); 51 + copy = CFRetain(copy); 52 + return copy; 53 + }
+1
src/libc/darwin/CMakeLists.txt
··· 9 9 init_cpu_capabilities.c 10 10 kvm.c 11 11 variant.c 12 + darling_hacks.c 12 13 ) 13 14 14 15 add_library(libc-darwin OBJECT ${darwin_sources})
+11
src/libc/darwin/darling_hacks.c
··· 1 + #include <syslog.h> 2 + #include <stdarg.h> 3 + 4 + void syslog$DARWIN_EXTSN(int priority, const char *arg1, ...) 5 + { 6 + const char *format; 7 + va_list args; 8 + va_start(args, arg1); 9 + vsyslog(priority, arg1, args); 10 + va_end(args); 11 + }