代码搜索:PID

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

代码结果 10,000
www.eeworm.com/read/476738/6749444

33 fig15.33

#include "apue.h" #include #include #define NLOOPS 1000 #define SIZE sizeof(long) /* size of shared memory area */ static int update(long *ptr) { return((*ptr)++); /* retur
www.eeworm.com/read/476848/6751827

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/476848/6751836

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/476848/6751845

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/476848/6751858

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/476848/6751859

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/265219/11272683

c efaxos.c

/* efaxos.c - O/S-dependent routines Copyright 1995, Ed Casas */ #include #include #include #include #include #include #incl
www.eeworm.com/read/264377/11317482

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/264377/11317550

c test1.c

#include "apue.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 with exit status 2 */ }
www.eeworm.com/read/264377/11317551

c fork2.c

#include "apue.h" #include int main(void) { pid_t pid; if ((pid = fork()) < 0) { err_sys("fork error"); } else if (pid == 0) { /* first child */ if ((pid = fork()) < 0) err_s