Changeset 566 for trunk/kernel/syscalls/sys_mkfifo.c
- Timestamp:
- Oct 4, 2018, 11:50:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_mkfifo.c
r457 r566 31 31 //////////////////////////////////// 32 32 int sys_mkfifo ( char * pathname, 33 uint32_t mode )33 uint32_t mode __attribute__((unused)) ) 34 34 { 35 35 error_t error; … … 59 59 hal_strcpy_from_uspace( kbuf , pathname , CONFIG_VFS_MAX_PATH_LENGTH ); 60 60 61 // get cluster and local pointer on reference process 62 xptr_t ref_xp = process->ref_xp; 63 process_t * ref_ptr = (process_t *)GET_PTR( ref_xp ); 64 cxy_t ref_cxy = GET_CXY( ref_xp ); 65 66 // get extended pointer on cwd inode 67 xptr_t cwd_xp = hal_remote_lwd( XPTR( ref_cxy , &ref_ptr->vfs_cwd_xp ) ); 68 69 // get the cwd lock in read mode from reference process 70 remote_rwlock_rd_lock( XPTR( ref_cxy , &ref_ptr->cwd_lock ) ); 71 72 // call the relevant VFS function 73 error = vfs_mkfifo( cwd_xp, 74 kbuf, 75 mode ); 76 77 // release the cwd lock 78 remote_rwlock_rd_unlock( XPTR( ref_cxy , &ref_ptr->cwd_lock ) ); 61 printk("\n[ERROR] in %s : not implemented yet\n", __FUNCTION__ ); 62 return -1; 79 63 80 64 if( error )
Note: See TracChangeset
for help on using the changeset viewer.