www.delorie.com/djgpp/doc/libc/libc_715.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004