|
From: <wsh...@us...> - 2003-08-20 16:14:15
|
Update of /cvsroot/emc/rcslib/src/os_intf
In directory sc8-pr-cvs1:/tmp/cvs-serv3980
Added Files:
Tag: wps_multiplat_dev_branch
_timer_no_config.h timer_no_config.h
Log Message:
.
--- NEW FILE: _timer_no_config.h ---
#ifndef _TIMER_NO_CONFIG_H
#define _TIMER_NO_CONFIG_H
#include "rcs_defs.hh"
#include "rcs_prnt.hh" /* rcs_print_error */
#if !HAVE_CONFIG_H
#ifndef NO_STDIO
#include <stdio.h> /* NULL */
#endif
#include <errno.h> /* errno */
#include <string.h> /* strerror() */
#ifdef VXWORKS
#include <vxWorks.h>
#include <taskLib.h> /* taskDelay() */
#include <tickLib.h> /* tickGet() */
#include <sysLib.h> /* sysClkRateGet() */
#include <timers.h> /* clock_gettime */
#ifndef POWERPC
#include "gtimer.hh" /* global_timer_available, get_Global_time() */
#endif
#endif /* VXWORKS */
#ifdef LYNX
#include <errno.h> /* EINTR */
#include <unistd.h> /* select() */
#include <time.h> /* CLK_TCK, since no _SC_CLK_TCK */
#include <sys/time.h> /* struct timeval, gettimeofday(),
struct itimerval, setitimer(),
ITIMER_REAL */
#endif /* LYNX */
#if defined(SUN) || defined(SGI) || defined(sparcworks) || defined(darwin) || defined(qnx) || defined(linux)
#include <errno.h> /* EINTR */
#include <unistd.h> /* select(), sysconf(), _SC_CLK_TCK */
#ifndef irix6
#include <sys/time.h> /* struct timeval, gettimeofday(),
struct itimerval, setitimer(),
ITIMER_REAL */
#endif
#endif /* SUN */
#ifdef linux
#include <linux/version.h>
#if defined(LINUX_VERSION_CODE) && defined(KERNEL_VERSION)
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,2,0)
#define LINUX_KERNEL_2_2_OR_LATER
#include <sched.h>
#endif
#endif
#endif
#ifdef irix6
#include <time.h>
#endif
#ifdef __MSDOS__
#ifdef _Windows
#ifdef USE_TOOL_HELP
/* The timerCount function is more accurate than the GetTickCount() function
but you need toolhelp.dll which comes with Windows 3.1 but not Windows 3.0 or
Windows NT */
#include "toolhelp.h" /* timerCount() */
#else
#if defined(WIN32) && !defined(USE_OLD_WINSOCK)
/* Lame problem if windows.h is included before winsock2.h many redefined
compiler errors result. */
#include <winsock2.h>
#endif
#include <windows.h> /* GetTickCount() */
#endif
#endif
#include <time.h> /* clock(), CLK_TCK */
#ifndef _Windows
#include <dos.h> /* delay() */
#endif
#endif
#if defined(mingw32)
#include <windows.h>
#endif
#endif
// #ifndef TIMER_NO_CONFIG_H
--- NEW FILE: timer_no_config.h ---
#ifndef TIMER_NO_CONFIG_H
#define TIMER_NO_CONFIG_H
#include "rcs_defs.hh" // __MSDOS__
#include "dbg_mem.h" // DEBUG_MALLOC,DEBUG_FREE
#ifdef VXWORKS
extern "C"
{
#include <vxWorks.h>
#ifndef NO_STDIO
#include <stdio.h>
#endif
#include <string.h> // strtok(), strncmp()
#include <stdlib.h> // atof()
#include <taskLib.h> /* taskDelay() */
#include <tickLib.h> /* tickGet() */
#include <sysLib.h> /* sysClkRateGet() */
}
#endif /* VXWORKS */
#ifdef LYNX
extern "C"
{
#include <string.h> // strtok(), strncmp()
#include <stdlib.h> // atof()
#ifndef NO_STDIO
#include <stdio.h> /* NULL */
#endif
#include <stdlib.h> /* exit() */
#include <signal.h> /* struct sigaction, sigaction(), SIGALRM,
sigset_t */
#include <errno.h> /* perror(), EINTR */
#include <unistd.h> /* select() */
#include <time.h> /* CLK_TCK, since no _SC_CLK_TCK, */
/* setitimer() */
#include <sys/time.h> /* struct timeval, gettimeofday(),
struct itimerval,
ITIMER_REAL */
}
#endif /* LYNX */
#if defined(SUN) || defined(LINUX)
extern "C"
{
#include <stdlib.h> // atof()
#include <string.h> // strtok(), strncmp()
#ifndef NO_STDIO
#include <stdio.h> /* NULL */
#endif
#include <stdlib.h> /* exit() */
#include <signal.h> /* struct sigaction, sigaction(), SIGALRM,
sigset_t */
#include <errno.h> /* perror(), EINTR */
#include <unistd.h> /* select(), sysconf(), _SC_CLK_TCK */
#include <sys/time.h> /* struct timeval, gettimeofday(),
struct itimerval, setitimer(),
ITIMER_REAL */
#include <sys/types.h>
#include <sys/wait.h> // waitpid()
}
#endif /* SUN */
#ifdef __MSDOS__
#include <stdlib.h> // atof()
#include <string.h> // strtok(), strncmp()
#include <time.h> /* clock(), CLK_TCK */
#ifndef _WINDOWS
#include <dos.h> /* delay() */
#endif
#endif
#endif
// #ifndef TIMER_NO_CONFIG_H
|