annotate docs/ccguide/chain.refentry @ 2979:978396f33bb2

Move bootman to 3rdparty/wip and add a ReadMe file
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 05 Apr 2014 10:19:12 +0200
parents c0da1728ed5b
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="chain">
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>Chain</refname>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
4 <refpurpose>load and execute a new program</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>chain</function></funcdef>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 540
diff changeset
11 <paramdef>char *<parameter>modname</parameter></paramdef>
fcb97f0ba24b All diagnostics added.
roug
parents: 540
diff changeset
12 <paramdef>int <parameter>paramsize</parameter></paramdef>
fcb97f0ba24b All diagnostics added.
roug
parents: 540
diff changeset
13 <paramdef>char *<parameter>paramptr</parameter></paramdef>
fcb97f0ba24b All diagnostics added.
roug
parents: 540
diff changeset
14 <paramdef>int <parameter>type</parameter></paramdef>
fcb97f0ba24b All diagnostics added.
roug
parents: 540
diff changeset
15 <paramdef>int <parameter>lang</parameter></paramdef>
fcb97f0ba24b All diagnostics added.
roug
parents: 540
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
540
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
22 <refsect1><title>Assembler Equivalent</title>
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
23 <para>
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
24 os9 F$CHAIN
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
25 </para>
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
26 </refsect1>
395a58bae72e 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>
594
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
30 The action of F$CHAIN is described fully in the OS-9
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
31 documentation. Chain implements the service request as
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
32 described with one important exception: chain will NEVER return
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
33 to the caller. If there is an error, the process will abort
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
34 and return to its parent process. It might be wise, therefore,
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
35 for the programs to check the existence and access permissions
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
36 of the module before calling chain. Permissions may be checked
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
37 by using "modlink()" or "modload()" followed by an "munlink()".
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
38 </para>
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
39 <para>
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
40 "Modname" should point to the name of the desired module.
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
41 "Paramsize is the length of the parameter string (which should
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
42 normally be terminated with a "\n"), and "paramptr" points to
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
43 the parameter string. "Type" is the module type as found in
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
44 the module header (normally 1: program), and "lang" should
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
45 match the language nibble in the module header (C programs
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
46 have 1 for 6809 machine code here). "Datasize" may be zero, or
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
47 it may contain the number of 256 byte pages to give to the new
c0da1728ed5b All refentries finished.
roug
parents: 552
diff changeset
48 process as initial allocation of data memory.
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
49 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
50 </refsect1>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
51 </refentry>