(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/dos.h>

BPTR InternalLoadSeg (fh , table , functionarray , stack )

LOCATION
In DOSBase at offset 126

SYNOPSIS
BPTR fh
BPTR table
LONG_FUNC functionarray
LONG * stack

FUNCTION
Loads from fh. Functionarray is a pointer to an array of functions. See below.

This function really only tries to load the different file formats aos, elf and aout.

INPUTS
fh : Filehandle to load from table : ignored functionarray : Array of function to be used fro read, alloc and free FuncTable[0] -> bytes = ReadFunc(readhandle, buffer, length),DOSBase D0 D1 A0 D0 A6 FuncTable[1] -> Memory = AllocFunc(size,flags), ExecBase D0 D0 D1 A6 FuncTable[2] -> FreeFunc(memory, size), ExecBase A1 D0 A6 stack : pointer to storage (ULONG) for stacksize. (currently ignored)

RESULT
seglist - pointer to loaded Seglist or NULL in case of failure.

EXAMPLE

SEE ALSO
UnLoadSeg()

NOTES

BUGS
Use of table and stack are not implemented, yet!

INTERNALS

HISTORY
16.04.1999 iaint
Turned off debugging
20.10.1998 hkiel
Amiga Research OS
17.04.1998 bergers
AllocMem, FreeMem and Read are called from an array of pointers to functions as supposed to in the internal* functions.
09.01.1998 bergers
Fixed an error: MKBADDR(NULL) instead of NULL.
05.01.1998 hkiel
Added masquerade to #include <aros/debug.h> for cpak.
21.12.1997 hkiel
Fixed warnings for use with cpak.
11.12.1997 bergers
InternalLoadSeg() calls the aos, aout and elf-loader!
27.01.1997 ldp
Polish
09.12.1996 aros
Added empty templates for all missing functions

Moved #include's into first column