view docs/ccguide/defdrive.refentry @ 2798:b70d93f8d7ce lwtools-port

Updated coco1/modules/makefile and coco3/modules/makefile to help resolve issues with i(x) and s(x) descriptors. Updated level1/coco1/modules/makefile & level2/coco3/modules/makefile so that correct values would be sent to assembler when building superdesc.asm for s(x).dd and i(x).dd descriptors.
author drencor-xeen
date Mon, 28 Jan 2013 16:13:05 -0600
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>