view docs/ccguide/getpid.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 94ff9d15614f
children
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>