Changeset 87fb080d in rtems for cpukit/include


Ignore:
Timestamp:
May 24, 2001, 10:04:03 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
6287b57
Parents:
b2712e3
Message:

2000-05-24 Fernando Ruiz Casas <fernando.ruiz@…>

  • include/rtems/libio_.h: Added login name, uid, gid, euid, and egid so they can be part of the private environment.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/libio_.h

    rb2712e3 r87fb080d  
    2323#include <rtems/assoc.h>                /* assoc.h not included by rtems.h */
    2424
     25#include <sys/types.h>                 
     26       
    2527#include <stdio.h>                      /* O_RDONLY, et.al. */
    2628#include <fcntl.h>                      /* O_RDONLY, et.al. */
    2729#include <assert.h>
    2830#include <stdarg.h>
     31#include <limits.h>
    2932#include <errno.h>
    3033
     
    216219 mode_t                           umask;
    217220 nlink_t                          link_counts;
     221 /* _POSIX_types */
     222 uid_t                            uid;
     223 gid_t                            gid;
     224 uid_t                            euid;
     225 gid_t                            egid;
     226 char      login_buffer[LOGIN_NAME_MAX];
     227
     228 pid_t                            pgrp; /* process group id */
    218229} rtems_user_env_t;
    219230
     
    225236#define rtems_filesystem_link_counts (rtems_current_user_env->link_counts)
    226237#define rtems_filesystem_umask       (rtems_current_user_env->umask)
     238
     239#define _POSIX_types_Uid             (rtems_current_user_env->uid)
     240#define _POSIX_types_Gid             (rtems_current_user_env->gid)
     241#define _POSIX_types_Euid            (rtems_current_user_env->euid)
     242#define _POSIX_types_Egid            (rtems_current_user_env->egid)
     243#define _POSIX_types_Getlogin_buffer (rtems_current_user_env->login_buffer)
     244
    227245
    228246/*
Note: See TracChangeset for help on using the changeset viewer.