Changeset 566 for trunk/kernel/syscalls/sys_unlink.c
- Timestamp:
- Oct 4, 2018, 11:50:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_unlink.c
r506 r566 31 31 32 32 ////////////////////////////////// 33 int sys_unlink ( c onst char * pathname )33 int sys_unlink ( char * pathname ) 34 34 { 35 35 error_t error; … … 55 55 cxy_t ref_cxy = GET_CXY( ref_xp ); 56 56 57 // get the cwd lock in readmode from reference process58 remote_rwlock_ rd_lock( XPTR( ref_cxy , &ref_ptr->cwd_lock ) );57 // get the cwd lock in write mode from reference process 58 remote_rwlock_wr_acquire( XPTR( ref_cxy , &ref_ptr->cwd_lock ) ); 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 63 // call relevant VFS function … … 65 65 66 66 // release the cwd lock in reference process 67 remote_rwlock_ rd_unlock( XPTR( ref_cxy , &ref_ptr->cwd_lock ) );67 remote_rwlock_wr_release( XPTR( ref_cxy , &ref_ptr->cwd_lock ) ); 68 68 69 69 if( error )
Note: See TracChangeset
for help on using the changeset viewer.