You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Joe Moenich <mo...@us.ibm.com> on 1998/10/12 18:29:56 UTC

[PATCH] TPF ap_config.h

Header files and #defines used by TPF.  Correct TPF implementation of offsetof.

Index: ap_config.h
===================================================================
RCS file: /apache/apache/src/include/ap_config.h,v
retrieving revision 1.1.1.1
diff -a -b -C3 -r1.1.1.1 ap_config.h
*** ap_config.h 1998/10/12 09:15:41     1.1.1.1
--- ap_config.h 1998/10/12 09:39:12
***************
*** 92,98 ****
  #include "os.h"
  #endif

! #if !defined(QNX) && !defined(MPE) && !defined(WIN32)
  #include <sys/param.h>
  #endif

--- 92,98 ----
  #include "os.h"
  #endif

! #if !defined(QNX) && !defined(MPE) && !defined(WIN32) && !defined(TPF)
  #include <sys/param.h>
  #endif

***************
*** 801,806 ****
--- 801,833 ----

  /* All windows stuff is now in os/win32/os.h */

+ #elif defined(TPF) /* IBM's Transaction Processing Facility operating system
+
+ #include <tpfeq.h>
+ #include <tpfio.h>
+ #include <sysapi.h>
+ #include <sysgtime.h>
+ #define PRIMECRAS 0x010000
+ #define JMP_BUF jmp_buf
+ #define NEED_INITGROUPS
+ #define NEED_STRCASECMP
+ #define NEED_STRDUP
+ #define NEED_STRNCASECMP
+ #define NO_DBM_REWRITEMAP
+ #define NO_GETTIMEOFDAY
+ #define NO_KILLPG
+ #define NO_LINGCLOSE
+ #define NO_MMAP
+ #define NO_OTHER_CHILD
+ #define NO_RELIABLE_PIPED_LOGS
+ #define NO_SETSID
+ #define NO_SHMGET
+ #define NO_SLACK
+ #define NO_TIMES
+ #define NO_USE_SIGACTION
+ #define NO_WRITEV
+ #define USE_LONGJMP
+
  #else
  /* Unknown system - Edit these to match */
  #ifdef BSD
***************
*** 906,912 ****
  #include <stdlib.h>
  #include <string.h>
  #include "ap_ctype.h"
! #if !defined(MPE) && !defined(WIN32)
  #include <sys/file.h>
  #endif
  #ifndef WIN32
--- 933,939 ----
  #include <stdlib.h>
  #include <string.h>
  #include "ap_ctype.h"
! #if !defined(MPE) && !defined(WIN32) && !defined(TPF)
  #include <sys/file.h>
  #endif
  #ifndef WIN32
***************
*** 914,923 ****
  #ifdef HAVE_SYS_SELECT_H
  #include <sys/select.h>
  #endif /* HAVE_SYS_SELECT_H */
  #include <netinet/in.h>
  #include <netdb.h>
  #include <sys/ioctl.h>
! #if !defined(MPE) && !defined(BEOS)
  #include <arpa/inet.h>                /* for inet_ntoa */
  #endif
  #include <sys/wait.h>
--- 941,952 ----
  #ifdef HAVE_SYS_SELECT_H
  #include <sys/select.h>
  #endif /* HAVE_SYS_SELECT_H */
+ #ifndef TPF
  #include <netinet/in.h>
+ #endif /* TPF */
  #include <netdb.h>
  #include <sys/ioctl.h>
! #if !defined(MPE) && !defined(BEOS) && !defined(TPF)
  #include <arpa/inet.h>      /* for inet_ntoa */
  #endif
  #include <sys/wait.h>
***************
*** 940,946 ****
  #include <time.h>             /* for ctime */
  #include <signal.h>
  #include <errno.h>
! #if !defined(QNX) && !defined(CONVEXOS11) && !defined(NEXT)
  #include <memory.h>
  #endif

--- 969,975 ----
  #include <time.h>       /* for ctime */
  #include <signal.h>
  #include <errno.h>
! #if !defined(QNX) && !defined(CONVEXOS11) && !defined(NEXT) && !defined(TPF)
  #include <memory.h>
  #endif
***************
*** 1100,1110 ****
--- 1129,1143 ----

  #endif /* !CRAY */

+ #ifdef TPF
+ #define XtOffsetOf(s_type,field) ((size_t)&(((s_type*)0)->field))
+ #else
  #ifdef offsetof
  #define XtOffsetOf(s_type,field) offsetof(s_type,field)
  #else
  #define XtOffsetOf(s_type,field) XtOffset(s_type*,field)
  #endif
+ #endif /* TPF */

  /*
   * NET_SIZE_T exists because of shortsightedness on the POSIX committee.  BSD

Joe Moenich
moenich@us.ibm.com
303 773-5483
tie-line 656-7487

Re: [PATCH] TPF ap_config.h

Posted by Ben Laurie <be...@algroup.co.uk>.
Joe Moenich wrote:
> + #elif defined(TPF) /* IBM's Transaction Processing Facility operating system

This comment isn't closed...

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686| Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org/
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author     http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache/

WE'RE RECRUITING! http://www.aldigital.co.uk/