LR_OPEN - open an LD input file.
Usage:
#include <ld.h>
lr_open(filename,min_version,max_version,target);
Where:
- char *filename;
- is the name of the LD file to be opened.
- unsigned min_version;
- is an integer indicating the earliest version of the LD
format that the calling program is prepared to handle. If
the version given in the LC_LDVERSION directive at the
beginning of the file is earlier than
"min_version", "lr_open" will
terminate the calling program.
- unsigned max_version;
- is similar to "min_version", but states the
latest version of the LD format that the calling program
is prepared to handle.
- char *target;
- is a string containing the name of the target machine.
This argument can also be NULL.
Description:
"lr_open" opens a file as the LD input file. It also
checks that the LD version number of the input file falls into
the range specified by "min_version" and
"max_version". If a non-NULL "target"
argument is specified, "lr_open" verifies that this
target machine matches the one named in the file's LC_TARGET_INFO
directive (if any).
After this checking has taken place, "lr_open"
positions the input file at seek position zero. Thus the first
directive that the program will find is the LC_TARGET_INFO.
See Also:
expl ld lib lw_open
expl ld lib lw_lopen
expl ld lib lr_close
expl ld lib lr_test
Copyright © 1996, Thinkage Ltd.