代码搜索:PID
找到约 10,000 项符合「PID」的源代码
代码结果 10,000
www.eeworm.com/read/101082/6241030
c getpid.c
/* getpid.c 4.1 82/12/04 */
#include "SYS.h"
SYSCALL(getpid)
ret # pid = getpid();
www.eeworm.com/read/101082/6241036
c setpgrp.c
/* setpgrp.c 4.1 82/12/04 */
#include "SYS.h"
SYSCALL(setpgrp)
ret # setpgrp(pid, pgrp);
www.eeworm.com/read/101082/6241064
c getpgrp.c
/* getpgrp.c 4.1 82/12/04 */
#include "SYS.h"
SYSCALL(getpgrp)
ret # pgrp = getpgrp(pid);
www.eeworm.com/read/101082/6241839
c _getpgrp.c
/* getpgrp.c 4.1 82/12/04 */
#include "SYS.h"
SYSCALL(_getpgrp)
ret # pgrp = getpgrp(pid);
www.eeworm.com/read/101082/6241848
c _setpgrp.c
/* setpgrp.c 4.1 82/12/04 */
#include "SYS.h"
SYSCALL(_setpgrp)
ret # _setpgrp(pid, pgrp);
www.eeworm.com/read/101082/6244768
2 getpid.2
.\" SCCSID: @(#)getpid.2 2.2 4/10/87
.TH getpid 2
.SH Name
getpid, getppid \- get process identification
.SH Syntax
.ft B
.nf
.B #include
.B #include
.PP
.B pid = getpid()
.B
www.eeworm.com/read/101082/6246629
2 getpid.2
.\" SCCSID: @(#)getpid.2 2.2 4/10/87
.TH getpid 2
.SH Name
getpid, getppid \- get process identification
.SH Syntax
.ft B
.nf
.B #include
.B #include
.PP
.B pid = getpid()
.B
www.eeworm.com/read/101082/6247925
3f kill.3f
.\" SCCSID: @(#)kill.3f 8.1 9/11/90
.TH kill 3f VAX "" Unsupported
.SH Name
kill \- send a signal to a process
.SH Syntax
.B function kill (pid, signum)
.br
.B integer pid, signum
.SH Description
.NXR
www.eeworm.com/read/273303/6281612
c~ long.c~
#include "libuser.h"
#include "process.h"
int main(int argc, char **argv)
{
int i, j ; /* loop index */
Print("Start Long\n");
for (i=0; i < 400; i++) {
for (j=0 ; j < 10000 ; j++)
www.eeworm.com/read/421459/6311345
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