Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-FileFcntl()Pdomain() GEMDOSSyntaxWORD Pdomain( domain )
WORD domain;
Function Pdomain() determines/modifies the calling processes'
execution domain.
Opcode 281 (0x119)
Availability This function is available under all MiNTversions integrated with MultiTOS.
Parameters domain contains the domain code of the new process domain.
Currently the only valid values are DOMAIN_TOS (0) for the
TOS compatibility domain and DOMAIN_MINT (1) for the MiNT domain. Passing a negative value for domain will not change
domains but it will return the current domain.
Binding move.w domain,-(sp)
move.w #$119,-(sp)
trap #1
addq.l #4,sp
Return Value Pdomain() returns the domain in effect prior to the call.
Comments Process domain affects system calls like Fread(), Fwrite(),
Fsfirst(), and Fsnext(). Processes behave as expected when
under the TOS domain. When processes run under the MiNT domain, however, the behavior of Fread() and Fwrite() calls
when dealing with terminals can be modified by Fcntl().
Also, Fsfirst() and Fsnext() may not necessarily return the
standard DOS 8 + 3 file name format. MiNT domain processes must understand filenames formatted for different file
systems.
See Also Fcntl()