summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-05-24 22:04:03 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-05-24 22:04:03 +0000
commit87fb080d750838e14cb0ce5fbc3c5462aee4dafa (patch)
tree4706d5cd4e310e0306e2e7e45e93b38480e95fec /cpukit
parentb2712e35b948d7ab37cf6ef46bcdfea678506444 (diff)
downloadrtems-87fb080d750838e14cb0ce5fbc3c5462aee4dafa.tar.bz2
2000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es>
* include/rtems/libio_.h: Added login name, uid, gid, euid, and egid so they can be part of the private environment.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/include/rtems/libio_.h18
-rw-r--r--cpukit/libcsupport/include/rtems/libio_.h18
2 files changed, 36 insertions, 0 deletions
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 <rtems/libio.h> /* include before standard IO */
#include <rtems/assoc.h> /* assoc.h not included by rtems.h */
+#include <sys/types.h>
+
#include <stdio.h> /* O_RDONLY, et.al. */
#include <fcntl.h> /* O_RDONLY, et.al. */
#include <assert.h>
#include <stdarg.h>
+#include <limits.h>
#include <errno.h>
#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.
*/
diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h
index 2496eefd70..027ce7d2c3 100644
--- a/cpukit/libcsupport/include/rtems/libio_.h
+++ b/cpukit/libcsupport/include/rtems/libio_.h
@@ -22,10 +22,13 @@ extern "C" {
#include <rtems/libio.h> /* include before standard IO */
#include <rtems/assoc.h> /* assoc.h not included by rtems.h */
+#include <sys/types.h>
+
#include <stdio.h> /* O_RDONLY, et.al. */
#include <fcntl.h> /* O_RDONLY, et.al. */
#include <assert.h>
#include <stdarg.h>
+#include <limits.h>
#include <errno.h>
#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.
*/