代码搜索:PID

找到约 10,000 项符合「PID」的源代码

代码结果 10,000
www.eeworm.com/read/103960/15715560

c test1.c

#include #include "ourhdr.h" int main(void) { pid_t pid; if ( (pid = fork()) < 0) err_sys("fork error"); else if (pid != 0) { /* parent */ sleep(2); exit(2); /* terminate wit
www.eeworm.com/read/103960/15715561

c fork2.c

#include #include #include "ourhdr.h" int main(void) { pid_t pid; if ( (pid = fork()) < 0) err_sys("fork error"); else if (pid == 0) { /* first child */ if ( (pid
www.eeworm.com/read/102720/15761102

2 getpid.2

GETPID(2) Minix Programmer's Manual GETPID(2) NAME getpid, getppid - get process identification SYNOPSIS #include #include
www.eeworm.com/read/100620/15868631

c ph.c

#include "head.h" #include #include main() { int f1, f2, f3, f4; int i; pid_t pid, pidset[5]; pipe(pidset); if( (pid = fork() ) < 0)
www.eeworm.com/read/100585/15870568

c lock.c

#include "calld.h" typedef struct { char *line; /* points to malloc()ed area */ /* we lock by line (device name) */ pid_t pid; /* but unlock by process ID */ /* pid of 0 means available
www.eeworm.com/read/100585/15870577

c exec1.c

#include #include #include "ourhdr.h" char *env_init[] = { "USER=unknown", "PATH=/tmp", NULL }; int main(void) { pid_t pid; if ( (pid = fork()) < 0) err_sys("fork err
www.eeworm.com/read/100585/15870586

c exec2.c

#include #include #include "ourhdr.h" int main(void) { pid_t pid; if ( (pid = fork()) < 0) err_sys("fork error"); else if (pid == 0) { /* child */ if (execl("/home
www.eeworm.com/read/100585/15870599

c test1.c

#include #include "ourhdr.h" int main(void) { pid_t pid; if ( (pid = fork()) < 0) err_sys("fork error"); else if (pid != 0) { /* parent */ sleep(2); exit(2); /* terminate wit
www.eeworm.com/read/100585/15870600

c fork2.c

#include #include #include "ourhdr.h" int main(void) { pid_t pid; if ( (pid = fork()) < 0) err_sys("fork error"); else if (pid == 0) { /* first child */ if ( (pid
www.eeworm.com/read/100096/15885323

c efaxos.c

/* efaxos.c - O/S-dependent routines Copyright 1995, Ed Casas */ #include #include #include #include #include #include #incl