source: trunk/libs/newlib/src/newlib/libc/sys/linux/seteuid.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 215 bytes
Line 
1/* Copyright 2002, Red Hat Inc. */
2
3#include <errno.h>
4#include <unistd.h>
5
6int
7seteuid (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}
Note: See TracBrowser for help on using the repository browser.