466
|
1 <refentry id="modload">
|
|
2 <refnamediv>
|
468
|
3 <refname>Modload</refname>
|
|
4 <refpurpose>return a pointer to a module structure</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
468
|
9 <funcsynopsisinfo>
|
|
10 #include <module.h>
|
|
11 </funcsynopsisinfo>
|
570
|
12
|
466
|
13 <funcprototype>
|
570
|
14 <funcdef>mod_exec *<function>modlink</function></funcdef>
|
|
15 <paramdef>char *<parameter>modname</parameter></paramdef>
|
|
16 <paramdef>int <parameter>type</parameter></paramdef>
|
|
17 <paramdef>int <parameter>language</parameter></paramdef>
|
|
18 </funcprototype>
|
|
19
|
|
20 <funcprototype>
|
|
21 <funcdef>mod_exec *<function>modload</function></funcdef>
|
|
22 <paramdef>char *<parameter>modname</parameter></paramdef>
|
|
23 <paramdef>int <parameter>type</parameter></paramdef>
|
|
24 <paramdef>int <parameter>language</parameter></paramdef>
|
466
|
25 </funcprototype>
|
|
26 </funcsynopsis>
|
|
27
|
|
28 </refsynopsisdiv>
|
|
29
|
542
|
30 <refsect1><title>Assembler Equivalent</title>
|
|
31 <para>
|
|
32 os9 F$LINK
|
|
33 </para>
|
|
34 <para>
|
|
35 os9 F$LOAD
|
|
36 </para>
|
|
37 </refsect1>
|
|
38
|
466
|
39 <refsect1><title>Description</title>
|
|
40 <para>
|
602
|
41 Each of these calls return a pointer to an OS-9 memory module.
|
|
42 </para>
|
|
43 <para>
|
|
44 Modlink will search the module directory for a module with the
|
|
45 same name as "modname" and, if found, increment its link count.
|
|
46 </para>
|
|
47 <para>
|
|
48 Modload will open the file which has the path list specified by
|
|
49 "filename" and loads modules from the file adding them to the
|
|
50 module directory. The returned value is a pointer to the first
|
|
51 module loaded.
|
|
52 </para>
|
|
53 <para>
|
|
54 Above, each is shown as returning a pointer to an executable
|
|
55 module, but it will return a pointer to whatever type of module
|
|
56 is found.
|
466
|
57 </para>
|
|
58 </refsect1>
|
542
|
59
|
552
|
60 <refsect1><title>Diagnostics</title>
|
|
61 <para>
|
|
62 -1 is returned on error.
|
|
63 </para>
|
|
64 </refsect1>
|
|
65
|
542
|
66 <refsect1><title>See Also</title>
|
|
67 <para>
|
|
68 <link linkend="munlink">munlink()</link>
|
|
69 </para>
|
|
70 </refsect1>
|
|
71
|
466
|
72 </refentry>
|