diff options
author | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-27 18:55:33 +0000 |
---|---|---|
committer | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-27 18:55:33 +0000 |
commit | 63349d65f253cfe55bc07f285943b4fe34eedd30 (patch) | |
tree | 9d83d88eca892c233f2028840093563096f8bbc9 /PACE | |
parent | 4da1ccde3adc0f57c7631140eb6506219dc555d0 (diff) | |
download | ATCD-63349d65f253cfe55bc07f285943b4fe34eedd30.tar.gz |
Thu Jul 27 13:50:48 2000 Luther J Baker <luther@cs.wustl.edu>
Diffstat (limited to 'PACE')
-rw-r--r-- | PACE/ChangeLog | 11 | ||||
-rw-r--r-- | PACE/pace/config/constants.h | 71 | ||||
-rw-r--r-- | PACE/pace/config/temp.h | 98 |
3 files changed, 82 insertions, 98 deletions
diff --git a/PACE/ChangeLog b/PACE/ChangeLog index 63a99118fcf..eb65276370d 100644 --- a/PACE/ChangeLog +++ b/PACE/ChangeLog @@ -1,3 +1,14 @@ +Thu Jul 27 13:50:48 2000 Luther J Baker <luther@cs.wustl.edu> + + * pace/config/constants.h: + + Moved contents of pace/config/temp.h to constants.h. + Some of this probably shouldn't be in contstants.h. + + * pace/config/temp.h: + + Removed. + Thu Jul 27 13:03:29 2000 Luther J Baker <luther@cs.wustl.edu> * pace/config/constants.h (PACE_ONE_SECOND_IN_NSECS): diff --git a/PACE/pace/config/constants.h b/PACE/pace/config/constants.h index 3e0b86958e4..df5c062775d 100644 --- a/PACE/pace/config/constants.h +++ b/PACE/pace/config/constants.h @@ -175,4 +175,75 @@ # endif +/* ============================================================================ + * Temporary MACROS. Correct them later. + * ============================================================================ */ + +#include "pace/sys/types.h" + +/* Need for NT */ +# define PACE_Export +# define PACE_BUILD_DLL + +/* Tracing */ +# define PACE_TRACE(X) fprintf (stderr, X) +# define PACE_DEBUG(X) +# define PACE_LM_DEBUG PACE_stderr +# define PACE_BEGIN_DUMP +# define PACE_END_DUMP + +/* Identification for PACE.h */ +# define PACE_RCSID(X,Y,Z) + +/* Hooks */ +/* Dummy values */ +# define PACE_ALLOC_HOOK_DECLARE int declare_hook +# define PACE_ALLOC_HOOK_DEFINE(X) + +/* Signals / ioctl / fcntl - dummy values */ +# define PACE_SIGURG 1 +# define PACE_NONBLOCK 2 +# define PACE_CLOEXEC 3 + +/* Flags */ +/* Will not be a macro, dummy values */ +# define PACE_set_flags(X,Y) 1 +# define PACE_clr_flags(X,Y) 1 + +/* Log Error */ +# define PACE_ERROR(X) + +/* Host Entries */ +# if defined (PACE_HAS_STRUCT_NETDB_DATA) +typedef char PACE_HOSTENT_DATA[sizeof(struct hostent_data)]; +typedef char PACE_SERVENT_DATA[sizeof(struct servent_data)]; +typedef char PACE_PROTOENT_DATA[sizeof(struct protoent_data)]; +# else +# if !defined PACE_HOSTENT_DATA_SIZE +# define PACE_HOSTENT_DATA_SIZE (4*1024) +# endif /* PACE_HOSTENT_DATA_SIZE */ +# if !defined PACE_SERVENT_DATA_SIZE +# define PACE_SERVENT_DATA_SIZE (4*1024) +# endif /*PACE_SERVENT_DATA_SIZE */ +# if !defined PACE_PROTOENT_DATA_SIZE +# define PACE_PROTOENT_DATA_SIZE (2*1024) +# endif /*PACE_PROTOENT_DATA_SIZE */ +typedef char PACE_HOSTENT_DATA[PACE_HOSTENT_DATA_SIZE]; +typedef char PACE_SERVENT_DATA[PACE_SERVENT_DATA_SIZE]; +typedef char PACE_PROTOENT_DATA[PACE_PROTOENT_DATA_SIZE]; +# endif /* PACE_HAS_STRUCT_NETDB_DATA */ + +/* PACE_HAS_SIN_LEN */ + +/* PACE_FREE */ +/* adjust later to use macros to decide how to free */ +# define PACE_FREE(X,Y) \ +X Y + +# define AF_ANY -1 + +/* PACE CATCHALL */ +/* FIONREAD is used in PACE_SOCK_IO::recvv */ +/* PACE_HAS_ALLOCA is used in PACE_SOCK_IO::recvv */ + #endif /* PACE_CONFIG_CONSTANTS_H */ diff --git a/PACE/pace/config/temp.h b/PACE/pace/config/temp.h deleted file mode 100644 index 72531e538bc..00000000000 --- a/PACE/pace/config/temp.h +++ /dev/null @@ -1,98 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * temp.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - - -#ifndef PACE_CONFIG_TEMP_H -#define PACE_CONFIG_TEMP_H - - -/* Temporary MACROS. Correct them later. Will probably be in OS.h or ACE.h. */ - - -#include "pace/sys/types.h" -/*#include "pace/stdio.h"*/ - -/* Need for NT */ -# define PACE_Export -# define PACE_BUILD_DLL - -/* Tracing */ -# define PACE_TRACE(X) fprintf (stderr, X) -# define PACE_DEBUG(X) -# define PACE_LM_DEBUG PACE_stderr -# define PACE_BEGIN_DUMP -# define PACE_END_DUMP - -/* Identification for PACE.h */ -# define PACE_RCSID(X,Y,Z) - -/* Hooks */ -/* Dummy values */ -# define PACE_ALLOC_HOOK_DECLARE int declare_hook -# define PACE_ALLOC_HOOK_DEFINE(X) - -/* Signals / ioctl / fcntl - dummy values */ -# define PACE_SIGURG 1 -# define PACE_NONBLOCK 2 -# define PACE_CLOEXEC 3 - -/* Flags */ -/* Will not be a macro, dummy values */ -# define PACE_set_flags(X,Y) 1 -# define PACE_clr_flags(X,Y) 1 - -/* Log Error */ -# define PACE_ERROR(X) - -/* Host Entries */ -# if defined (PACE_HAS_STRUCT_NETDB_DATA) -typedef char PACE_HOSTENT_DATA[sizeof(struct hostent_data)]; -typedef char PACE_SERVENT_DATA[sizeof(struct servent_data)]; -typedef char PACE_PROTOENT_DATA[sizeof(struct protoent_data)]; -# else -# if !defined PACE_HOSTENT_DATA_SIZE -# define PACE_HOSTENT_DATA_SIZE (4*1024) -# endif /* PACE_HOSTENT_DATA_SIZE */ -# if !defined PACE_SERVENT_DATA_SIZE -# define PACE_SERVENT_DATA_SIZE (4*1024) -# endif /*PACE_SERVENT_DATA_SIZE */ -# if !defined PACE_PROTOENT_DATA_SIZE -# define PACE_PROTOENT_DATA_SIZE (2*1024) -# endif /*PACE_PROTOENT_DATA_SIZE */ -typedef char PACE_HOSTENT_DATA[PACE_HOSTENT_DATA_SIZE]; -typedef char PACE_SERVENT_DATA[PACE_SERVENT_DATA_SIZE]; -typedef char PACE_PROTOENT_DATA[PACE_PROTOENT_DATA_SIZE]; -# endif /* PACE_HAS_STRUCT_NETDB_DATA */ - -/* PACE_HAS_SIN_LEN */ - -/* PACE_FREE */ -/* adjust later to use macros to decide how to free */ -# define PACE_FREE(X,Y) \ -X Y - -# define AF_ANY -1 - -/* PACE CATCHALL */ -/* FIONREAD is used in PACE_SOCK_IO::recvv */ -/* PACE_HAS_ALLOCA is used in PACE_SOCK_IO::recvv */ - -/* Define some helpful constants. */ -/* Not type-safe, and signed. For backward compatibility. */ -#define PACE_ONE_SECOND_IN_MSECS 1000L -#define PACE_ONE_SECOND_IN_USECS 1000000L -#define PACE_ONE_SECOND_IN_NSECS 1000000000L - -#endif /* PACE_CONFIG_TEMP_H */ |