OS_NS_stdio.cpp File Reference

#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_Thread.h"
#include "ace/OS_NS_stdio.inl"
Include dependency graph for OS_NS_stdio.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 ACE_RCSID (ace, OS_NS_stdio,"$Id: OS_NS_stdio.cpp 86912 2009-10-04 14:26:19Z schmidt $") 1 void ACE_OS

Function Documentation

ACE_RCSID ( ace  ,
OS_NS_stdio  ,
"$Id: OS_NS_stdio.cpp 86912 2009-10-04 14:26:19Z schmidt $"   
)

Definition at line 6 of file OS_NS_stdio.cpp.

00008                : OS_NS_stdio.cpp 86912 2009-10-04 14:26:19Z schmidt $")
00009 
00010 
00011 #if !defined (ACE_HAS_INLINED_OSCALLS)
00012 # include "ace/OS_NS_stdio.inl"
00013 #endif /* ACE_HAS_INLINED_OSCALLS */
00014 
00015 # if defined (ACE_WIN32)
00016 
00017 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00018 ACE_TEXT_OSVERSIONINFO ACE_OS::win32_versioninfo_;
00019 HINSTANCE ACE_OS::win32_resource_module_;
00020 ACE_END_VERSIONED_NAMESPACE_DECL
00021 
00022 #   if defined (ACE_HAS_DLL) && (ACE_HAS_DLL == 1) && !defined (ACE_HAS_WINCE)
00023 // This function is called by the OS when the ACE DLL is loaded. We
00024 // use it to determine the default module containing ACE's resources.
00025 extern "C" BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID)
00026 {
00027   if (reason == DLL_PROCESS_ATTACH)
00028     {
00029 #     if defined (ACE_DISABLES_THREAD_LIBRARY_CALLS) && (ACE_DISABLES_THREAD_LIBRARY_CALLS == 1)
00030       ::DisableThreadLibraryCalls (instance);
00031 #     endif /* ACE_DISABLES_THREAD_LIBRARY_CALLS */
00032       ACE_OS::set_win32_resource_module(instance);
00033     }
00034   else if (reason == DLL_THREAD_DETACH)
00035     {
00036       ACE_OS::cleanup_tss (0);
00037     }
00038   return TRUE;
00039 }
00040 #   endif /* ACE_HAS_DLL && ACE_HAS_DLL == 1 */
00041 # endif /* ACE_WIN32 */
00042 
00043 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00044 
00045 void
00046 ACE_OS::ace_flock_t::dump (void) const
00047 {
00048 #if defined (ACE_HAS_DUMP)
00049   ACE_OS_TRACE ("ACE_OS::ace_flock_t::dump");
00050 
00051 # if 0
00052   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00053   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("handle_ = %u"), this->handle_));
00054 #   if defined (ACE_WIN32)
00055   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nInternal = %d"),
00056               this->overlapped_.Internal));
00057   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nInternalHigh = %d"),
00058               this->overlapped_.InternalHigh));
00059   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nOffsetHigh = %d"),
00060               this->overlapped_.OffsetHigh));
00061   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nhEvent = %d"),
00062               this->overlapped_.hEvent));
00063 #   else
00064   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nl_whence = %d"),
00065               this->lock_.l_whence));
00066   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nl_start = %d"), this->lock_.l_start));
00067   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nl_len = %d"), this->lock_.l_len));
00068   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nl_type = %d"), this->lock_.l_type));
00069 #   endif /* ACE_WIN32 */
00070   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00071 # endif /* 0 */
00072 #endif /* ACE_HAS_DUMP */
00073 }

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sat Nov 21 23:13:23 2009 for ACE by  doxygen 1.6.1