Changeset cde999a in mainline for uspace/lib/c/generic/vfs/vfs.c
- Timestamp:
- 2018-01-04T20:22:51Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3d95c9d, 84a1a54
- Parents:
- 3c7702c0
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 19:18:29)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:22:51)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/vfs.c
r3c7702c0 rcde999a 236 236 * handle will be allocated from high indices 237 237 * 238 * @return New file handle on success or a negativeerror code238 * @return New file handle on success or an error code 239 239 */ 240 240 int vfs_clone(int file_from, int file_to, bool high, int *handle) … … 259 259 * @param size Size of @a buf 260 260 * 261 * @return EOK on success or a non- negativeerror code261 * @return EOK on success or a non-error code 262 262 */ 263 263 int vfs_cwd_get(char *buf, size_t size) … … 280 280 * @param path Path of the new working directory 281 281 * 282 * @return EOK on success or a negativeerror code282 * @return EOK on success or an error code 283 283 */ 284 284 int vfs_cwd_set(const char *path) … … 370 370 * @param info Place to store volume identification information 371 371 * 372 * @return EOK on success or a negativeerror code372 * @return EOK on success or an error code 373 373 */ 374 374 int vfs_fsprobe(const char *fs_name, service_id_t serv, … … 404 404 * fstypes->fstypes[0..]. To free the list use vfs_fstypes_free(). 405 405 * 406 * @return EOK on success or a negativeerror code406 * @return EOK on success or an error code 407 407 */ 408 408 int vfs_fstypes(vfs_fstypes_t *fstypes) … … 499 499 * @param[out] linkedfd If not NULL, will receive a file handle to the linked 500 500 * child 501 * @return EOK on success or a negativeerror code501 * @return EOK on success or an error code 502 502 */ 503 503 int vfs_link(int parent, const char *child, vfs_file_kind_t kind, int *linkedfd) … … 529 529 * @param[out] linkedfd If not NULL, will receive a file handle to the linked 530 530 * child 531 * @return EOK on success or a negativeerror code531 * @return EOK on success or an error code 532 532 */ 533 533 int vfs_link_path(const char *path, vfs_file_kind_t kind, int *linkedfd) … … 585 585 * @param[out] handle Pointer to variable where handle is to be written. 586 586 * 587 * @return EOK on success or a negativeerror code587 * @return EOK on success or an error code 588 588 */ 589 589 int vfs_lookup_open(const char *path, int flags, int mode, int *handle) … … 614 614 * @param[out] mountedfd File handle of the mounted root if not NULL 615 615 * 616 * @return EOK on success or a negativeerror code616 * @return EOK on success or an error code 617 617 */ 618 618 int vfs_mount(int mp, const char *fs_name, service_id_t serv, const char *opts, … … 658 658 * @param[in] instance Instance number of the file system server 659 659 * 660 * @return EOK on success or a negativeerror code660 * @return EOK on success or an error code 661 661 */ 662 662 int vfs_mount_path(const char *mp, const char *fs_name, const char *fqsn, … … 752 752 * @param mode Mode in which to open file in 753 753 * 754 * @return EOK on success or a negativeerror code754 * @return EOK on success or an error code 755 755 */ 756 756 int vfs_open(int file, int mode) … … 769 769 * @param exch Exchange to the acceptor 770 770 * 771 * @return EOK on success or a negativeerror code771 * @return EOK on success or an error code 772 772 */ 773 773 int vfs_pass_handle(async_exch_t *vfs_exch, int file, async_exch_t *exch) … … 781 781 * @param file File handle to put 782 782 * 783 * @return EOK on success or a negativeerror code783 * @return EOK on success or an error code 784 784 */ 785 785 int vfs_put(int file) … … 798 798 * @param[out] handle Received handle. 799 799 * 800 * @return EOK on success or a negativeerror code800 * @return EOK on success or an error code 801 801 */ 802 802 int vfs_receive_handle(bool high, int *handle) … … 877 877 * @param[out] nread Actual number of bytes read (0 or more) 878 878 * 879 * @return EOK on success or a negativeerror code879 * @return EOK on success or an error code 880 880 */ 881 881 int vfs_read_short(int file, aoff64_t pos, void *buf, size_t nbyte, … … 919 919 * @param new New path 920 920 * 921 * @return EOK on success or a negativeerror code921 * @return EOK on success or an error code 922 922 */ 923 923 int vfs_rename_path(const char *old, const char *new) … … 986 986 * @param length New length 987 987 * 988 * @return EOK on success or a negativeerror code988 * @return EOK on success or an error code 989 989 */ 990 990 int vfs_resize(int file, aoff64_t length) … … 1050 1050 * @param[out] stat Place to store file information 1051 1051 * 1052 * @return EOK on success or a negativeerror code1052 * @return EOK on success or an error code 1053 1053 */ 1054 1054 int vfs_stat(int file, struct stat *stat) … … 1084 1084 * @param[out] stat Place to store file information 1085 1085 * 1086 * @return EOK on success or a negativeerror code1086 * @return EOK on success or an error code 1087 1087 */ 1088 1088 int vfs_stat_path(const char *path, struct stat *stat) … … 1105 1105 * @param[out] st Buffer for storing information 1106 1106 * 1107 * @return EOK on success or a negativeerror code1107 * @return EOK on success or an error code 1108 1108 */ 1109 1109 int vfs_statfs(int file, struct statfs *st) … … 1130 1130 * @param[out] st Buffer for storing information 1131 1131 * 1132 * @return EOK on success or a negativeerror code1132 * @return EOK on success or an error code 1133 1133 */ 1134 1134 int vfs_statfs_path(const char *path, struct statfs *st) … … 1150 1150 * @param file File handle to synchronize 1151 1151 * 1152 * @return EOK on success or a negativeerror code1152 * @return EOK on success or an error code 1153 1153 */ 1154 1154 int vfs_sync(int file) … … 1172 1172 * @param expect File handle of the unlinked child 1173 1173 * 1174 * @return EOK on success or a negativeerror code1174 * @return EOK on success or an error code 1175 1175 */ 1176 1176 int vfs_unlink(int parent, const char *child, int expect) … … 1201 1201 * @param path Old path to be unlinked 1202 1202 * 1203 * @return EOK on success or a negativeerror code1203 * @return EOK on success or an error code 1204 1204 */ 1205 1205 int vfs_unlink_path(const char *path) … … 1230 1230 * @param mp File handle representing the mount-point 1231 1231 * 1232 * @return EOK on success or a negativeerror code1232 * @return EOK on success or an error code 1233 1233 */ 1234 1234 int vfs_unmount(int mp) … … 1244 1244 * @param mpp Mount-point path 1245 1245 * 1246 * @return EOK on success or a negativeerror code1246 * @return EOK on success or an error code 1247 1247 */ 1248 1248 int vfs_unmount_path(const char *mpp) … … 1341 1341 * @param[out] nread Actual number of bytes written (0 or more) 1342 1342 * 1343 * @return EOK on success or a negativeerror code1343 * @return EOK on success or an error code 1344 1344 */ 1345 1345 int vfs_write_short(int file, aoff64_t pos, const void *buf, size_t nbyte,
Note:
See TracChangeset
for help on using the changeset viewer.