Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Mac OS Runtime Architectures /
Appendix B - The RTLib.o and NuRTLib.o Libraries


Runtime Interface

The RTLib runtime interface consists of a single procedure call (as defined in RTLib.h):

pascal OSErr Runtime (RTPB* runtimeParams);
The RTPB data type is a structure in which you specify one of four posssible parameter blocks:

struct RTPB {
   short fOperation;
   void* fA5;
   union {
      RTGetVersionParam fVersionParam;
      RTGetJTAddrParam fJTAddrParam;
      RTSetSegLoadParam fSegLoadParam;
      RTLoadSegbyNumParam fLoadbyNumParam;
      } fRTParams;
   };
typedef struct RTPB RTPB;
The fields of the RTPB structure are as follows:

The Runtime routine can return an error value as shown in Table B-2.
Table B-2 Runtime routine error values
ErrorDescription
eRTNoErrNo error (success)
eRTInvalidOPInvalid operation
eRTBadVersionInvalid version
eRTInvalidJTPtrInvalid jump table pointer
eRT_not_segmentedA5 world not segmented (for example, the A5 world of a CFM-68K shared library)


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 MARCH 1997