41 #ifndef __DATETIMEUTILS__
69 #if PRAGMA_STRUCT_ALIGN
70 #pragma options align = mac68k
71 #elif PRAGMA_STRUCT_PACKPUSH
73 #elif PRAGMA_STRUCT_PACK
113 typedef SignedByte QTypes;
141 volatile short qFlags;
155 volatile short qFlags;
177 #if !OPAQUE_UPP_TYPES
180 uppDeferredTaskProcInfo = 0x0000B802
186 uppDeferredTaskProcInfo,
187 GetCurrentArchitecture());
190 #define NewDeferredTaskUPP(userRoutine) \
192 NewRoutineDescriptor((ProcPtr)(userRoutine), uppDeferredTaskProcInfo, \
193 GetCurrentArchitecture())
207 #if !OPAQUE_UPP_TYPES
214 #define DisposeDeferredTaskUPP(userUPP) DisposeRoutineDescriptor(userUPP)
226 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
227 #pragma parameter InvokeDeferredTaskUPP(__A1, __A0)
231 #if !OPAQUE_UPP_TYPES && \
232 (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
236 CALL_ONE_PARAMETER_UPP(userUPP, uppDeferredTaskProcInfo, dtParam);
239 #define InvokeDeferredTaskUPP(dtParam, userUPP) \
240 CALL_ONE_PARAMETER_UPP((userUPP), uppDeferredTaskProcInfo, (dtParam))
244 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
246 #define NewDeferredTaskProc(userRoutine) NewDeferredTaskUPP(userRoutine)
247 #define CallDeferredTaskProc(userRoutine, dtParam) \
248 InvokeDeferredTaskUPP(dtParam, userRoutine)
255 volatile short dtFlags;
256 DeferredTaskUPP dtAddr;
352 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
353 #pragma parameter __D0 DTInstall(__A0)
358 #if TARGET_CPU_PPC || !TARGET_OS_MAC
359 #define GetMMUMode() ((SInt8)true32b)
360 #define SwapMMUMode(x) (*(SInt8 *)(x) = true32b)
362 #if CALL_NOT_IN_CARBON
377 SInt8 GetMMUMode(
void);
381 #if CALL_NOT_IN_CARBON
396 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
397 #pragma parameter SwapMMUMode(__A0)
399 void SwapMMUMode(SInt8 *mode);
435 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
436 #pragma parameter Delay(__A0, __A1)
439 Delay(
unsigned long numTicks,
unsigned long *finalTicks);
516 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
517 #pragma parameter Enqueue(__A0, __A1)
551 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
552 #pragma parameter __D0 Dequeue(__A0, __A1)
571 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
572 #pragma parameter __D0 SetCurrentA5
590 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
591 #pragma parameter __D0 SetA5(__D0)
617 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
618 #pragma parameter __D0 InitUtil
638 #if CALL_NOT_IN_CARBON
660 SwapInstructionCache(
Boolean cacheEnable);
681 SwapDataCache(
Boolean cacheEnable);
685 #if CALL_NOT_IN_CARBON
736 FlushInstructionCache(
void);
774 FlushDataCache(
void);
785 FlushCodeCache(
void);
791 #if CALL_NOT_IN_CARBON
800 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
801 #pragma parameter __D0 FlushCodeCacheRange(__A0, __A1)
820 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
821 #pragma parameter ReadLocation(__A0)
838 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
839 #pragma parameter WriteLocation(__A0)
878 #define IUMetric() IsMetric()
892 short environsVersion;
947 #if CALL_NOT_IN_CARBON
997 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
998 #pragma parameter __D0 SysEnvirons(__D0, __A0)
1005 #if PRAGMA_STRUCT_ALIGN
1006 #pragma options align = reset
1007 #elif PRAGMA_STRUCT_PACKPUSH
1009 #elif PRAGMA_STRUCT_PACK
1013 #ifdef PRAGMA_IMPORT_OFF
1016 #pragma import reset
International Date and Time Interfaces (previously in TextUtils)
long BigEndianLong
Definition: Endian.h:549
Memory Manager Interfaces.
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
Mixed Mode Manager Interfaces.
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
long SetCurrentA5(void)
Get the current value of A5.
OSErr Dequeue(QElemPtr qElement, QHdrPtr qHeader)
Remove an element from a queue.
OSErr FlushCodeCacheRange(void *address, unsigned long count)
SysPPtr GetSysPPtr(void)
Get address of start of Parameter RAM data.
OSErr SysEnvirons(short versionRequested, SysEnvRec *theWorld)
Get ROM version, machine type, system version, etc.
void Enqueue(QElemPtr qElement, QHdrPtr qHeader)
Add an element to the end of a queue.
OSErr WriteParam(void)
Write Parameter RAM data to non-volatile RAM.
void DisposeDeferredTaskUPP(DeferredTaskUPP userUPP)
void Delay(unsigned long numTicks, unsigned long *finalTicks)
Pause execution for a specified interval.
OSErr DTInstall(DeferredTaskPtr dtTaskPtr)
Add a task to the deferred task queue.
DeferredTaskUPP NewDeferredTaskUPP(DeferredTaskProcPtr userRoutine)
OSErr InitUtil(void)
Copy Parameter RAM to low-memory variables.
void ReadLocation(MachineLocation *loc)
Where is this Macintosh and what time is it?
CFStringRef CSCopyMachineName(void)
void MakeDataExecutable(void *baseAddress, unsigned long length)
long SetA5(long newA5)
Set the current value of A5.
CFStringRef CSCopyUserName(Boolean useShortName)
void InvokeDeferredTaskUPP(long dtParam, DeferredTaskUPP userUPP)
void WriteLocation(const MachineLocation *loc)
Store machine's location and time zone data in RAM.
Patch Manager Interfaces.
typedef CALLBACK_API_REGISTER68K(void, SIInterruptProcPtr,(SPBPtr inParamPtr, Ptr dataBuffer, short peakAmplitude, long sampleSize))
typedef REGISTER_UPP_TYPE(HighHookProcPtr) HighHookUPP
Definition: OSUtils.h:252
Definition: OSUtils.h:281
Definition: OSUtils.h:131
Definition: OSUtils.h:154
Definition: OSUtils.h:891
Definition: OSUtils.h:115