代码搜索结果
找到约 12,494 项符合
PID 的代码
getpid.c
/* getpid.c 4.1 82/12/04 */
#include "SYS.h"
SYSCALL(getpid)
ret # pid = getpid();
setpgrp.c
/* setpgrp.c 4.1 82/12/04 */
#include "SYS.h"
SYSCALL(setpgrp)
ret # setpgrp(pid, pgrp);
ovfork.c
/*
* @(#)vfork.s 4.1 (Berkeley) 12/21/80
* C library -- vfork
*/
/*
* pid = vfork();
*
* r1 == 0 in parent process, r1 == 1 in child process.
* r0 == pid of child in parent, r0 == pid of paren
getpgrp.c
/* getpgrp.c 4.1 82/12/04 */
#include "SYS.h"
SYSCALL(getpgrp)
ret # pgrp = getpgrp(pid);
getpid_.c
/*
char id_getpid[] = "@(#)getpid_.c 1.1";
*
* get process id
*
* calling sequence:
* integer getpid, pid
* pid = getpid()
* where:
* pid will be the current process id
*/
long getpid_()
{
kill_.c
/*
char id_kill[] = "@(#)kill_.c 1.1";
*
* send a signal to a process
*
* calling sequence:
* ierror = kill(pid, signum)
* where:
* pid must be the process id of one of the user's processes
*
_getpgrp.c
/* getpgrp.c 4.1 82/12/04 */
#include "SYS.h"
SYSCALL(_getpgrp)
ret # pgrp = getpgrp(pid);
_setpgrp.c
/* setpgrp.c 4.1 82/12/04 */
#include "SYS.h"
SYSCALL(_setpgrp)
ret # _setpgrp(pid, pgrp);
setpgrp.c
/*
setpgrp -- system call emulation for 4.2BSD
last edit: 01-Jul-1983 D A Gwyn
*/
extern int _setpgrp(), getpid();
int
setpgrp()
{
register int pid = getpid();
(void)_setpgrp( 0, pid ); /* 0
event
EventQueue/"Time"16t8r"func"24t16t"arg"16t"pid"
*.$