From 87fb080d750838e14cb0ce5fbc3c5462aee4dafa Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 24 May 2001 22:04:03 +0000 Subject: 2000-05-24 Fernando Ruiz Casas * include/rtems/libio_.h: Added login name, uid, gid, euid, and egid so they can be part of the private environment. --- cpukit/include/rtems/libio_.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'cpukit/include/rtems/libio_.h') diff --git a/cpukit/include/rtems/libio_.h b/cpukit/include/rtems/libio_.h index 2496eefd70..027ce7d2c3 100644 --- a/cpukit/include/rtems/libio_.h +++ b/cpukit/include/rtems/libio_.h @@ -22,10 +22,13 @@ extern "C" { #include /* include before standard IO */ #include /* assoc.h not included by rtems.h */ +#include + #include /* O_RDONLY, et.al. */ #include /* O_RDONLY, et.al. */ #include #include +#include #include #if ! defined(O_NDELAY) @@ -215,6 +218,14 @@ typedef struct { /* Default mode for all files. */ mode_t umask; nlink_t link_counts; + /* _POSIX_types */ + uid_t uid; + gid_t gid; + uid_t euid; + gid_t egid; + char login_buffer[LOGIN_NAME_MAX]; + + pid_t pgrp; /* process group id */ } rtems_user_env_t; extern rtems_user_env_t * rtems_current_user_env; @@ -225,6 +236,13 @@ extern rtems_user_env_t rtems_global_user_env; #define rtems_filesystem_link_counts (rtems_current_user_env->link_counts) #define rtems_filesystem_umask (rtems_current_user_env->umask) +#define _POSIX_types_Uid (rtems_current_user_env->uid) +#define _POSIX_types_Gid (rtems_current_user_env->gid) +#define _POSIX_types_Euid (rtems_current_user_env->euid) +#define _POSIX_types_Egid (rtems_current_user_env->egid) +#define _POSIX_types_Getlogin_buffer (rtems_current_user_env->login_buffer) + + /* * Instantiate a private copy of the per user information for the calling task. */ -- cgit v1.2.3