39#ifndef _RTEMS_USERENV_H
40#define _RTEMS_USERENV_H
67 #ifdef _POSIX_LOGIN_NAME_MAX
68 #define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
71 #define LOGIN_NAME_MAX 9
147#define rtems_current_user_env rtems_current_user_env_get()
149#define rtems_filesystem_current (rtems_current_user_env->current_directory)
150#define rtems_filesystem_root (rtems_current_user_env->root_directory)
151#define rtems_filesystem_umask (rtems_current_user_env->umask)
153#define _POSIX_types_Uid (rtems_current_user_env->uid)
154#define _POSIX_types_Gid (rtems_current_user_env->gid)
155#define _POSIX_types_Euid (rtems_current_user_env->euid)
156#define _POSIX_types_Egid (rtems_current_user_env->egid)
157#define _POSIX_types_Getlogin_buffer (rtems_current_user_env->login_buffer)
rtems_status_code rtems_libio_set_private_env(void)
Creates a private environment.
Definition: privateenv.c:64
void rtems_current_user_env_getgroups(void)
Gets the supplementary group IDs using the current user ID and updates the table of supplementary gro...
Definition: uenvgetgroups.c:39
void rtems_libio_use_global_env(void)
Use the global environment.
Definition: privateenv.c:106
rtems_user_env_t * rtems_current_user_env_get(void)
Fetch the pointer to the current user environment.
Definition: __usrenv.c:271
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
This header file defines the RTEMS Classic API.
Global file system location.
Definition: fs.h:100
User environment.
Definition: userenv.h:80
rtems_filesystem_global_location_t * current_directory
The anchor directory for relative paths.
Definition: userenv.h:84
char login_buffer[LOGIN_NAME_MAX]
The login buffer.
Definition: userenv.h:119
size_t ngroups
The count of supplementary group IDs.
Definition: userenv.h:129
mode_t umask
The file mode creation mask.
Definition: userenv.h:94
uid_t euid
The effective user ID.
Definition: userenv.h:109
rtems_filesystem_global_location_t * root_directory
The anchor directory for absolute paths.
Definition: userenv.h:89
uid_t uid
The real user ID.
Definition: userenv.h:99
pid_t pgrp
The process group ID.
Definition: userenv.h:124
gid_t groups[NGROUPS]
The list of supplementary group IDs.
Definition: userenv.h:134
gid_t gid
The real group ID.
Definition: userenv.h:104
gid_t egid
The effective group ID.
Definition: userenv.h:114