mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:12:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			489 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			489 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <sys/cdefs.h>
 | |
| #include <sys/types.h>
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| 
 | |
| #define WEXITSTATUS(status) (((status)&0xff00) >> 8)
 | |
| #define WTERMSIG(status) ((status)&0x7f)
 | |
| #define WIFEXITED(status) (WTERMSIG(status) == 0)
 | |
| #define WIFSTOPPED(status) (((status) & 0xff) == 0x7f)
 | |
| #define WIFSIGNALED(status) (((char)(((status)&0x7f) + 1) >> 1) > 0)
 | |
| 
 | |
| #define WNOHANG 1
 | |
| #define WUNTRACED 2
 | |
| #define WSTOPPED WUNTRACED
 | |
| #define WEXITED 4
 | |
| #define WCONTINUED 8
 | |
| 
 | |
| pid_t wait(int* wstatus);
 | |
| 
 | |
| __END_DECLS
 | 
