•  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.47  Pwait                                                     TOS

 Name:         »Pwait« - Try to obtain exit code of waiting or 
               terminated child process.

 Opcode:       265

 Syntax:       int32_t Pwait ( void );

 Description:  The function Pwait is equivalent to Pwait3 (2, NULL) 
               and is offered for reasons of backwards compatibility.

               According to POSIX, the library function 'wait' should 
               be implemented as Pwaitpid (-1, 0, NULL). Hence Pwait 
               should not be used for a POSIX-compatible library.

               Warning: In MagiC the function is implemented as 
               Pwaitpid (-1, 2, NULL).

 Return value: The function can return the following results:

                >0    :  Exit status and PID of the child in the lower 
                         and upper 16 bits respectively of a 32-bit 
                         return code
                 0    :  No child processes have terminated.
                EFILNF:  No child processes exist

 Availability: As of the first in MultiTOS integrated MiNT version 
               1.04, and MagiC as of Version 5.04.

 Group:        Process functions

 See Also:     Binding   Pwait3   Pwaitpid