home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2756 / PORTING < prev    next >
Encoding:
Text File  |  1991-02-14  |  1.8 KB  |  50 lines

  1. Porting
  2. -------
  3.  
  4. The initial porting effort identified five items which were version
  5. specific.  Each of the affect areas of the code is wrapped in cpp(1)
  6. directives to allow selection of known alternatives through appropriate
  7. #define statements.  The file at.h uses preset cpp(1) definitions
  8. (e.g., sun on SunOS systems) to specify the correct set of #define
  9. statements.  The current code has been ported to and tested on the
  10. following hardware/software combinations:
  11.  
  12. HP 9000/825, HP/UX A.B7.00
  13. Sun 3, SunOS 4.1
  14. Sequent Symmetry, DYNIX 3.0.17
  15. VAX 3602, Ultrix 3.1
  16.  
  17. To port the kat package to another environment:
  18.  
  19. 1) Try either the GENERIC_BSD or GENERIC_SYSV define in Makefile and
  20.    determine if a workable version results.  If so, examine the cpp(1)
  21.    man page and determine if a predefined value exists that uniquely
  22.    identifies the current environment.  Modify at.h such that this
  23.    definition is used to control compilation in the same manner as
  24.    for one of the existing ports.
  25.  
  26. 2) If neither of the generic types work, determine if another combination
  27.    of the known version specific items is needed.  The ones currently
  28.    identified are:
  29.  
  30.    HAS_DIRENT - for systems which use a structure tagged dirent for
  31.         readdir, opendir, etc.  If not defined, use 'struct direct'.
  32.  
  33.    HAS_GETCWD - for systems which provide getcwd(3); otherwise, use
  34.         getwd(3).
  35.  
  36.    HAS_RINDEX - for systems which use rindex(3); otherwise, use
  37.         strrchr(3).
  38.  
  39.    HAS_TERMIO - for systems which use the include file termio.h;
  40.         otherwise use sgtty.h.
  41.  
  42.    HAS_TIOCNOTTY - for systems which provide the ioctl call to
  43.         disassociate from the controlling tty; otherwise, don't
  44.         bother.
  45.  
  46. 3) If this still isn't sufficient, get out the Veg-O-Matic and
  47.    start slicing and dicing.
  48.  
  49. [Note for indent tidy: I use tabstops at 4 space intervals in vi.]
  50.