⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wait.h

📁 Newlib 嵌入式 C库 标准实现代码
💻 H
字号:
/* libc/sys/linux/sys/wait.h - Wait for children *//* Written 2000 by Werner Almesberger */#ifndef _SYS_WAIT_H#define _SYS_WAIT_H#include <linux/wait.h>#define WIFEXITED(status)	(!WTERMSIG(status))#define WEXITSTATUS(status)	(((status) >> 8) & 0xff)#define WIFSIGNALED(status)	(!WIFSTOPPED(status) && !WIFEXITED(status))#define WTERMSIG(status)	((status ) & 0x7f)#define WIFSTOPPED(status)	(((status) & 0xff) == 0x7f)#define WSTOPSIG(status)	WEXITSTATUS(status)#ifndef _POSIX_SOURCE#define WCOREDUMP(status) 	((status) & 0x80)#endif/* --- redundant stuff below --- */#include <_ansi.h>#include <sys/types.h>pid_t wait (int *);pid_t waitpid (pid_t, int *, int);pid_t _wait (int *);#ifndef _POSIX_SOURCE#include <sys/resource.h>pid_t wait3(int *status,int options,struct rusage *rusage);pid_t wait4(pid_t pid,int *status,int options,struct rusage *rusage);#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -