•  Back 
  •  Process functions 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - The Operating System
Author      : 
Version     : tos.hyp (December 19, 2008)
Subject     : Programmieren/Atari
Nodes       : 3010
Index Size  : 93790
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Title
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File5.12.27  Psetpgrp                                                  TOS

 Name:         »Psetpgrp« - Set process group number of a process.

 Opcode:       270

 Syntax:       int16_t Psetpgrp ( int16_t pid, int16_t newgrp );

 Description:  The function Psetpgrp alters the group number of the 
               process with the ID pid to the value newgrp. The 
               process must have the same UID as the current process, 
               or be the parent of it.

               If pid = 0, the process group of the current process 
               will be set. If newgrp = 0, the process group will be 
               set to the value of the PID of the current process.

 Return value: The function can return the following results:

                >= 0  :  No error (new process group number)
                EFILNF:  The process pid does not exist
                EACCDN:  The process pid has a different UID, and is 
                         not a child of the calling process

 Availability: As of the first in MultiTOS integrated MiNT version 
               1.04.

 Group:        Process functions

 See also:     Binding   Pkill   Pgetpgrp   Pgetpid