Changeset 566 for trunk/kernel/syscalls/sys_rmdir.c
- Timestamp:
- Oct 4, 2018, 11:50:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_rmdir.c
r506 r566 34 34 35 35 //////////////////////////////// 36 int sys_rmdir( c onst char * pathname )36 int sys_rmdir( char * pathname ) 37 37 { 38 38 error_t error; … … 59 59 60 60 // get extended pointer on cwd inode 61 xptr_t cwd_xp = hal_remote_l wd( XPTR( ref_cxy , &ref_ptr->vfs_cwd_xp ) );61 xptr_t cwd_xp = hal_remote_l64( XPTR( ref_cxy , &ref_ptr->vfs_cwd_xp ) ); 62 62 63 // get the cwd lock in readmode from reference process64 remote_rwlock_ rd_lock( XPTR( ref_cxy , &ref_ptr->cwd_lock ) );63 // get the cwd lock in write mode from reference process 64 remote_rwlock_wr_acquire( XPTR( ref_cxy , &ref_ptr->cwd_lock ) ); 65 65 66 66 // call the relevant VFS function … … 69 69 70 70 // release the cwd lock 71 remote_rwlock_ rd_unlock( XPTR( ref_cxy , &ref_ptr->cwd_lock ) );71 remote_rwlock_wr_release( XPTR( ref_cxy , &ref_ptr->cwd_lock ) ); 72 72 73 73 if( error )
Note: See TracChangeset
for help on using the changeset viewer.