20 #ifndef _RTEMS_USERENV_H 21 #define _RTEMS_USERENV_H 28 #include <sys/param.h> 47 #ifndef LOGIN_NAME_MAX 48 #ifdef _POSIX_LOGIN_NAME_MAX 49 #define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX 52 #define LOGIN_NAME_MAX 9 128 #define rtems_current_user_env rtems_current_user_env_get() 130 #define rtems_filesystem_current (rtems_current_user_env->current_directory) 131 #define rtems_filesystem_root (rtems_current_user_env->root_directory) 132 #define rtems_filesystem_umask (rtems_current_user_env->umask) 134 #define _POSIX_types_Uid (rtems_current_user_env->uid) 135 #define _POSIX_types_Gid (rtems_current_user_env->gid) 136 #define _POSIX_types_Euid (rtems_current_user_env->euid) 137 #define _POSIX_types_Egid (rtems_current_user_env->egid) 138 #define _POSIX_types_Getlogin_buffer (rtems_current_user_env->login_buffer) uid_t uid
The real user ID.
Definition: userenv.h:80
rtems_filesystem_global_location_t * root_directory
The anchor directory for absolute paths.
Definition: userenv.h:70
char login_buffer[LOGIN_NAME_MAX]
The login buffer.
Definition: userenv.h:100
Definition: mount_prot.h:53
gid_t gid
The real group ID.
Definition: userenv.h:85
User environment.
Definition: userenv.h:61
rtems_status_code
Classic API Status.
Definition: status.h:43
rtems_status_code rtems_libio_set_private_env(void)
Creates a private environment.
Definition: privateenv.c:45
rtems_filesystem_global_location_t * current_directory
The anchor directory for relative paths.
Definition: userenv.h:65
uid_t euid
The effective user ID.
Definition: userenv.h:90
gid_t egid
The effective group ID.
Definition: userenv.h:95
mode_t umask
The file mode creation mask.
Definition: userenv.h:75
size_t ngroups
The count of supplementary group IDs.
Definition: userenv.h:110
rtems_user_env_t * rtems_current_user_env_get(void)
Fetch the pointer to the current user environment.
Definition: __usrenv.c:254
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:25
Global file system location.
Definition: fs.h:81
void rtems_libio_use_global_env(void)
Use the global environment.
Definition: privateenv.c:87
pid_t pgrp
The process group ID.
Definition: userenv.h:105