代码搜索:fork
找到约 4,354 项符合「fork」的源代码
代码结果 4,354
www.eeworm.com/read/117181/6110669
c foll-fork.c
#include
#include
#ifdef PROTOTYPES
void callee (int i)
#else
void callee (i)
int i;
#endif
{
printf("callee: %d\n", i);
}
#ifdef PROTOTYPES
int main (void)
#else
main ()
#
www.eeworm.com/read/113399/6131612
c sys_fork.c
#include "syslib.h"
PUBLIC int sys_fork(parent, child, pid, child_base_or_shadow)
int parent; /* process doing the fork */
int child; /* which proc has been created by the fork */
int pid;
www.eeworm.com/read/101082/6247870
3f fork.3f
.\" SCCSID: @(#)fork.3f 8.1 9/11/90
.TH fork 3f VAX "" Unsupported
.SH Name
fork \- create a copy of this process
.SH Syntax
.B integer function fork()
.SH Description
.NXR "fork subroutine (FORTRAN)"
www.eeworm.com/read/421459/6311381
c fork1.c
#include "apue.h"
int glob = 6; /* external variable in initialized data */
char buf[] = "a write to stdout\n";
int
main(void)
{
int var; /* automatic variable on the stack */
pid_t pid;
var
www.eeworm.com/read/421459/6311397
c fork2.c
#include "apue.h"
#include
int
main(void)
{
pid_t pid;
if ((pid = fork()) < 0) {
err_sys("fork error");
} else if (pid == 0) { /* first child */
if ((pid = fork()) < 0)
err_s
www.eeworm.com/read/494691/6360185
c fork1.c
#include
#include "ourhdr.h"
int glob = 6; /* external variable in initialized data */
char buf[] = "a write to stdout\n";
int
main(void)
{
int var; /* automatic variable on the s
www.eeworm.com/read/494691/6360200
c fork2.c
#include
#include
#include "ourhdr.h"
int
main(void)
{
pid_t pid;
if ( (pid = fork()) < 0)
err_sys("fork error");
else if (pid == 0) { /* first child */
if ( (pid
www.eeworm.com/read/490627/6449921
c fork1.c
#include
#include "ourhdr.h"
int glob = 6; /* external variable in initialized data */
char buf[] = "a write to stdout\n";
int
main(void)
{
int var; /* automatic variable on the s
www.eeworm.com/read/490627/6449936
c fork2.c
#include
#include
#include "ourhdr.h"
int
main(void)
{
pid_t pid;
if ( (pid = fork()) < 0)
err_sys("fork error");
else if (pid == 0) { /* first child */
if ( (pid
www.eeworm.com/read/483958/6588289