39 CFURLRef theFrameworkURL;
40 CFURLRef theBundleURL;
43 theErr = FSFindFolder(kOnAppropriateDisk, kFrameworksFolderType,
false, &theRef);
48 theFrameworkURL = CFURLCreateFromFSRef(kCFAllocatorSystemDefault, &theRef);
50 if (theFrameworkURL !=
NULL)
53 theBundleURL = CFURLCreateCopyAppendingPathComponent(kCFAllocatorSystemDefault,
54 theFrameworkURL, theFrameworkName,
false);
56 CFRelease(theFrameworkURL);
58 if (theBundleURL !=
NULL)
61 *
theBundle = CFBundleCreate(kCFAllocatorSystemDefault, theBundleURL);
63 CFRelease(theBundleURL);
99 CFBundleGetFunctionPointerForName(
__msl_os_x.theBundle, CFSTR(
"read"));
101 CFBundleGetFunctionPointerForName(
__msl_os_x.theBundle, CFSTR(
"write"));
119 CFBundleUnloadExecutable(
__msl_os_x.theBundle);
143long WriteCharsToErrorConsole(
char *
buffer,
long n)
165#pragma unused (fildes)
167 static char *__devicename =
"Terminal";
169 if (fildes >= 0 && fildes <= 2)
170 return (__devicename);
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
int(* ReadPtr)(int, void *, __std(size_t))
int(* WritePtr)(int, const void *, __std(size_t))
static OSErr __msl_CreateFrameworkBundleFromName(CFStringRef theFrameworkName, CFBundleRef *theBundle)
long WriteCharsToConsole(char *buffer, long n)
short InstallConsole(short fd)
long ReadCharsFromConsole(char *buffer, long n)
char * __ttyname(long fildes)
static struct @4275 __msl_os_x