代码搜索:fork
找到约 4,354 项符合「fork」的源代码
代码结果 4,354
www.eeworm.com/read/385462/2590505
h syscall_nr.h
#define TARGET_NR_osf_syscall 0 /* not implemented */
#define TARGET_NR_exit 1
#define TARGET_NR_fork 2
#define TARGET_NR_read 3
#define TARGET_NR_write 4
#define TARGET_NR_osf_old_open
www.eeworm.com/read/359563/2975036
c pipe3.c
#include
#include
void main()
{
int fildes[2];
pid_t pid;
int i, j;
char buf[256];
if (pipe(fildes) < 0 || (pid = fork()) < 0) /* 创建管道和子进程 */
{
fprintf(stderr, "error!\n")
www.eeworm.com/read/359096/2979821
h syscall_nr.h
#define TARGET_NR_osf_syscall 0 /* not implemented */
#define TARGET_NR_exit 1
#define TARGET_NR_fork 2
#define TARGET_NR_read 3
#define TARGET_NR_write 4
#define TARGET_NR_osf_old_open
www.eeworm.com/read/357083/3030895
h unistd.h
#ifndef _ASM_I386_UNISTD_H_
#define _ASM_I386_UNISTD_H_
/*
* This file contains the system call numbers.
*/
#define __NR_exit 1
#define __NR_fork 2
#define __NR_read 3
#define __NR_write
www.eeworm.com/read/354345/3078224
h sys.h
/*
* Why isn't this a .c file? Enquiring minds....
*/
extern int sys_setup();
extern int sys_exit();
extern int sys_fork();
extern int sys_read();
extern int sys_write();
extern int sys_open();
ex
www.eeworm.com/read/261580/4320732
mh nbsdaout.mh
# Host: NetBSD/sparc a.out
NATDEPFILES= fork-child.o inf-ptrace.o \
sparc-nat.o sparcnbsd-nat.o bsd-kvm.o solib-sunos.o
NAT_FILE= nm-nbsd.h
LOADLIBES= -lkvm
www.eeworm.com/read/261580/4320974
mh nbsdaout.mh
# Host: NetBSD/sparc a.out
NATDEPFILES= fork-child.o inf-ptrace.o \
sparc-nat.o sparcnbsd-nat.o bsd-kvm.o solib-sunos.o
NAT_FILE= nm-nbsd.h
LOADLIBES= -lkvm
www.eeworm.com/read/152843/5659333
s syscall_table.s
.data
ENTRY(sys_call_table)
.long sys_restart_syscall /* 0 - old "setup()" system call, used for restarting */
.long sys_exit
.long sys_fork
.long sys_read
.long sys_write
.long sys_open /* 5 *
www.eeworm.com/read/292919/8324535
c ptyfork.c
#include "apue.h"
#include
#ifndef TIOCGWINSZ
#include
#endif
pid_t
pty_fork(int *ptrfdm, char *slave_name, int slave_namesz,
const struct termios *slave_termios,
cons
www.eeworm.com/read/292919/8324648
11 fig19.11
#include "apue.h"
#include
#ifndef TIOCGWINSZ
#include
#endif
pid_t
pty_fork(int *ptrfdm, char *slave_name, int slave_namesz,
const struct termios *slave_termios,
cons