- Timestamp:
- Mar 4, 2007 8:42:13 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r1075 r1190 163 163 # build enhanced version of rdesktop 164 164 VBOX_WITH_VRDP_RDESKTOP = 1 165 ifeq ($( BUILD_TARGET),darwin)165 ifeq ($(filter-out darwin os2,$(BUILD_TARGET)),) 166 166 # build the support driver & library without IDT patching. 167 167 ## @todo invert this! … … 1116 1116 ifeq ($(VBOX_LDR_FMT),lx) 1117 1117 TEMPLATE_VBOXR0_TOOL = GCC3OMF 1118 TEMPLATE_VBOXR0_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs $(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing 1118 1119 TEMPLATE_VBOXR0_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs $(VBOX_GCC_Wno-variadic-macros) -pipe -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing 1119 TEMPLATE_VBOXR0_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs $(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing1120 1120 TEMPLATE_VBOXR0_LDFLAGS = -Zdll -nostdlib 1121 1121 TEMPLATE_VBOXR0_LIBS = \ … … 1180 1180 ifeq ($(BUILD_TARGET),os2) 1181 1181 TEMPLATE_VBOXR0DRV_TOOL = GCC3OMF 1182 TEMPLATE_VBOXR0DRV_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs $(VBOX_GCC_Wno-variadic-macros) -pipe $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing 1182 TEMPLATE_VBOXR0DRV_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs $(VBOX_GCC_Wno-variadic-macros) -pipe $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fno-rtti -fno-exceptions 1183 1183 TEMPLATE_VBOXR0DRV_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs $(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing 1184 TEMPLATE_VBOXR0DRV_LIBS = $(VBOX_GCC_LIBGCC) 1185 # wlink thinks physdevice doesn't need fixups and should have a stack - stupid! 1186 TEMPLATE_VBOXR0DRV_LDFLAGS = -Zlinker Option -Zlinker internalrelocs, -Zlinker togglerelocs 1184 1187 endif 1185 1188 -
trunk/include/iprt/asmdefs.mac
r74 r1190 115 115 116 116 ;; 117 ; Ends a C callab ke procedure.117 ; Ends a C callable procedure. 118 118 %macro ENDPROC 1 119 119 GLOBALNAME %1_EndProc … … 122 122 123 123 124 ; 125 ; Do OMF segment definitions 126 ; 127 %ifdef ASM_FORMAT_OMF 128 129 ; 16-bit segments first (OMF / OS/2 specific). 130 %ifdef RT_INCL_16BIT_SEGMENTS 131 segment DATA16 public CLASS=FAR_DATA align=16 use16 132 segment DATA16_INIT public CLASS=FAR_DATA align=16 use16 133 group DGROUP16 DATA16 DATA16_INIT 134 135 ;; 136 ; Begins 16-bit data 137 %macro BEGINDATA16 0 138 segment DATA16 139 %endmacro 140 141 ;; 142 ; Begins 16-bit init data 143 %macro BEGINDATA16INIT 0 144 segment DATA16_INIT 145 %endmacro 146 147 segment CODE16 public CLASS=FAR_CODE align=16 use16 148 segment CODE16_INIT public CLASS=FAR_CODE align=16 use16 149 group CGROUP16 CODE16 CODE16_INIT 150 151 ;; 152 ; Begins 16-bit code 153 %macro BEGINCODE16 0 154 segment CODE16 155 %endmacro 156 157 ;; 158 ; Begins 16-bit init code 159 %macro BEGINCODE16INIT 0 160 segment CODE16_INIT 161 %endmacro 162 163 %endif 164 165 ; 32-bit segments. 166 segment TEXT32 public CLASS=CODE align=16 use32 flat 167 segment DATA32 public CLASS=DATA align=16 use32 flat 168 segment BSS32 public CLASS=BSS align=16 use32 flat 169 170 ; Make the TEXT32 segment default. 171 segment TEXT32 172 %endif 173 174 124 175 ;; 125 176 ; Begins code 126 177 %ifdef ASM_FORMAT_OMF 127 178 %macro BEGINCODE 0 128 %ifndef _DONE_BEGINCODE 129 %define _DONE_BEGINCODE 1 130 segment TEXT32 public CLASS=CODE align=16 use32 flat 131 %else 132 segment TEXT32 133 %endif 179 segment TEXT32 134 180 %endmacro 135 181 %else … … 144 190 %ifdef ASM_FORMAT_OMF 145 191 %macro BEGINDATA 0 146 %ifndef _DONE_BEGINDATA 147 %define _DONE_BEGINDATA 1 148 segment DATA32 public CLASS=DATA align=16 use32 flat 149 %else 150 segment DATA32 151 %endif 192 segment DATA32 152 193 %endmacro 153 194 %else … … 161 202 %ifdef ASM_FORMAT_OMF 162 203 %macro BEGINBSS 0 163 %ifndef _DONE_BEGINBSS 164 %define _DONE_BEGINBSS 165 segment BSS32 public CLASS=BSS align=16 use32 flat 166 %else 167 segment BSS32 168 %endif 204 segment BSS32 169 205 %endmacro 170 206 %else … … 407 443 408 444 ;; @def RTHCPTR_RES 409 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 445 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 410 446 ; host physical address variable 411 447 %define RTHCPHYS_RES resq … … 426 462 427 463 ;; @def RTGCPTR_RES 428 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 464 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 429 465 ; guest physical address variable 430 466 %define RTGCPHYS_RES resd … … 516 552 517 553 ;; @def xAX 518 ; RAX or EAX depending on context. 554 ; RAX or EAX depending on context. 519 555 520 556 ;; @def xBX 521 ; RBX or EBX depending on context. 557 ; RBX or EBX depending on context. 522 558 523 559 ;; @def xCX 524 ; RCX or ECX depending on context. 560 ; RCX or ECX depending on context. 525 561 526 562 ;; @def xDX 527 ; RDX or EDX depending on context. 563 ; RDX or EDX depending on context. 528 564 529 565 ;; @def xDI 530 ; RDI or EDI depending on context. 566 ; RDI or EDI depending on context. 531 567 532 568 ;; @def xSI 533 ; RSI or ESI depending on context. 569 ; RSI or ESI depending on context. 534 570 535 571 %ifdef __AMD64__ -
trunk/src/VBox/Runtime/Makefile
r1174 r1190 657 657 misc/sanity-c.c \ 658 658 assert.cpp \ 659 generic/RTAssertDoBreakpoint-generic.cpp \660 659 log.cpp \ 661 660 logcom.cpp \ … … 678 677 679 678 RuntimeR0Drv_SOURCES.linux = \ 679 generic/RTAssertDoBreakpoint-generic.cpp \ 680 680 alloc/heapsimple.cpp \ 681 681 r0drv/linux/alloc-r0drv-linux.c \ … … 688 688 689 689 RuntimeR0Drv_SOURCES.win = \ 690 generic/RTAssertDoBreakpoint-generic.cpp \ 690 691 nt/RTErrConvertFromNtStatus.cpp \ 691 692 r0drv/nt/alloc-r0drv-nt.cpp \ … … 702 703 703 704 RuntimeR0Drv_SOURCES.darwin = \ 705 generic/RTAssertDoBreakpoint-generic.cpp \ 704 706 RTErrConvertFromErrno.cpp \ 705 707 string/memchr.asm \ … … 718 720 generic/timer-generic.cpp \ 719 721 722 RuntimeR0Drv_DEFS.os2 += RT_WITHOUT_NOCRT_WRAPPERS 720 723 RuntimeR0Drv_SOURCES.os2 = \ 724 string/memchr.asm \ 725 string/memcmp.asm \ 726 string/memcpy.asm \ 727 string/mempcpy.asm \ 728 string/memset.asm \ 729 string/strchr.asm \ 730 string/strcmp.asm \ 731 \ 732 string/strcpy.cpp \ 733 string/strlen.cpp \ 734 string/strncmp.cpp \ 735 \ 721 736 os2/RTErrConvertFromOS2.cpp \ 722 os2/sys0.asm 737 os2/sys0.asm \ 738 thread.cpp \ 739 r0drv/memobj-r0drv.cpp \ 740 r0drv/os2/alloc-r0drv-os2.cpp \ 741 r0drv/os2/assert-r0drv-os2.cpp \ 742 r0drv/os2/assertA-r0drv-os2.asm \ 743 r0drv/os2/initterm-r0drv-os2.cpp \ 744 r0drv/os2/memobj-r0drv-os2.cpp \ 745 r0drv/os2/os2imports.imp \ 746 r0drv/os2/process-r0drv-os2.cpp \ 747 r0drv/os2/semevent-r0drv-os2.cpp \ 748 r0drv/os2/semeventmulti-r0drv-os2.cpp \ 749 r0drv/os2/semfastmutex-r0drv-os2.cpp \ 750 r0drv/os2/spinlock-r0drv-os2.cpp \ 751 r0drv/os2/thread-r0drv-os2.cpp \ 752 r0drv/os2/thread2-r0drv-os2.cpp \ 753 r0drv/os2/time-r0drv-os2.cpp \ 754 r0drv/os2/timer-r0drv-os2.cpp \ 755 r0drv/os2/timerA-r0drv-os2.asm \ 756 r0drv/os2/RTAssertDoBreakpoint-r0drv-os2.asm \ 757 r0drv/os2/RTR0Os2DHQueryDOSVar.asm \ 758 r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \ 759 generic/RTLogWriteDebugger-generic.cpp 723 760 724 761 ## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here. -
trunk/src/VBox/Runtime/assert.cpp
r938 r1190 73 73 #elif defined(IN_RING0) 74 74 75 76 #if 0 /* this code is totally unused */ 77 78 #include <VBox/sup.h> 79 80 81 /** 82 * The 1st part of an assert message. 83 * 84 * @param pszExpr Expression. Can be NULL. 85 * @param uLine Location line number. 86 * @param pszFile Location file name. 87 * @param pszFunction Location function name. 88 * @remark This API exists in HC Ring-3 and GC. 89 */ 90 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction) 91 { 92 SUPR0Printf("\n!!Assertion Failed!!\n" 93 "Expression: %s\n" 94 "Location : %s(%d) %s\n", 95 pszExpr, pszFile, uLine, pszFunction); 96 #if !defined(IN_RING3) && !defined(LOG_NO_COM) 97 RTLogComPrintf("\n!!Assertion Failed!!\n" 98 "Expression: %s\n" 99 "Location : %s(%d) %s\n", 100 pszExpr, pszFile, uLine, pszFunction); 101 #endif 102 } 103 104 105 /** 106 * The 2nd (optional) part of an assert message. 107 * 108 * @param pszFormat Printf like format string. 109 * @param ... Arguments to that string. 110 * @remark This API exists in HC Ring-3 and GC. 111 */ 112 #ifdef __GNUC__ 113 /* asm (".globl AssertMsg2; AssertMsg2: jmp *SUPR0Printf"); - DEADLY! */ 114 #else 115 __declspec(naked) void AssertMsg2(const char *pszFormat, ...) 116 { /* forwarder. */ 117 __asm jmp dword ptr [SUPR0Printf]; 118 } 119 #endif 120 121 #endif /* dead code */ 75 /* OS specific. */ 122 76 123 77 #else /* !IN_RING0 */ -
trunk/src/VBox/Runtime/include/internal/memobj.h
r392 r1190 101 101 /** The memory address. 102 102 * What this really is varies with the type. 103 * For PAGE, CONT, LOW, and MAP_R0 it's the ring-0 mapping.104 * For LOCK _USER and MAP_R3 it is the ring-3 mapping.103 * For PAGE, CONT, LOW, RES_VIRT, LOCK/R0 and MAP/R0 it's the ring-0 mapping. 104 * For LOCK/R3 and MAP/R3 it is the ring-3 mapping. 105 105 * For PHYS this might actually be NULL if there isn't any mapping. 106 106 */ … … 360 360 361 361 PRTR0MEMOBJINTERNAL rtR0MemObjNew(size_t cbSelf, RTR0MEMOBJTYPE enmType, void *pv, size_t cb); 362 void rtR0MemObjDelete(PRTR0MEMOBJINTERNAL pMem); 362 363 363 364 /** @} */ -
trunk/src/VBox/Runtime/os2/RTErrConvertFromOS2.cpp
r1 r1190 160 160 161 161 case ERROR_INTERRUPT: return VERR_INTERRUPTED; 162 163 case ERROR_BUSY: return VERR_MEMORY_BUSY; 162 164 //case ERROR_NO_UNICODE_TRANSLATION: return VERR_NO_TRANSLATION; 163 165 } -
trunk/src/VBox/Runtime/r0drv/memobj-r0drv.cpp
r393 r1190 70 70 71 71 /** 72 * Deletes an incomplete memory object. 73 * 74 * This is for cleaning up after failures during object creation. 75 * 76 * @param pMem The incomplete memory object to delete. 77 */ 78 void rtR0MemObjDelete(PRTR0MEMOBJINTERNAL pMem) 79 { 80 if (pMem) 81 { 82 pMem->u32Magic++; 83 pMem->enmType = RTR0MEMOBJTYPE_END; 84 RTMemFree(pMem); 85 } 86 } 87 88 89 /** 72 90 * Links a mapping object to a primary object. 73 91 * … … 117 135 AssertPtrReturn(MemObj, false); 118 136 PRTR0MEMOBJINTERNAL pMem = (PRTR0MEMOBJINTERNAL)MemObj; 119 Assert Return(pMem->u32Magic == RTR0MEMOBJ_MAGIC, false);120 Assert Return(pMem->enmType > RTR0MEMOBJTYPE_INVALID && pMem->enmType < RTR0MEMOBJTYPE_END, false);137 AssertMsgReturn(pMem->u32Magic == RTR0MEMOBJ_MAGIC, ("%p: %#x\n", pMem, pMem->u32Magic), false); 138 AssertMsgReturn(pMem->enmType > RTR0MEMOBJTYPE_INVALID && pMem->enmType < RTR0MEMOBJTYPE_END, ("%p: %d\n", pMem, pMem->enmType), false); 121 139 122 140 /* hand it on to the inlined worker. */ … … 137 155 AssertPtrReturn(MemObj, 0); 138 156 PRTR0MEMOBJINTERNAL pMem = (PRTR0MEMOBJINTERNAL)MemObj; 139 Assert Return(pMem->u32Magic == RTR0MEMOBJ_MAGIC, 0);140 Assert Return(pMem->enmType > RTR0MEMOBJTYPE_INVALID && pMem->enmType < RTR0MEMOBJTYPE_END, 0);157 AssertMsgReturn(pMem->u32Magic == RTR0MEMOBJ_MAGIC, ("%p: %#x\n", pMem, pMem->u32Magic), 0); 158 AssertMsgReturn(pMem->enmType > RTR0MEMOBJTYPE_INVALID && pMem->enmType < RTR0MEMOBJTYPE_END, ("%p: %d\n", pMem, pMem->enmType), 0); 141 159 142 160 /* return the mapping address. */ … … 157 175 AssertPtrReturn(MemObj, 0); 158 176 PRTR0MEMOBJINTERNAL pMem = (PRTR0MEMOBJINTERNAL)MemObj; 159 Assert Return(pMem->u32Magic == RTR0MEMOBJ_MAGIC, 0);160 Assert Return(pMem->enmType > RTR0MEMOBJTYPE_INVALID && pMem->enmType < RTR0MEMOBJTYPE_END, 0);177 AssertMsgReturn(pMem->u32Magic == RTR0MEMOBJ_MAGIC, ("%p: %#x\n", pMem, pMem->u32Magic), 0); 178 AssertMsgReturn(pMem->enmType > RTR0MEMOBJTYPE_INVALID && pMem->enmType < RTR0MEMOBJTYPE_END, ("%p: %d\n", pMem, pMem->enmType), 0); 161 179 162 180 /* return the size. */ … … 182 200 AssertReturn(pMem->u32Magic == RTR0MEMOBJ_MAGIC, NIL_RTHCPHYS); 183 201 AssertReturn(pMem->enmType > RTR0MEMOBJTYPE_INVALID && pMem->enmType < RTR0MEMOBJTYPE_END, NIL_RTHCPHYS); 202 AssertMsgReturn(pMem->u32Magic == RTR0MEMOBJ_MAGIC, ("%p: %#x\n", pMem, pMem->u32Magic), NIL_RTHCPHYS); 203 AssertMsgReturn(pMem->enmType > RTR0MEMOBJTYPE_INVALID && pMem->enmType < RTR0MEMOBJTYPE_END, ("%p: %d\n", pMem, pMem->enmType), NIL_RTHCPHYS); 184 204 const unsigned cPages = (pMem->cb >> PAGE_SHIFT); 185 205 if (iPage >= cPages) -
trunk/src/VBox/Runtime/r3/alloc.cpp
r1 r1190 128 128 void *pv = calloc(1, cb); 129 129 AssertMsg(pv, ("calloc(1,%d) failed!!!\n", cb)); 130 #ifdef __OS2__ /* temporary workaround until libc062. */ 131 AssertMsg( cb < 32 132 || !((uintptr_t)pv & (RTMEM_ALIGNMENT - 1)), ("pv=%p RTMEM_ALIGNMENT=%#x\n", pv, RTMEM_ALIGNMENT)); 133 #else 130 134 AssertMsg( cb < RTMEM_ALIGNMENT 131 135 || !((uintptr_t)pv & (RTMEM_ALIGNMENT - 1)), ("pv=%p RTMEM_ALIGNMENT=%#x\n", pv, RTMEM_ALIGNMENT)); 136 #endif 132 137 #endif /* !RTALLOC_USE_EFENCE */ 133 138 return pv; … … 152 157 void *pv = realloc(pvOld, cbNew); 153 158 AssertMsg(pv && cbNew, ("realloc(%p, %d) failed!!!\n", pvOld, cbNew)); 159 #ifdef __OS2__ /* temporary workaround until libc062. */ 160 AssertMsg( cbNew < 32 161 || !((uintptr_t)pv & (RTMEM_ALIGNMENT - 1)), ("pv=%p RTMEM_ALIGNMENT=%#x\n", pv, RTMEM_ALIGNMENT)); 162 #else 154 163 AssertMsg( cbNew < RTMEM_ALIGNMENT 155 164 || !((uintptr_t)pv & (RTMEM_ALIGNMENT - 1)), ("pv=%p RTMEM_ALIGNMENT=%#x\n", pv, RTMEM_ALIGNMENT)); 165 #endif 156 166 #endif /* !RTALLOC_USE_EFENCE */ 157 167 return pv; -
trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp
r248 r1190 33 33 #include <stdlib.h> 34 34 #include <signal.h> 35 #include <InnoTekLIBC/FastInfoBlocks.h> 35 36 36 37 #include <iprt/thread.h> … … 109 110 *g_ppCurThread = pThread; 110 111 112 #ifdef fibGetTidPid 113 rtThreadMain(pThread, fibGetTidPid()); 114 #else 111 115 rtThreadMain(pThread, _gettid()); 116 #endif 112 117 113 118 *g_ppCurThread = NULL; … … 150 155 RTDECL(RTNATIVETHREAD) RTThreadNativeSelf(void) 151 156 { 152 PRTTHREADINT pThread = *g_ppCurThread; 153 if (pThread)154 return (RTNATIVETHREAD)pThread->Core.Key; 157 #ifdef fibGetTidPid 158 return fibGetTidPid(); 159 #else 155 160 return _gettid(); 161 #endif 156 162 } 157 163 -
trunk/src/VBox/Runtime/testcase/Makefile
r915 r1190 68 68 tstLdrObj \ 69 69 tstLdrObjR0 70 ifeq ($(filter-out lx pe,$(VBOX_LDR_FMT)), ) 71 LIBRARIES += \ 72 tstLdr-4Imp 73 endif 74 70 75 # tstSems 71 76 endif # VBOX_WITH_TESTCASES … … 159 164 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) 160 165 166 tstLdr-4Imp_TEMPLATE = VBOXR0 167 ifeq ($(VBOX_LDR_FMT),lx) 168 tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def 169 else ifeq ($(VBOX_LDR_FMT),pe) 170 tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def 171 endif 172 161 173 tstLdrObjR0_TEMPLATE = VBOXR0 162 174 tstLdrObjR0_INST = $(INST_TESTCASE) … … 173 185 tstLdrObjR0_LDFLAGS = -Entry:Entrypoint 174 186 tstLdrObjR0_LIBS += \ 175 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) 187 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \ 188 $(TARGET_tstLdr-4Imp) 176 189 endif 177 190 ifeq ($(VBOX_LDR_FMT),elf) … … 180 193 ifeq ($(VBOX_LDR_FMT),lx) 181 194 tstLdrObjR0_LIBS += \ 182 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) 195 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \ 196 $(TARGET_tstLdr-4Imp) 183 197 endif 184 198 -
trunk/src/VBox/Runtime/testcase/tstLdr-4.cpp
r917 r1190 158 158 if (RT_FAILURE(rc)) 159 159 { 160 RTPrintf("tstLdr-4: Failed to get symbol \" Test1\" from load #%d: %Rrc\n", i, rc);160 RTPrintf("tstLdr-4: Failed to get symbol \"DisasmTest1\" from load #%d: %Rrc\n", i, rc); 161 161 cErrors++; 162 162 break; -
trunk/src/VBox/Runtime/testcase/tstLdrDisasmTest.cpp
r919 r1190 34 34 #include <iprt/string.h> 35 35 36 #if defined(IN_RING0) && !defined(__WIN__) && !defined(__OS2__)/* Too lazy to make import libs. */36 #if defined(IN_RING0) && !defined(__WIN__) /* Too lazy to make import libs. */ 37 37 extern "C" DECLIMPORT(int) MyPrintf(const char *pszFormat, ...); 38 38 # define MY_PRINTF(a) MyPrintf a -
trunk/src/VBox/Runtime/thread.cpp
r403 r1190 240 240 if (pThread) 241 241 { 242 RTNATIVETHREAD NativeThread = RTThreadNativeSelf(); 242 243 rc = rtThreadNativeAdopt(pThread); 243 244 if (RT_SUCCESS(rc)) 244 245 { 245 rtThreadInsert(pThread, RTThreadNativeSelf());246 rtThreadInsert(pThread, NativeThread); 246 247 pThread->enmState = RTTHREADSTATE_RUNNING; 247 248 } … … 717 718 * @returns NULL on failure. 718 719 */ 719 RT R3DECL(const char *) RTThreadSelfName(void)720 RTDECL(const char *) RTThreadSelfName(void) 720 721 { 721 722 RTTHREAD Thread = RTThreadSelf(); … … 737 738 * @param Thread Thread handle of the thread to query the name of. 738 739 */ 739 RT R3DECL(const char *) RTThreadGetName(RTTHREAD Thread)740 RTDECL(const char *) RTThreadGetName(RTTHREAD Thread) 740 741 { 741 742 if (Thread == NIL_RTTHREAD) … … 753 754 * @param pszName The thread name. 754 755 */ 755 RT R3DECL(int) RTThreadSetName(RTTHREAD Thread, const char *pszName)756 RTDECL(int) RTThreadSetName(RTTHREAD Thread, const char *pszName) 756 757 { 757 758 /* … … 782 783 * @returns iprt status code. 783 784 */ 784 RT R3DECL(int) RTThreadUserSignal(RTTHREAD Thread)785 RTDECL(int) RTThreadUserSignal(RTTHREAD Thread) 785 786 { 786 787 int rc; … … 805 806 * an indefinite wait. 806 807 */ 807 RT R3DECL(int) RTThreadUserWait(RTTHREAD Thread, unsigned cMillies)808 RTDECL(int) RTThreadUserWait(RTTHREAD Thread, unsigned cMillies) 808 809 { 809 810 int rc; … … 828 829 * an indefinite wait. 829 830 */ 830 RT R3DECL(int) RTThreadUserWaitNoResume(RTTHREAD Thread, unsigned cMillies)831 RTDECL(int) RTThreadUserWaitNoResume(RTTHREAD Thread, unsigned cMillies) 831 832 { 832 833 int rc; … … 849 850 * @param Thread The thread to reset. 850 851 */ 851 RT R3DECL(int) RTThreadUserReset(RTTHREAD Thread)852 RTDECL(int) RTThreadUserReset(RTTHREAD Thread) 852 853 { 853 854 int rc; … … 941 942 * @param prc Where to store the return code of the thread. Optional. 942 943 */ 943 RT R3DECL(int) RTThreadWaitNoResume(RTTHREAD Thread, unsigned cMillies, int *prc)944 RTDECL(int) RTThreadWaitNoResume(RTTHREAD Thread, unsigned cMillies, int *prc) 944 945 { 945 946 return rtThreadWait(Thread, cMillies, prc, false); … … 954 955 * @param enmType The new thread type. 955 956 */ 956 RT R3DECL(int) RTThreadSetType(RTTHREAD Thread, RTTHREADTYPE enmType)957 RTDECL(int) RTThreadSetType(RTTHREAD Thread, RTTHREADTYPE enmType) 957 958 { 958 959 /* … … 1003 1004 * @param Thread The thread in question. 1004 1005 */ 1005 RT R3DECL(RTTHREADTYPE) RTThreadGetType(RTTHREAD Thread)1006 RTDECL(RTTHREADTYPE) RTThreadGetType(RTTHREAD Thread) 1006 1007 { 1007 1008 RTTHREADTYPE enmType = RTTHREADTYPE_INVALID;
Note:
See TracChangeset
for help on using the changeset viewer.