⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userenv.h

📁 开放源码的嵌入式开发环境
💻 H
字号:
/* *  Libio Internal Information * *  COPYRIGHT (c) 1989-1999. *  On-Line Applications Research Corporation (OAR). * *  The license and distribution terms for this file may be *  found in the file LICENSE in this distribution or at *  http://www.rtems.com/license/LICENSE. * *  $Id: userenv.h,v 1.5 2005/01/28 05:14:20 ralf Exp $ */#ifndef _RTEMS_USERENV_H#define _RTEMS_USERENV_H#include <rtems.h>#include <rtems/fs.h>#ifdef __cplusplusextern "C" {#endif/* *  External structures *//* * According to IEEE Std 1003.1-2001,  * limits.h is supposed to provide _POSIX_LOGIN_NAME_MAX * FIXME: We should not rely on this. */#include <limits.h>#ifndef LOGIN_NAME_MAX#ifdef _POSIX_LOGIN_NAME_MAX#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX#else/* Fallback */#define LOGIN_NAME_MAX 9#endif#endiftypedef struct { rtems_id                         task_id;	 rtems_filesystem_location_info_t current_directory; rtems_filesystem_location_info_t root_directory; /* 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; extern rtems_user_env_t   rtems_global_user_env; #define rtems_filesystem_current     (rtems_current_user_env->current_directory)#define rtems_filesystem_root        (rtems_current_user_env->root_directory)#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. */rtems_status_code rtems_libio_set_private_env(void);rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;	#ifdef __cplusplus}#endif#endif/* end of include file */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -