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 98 char login_buffer[LOGIN_NAME_MAX];
126 #define rtems_current_user_env rtems_current_user_env_get() 128 #define rtems_filesystem_current (rtems_current_user_env->current_directory) 129 #define rtems_filesystem_root (rtems_current_user_env->root_directory) 130 #define rtems_filesystem_umask (rtems_current_user_env->umask) 132 #define _POSIX_types_Uid (rtems_current_user_env->uid) 133 #define _POSIX_types_Gid (rtems_current_user_env->gid) 134 #define _POSIX_types_Euid (rtems_current_user_env->euid) 135 #define _POSIX_types_Egid (rtems_current_user_env->egid) 136 #define _POSIX_types_Getlogin_buffer (rtems_current_user_env->login_buffer) uid_t uid
The real user ID.
Definition: userenv.h:78
rtems_filesystem_global_location_t * root_directory
The anchor directory for absolute paths.
Definition: userenv.h:68
Definition: mount_prot.h:53
gid_t gid
The real group ID.
Definition: userenv.h:83
User environment.
Definition: userenv.h:59
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:53
rtems_filesystem_global_location_t * current_directory
The anchor directory for relative paths.
Definition: userenv.h:63
uid_t euid
The effective user ID.
Definition: userenv.h:88
gid_t egid
The effective group ID.
Definition: userenv.h:93
mode_t umask
The file mode creation mask.
Definition: userenv.h:73
size_t ngroups
The count of supplementary group IDs.
Definition: userenv.h:108
rtems_user_env_t * rtems_current_user_env_get(void)
Fetch the pointer to the current user environment.
Definition: privateenv.c:32
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:102
pid_t pgrp
The process group ID.
Definition: userenv.h:103