Go to the first, previous, next, last section, table of contents.


setuid

Syntax

#include <unistd.h>

int setuid(uid_t uid);

Description

This function is simulated, since MS-DOS does not support user IDs.

Return Value

If uid is equal to that returned by see section getuid, returns zero. Otherwise, returns -1 and sets errno to EPERM.

Portability

not ANSI, POSIX


Go to the first, previous, next, last section, table of contents.