466
|
1 <refentry id="getpid">
|
|
2 <refnamediv>
|
468
|
3 <refname>Getpid</refname>
|
|
4 <refpurpose>get the task id</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
|
9 <funcprototype>
|
|
10 <funcdef><function>getpid</function></funcdef>
|
636
|
11 <void/>
|
466
|
12 </funcprototype>
|
|
13 </funcsynopsis>
|
|
14
|
|
15 </refsynopsisdiv>
|
|
16
|
542
|
17 <refsect1><title>Assembler Equivalent</title>
|
|
18 <para>
|
|
19 os9 F$ID
|
|
20 </para>
|
|
21 </refsect1>
|
|
22
|
466
|
23 <refsect1><title>Description</title>
|
|
24 <para>
|
597
|
25 A number unique to the current running task is often useful in
|
|
26 creating names for temporary files. This call returns the
|
|
27 task's system id (as returned to its parent by "os9fork").
|
466
|
28 </para>
|
|
29 </refsect1>
|
597
|
30 <refsect1><title>Description</title>
|
542
|
31 <para>
|
|
32 <link linkend="os9fork">os9fork()</link>,
|
|
33 Standard Library function
|
597
|
34 <link linkend="mktemp">mktemp</link>.
|
542
|
35 </para>
|
|
36 </refsect1>
|
466
|
37 </refentry>
|