Changeset 612 for trunk/kernel/syscalls/sys_readdir.c
- Timestamp:
- Jan 11, 2019, 6:35:07 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_readdir.c
r611 r612 30 30 #include <vfs.h> 31 31 #include <process.h> 32 #include < remote_dir.h>32 #include <user_dir.h> 33 33 #include <syscalls.h> 34 34 #include <shared_syscalls.h> … … 40 40 error_t error; 41 41 vseg_t * vseg; // for user space checking of buffer 42 xptr_t dir_xp; // extended pointer on remote_dir_tstructure43 remote_dir_t * dir_ptr; // local pointer on remote_dir_tstructure44 cxy_t dir_cxy; // remote_dir_tstucture cluster identifier42 xptr_t dir_xp; // extended pointer on user_dir structure 43 user_dir_t * dir_ptr; // local pointer on user_dir structure 44 cxy_t dir_cxy; // user_dir stucture cluster identifier 45 45 struct dirent * direntp; // dirent pointer in user space 46 46 uint32_t entries; // total number of dirent entries … … 75 75 } 76 76 77 // get pointers on remote_dir_tstructure from dirp78 dir_xp = remote_dir_from_ident( (intptr_t)dirp );77 // get pointers on user_dir structure from dirp 78 dir_xp = user_dir_from_ident( (intptr_t)dirp ); 79 79 dir_ptr = GET_PTR( dir_xp ); 80 80 dir_cxy = GET_CXY( dir_xp ); … … 91 91 } 92 92 93 // get "current" and "entries_nr" values from remote_dir_t structure93 // get "current" and "entries_nr" values from user_dir_t structure 94 94 current = hal_remote_l32( XPTR( dir_cxy , &dir_ptr->current ) ); 95 95 entries = hal_remote_l32( XPTR( dir_cxy , &dir_ptr->entries ) ); … … 114 114 hal_copy_to_uspace( buffer, &direntp , sizeof(void *) ); 115 115 116 // update current index in "remote_dir_t"structure116 // update current index in user_dir structure 117 117 hal_remote_atomic_add( XPTR( dir_cxy , &dir_ptr->current ) , 1 ); 118 118
Note: See TracChangeset
for help on using the changeset viewer.