From 2a929cc87152fc499715d43a808e7cb78c2e01cf Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 25 Jan 2001 15:59:58 +0000 Subject: 2001-01-25 Fernando Ruiz * 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. --- c/src/lib/libc/base_fs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'c/src/lib/libc/base_fs.c') 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 -- cgit v1.2.3