466
|
1 <refentry id="setuid">
|
|
2 <refnamediv>
|
468
|
3 <refname>Setuid</refname>
|
|
4 <refpurpose>set user id</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
|
9 <funcprototype>
|
|
10 <funcdef><function>setuid</function></funcdef>
|
577
|
11 <paramdef>int <parameter>uid</parameter></paramdef>
|
466
|
12 </funcprototype>
|
|
13 </funcsynopsis>
|
|
14
|
|
15 </refsynopsisdiv>
|
|
16
|
544
|
17 <refsect1><title>Assembler Equivalent</title>
|
|
18 <para>
|
|
19 os9 F$SUSER
|
|
20 </para>
|
|
21 </refsect1>
|
|
22
|
466
|
23 <refsect1><title>Description</title>
|
|
24 <para>
|
577
|
25 This call may be used to set the user id for the current task.
|
|
26 Setuid only works if the caller is the super user (user id 0).
|
466
|
27 </para>
|
|
28 </refsect1>
|
544
|
29
|
552
|
30 <refsect1><title>Diagnostics</title>
|
|
31 <para>
|
577
|
32 Zero is returned from a successful call, and -1 is returned on
|
552
|
33 error.
|
|
34 </para>
|
|
35 </refsect1>
|
|
36
|
544
|
37 <refsect1><title>See Also</title>
|
|
38 <para>
|
|
39 <link linkend="getuid">getuid()</link>
|
|
40 </para>
|
|
41 </refsect1>
|
|
42
|
466
|
43 </refentry>
|