os_time.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file os_time.h
00006  *
00007  *  time types
00008  *
00009  *  os_time.h,v 1.9 2006/03/13 17:28:52 zhangw Exp
00010  *
00011  *  @author Don Hinton <dhinton@dresystems.com>
00012  *  @author This code was originally in various places including ace/OS.h.
00013  */
00014 //=============================================================================
00015 
00016 #ifndef ACE_OS_INCLUDE_SYS_OS_TIME_H
00017 #define ACE_OS_INCLUDE_SYS_OS_TIME_H
00018 
00019 #include /**/ "ace/pre.h"
00020 
00021 #include "ace/config-lite.h"
00022 
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif /* ACE_LACKS_PRAGMA_ONCE */
00026 
00027 #include "ace/os_include/sys/os_types.h"
00028 
00029 #if !defined (ACE_LACKS_SYS_TIME_H)
00030 #  include /**/ <sys/time.h>
00031 #endif /* !ACE_LACKS_SYS_TIME_H */
00032 
00033 #if defined (ACE_VXWORKS) && (ACE_VXWORKS == 0x620)
00034 #  include /**/ <time.h> // VxWorks 6.2 defined timeval in time.h
00035 #endif
00036 
00037 // Place all additions (especially function declarations) within extern "C" {}
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif /* __cplusplus */
00042 
00043 #if defined (ACE_HAS_SVR4_GETTIMEOFDAY)
00044 # if !defined (m88k) && !defined (SCO)
00045   int gettimeofday (struct timeval *tp, void * = 0);
00046 # else
00047   int gettimeofday (struct timeval *tp);
00048 # endif  /*  !m88k && !SCO */
00049 #elif defined (ACE_HAS_OSF1_GETTIMEOFDAY)
00050   int gettimeofday (struct timeval *tp, struct timezone * = 0);
00051 #elif defined (ACE_HAS_VOIDPTR_GETTIMEOFDAY)
00052 # define ACE_HAS_SVR4_GETTIMEOFDAY
00053 #endif /* ACE_HAS_SVR4_GETTIMEOFDAY */
00054 
00055 #ifdef __cplusplus
00056 }
00057 #endif /* __cplusplus */
00058 
00059 #include /**/ "ace/post.h"
00060 #endif /* ACE_OS_INCLUDE_SYS_OS_TIME_H */

Generated on Thu Nov 9 09:41:58 2006 for ACE by doxygen 1.3.6