代码搜索结果

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

makefile.txt

all: env1 env2 pid tmpfile passwd host ls file env1: env1.c gcc -o env1 env1.c env2: env2.c gcc -o env2 env2.c pid: pid.c gcc -o pid pid.c tmpfile: tmpfile.c gcc -o tmpfile tmpfile.c passwd:

wait.c

#define __LIBRARY__ #include #include _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) pid_t wait(int * wait_stat) { return waitpid(-1,wait_stat,0); }

wait.c

/* * linux/lib/wait.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #define __LIBRARY__ #include #include _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,i

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

daemoninit.c

#include #include #include #include "ourhdr.h" int daemon_init(void) { pid_t pid; if ( (pid = fork()) < 0) return(-1); else if (pid != 0) exit(0); /* pare

shell2.c

#include #include #include #include "ourhdr.h" static void sig_int(int); /* our signal-catching function */ int main(void) { char buf[MAXLINE]; pid_t pid; i

daemoninit.c

#include #include #include #include "ourhdr.h" int daemon_init(void) { pid_t pid; if ( (pid = fork()) < 0) return(-1); else if (pid != 0) exit(0); /* pare

daemoninit.c

#include #include #include #include "ourhdr.h" int daemon_init(void) { pid_t pid; if ( (pid = fork()) < 0) return(-1); else if (pid != 0) exit(0); /* pare