Changeset d8a9155 in rtems for cpukit/include


Ignore:
Timestamp:
Apr 20, 2001, 9:11:25 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
6de4727f
Parents:
dd74e612
Message:

2001-04-20 Correo Fernando-ruiz <correo@…>

  • 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.

File:
1 edited

Legend:

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

    rdd74e612 rd8a9155  
    210210 */
    211211typedef struct {
     212 rtems_id                         task_id;     
    212213 rtems_filesystem_location_info_t current_directory;
    213214 rtems_filesystem_location_info_t root_directory;
     
    230231
    231232rtems_status_code rtems_libio_set_private_env(void);
     233rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
     234       
    232235
    233236
Note: See TracChangeset for help on using the changeset viewer.