view docs/ccguide/getpid.refentry @ 603:e9578f62b346

All refentries finished.
author roug
date Fri, 15 Nov 2002 21:49:51 +0000
parents 2e76fecc5ca0
children 94ff9d15614f
line wrap: on
line source

<refentry id="getpid">
<refnamediv>
<refname>Getpid</refname>
<refpurpose>get the task id</refpurpose>
</refnamediv>

<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
  <funcdef><function>getpid</function></funcdef>
  <void>
</funcprototype>
</funcsynopsis>

</refsynopsisdiv>

<refsect1><title>Assembler Equivalent</title>
<para>
os9 F$ID
</para>
</refsect1>

<refsect1><title>Description</title>
<para>
A number unique to the current running task is often useful in
creating names for temporary files. This call returns the
task's system id (as returned to its parent by "os9fork").
</para>
</refsect1>
<refsect1><title>Description</title>
<para>
<link linkend="os9fork">os9fork()</link>,
Standard Library function
<link linkend="mktemp">mktemp</link>.
</para>
</refsect1>
</refentry>