代码搜索:waitpid
找到约 797 项符合「waitpid」的源代码
代码结果 797
www.eeworm.com/read/380485/9145305
c wait.c
/*
* linux/lib/wait.c
*
* (C) 1991 Linus Torvalds
*/
#define __LIBRARY__
#include
#include
_syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
pid_t wait(i
www.eeworm.com/read/183515/9155858
c p6-10.c
#include
#include "err_exit.h"
int main(void)
{
pid_t pid;
if ((pid = fork()) < 0)
err_exit("fork error");
else if (pid == 0) { /* 第一个子进程 */
/*
www.eeworm.com/read/379736/9179674
c wait.c
/*
* linux/lib/wait.c
*
* (C) 1991 Linus Torvalds
*/
#define __LIBRARY__
#include
#include
_syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
pid_t wait(i
www.eeworm.com/read/379714/9181004
c wait.c
/*
* linux/lib/wait.c
*
* (C) 1991 Linus Torvalds
*/
#define __LIBRARY__
#include
#include
_syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
pid_t wait(i
www.eeworm.com/read/379711/9181315
c wait.c
/*
* linux/lib/wait.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
#define __LIBRARY__
#include
#include
_syscall3(pid_t,waitpid,pid_t,pid,int *,w
www.eeworm.com/read/181669/9241724
c wait.c
/*
* linux/lib/wait.c
*
* (C) 1991 Linus Torvalds
*/
#define __LIBRARY__
#include
#include
_syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
pid_t wait(i
www.eeworm.com/read/365428/9863654
c wait.c
/*
* linux/lib/wait.c
*
* (C) 1991 Linus Torvalds
*/
#define __LIBRARY__
#include // Linux 标准头文件。定义了各种符号常数和类型,并申明了各种函数。
// 如定义了__LIBRARY__,则还包括系统调用号和内嵌汇编_syscall0()等。
#include
www.eeworm.com/read/167847/9950328
c sigchldwaitpid.c
#include "unpipc.h"
void
sig_chld(int signo)
{
pid_t pid;
int stat;
while ( (pid = waitpid(-1, &stat, WNOHANG)) > 0)
;
return;
}
www.eeworm.com/read/163079/10175324
c wait.c
/*
* linux/lib/wait.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
#define __LIBRARY__
#include
#include
_syscall3(pid_t,waitpid,pid_t,pid,int *,w
www.eeworm.com/read/354342/10362377
c wait.c
/*
* linux/lib/wait.c
*
* (C) 1991 Linus Torvalds
*/
#define __LIBRARY__
#include
#include
_syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
pid_t wait(i