home *** CD-ROM | disk | FTP | other *** search
- Porting
- -------
-
- The initial porting effort identified five items which were version
- specific. Each of the affect areas of the code is wrapped in cpp(1)
- directives to allow selection of known alternatives through appropriate
- #define statements. The file at.h uses preset cpp(1) definitions
- (e.g., sun on SunOS systems) to specify the correct set of #define
- statements. The current code has been ported to and tested on the
- following hardware/software combinations:
-
- HP 9000/825, HP/UX A.B7.00
- Sun 3, SunOS 4.1
- Sequent Symmetry, DYNIX 3.0.17
- VAX 3602, Ultrix 3.1
-
- To port the kat package to another environment:
-
- 1) Try either the GENERIC_BSD or GENERIC_SYSV define in Makefile and
- determine if a workable version results. If so, examine the cpp(1)
- man page and determine if a predefined value exists that uniquely
- identifies the current environment. Modify at.h such that this
- definition is used to control compilation in the same manner as
- for one of the existing ports.
-
- 2) If neither of the generic types work, determine if another combination
- of the known version specific items is needed. The ones currently
- identified are:
-
- HAS_DIRENT - for systems which use a structure tagged dirent for
- readdir, opendir, etc. If not defined, use 'struct direct'.
-
- HAS_GETCWD - for systems which provide getcwd(3); otherwise, use
- getwd(3).
-
- HAS_RINDEX - for systems which use rindex(3); otherwise, use
- strrchr(3).
-
- HAS_TERMIO - for systems which use the include file termio.h;
- otherwise use sgtty.h.
-
- HAS_TIOCNOTTY - for systems which provide the ioctl call to
- disassociate from the controlling tty; otherwise, don't
- bother.
-
- 3) If this still isn't sufficient, get out the Veg-O-Matic and
- start slicing and dicing.
-
- [Note for indent tidy: I use tabstops at 4 space intervals in vi.]
-