Back to index

glibc  2.9
Functions
seteuid.c File Reference
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int seteuid (uid_t uid)

Function Documentation

int seteuid ( uid_t  uid)

Definition at line 24 of file seteuid.c.

{
  if (uid == (uid_t) ~0)
    {
      __set_errno (EINVAL);
      return -1;
    }

  return __setreuid (-1, uid);
}