summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/base_fs.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-25 15:59:58 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-25 15:59:58 +0000
commit2a929cc87152fc499715d43a808e7cb78c2e01cf (patch)
treecfde4180861d5364a822da07e6bbd6a8d8ae5be0 /c/src/lib/libc/base_fs.c
parent2001-01-25 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-2a929cc87152fc499715d43a808e7cb78c2e01cf.tar.bz2
2001-01-25 Fernando Ruiz <fernando.ruiz@ctv.es>
* Alternate email is correo@fernando-ruiz.com * libc/privateenv.c: New file. * include/rtems/libio_.h, libc/Makefile.am, libc/base_fs.c, libc/unmount.c: Moved default umask, current working directory, root, and links followed count into a structure "user environment" that can then be treated as a unit. This enable giving unique copies of these to individual threads or collection of threads.
Diffstat (limited to 'c/src/lib/libc/base_fs.c')
-rw-r--r--c/src/lib/libc/base_fs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/c/src/lib/libc/base_fs.c b/c/src/lib/libc/base_fs.c
index 93c5a60d85..4132d52b6d 100644
--- a/c/src/lib/libc/base_fs.c
+++ b/c/src/lib/libc/base_fs.c
@@ -23,15 +23,13 @@
* Global information for the base file system.
*/
-rtems_filesystem_location_info_t rtems_filesystem_current;
-rtems_filesystem_location_info_t rtems_filesystem_root;
-nlink_t rtems_filesystem_link_counts;
+rtems_user_env_t rtems_global_user_env;
+rtems_user_env_t * rtems_current_user_env = &rtems_global_user_env;
/*
* Default mode for created files.
*/
-mode_t rtems_filesystem_umask;
/*
* rtems_filesystem_initialize