emul-handler: fh_Arg1 should be the only element of struct FileHandle touched during...
[AROS.git] / rom / dos / newloadseg.c
blob493d23f5e4938b0b338254a4ddb707bf48475aad
1 /*
2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: DOS function NewLoadSeg()
6 Lang: english
8 */
9 #include <dos/dos.h>
10 #include <dos/dosextens.h>
11 #include <utility/tagitem.h>
12 #include <proto/dos.h>
13 #include "dos_intern.h"
15 /*****************************************************************************
17 NAME */
18 #include <proto/dos.h>
20 AROS_LH2(BPTR, NewLoadSeg,
22 /* SYNOPSIS */
23 AROS_LHA(CONST_STRPTR, file, D1),
24 AROS_LHA(struct TagItem *, tags, D2),
26 /* LOCATION */
27 struct DosLibrary *, DOSBase, 128, Dos)
29 /* FUNCTION
30 Loads an executable file into memory via LoadSeg() and takes
31 additional actions based upon the supplied tags.
33 INPUTS
34 file - NULL terminated name of the file
35 tags - pointer to the tagitems
37 RESULT
38 Handle to the loaded executable or 0 if the load failed.
39 IoErr() gives additional information in that case.
41 NOTES
43 EXAMPLE
45 BUGS
46 As there are no tags currently defined, all this function does is
47 call LoadSeg()
49 SEE ALSO
50 LoadSeg(), UnLoadSeg(), InternalLoadSeg(), InternalUnloadSeg()
52 INTERNALS
54 *****************************************************************************/
56 AROS_LIBFUNC_INIT
58 return LoadSeg(file);
60 AROS_LIBFUNC_EXIT
61 } /* NewLoadSeg */