代码搜索:PID

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

代码结果 10,000
www.eeworm.com/read/293357/8298317

c fork1.vfork.c

#include #include #include #include int gvar = 0; int main(int argc, char** argv) { int lvar = 0; pid_t child_pid; print
www.eeworm.com/read/293240/8305375

c pidfile.c

/* pidfile.c * * Functions to assist in the writing and removing of pidfiles. * * Russ Dill Soptember 2001 * * This program is free software; you can redistribute it and/or m
www.eeworm.com/read/292919/8324859

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/292919/8324957

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/292919/8324960

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
www.eeworm.com/read/292919/8325174

28 fig8.28

#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/292919/8325291

8 fig8.8

#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
www.eeworm.com/read/292919/8325326

c devzero.c

#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/292919/8325483

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/392544/8336389

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