annotate docs/ccguide/os9fork.refentry @ 3295:6b7a7b233925 default tip

makefile: Allow PORTS with level1/2 mix https://sourceforge.net/p/nitros9/feature-requests/10/
author Tormod Volden <debian.tormod@gmail.com>
date Tue, 19 Apr 2022 18:12:17 +0200
parents 42b2c775f05f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
1 <refentry id="os9fork">
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
2 <refnamediv>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
3 <refname>Os9fork</refname>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
4 <refpurpose>create a process</refpurpose>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
5 </refnamediv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
6
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
7 <refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
8 <funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
9 <funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
10 <funcdef><function>os9fork</function></funcdef>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
11 <paramdef>char *<parameter>modname</parameter></paramdef>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
12 <paramdef>int <parameter>paramsize</parameter></paramdef>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
13 <paramdef>char *<parameter>paramptr</parameter></paramdef>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
14 <paramdef>int <parameter>type</parameter></paramdef>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
15 <paramdef>int <parameter>lang</parameter></paramdef>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
16 <paramdef>int <parameter>datasize</parameter></paramdef>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
17 </funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
18 </funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
19
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
20 </refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
21
542
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
22 <refsect1><title>Assembler Equivalent</title>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
23 <para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
24 os9 F$FORK
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
25 </para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
26 </refsect1>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
27
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
28 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
29 <para>
602
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
30 The action of F$FORK is desribed fully in the OS-9 System
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
31 Programmer's Manual. Os9fork will create a process that will
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
32 run concurrently with the calling process. When the forked
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
33 process terminates, it will return to the calling process.
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
34 </para>
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
35 <para>
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
36 "Modname" should point to the name of the desired module.
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
37 "Paramsize" is the length of the parameter string which should
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
38 normally be terminated with a '\n', and "paramptr" points to
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
39 the parameter string. "Type" is the module type as found in
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
40 the header(normally 1: program), and "lang" should match the
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
41 language nibble in the module header (C programs have 1 for
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
42 6809 machine code here). "Datasize" may be zero, or it may
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
43 contain the number of 256 byte pages to give to the new process
42b2c775f05f All refentries finished.
roug
parents: 552
diff changeset
44 as initial allocation of memory.
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
45 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
46 </refsect1>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
47 <refsect1><title>Diagnostics</title>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
48 <para>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
49 -1 will be returned on error, or the ID number of the child
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
50 process will be returned on success.
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
51 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
52 </refsect1>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
53
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
54 </refentry>