代码搜索:fork
找到约 4,354 项符合「fork」的源代码
代码结果 4,354
www.eeworm.com/read/439707/7702585
c process_group.c
#include
#include
int main(int argc,char *argv[])
{
pid_t child;
printf("process group id %d\n",getpgrp());
printf("process id %d\n",getpid());
child=fork();
if(child=
www.eeworm.com/read/436665/7766363
c~ test.c~
#include
#include
#include
static int index=0;
int main() {
if(fork()==0) {
index++;
printf("child %d\n",index);
}
else {
wait(0);
printf("father %d\n",index
www.eeworm.com/read/396061/8135015
c group_id_sample.c
#include
#include
int main(int argc,char *argv[])
{
pid_t child;
printf("getpid=%d\n",getpid());
printf("group id=%d\n",getpgrp());
child=fork();
if(child==0)
{
pri
www.eeworm.com/read/145471/5745909
h sys.h
#ifndef _LINUX_SYS_H
#define _LINUX_SYS_H
/*
* system call entry points
*/
#define sys_clone sys_fork
#ifdef __cplusplus
extern "C" {
#endif
extern int sys_setup(); /* 0 */
extern int sys
www.eeworm.com/read/131315/5931939
h hpux_syscall.h
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from @(#)syscalls.master 8.3 (Berkeley) 2/7/94
*/
#define SYS_exit 1
#define SYS_fork 2
#define SYS_re
www.eeworm.com/read/131315/5932346
h news_syscall.h
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from @(#)syscalls.master 8.1 (Berkeley) 6/11/93
*/
#define SYS_exit 1
#define SYS_fork 2
#define SYS_r
www.eeworm.com/read/131315/5933644
h sun_syscall.h
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from @(#)syscalls.master 8.1 (Berkeley) 7/19/93
*/
#define SYS_exit 1
#define SYS_fork 2
#define SYS_r
www.eeworm.com/read/101082/6241552
f fktst.f
common/sig/whoami
character*6 whoami
integer fork, getpid, wait, tick
external trap
call signal(2, trap, -1)
call signal(3, trap, -1)
call signal(6, trap, -1)
call signal(8, trap, -1)
call s
www.eeworm.com/read/402196/11541161
c execve.c
#include
#include
#include
int main(int argc,char * argv[],char ** environ)
{
pid_t pid;
int stat_val;
printf("Exec example!\n");
pid = fork();