New Mac library loading API calls

RESOLVED FIXED

Status

P3
normal
RESOLVED FIXED
19 years ago
19 years ago

People

(Reporter: sfraser_bugs, Assigned: wtc)

Tracking

PowerPC
Mac System 8.5

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

19 years ago
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);
(Assignee)

Comment 1

19 years ago
Simon, this bug is fixed, right?
(Reporter)

Comment 2

19 years ago
Yes, fixed, as long as it survived migration to 3.5. sdagley?
(Assignee)

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Assignee)

Comment 3

19 years ago
Yes, it survived migration to NSPR 3.5.
Marked the bug fixed.
(Assignee)

Comment 4

19 years ago
Created attachment 2435 [details]
Simon's newsgroup posting explains why these two new functions are needed
You need to log in before you can comment on or make changes to this bug.