Changeset fe91f66 in mainline for uspace/srv/vfs/vfs_ops.c
- Timestamp:
- 2017-03-26T20:57:06Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b5b5d84
- Parents:
- fcab7ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ops.c
rfcab7ef rfe91f66 130 130 } 131 131 132 int vfs_op_fstat(int fd)133 {134 vfs_file_t *file = vfs_file_get(fd);135 if (!file)136 return EBADF;137 138 vfs_node_t *node = file->node;139 140 async_exch_t *exch = vfs_exchange_grab(node->fs_handle);141 int rc = async_data_read_forward_fast(exch, VFS_OUT_STAT,142 node->service_id, node->index, true, 0, NULL);143 vfs_exchange_release(exch);144 145 vfs_file_put(file);146 return rc;147 }148 149 132 static int vfs_connect_internal(service_id_t service_id, unsigned flags, 150 133 unsigned instance, const char *options, const char *fsname, … … 291 274 } 292 275 293 int vfs_op_open 2(int fd, int flags)276 int vfs_op_open(int fd, int flags) 294 277 { 295 278 if (flags == 0) … … 602 585 } 603 586 587 int vfs_op_stat(int fd) 588 { 589 vfs_file_t *file = vfs_file_get(fd); 590 if (!file) 591 return EBADF; 592 593 vfs_node_t *node = file->node; 594 595 async_exch_t *exch = vfs_exchange_grab(node->fs_handle); 596 int rc = async_data_read_forward_fast(exch, VFS_OUT_STAT, 597 node->service_id, node->index, true, 0, NULL); 598 vfs_exchange_release(exch); 599 600 vfs_file_put(file); 601 return rc; 602 } 603 604 604 int vfs_op_statfs(int fd) 605 605 { … … 672 672 } 673 673 674 int vfs_op_unlink 2(int parentfd, int expectfd, int wflag, char *path)674 int vfs_op_unlink(int parentfd, int expectfd, int wflag, char *path) 675 675 { 676 676 int rc = EOK;
Note:
See TracChangeset
for help on using the changeset viewer.