From a9d6dd61c011abce8a8492f4f3e78607acc8afa4 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Date: Fri, 12 May 2006 13:28:46 +0000 Subject: [PATCH] * lib/rtutils.def: New file. Generated on Windows XP. (TracePrintf{AW},TracePrintfEx{AW}): Left out for now. * include/rtutils.h: New file. (TraceDump{AW},TracePuts{AW},TraceRegister{AW},TraceVprintf{AW}): Commented out, they're missing from rtutils.def. --- winsup/w32api/ChangeLog | 8 +++ winsup/w32api/include/rtutils.h | 90 +++++++++++++++++++++++++++++++++ winsup/w32api/lib/rtutils.def | 54 ++++++++++++++++++++ 3 files changed, 152 insertions(+) create mode 100644 winsup/w32api/include/rtutils.h create mode 100755 winsup/w32api/lib/rtutils.def diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index f1cb29fc8..9a95b631f 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,11 @@ +2006-05-12 Dimitri Papadopoulos + + * lib/rtutils.def: New file. Generated on Windows XP. + (TracePrintf{AW},TracePrintfEx{AW}): Left out for now. + * include/rtutils.h: New file. + (TraceDump{AW},TracePuts{AW},TraceRegister{AW},TraceVprintf{AW}): + Commented out, they're missing from rtutils.def. + 2006-05-12 Dimitri Papadopoulos * include/mprapi.h (MprInfoBlockAdd,MprInfoBlockFind) diff --git a/winsup/w32api/include/rtutils.h b/winsup/w32api/include/rtutils.h new file mode 100644 index 000000000..88f0caefb --- /dev/null +++ b/winsup/w32api/include/rtutils.h @@ -0,0 +1,90 @@ +/* + * rtutils.h - Routing and Remote Access Services + * + * THIS SOFTWARE IS NOT COPYRIGHTED + * + * This source code is offered for use in the public domain. You may use, + * modify or distribute it freely. + * + * This code is distributed in the hope that it will be useful but + * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY + * DISCLAIMED. This includes but is not limited to warranties of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + */ +#ifndef _RTUTILS_H +#define _RTUTILS_H +#if __GNUC__ >= 3 +#pragma GCC system_header +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/*--- Tracing Reference */ +#if (_WIN32_WINNT >= 0x0500) +DWORD WINAPI TraceDeregisterA(DWORD); +DWORD WINAPI TraceDeregisterW(DWORD); +DWORD WINAPI TraceDeregisterExA(DWORD,DWORD); +DWORD WINAPI TraceDeregisterExW(DWORD,DWORD); +#define TRACE_NO_SYNCH 0x00000004 +/*DWORD WINAPI TraceDumpA(DWORD,LPBYTE,DWORD,DWORD,BOOL,LPCSTR);*/ +/*DWORD WINAPI TraceDumpW(DWORD,LPBYTE,DWORD,DWORD,BOOL,LPCWSTR);*/ +DWORD WINAPI TraceDumpExA(DWORD,DWORD,LPBYTE,DWORD,DWORD,BOOL,LPCSTR); +DWORD WINAPI TraceDumpExW(DWORD,DWORD,LPBYTE,DWORD,DWORD,BOOL,LPCWSTR); +DWORD WINAPI TracePrintfA(DWORD,LPCSTR,...); +DWORD WINAPI TracePrintfW(DWORD,LPCWSTR,...); +DWORD WINAPI TracePrintfExA(DWORD,DWORD,LPCSTR,...); +DWORD WINAPI TracePrintfExW(DWORD,DWORD,LPCWSTR,...); +/*DWORD WINAPI TracePutsA(DWORD,LPCSTR);*/ +/*DWORD WINAPI TracePutsW(DWORD,LPCWSTR);*/ +DWORD WINAPI TracePutsExA(DWORD,DWORD,LPCSTR); +DWORD WINAPI TracePutsExW(DWORD,DWORD,LPCWSTR); +/*DWORD WINAPI TraceRegisterA(LPCSTR);*/ +/*DWORD WINAPI TraceRegisterW(LPCWSTR);*/ +DWORD WINAPI TraceRegisterExA(LPCSTR,DWORD); +DWORD WINAPI TraceRegisterExW(LPCWSTR,DWORD); +#define TRACE_USE_FILE 0x00000001 +#define TRACE_USE_CONSOLE 0x00000002 +#define INVALID_TRACEID 0xFFFFFFFF +/*DWORD WINAPI TraceVprintfA(DWORD,LPCSTR,va_list);*/ +/*DWORD WINAPI TraceVprintfW(DWORD,LPCWSTR,va_list);*/ +DWORD WINAPI TraceVprintfExA(DWORD,DWORD,LPCSTR,va_list); +DWORD WINAPI TraceVprintfExW(DWORD,DWORD,LPCWSTR,va_list); +#define TRACE_NO_STDINFO 0x00000001 +#define TRACE_USE_MASK 0x00000002 +#define TRACE_USE_MSEC 0x00000004 +#ifdef UNICODE +#define TraceDeregister TraceDeregisterW +#define TraceDeregisterEx TraceDeregisterExW +#define TraceDump TraceDumpW +#define TraceDumpEx TraceDumpExW +#define TracePrintf TracePrintfW +#define TracePrintfEx TracePrintfExW +#define TracePuts TracePutsW +#define TracePutsEx TracePutsExW +#define TraceRegister TraceRegisterW +#define TraceRegisterEx TraceRegisterExW +#define TraceVprintf TraceVprintfW +#define TraceVprintfEx TraceVprintfExW +#else +#define TraceDeregister TraceDeregisterA +#define TraceDeregisterEx TraceDeregisterExA +#define TraceDump TraceDumpA +#define TraceDumpEx TraceDumpExA +#define TracePrintf TracePrintfA +#define TracePrintfEx TracePrintfExA +#define TracePuts TracePutsA +#define TracePutsEx TracePutsExA +#define TraceRegister TraceRegisterA +#define TraceRegisterEx TraceRegisterExA +#define TraceVprintf TraceVprintfA +#define TraceVprintfEx TraceVprintfExA +#endif +#endif /* (_WIN32_WINNT >= 0x0500) */ + +#ifdef __cplusplus +} +#endif +#endif diff --git a/winsup/w32api/lib/rtutils.def b/winsup/w32api/lib/rtutils.def new file mode 100755 index 000000000..c2b12d843 --- /dev/null +++ b/winsup/w32api/lib/rtutils.def @@ -0,0 +1,54 @@ +LIBRARY RTUTILS.DLL +EXPORTS +CreateWaitEvent@40 +CreateWaitEventBinding@20 +CreateWaitTimer@16 +DeRegisterWaitEventBinding@4 +DeRegisterWaitEventBindingSelf@4 +DeRegisterWaitEventsTimers@8 +DeRegisterWaitEventsTimersSelf@8 +DebugPrintWaitWorkerThreads@4 +LogErrorA@16 +LogErrorW@16 +LogEventA@16 +LogEventW@16 +MprSetupProtocolEnum@12 +MprSetupProtocolFree@4 +QueueWorkItem@12 +RegisterWaitEventBinding@4 +RegisterWaitEventsTimers@8 +RouterAssert@16 +RouterGetErrorStringA@8 +RouterGetErrorStringW@8 +RouterLogDeregisterA@4 +RouterLogDeregisterW@4 +RouterLogEventA@24 +RouterLogEventW@24 +RouterLogEventDataA@28 +RouterLogEventDataW@28 +RouterLogEventExA@24 +RouterLogEventExW@24 +RouterLogEventStringA@28 +RouterLogEventStringW@28 +RouterLogEventValistExA@24 +RouterLogEventValistExW@24 +RouterLogRegisterA@4 +RouterLogRegisterW@4 +SetIoCompletionProc@8 +TraceDeregisterA@4 +TraceDeregisterW@4 +TraceDeregisterExA@8 +TraceDeregisterExW@8 +TraceDumpExA@28 +TraceDumpExW@28 +TraceGetConsoleA@8 +TraceGetConsoleW@8 +TracePutsExA@12 +TracePutsExW@12 +TraceRegisterExA@8 +TraceRegisterExW@8 +TraceVprintfExA@8 +TraceVprintfExW@8 +UpdateWaitTimer@8 +WTFreeEvent@4 +WTFreeTimer@4