Closed Bug 15691 Opened 25 years ago Closed 25 years ago

New Mac library loading API calls

Categories

(NSPR :: NSPR, defect, P3)

PowerPC
Mac System 8.5
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sfraser_bugs, Assigned: wtc)

Details

Attachments

(1 file)

I added two new Mac-only shared library loading calls. These are implemented in
prlink.c, and exposed in prlink_mac.h:

/*
** PR_LoadNamedFragment
**
** Load a code fragment by fragment name from the data fork of the specified
file.
** The fragment name is an internal name which uniquely identifies a code
** fragment; this call opens the 'cfrg' resource in the file to find the
** offsets of the named fragment.
**
** If the specified fragment exists, it is loaded and an entry created
** in the load map (keyed by fragment name).
**
** If fileSpec points to an alias, the alias is resolved by this call.
*/
PR_EXTERN(PRLibrary*) PR_LoadNamedFragment(const FSSpec *fileSpec, const char*
fragmentName);

/*
** PR_LoadIndexedFragment
**
** Load a code fragment by fragment index from the data fork of the specified
file
** (since Mac shared libraries can contain multiple code fragments).
** This call opens the 'cfrg' resource in the file to find the offsets
** of the named fragment.
**
** If the specified fragment exists, it is loaded and an entry created
** in the load map (keyed by fragment name).
**
** If fileSpec points to an alias, the alias is resolved by this call.
**
*/
PR_EXTERN(PRLibrary*) PR_LoadIndexedFragment(const FSSpec *fileSpec, PRUint32
fragIndex);
Simon, this bug is fixed, right?
Yes, fixed, as long as it survived migration to 3.5. sdagley?
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Yes, it survived migration to NSPR 3.5.
Marked the bug fixed.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: