OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [seteuid.c] - Rev 1775

Go to most recent revision | Compare with Previous | Blame | View Log

#include <unistd.h>
#include <stdio.h>
#include <errno.h>
 
int seteuid(uid_t uid)
{
  switch (sizeof (uid_t))
  {
  case 2:
    if (uid == 65535)
    {
      errno = EINVAL;
      return -1;
    }
    break;
 
  default:
    fprintf (stderr, "Uknown uid_t size and sign\n");
  }
 
  return setreuid(-1, uid);
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.