Vhex is a kernel which provide development and retro ingenierie platform for the Casio's OS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
508 B

#ifndef __LIB_SYS_WAIT_H__
# define __LIB_SYS_WAIT_H__
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
// Wait options
#define WNOHANG 0
#define WUNTRACED 1
#define WCONTINUED 2
// Signals
#define __W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
#define __WEXITSTATUS(status) (((status) & 0xff00) >> 8)
#define WEXITSTATUS(status) __WEXITSTATUS(status)
// Wait process
extern pid_t waitpid(pid_t pid, int *wstatus, int options);
extern pid_t wait(int *wstatus);
#endif /*__LIB_SYS_WAIT_H__*/