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-FilePgetpgrp()Psetpgrp() GEMDOSSyntaxLONG Psetpgrp( pid, newgrp )
WORD pid, newgrp;
Function Psetpgrp() sets the process group ID of the specified
process.
Opcode 270 (0x10E)
Availability This function is available under all MiNTversions integrated with MultiTOS.
Parameters The process group ID of the process with process ID pid will
have its process group ID changed to newgrp if the calling
process has the same user ID or is the parent of the
specified process. If pid is 0, the process group ID of the
current process is sent. If newgrp is 0, the process group
ID is set to equal the processes' (not the callers' unless
pid is also set to 0) process ID.
Binding move.w newgrp,-(sp)
move.w pid,-(sp)
move.w #$10E,-(sp)
trap #1
addq.l #6,sp
Return Value Psetpgrp() returns newgrp if successful or a negative GEMDOS error code otherwise.
See Also Pgetpgrp()