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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [seteuid.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/* Copyright 2002, Red Hat Inc. */
2
 
3
#include <errno.h>
4
#include <unistd.h>
5
 
6
int
7
seteuid (uid_t uid)
8
{
9
        int result;
10
 
11
        if (uid == (uid_t) ~0)
12
        {
13
                errno = (EINVAL);
14
                return -1;
15
        }
16
 
17
        return setresuid (-1, uid, -1);
18
}

powered by: WebSVN 2.1.0

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