source: rtems/cpukit/libcsupport/src/geteuid.c @ e02d5dd9

4.115
Last change on this file since e02d5dd9 was a2e3f33, checked in by Sebastian Huber <sebastian.huber@…>, on 07/24/13 at 11:50:54

score: Create object implementation header

Move implementation specific parts of object.h and object.inl into new
header file objectimpl.h. The object.h contains now only the
application visible API.

  • Property mode set to 100644
File size: 500 bytes
Line 
1/**
2 *  @file
3 *
4 *  @brief Get Real User, Effective User, Ral Group, and Effective Group IDs
5 *  @ingroup libcsupport
6 */
7
8#if HAVE_CONFIG_H
9#include "config.h"
10#endif
11
12#include <unistd.h>
13
14#include <rtems/system.h>
15#include <rtems/seterr.h>
16
17#include <rtems/userenv.h>
18
19/*
20 * MACRO in userenv.h
21uid_t _POSIX_types_Euid = 0;
22*/
23
24/**
25 *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
26 *        P1003.1b-1993, p. 84
27 */
28uid_t geteuid( void )
29{
30  return _POSIX_types_Euid;
31}
Note: See TracBrowser for help on using the repository browser.