•  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.22  Psetegid                                                  TOS

 Name:         »Psetegid« - Set the effective group ID for the calling 
               process.

 Opcode:       324 (0x0144)

 Syntax:       int32_t Psetegid ( int16_t egid );

 Description:  egid specifies the new effective group ID for the 
               calling process.

               Prior to MiNT version 1.12, this call contained a bug 
               affecting its functionality. Setting effective group id 
               needs root privileges.

               This call is often used by daemon processes to 
               downgrade their privileges to user level.

 Return value: Returns new egid on success or a negative GEMDOS 
               error-code otherwise.

 Availability: MiNT 1.11

 Group:        Process functions

 See also:     Binding   Pseteuid   Psetgid   Psetregid