a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 dos.library
  AbortPkt
  AddBuffers
  AddDosEntry
  AddPart
  AddSegment
  AllocDosObject
  AssignAdd
  AssignLate
  AssignLock
  AssignPath
  AttemptLockDosList
  ChangeMode
  CheckSignal
  Cli
  CliInitNewcli
  CliInitRun
  Close
  CompareDates
  CreateDir
  CreateNewProc
  CreateProc
  CurrentDir
  DateStamp
  DateToStr
  Delay
  DeleteFile
  DeleteVar
  DeviceProc
  DoPkt
  DupLock
  DupLockFromFH
  EndNotify
  ErrorReport
  ExAll
  ExAllEnd
  ExNext
  Examine
  ExamineFH
  Execute
  Exit
  FGetC
  FGets
  FPutC
  FPuts
  FRead
  FWrite
  Fault
  FilePart
  FindArg
  FindCliProc
  FindDosEntry
  FindSegment
  FindVar
  Flush
  Format
  FreeArgs
  FreeDeviceProc
  FreeDosEntry
  FreeDosObject
  GetArgStr
  GetConsoleTask
  GetCurrentDirName
  GetDeviceProc
  GetFileSysTask
  GetProgramDir
  GetProgramName
  GetPrompt
  GetVar
  Info
  Inhibit
  Input
  InternalLoadSeg
  InternalUnLoadSeg
  IoErr
  IsFileSystem
  IsInteractive
  LoadSeg
  Lock
  LockDosList
  LockRecord
  LockRecords
  MakeDosEntry
  MakeLink
  MatchEnd
  MatchFirst
  MatchNext
  MatchPattern
  MatchPatternNoCase
  MaxCli
  NameFromFH
  NameFromLock
  NewLoadSeg
  NextDosEntry
  Open
  OpenFromLock
  Output
  ParentDir
  ParentOfFH
  ParsePattern
  ParsePatternNoCase
  PathPart
  PrintFault
  PutStr
  Read
  ReadArgs
  ReadItem
  ReadLink
  Relabel
  RemAssignList
  RemDosEntry
  RemSegment
  Rename
  ReplyPkt
  RunCommand
  SameDevice
  SameLock
  Seek
  SelectInput
  SelectOutput
  SendPkt
  SetArgStr
  SetComment
  SetConsoleTask
  SetCurrentDirName
  SetFileDate
  SetFileSize
  SetFileSysTask
  SetIoErr
  SetMode
  SetOwner
  SetProgramDir
  SetProgramName
  SetPrompt
  SetProtection
  SetVBuf
  SetVar
  SplitName
  StartNotify
  StrToDate
  StrToLong
  SystemTagList
  UnGetC
  UnLoadSeg
  UnLock
  UnLockDosList
  UnLockRecord
  UnLockRecords
  VFPrintf
  VFWritef
  VPrintf
  WaitForChar
  WaitPkt
  Write
  WriteChars
Include
GuruMeditation
Docs » Autodocs » dos.library » InternalLoadSeg

NAME

	InternalLoadSeg -- Low-level load routine (V36)

SYNOPSIS

	seglist = InternalLoadSeg(fh,table,functionarray,stack)
D0 D0 A0 A1 A2
BPTR InternalLoadSeg(BPTR,BPTR,LONG *,LONG *)

FUNCTION

	Loads from fh.  Table is used when loading an overlay, otherwise
should be NULL. Functionarray is a pointer to an array of functions.
Note that the current Seek position after loading may be at any point
after the last hunk loaded. The filehandle will not be closed. If a
stacksize is encoded in the file, the size will be stuffed in the
LONG pointed to by stack. This LONG should be initialized to your
default value: InternalLoadSeg() will not change it if no stacksize
is found. Clears unused portions of Code and Data hunks (as well as
BSS hunks). (This also applies to LoadSeg() and NewLoadSeg()).
If the file being loaded is an overlaid file, this will return
-(seglist). All other results will be positive.
NOTE to overlay users: InternalLoadSeg() does NOT return seglist in
both D0 and D1, as LoadSeg does. The current ovs.asm uses LoadSeg(),
and assumes returns are in D1. We will support this for LoadSeg()
ONLY.

INPUTS

	fh	      - Filehandle to load from.
table - When loading an overlay, otherwise ignored.
functionarray - Array of function to be used for read, alloc, and free.
FuncTable[0] -> Actual = ReadFunc(readhandle,buffer,length),DOSBase
D0 D1 D2 D3 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.

RESULT

	seglist	      - Seglist loaded or NULL.  NOT returned in D1!

BUGS

	Really should use tags.

SEE ALSO

LoadSeg(), UnLoadSeg(), NewLoadSeg(), InternalUnLoadSeg()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Phenomena

PDX
DC
HZ
PHA

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se