Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (M)
Guardian Procedure Calls Reference Manual522629-013
9-66
MOVEX Procedure
MOVEX Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Related Programming Manual
Summary
MOVEX moves data between extended data segments without the need for absolute
addressing; it serves both privileged and nonprivileged users.
Syntax for C Programmers
CEXTDECS (via the included file TNSINTH) defines 32-bit values as the typedef
__int32_t which for TNS and TNS/R compiles is defined as
long and for TNS/E
compiles is defined as
int.
Syntax for TAL Programmers
Parameters
error returned value
INT
returns a file-system error code indicating the outcome of the call:
0 Successful call; the specified data was moved.
2Either
source-seg-id or dest-seg-id specified a nonexistent
extended data segment, or the destination data segment has read-only
access.
22 One of the parameters specifies an address that is out of bounds.
#include <cextdecs(MOVEX)>
short MOVEX ( [ short source-seg-id ]
,char *source
,[ short dest-seg-id ]
,char *dest
,__int32_t byte-count );
error := MOVEX ( [ source-seg-id ] ! i
,source ! i
,[ dest-seg-id ] ! i
,dest ! i
,byte-count ); ! i