代码搜索:fork
找到约 4,354 项符合「fork」的源代码
代码结果 4,354
www.eeworm.com/read/122882/14662479
c pipe_parcld_std.c
/* Using pipe with stdio function */
#include "unistd.h"
#include "stdio.h"
#include "string.h"
main()
{ int fd[2],pid,n;
FILE *fp;
char dat[20]="hello world\n",c;
pipe(fd);
pid=fork();
if(
www.eeworm.com/read/219019/14897732
h user.h
// system calls
int fork(void);
int exit(void) __attribute__((noreturn));
int wait(void);
int pipe(int*);
int write(int, void*, int);
int read(int, void*, int);
int close(int);
int kill(int);
int exec
www.eeworm.com/read/116764/14955527
c daemonf.c
#include
#include
#include
#include
int daemon_init(void)
{
pid_t pid;
if((pid=fork()) < 0)
return(-1);
else if(pid != 0)
www.eeworm.com/read/479931/1327860
mh nbsd64.mh
# Host: NetBSD/amd64
NATDEPFILES= fork-child.o inf-ptrace.o \
nbsd-nat.o amd64-nat.o amd64bsd-nat.o amd64nbsd-nat.o
www.eeworm.com/read/198501/5087011
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/196550/5101840
h sysname.h
char *sys_name[] = {
"NONE",
" __NR_exit ",
" __NR_fork ",
" __NR_read ",
" __NR_write ",
" __NR_open ",
" __NR_close ",
" __NR_waitpid ",
" __NR_creat ",
" __NR_link ",
" __NR_unlink ",
"
www.eeworm.com/read/192230/5158763
mh umax.mh
# Host: Encore running umax 4.2
XDEPFILES= umax-xdep.o
XM_FILE= xm-umax.h
NAT_FILE= nm-umax.h
NATDEPFILES= infptrace.o inftarg.o fork-child.o
www.eeworm.com/read/299781/3850700
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/419387/2078563
mh nbsdelf.mh
# Host: Sun 4 or Sparcstation, running NetBSD
NATDEPFILES= fork-child.o infptrace.o inftarg.o sparcnbsd-nat.o
XM_FILE= xm-nbsd.h
NAT_FILE= nm-nbsd.h