summaryrefslogtreecommitdiffstats
path: root/c/src/lib/include/rtems/libio_.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-04-20 21:11:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-04-20 21:11:25 +0000
commitd8a91555127ade80dfe71e2d9c823c7350eea05f (patch)
tree3ece886f3f0893e8354619d1db10ccc9cabd2f97 /c/src/lib/include/rtems/libio_.h
parent2001-04-20 Correo Fernando-ruiz <correo@fernando-ruiz.com> (diff)
downloadrtems-d8a91555127ade80dfe71e2d9c823c7350eea05f.tar.bz2
2001-04-20 Correo Fernando-ruiz <correo@fernando-ruiz.com>
* include/rtems/libio_.h, libc/chroot.c, libc/privateenv.c: Private environment and chroot() enhancements and fixes. Comments: + privateenv has been modified to let at chroot() to be more POSIX like Sergei Organov recommended. + A task owner lets that rtems_set_private_env() will be called twice or more times. + chroot() can be called without a previous rtems_set_private_env(); (transpanrently) + The second call of rtems_set_private_env() makes a internal chroot("/") into global imfs_root. + chroot() runs like chdir() without a previous chdir("/") with the global root. + The current directory can be in a wrong place like Linux and many other Unices.
Diffstat (limited to 'c/src/lib/include/rtems/libio_.h')
-rw-r--r--c/src/lib/include/rtems/libio_.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/lib/include/rtems/libio_.h b/c/src/lib/include/rtems/libio_.h
index cda8faacf5..2496eefd70 100644
--- a/c/src/lib/include/rtems/libio_.h
+++ b/c/src/lib/include/rtems/libio_.h
@@ -209,6 +209,7 @@ extern rtems_libio_t *rtems_libio_iop_freelist;
* External structures
*/
typedef struct {
+ rtems_id task_id;
rtems_filesystem_location_info_t current_directory;
rtems_filesystem_location_info_t root_directory;
/* Default mode for all files. */
@@ -229,6 +230,8 @@ extern rtems_user_env_t rtems_global_user_env;
*/
rtems_status_code rtems_libio_set_private_env(void);
+rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
+
/*