view docs/ccguide/defdrive.refentry @ 3285:345ff5806dd7

Correct coco.d filename in shipped Defsfile files It seems that 8 years ago in commit 2624:b8c7b7fbf3c9 the coco defs were put into a new "coco.d" (from "systype"), and the various level*/<port>/defsfile were updated. However, the level*/<port>/defs/Defsfile (that are copied to the disk images under DEFS) were apparently wrongly updated.
author hpmachining <aur@hpminc.com>
date Thu, 18 Jun 2020 20:29:32 +0200
parents 1e1552ce8388
children
line wrap: on
line source

<refentry id="defdrive">
<refnamediv>
<refname>Defdrive</refname>
<refpurpose>get default system drive</refpurpose>
</refnamediv>

<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
  <funcdef>char *<function>defdrive</function></funcdef>
  <void/>
</funcprototype>
</funcsynopsis>

</refsynopsisdiv>

<refsect1><title>Description</title>
<para>
A call to defdrive returns a pointer to a string containing the
name of the default system drive. The method used is to
consult the "Init" module for the default directory name. The
name is copied to a static data area and a pointer to it is
returned.
</para>
</refsect1>

<refsect1><title>Diagnostics</title>
<para>
-1 is returned if the "Init" module cannot be linked to.
</para>
</refsect1>

</refentry>