(C) 1998 AROS - The Amiga Research OS


NAME
#include <dos/dosextens.h>
#include <proto/dos.h>

BOOL AddSegment (name , seg , type)

LOCATION
In DOSBase at offset 129

SYNOPSIS
STRPTR name
BPTR seg
LONG type

FUNCTION
Adds a program segment to the system resident list. You can later use these segments to run programs.

The name field should refer to a NULL terminated strings, which will be copied. The type field determines the type of resident program. Normal programs should have type >= 0, system segments should have type == CMD_SYSTEM.

Note that all other values of type are reserved.

INPUTS
name
Name of the segment. This is used by FindSegment().
seg
Segment to add.
type
What type of segment (initial use count).

RESULT
Segment will have been added to the DOS resident list.

!= 0 success == 0 failure

EXAMPLE

SEE ALSO
FindSegment(), RemSegment()

NOTES

BUGS
Uses Forbid() based locking.

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
02.01.1998 srittau
Fixed typos and warnings
01.01.1998 iaint
Segment functions
27.01.1997 ldp
Polish
09.12.1996 aros
Added empty templates for all missing functions

Moved #include's into first column