version 1.10.2.2, 2001/11/14 19:16:51 |
version 1.10.2.3, 2002/12/11 15:51:03 |
|
|
#include "loadfile.h" |
#include "loadfile.h" |
|
|
/* |
/* |
* Open 'filename', read in program and and return 0 if ok 1 on error. |
* Open 'filename', read in program and return the opened file |
|
* descriptor if ok, or -1 on error. |
* Fill in marks |
* Fill in marks |
*/ |
*/ |
int |
int |
Line 165 loadfile(fname, marks, flags) |
|
Line 166 loadfile(fname, marks, flags) |
|
} |
} |
|
|
if (rval == 0) { |
if (rval == 0) { |
PROGRESS(("=0x%lx\n", marks[MARK_END] - marks[MARK_START])); |
if ((flags & LOAD_ALL) != 0) |
|
PROGRESS(("=0x%lx\n", |
|
marks[MARK_END] - marks[MARK_START])); |
return fd; |
return fd; |
} |
} |
err: |
err: |