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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [seteuid.c] - Blame information for rev 1767

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

Line No. Rev Author Line
1 199 simons
#include <unistd.h>
2
#include <stdio.h>
3
#include <errno.h>
4
 
5
int seteuid(uid_t uid)
6
{
7
  switch (sizeof (uid_t))
8
  {
9
  case 2:
10
    if (uid == 65535)
11
    {
12
      errno = EINVAL;
13
      return -1;
14
    }
15
    break;
16
 
17
  default:
18
    fprintf (stderr, "Uknown uid_t size and sign\n");
19
  }
20
 
21
  return setreuid(-1, uid);
22
}

powered by: WebSVN 2.1.0

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