(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/dos.h>

BPTR LoadSeg (name)

LOCATION
In DOSBase at offset 25

SYNOPSIS
STRPTR name

FUNCTION
Loads an executable file into memory. Each hunk of the loadfile is loaded into his own memory section and a handle on all of them is returned. The segments can be freed with UnLoadSeg().

INPUTS
name
NUL terminated name of the file.

RESULT
Handle to the loaded executable or 0 if the load failed. IoErr() gives additional information in that case.

EXAMPLE

SEE ALSO
UnLoadSeg()

NOTES
This function is built on top of InternalLoadSeg()

BUGS

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.
05.01.1998 hkiel
Added masquerade to #include <aros/debug.h> for cpak.
21.12.1997 hkiel
Fixed warnings for use with cpak.
14.12.1997 hkiel
Changed to use cpak.
11.12.1997 bergers
LoadSeg() built on top of InternalLoadSeg().
07.11.1997 digulla
Polish
04.11.1997 turrican
Set secondary result to 0 when successful
30.10.1997 digulla
Added more debug code
01.05.1997 aros
Try loading hunk files too
27.01.1997 ldp
Polish
22.12.1996 iaint
Finally, support for loading binaries in a.out format.
09.12.1996 aros
Added empty templates for all missing functions

Moved #include's into first column

03.12.1996 aros
Show symbols and their addresses for debugging purposes
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
23.10.1996 aros
dos/dosextens is a system headerfile

added debug code

13.08.1996 digulla
Replaced <dos/dosextens.h> by "dos_intern.h" or added "dos_intern.h" Replaced __AROS_LA by __AROS_LHA
01.08.1996 digulla
Added standard header for all files
28.07.1996 digulla
Initial revision
28.07.1996 digulla
First CVS version of AROS