Update of /cvsroot/emc/rcslib/src/cms
In directory sc8-pr-cvs1:/tmp/cvs-serv1317
Added Files:
Tag: wps_multiplat_dev_branch
cms_cfg_no_config.h cms_no_config.h cmsdiag_no_config.h
nml_no_config.h sokintrf_no_config.h tcpmem_no_config.h
Log Message:
seperate out the part of the .cc file that is not used when you
have rcs_config.h
--- NEW FILE: cms_cfg_no_config.h ---
/* This file contains code that used to be in cms_cfg.cc,
It is only included by cms_cfg.cc.
It is not used at all if you have the rcs_config.h file generated
by configure, created using autoconf and friends, so it is used
only with the old static Makefile system.
cms_cfg.hh has the definitions of functions in cms_cfg.cc that others should
include.
*/
#ifndef CMS_CFG_NO_CONFIG_H
#define CMS_CFG_NO_CONFIG_H
/* Include Files */
#include "rcs_defs.hh" /* __MSDOS__, _Windows, EXTERN_C_STD_HEADERS */
#ifdef EXTERN_C_STD_HEADERS
extern "C"
{
#endif
#include <stdio.h> /* sscanf(), NULL */
/* FILE, fopen(), fgets() */
#include <string.h> /* strcpy(), strlen(),memcpy() */
/* strcmp(),strchr() */
#include <errno.h> // errno
#include <ctype.h> // toupper(), tolower()
#ifdef UNIX_LIKE_PLAT
#include <unistd.h> // gethostname()
#endif
#ifdef EXTERN_C_STD_HEADERS
}
#endif
#endif
// #ifndef CMS_CFG_NO_CONFIG_H
--- NEW FILE: cms_no_config.h ---
/* This file contains code that used to be in cms.cc,
It is only included by cms.cc.
It is not used at all if you have the rcs_config.h file generated
by configure, created using autoconf and friends, so it is used
only with the old static Makefile system.
cms.hh has the definitions of functions in cms.cc that others should
include.
*/
#ifndef CMS_NO_CONFIG_H
#define CMS_NO_CONFIG_H
/* Include Files */
#include "rcs_defs.hh" /* __MSDOS__, _Windows, EXTERN_C_STD_HEADERS */
#include "rcsvers.hh" // rcs_version_printed, print_rcs_version()
#ifdef EXTERN_C_STD_HEADERS
extern "C"
{
#endif
#include <stdlib.h> /* malloc(), free() */
#include <stddef.h> /* size_t */
#include <string.h> /* strcpy(), strlen(),memcpy() */
/* strcmp(),strchr() */
#include <ctype.h> // tolower(), toupper()
#include <errno.h> /* errno, ERANGE */
#if defined(__MSDOS__) && defined(USE_PCNFS)
/* PC-NFS 5.0 Programmer`s Toolkit Header files */
#include <tklib.h> /* tkdll_cleanup(), tkdll_init(), */
/* rtm_install() */
#endif
#ifdef EXTERN_C_STD_HEADERS
}
#endif
#endif
--- NEW FILE: cmsdiag_no_config.h ---
/* This file contains code that used to be in cmsdiag.cc,
It is only included by cmsdiag.cc.
It is not used at all if you have the rcs_config.h file generated
by configure, created using autoconf and friends, so it is used
only with the old static Makefile system.
cmsdiag.hh has the definitions of functions in cmsdiag.cc that others should
include.
*/
#ifndef CMSDIAG_NO_CONFIG_H
#define CMSDIAG_NO_CONFIG_H
#ifdef WIN32
#include <windows.h> // GetCurrentProcessId()
#else
#ifdef VXWORKS
#include <taskLib.h> /* taskIdSelf() */
#include <sysLib.h> // sysModel(),sysBspRev()
#else
#include <sys/types.h>
#include <unistd.h> /* getpid() */
#endif
#endif
#if defined(SUN) && !defined(HAVE_SYSINFO)
#define HAVE_SYSINFO 1
#endif
#ifdef HAVE_SYSINFO
#include <sys/systeminfo.h>
#endif
#include <stdlib.h> // memset()
#include <string.h> // strncpy()
#include <time.h> // time_t, time()
#include <math.h> // floor()
#endif
--- NEW FILE: nml_no_config.h ---
/* This file contains code that used to be in nml.cc,
It is only included by nml.cc.
It is not used at all if you have the rcs_config.h file generated
by configure, created using autoconf and friends, so it is used
only with the old static Makefile system.
nml.hh has the definitions of functions in nml.cc that others should
include.
*/
#ifndef NML_NO_CONFIG_H
#define NML_NO_CONFIG_H
/* Include Files */
#include "rcs_defs.hh" /* _Windows, RCS_FAR, EXTERN_C_STD_HEADERS */
#ifdef _Windows
#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> /* GetCurrentTask() */
#include <direct.h> // _getcwd()
#endif
#ifdef EXTERN_C_STD_HEADERS
extern "C"
{
#endif
#include <string.h> /* memcpy() */
#include <stdlib.h> /* atexit() */
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef VXWORKS
#include <taskLib.h> /* taskIdSelf() */
#endif
#if defined(sunos5) || defined(SGI) || defined(linux)
#include <sys/param.h> // MAXHOSTNAMELEN
#endif
#ifdef EXTERN_C_STD_HEADERS
}
#endif
#endif
--- NEW FILE: sokintrf_no_config.h ---
/* This file contains code that used to be in sokintrf.cc,
It is only included by sokintrf.cc.
It is not used at all if you have the rcs_config.h file generated
by configure, created using autoconf and friends, so it is used
only with the old static Makefile system.
sokintrf.hh has the definitions of functions in sokintrf.cc that others should
include.
*/
#ifndef SOKINTRF_NO_CONFIG_H
#define SOKINTRF_NO_CONFIG_H
#include "rcs_defs.hh" /* _WINDOWS, EXTERN_C_STD_HEADERS */
#include <errno.h> /* errno */
#ifdef VXWORKS
#include <vxWorks.h> /* struct fd_set */
#define FD_SET_DEFINED
#include <netinet/in.h> /* struct in_addr, sockaddr_in */
#define SOCKADDR_IN_DEFINED
#define IN_ADDR_DEFINED
#include <sys/times.h> /* struct timeval */
#define TIMEVAL_DEFINED
#include <sys/socket.h> /* struct sockaddr, msghdr */
#define SOCKADDR_DEFINED
#define MSGHDR_DEFINED
#include <ioLib.h> /* FIONREAD */
#include <net/uio.h> /* struct iovec */
#define IOVEC_DEFINED
#include <hostLib.h> /* hostGetByName() */
#include <sockLib.h> /* miscelaneous Socket stuff */
#include <ioLib.h> /* miscellaneous IO stuff */
#endif
#ifdef UNIX_LIKE_PLAT
#include <sys/types.h> /* struct fd_set */
#define FD_SET_DEFINED
#include <sys/socket.h> /* struct sockaddr, msghdr */
#define SOCKADDR_DEFINED
#define MSGHDR_DEFINED
#ifdef sunos5
#include <sys/select.h> /* make sure NBBY defined before in.h */
/* (needed for Solaris 2.6) */
#endif
#include <netinet/in.h> /* struct in_addr, sockaddr_in */
#define IN_ADDR_DEFINED
#define SOCKADDR_IN_DEFINED
#include <netdb.h> /* struct hostent */
#define HOSTENT_DEFINED
#include <sys/time.h> /* struct timeval */
#define TIMEVAL_DEFINED
#include <sys/uio.h> /* struct iovec */
#define IOVEC_DEFINED
#include <sys/ioctl.h> /* FIONREAD */
#include <unistd.h> /* close() */
#endif
#ifdef _WINDOWS
#ifndef gnuwin32
#ifdef USE_OLD_WINSOCK
#include <winsock.h> /* select(), typedef fd_set, FD_ZERO, FD_SET, struct */
#else
#include <winsock2.h>
#endif
#define SOCKET_DEFINED
#define IN_ADDR_DEFINED
#define SOCKADDR_IN_DEFINED
#define SOCKADDR_DEFINED
#define TIMEVAL_DEFINED
#define FD_SET_DEFINED
#define HOSTENT_DEFINED
#else
#include <sys/types.h> /* struct fd_set */
#define FD_SET_DEFINED
#include <sys/socket.h> /* struct sockaddr, msghdr */
#define SOCKADDR_DEFINED
#define MSGHDR_DEFINED
#include <netinet/in.h> /* struct in_addr, sockaddr_in */
#define IN_ADDR_DEFINED
#define SOCKADDR_IN_DEFINED
#include <netdb.h> /* struct hostent */
#define HOSTENT_DEFINED
#include <sys/time.h> /* struct timeval */
#define TIMEVAL_DEFINED
#include <sys/uio.h> /* struct iovec */
#define IOVEC_DEFINED
#include <sys/ioctl.h> /* FIONREAD */
#include <unistd.h> /* close() */
#endif /* gnuwin32 */
#endif /* _WINDOWS */
#ifdef SUN
#include <sys/filio.h> /* FIONREAD */
#endif
#ifndef MSGHDR_DEFINED
#include "msghdr.h"
#endif
#endif
// #ifndef SOKINTRF_NO_CONFIG_H
--- NEW FILE: tcpmem_no_config.h ---
/* This file contains code that used to be in tcpmem.cc,
It is only included by tcpmem.cc.
It is not used at all if you have the rcs_config.h file generated
by configure, created using autoconf and friends, so it is used
only with the old static Makefile system.
tcpmem.hh has the definitions of functions in tcpmem.cc that others should
include.
*/
#ifndef TCPMEM_NO_CONFIG_H
#define TCPMEM_NO_CONFIG_H
#include "rcs_defs.hh" /* EXTERN_C_STD_HEADERS */
#ifdef EXTERN_C_STD_HEADERS
extern "C"
{
#endif
#include <stdlib.h> // strtol()
#include <string.h> // strstr()
#include <errno.h> // errno, strerror()
#include <signal.h> // signal, SIG_ERR, SIGPIPE
#include <ctype.h> // isdigit()
#ifndef irix6
#include <math.h> /* fmod() */
#else
// Work around for the conflict between the gcc includes and /usr/includes
// on some of our SGI's regarding the definition of initstate()
extern double fmod (double, double);
#endif
#ifdef EXTERN_C_STD_HEADERS
}
#endif
#endif
// #ifndef TCPMEM_NO_CONFIG_H
|