Changeset cde999a in mainline for uspace/lib/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)
- Location:
- uspace/lib/c/generic
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
r3c7702c0 rcde999a 844 844 * @param port_id ID of the newly created port. 845 845 * 846 * @return Zero on success or a negativeerror code.846 * @return Zero on success or an error code. 847 847 * 848 848 */ … … 1053 1053 * @param[out] handle IRQ capability handle on success. 1054 1054 * 1055 * @return Negativeerror code.1055 * @return An error code. 1056 1056 * 1057 1057 */ … … 1089 1089 * @param cap IRQ capability handle. 1090 1090 * 1091 * @return Zero on success or a negativeerror code.1091 * @return Zero on success or an error code. 1092 1092 * 1093 1093 */ … … 1106 1106 * @param data Notification handler client data. 1107 1107 * 1108 * @return Zero on success or a negativeerror code.1108 * @return Zero on success or an error code. 1109 1109 * 1110 1110 */ … … 1139 1139 * @param data Notification handler client data. 1140 1140 * 1141 * @return Zero on success or a negativeerror code.1141 * @return Zero on success or an error code. 1142 1142 * 1143 1143 */ … … 1915 1915 * @param r5 If non-NULL, storage for the 5th reply argument. 1916 1916 * 1917 * @return Return code of the reply or a negativeerror code.1917 * @return Return code of the reply or an error code. 1918 1918 * 1919 1919 */ … … 1967 1967 * @param r5 If non-NULL, storage for the 5th reply argument. 1968 1968 * 1969 * @return Return code of the reply or a negativeerror code.1969 * @return Return code of the reply or an error code. 1970 1970 * 1971 1971 */ … … 2108 2108 * @param arg3 User defined argument. 2109 2109 * 2110 * @return Zero on success or a negativeerror code.2110 * @return Zero on success or an error code. 2111 2111 * 2112 2112 */ … … 2433 2433 * @param sess Session to hung up. 2434 2434 * 2435 * @return Zero on success or a negativeerror code.2435 * @return Zero on success or an error code. 2436 2436 * 2437 2437 */ … … 2613 2613 * base address. Cannot be NULL. 2614 2614 * 2615 * @return Zero on success or a negativeerror code from errno.h.2615 * @return Zero on success or an error code from errno.h. 2616 2616 * 2617 2617 */ … … 2688 2688 * @param flags Flags to be used for sharing. Bits can be only cleared. 2689 2689 * 2690 * @return Zero on success or a negativeerror code from errno.h.2690 * @return Zero on success or an error code from errno.h. 2691 2691 * 2692 2692 */ … … 2774 2774 * @param size Size of the destination buffer. 2775 2775 * 2776 * @return Zero on success or a negativeerror code from errno.h.2776 * @return Zero on success or an error code from errno.h. 2777 2777 * 2778 2778 */ … … 2899 2899 * @param size Size of the source buffer. 2900 2900 * 2901 * @return Zero on success or a negativeerror code from errno.h.2901 * @return Zero on success or an error code from errno.h. 2902 2902 * 2903 2903 */ -
uspace/lib/c/generic/clipboard.c
r3c7702c0 rcde999a 95 95 * @param str String to put to clipboard or NULL. 96 96 * 97 * @return Zero on success or negativeerror code.97 * @return Zero on success or an error code. 98 98 * 99 99 */ … … 137 137 * @param str Here pointer to the newly allocated string is stored. 138 138 * 139 * @return Zero on success or negativeerror code.139 * @return Zero on success or an error code. 140 140 * 141 141 */ -
uspace/lib/c/generic/ddi.c
r3c7702c0 rcde999a 226 226 * 227 227 * @return EOK on success. 228 * @return Negativeerror code on failure.228 * @return An error code on failure. 229 229 * 230 230 */ … … 268 268 * 269 269 * @return EOK on success. 270 * @return Negativeerror code on failure.270 * @return An error code on failure. 271 271 * 272 272 */ … … 306 306 * 307 307 * @return EOK on success. 308 * @return Negativeerror code on failure.308 * @return An error code on failure. 309 309 * 310 310 */ -
uspace/lib/c/generic/device/clock_dev.c
r3c7702c0 rcde999a 44 44 * @param t The current time that will be read from the device 45 45 * 46 * @return EOK on success or a negativeerror code46 * @return EOK on success or an error code 47 47 */ 48 48 int … … 75 75 * @param t The current time that will be written to the device 76 76 * 77 * @return EOK on success or a negativeerror code77 * @return EOK on success or an error code 78 78 */ 79 79 int -
uspace/lib/c/generic/devman.c
r3c7702c0 rcde999a 210 210 * @param funh Place to store handle of the new function 211 211 * 212 * @return EOK on success or negativeerror code.212 * @return EOK on success or an error code. 213 213 * 214 214 */ … … 305 305 * @param funh Devman handle of the function 306 306 * 307 * @return EOK on success or negativeerror code.307 * @return EOK on success or an error code. 308 308 */ 309 309 int devman_remove_function(devman_handle_t funh) … … 529 529 * @param data Place to store pointer to array of handles 530 530 * @param count Place to store number of handles 531 * @return EOK on success or negativeerror code531 * @return EOK on success or an error code 532 532 */ 533 533 static int devman_get_handles_internal(sysarg_t method, sysarg_t arg1, -
uspace/lib/c/generic/inet/tcp.c
r3c7702c0 rcde999a 59 59 * 60 60 * @param tcp TCP service 61 * @return EOK on success or negativeerror code61 * @return EOK on success or an error code 62 62 */ 63 63 static int tcp_callback_create(tcp_t *tcp) … … 205 205 * @param rconn Place to store pointer to new connection 206 206 * 207 * @return EOK on success or negativeerror code.207 * @return EOK on success or an error code. 208 208 */ 209 209 int tcp_conn_create(tcp_t *tcp, inet_ep2_t *epp, tcp_cb_t *cb, void *arg, … … 316 316 * @param rlst Place to store pointer to new listener 317 317 * 318 * @return EOK on success or negativeerror code318 * @return EOK on success or an error code 319 319 */ 320 320 int tcp_listener_create(tcp_t *tcp, inet_ep_t *ep, tcp_listen_cb_t *lcb, … … 446 446 * @param bytes Data size in bytes 447 447 * 448 * @return EOK on success or negativeerror code448 * @return EOK on success or an error code 449 449 */ 450 450 int tcp_conn_send(tcp_conn_t *conn, const void *data, size_t bytes) … … 478 478 * 479 479 * @param conn Connection 480 * @return EOK on success or negativeerror code480 * @return EOK on success or an error code 481 481 */ 482 482 int tcp_conn_send_fin(tcp_conn_t *conn) … … 494 494 * 495 495 * @param conn Connection 496 * @return EOK on success or negativeerror code496 * @return EOK on success or an error code 497 497 */ 498 498 int tcp_conn_push(tcp_conn_t *conn) … … 510 510 * 511 511 * @param conn Connection 512 * @return EOK on success or negativeerror code512 * @return EOK on success or an error code 513 513 */ 514 514 int tcp_conn_reset(tcp_conn_t *conn) … … 538 538 * 539 539 * @return EOK on success, EAGAIN if no received data is pending, or other 540 * negativeerror code in case of other error540 * error code in case of other error 541 541 */ 542 542 int tcp_conn_recv(tcp_conn_t *conn, void *buf, size_t bsize, size_t *nrecv) … … 586 586 * @param nrecv Place to store actual number of received bytes 587 587 * 588 * @return EOK on success or negativeerror code588 * @return EOK on success or an error code 589 589 */ 590 590 int tcp_conn_recv_wait(tcp_conn_t *conn, void *buf, size_t bsize, -
uspace/lib/c/generic/inet/udp.c
r3c7702c0 rcde999a 46 46 * 47 47 * @param udp UDP service 48 * @return EOK on success or negativeerror code48 * @return EOK on success or an error code 49 49 */ 50 50 static int udp_callback_create(udp_t *udp) … … 158 158 * @param rassoc Place to store pointer to new association 159 159 * 160 * @return EOK on success or negativeerror code.160 * @return EOK on success or an error code. 161 161 */ 162 162 int udp_assoc_create(udp_t *udp, inet_ep2_t *epp, udp_cb_t *cb, void *arg, … … 250 250 * @param bytes Message size in bytes 251 251 * 252 * @return EOK on success or negativeerror code252 * @return EOK on success or an error code 253 253 */ 254 254 int udp_assoc_send_msg(udp_assoc_t *assoc, inet_ep_t *dest, void *data, … … 316 316 * @param bsize Buffer size 317 317 * 318 * @return EOK on success or negativeerror code.318 * @return EOK on success or an error code. 319 319 */ 320 320 int udp_rmsg_read(udp_rmsg_t *rmsg, size_t off, void *buf, size_t bsize) … … 380 380 * @param rmsg Place to store message information 381 381 * 382 * @return EOK on success or negativeerror code382 * @return EOK on success or an error code 383 383 */ 384 384 static int udp_rmsg_info(udp_t *udp, udp_rmsg_t *rmsg) … … 413 413 * 414 414 * @param udp UDP client 415 * @return EOK on success or negativeerror code415 * @return EOK on success or an error code 416 416 */ 417 417 static int udp_rmsg_discard(udp_t *udp) -
uspace/lib/c/generic/inetcfg.c
r3c7702c0 rcde999a 74 74 * @param data Place to store pointer to array of IDs 75 75 * @param count Place to store number of IDs 76 * @return EOK on success or negativeerror code76 * @return EOK on success or an error code 77 77 */ 78 78 static int inetcfg_get_ids_internal(sysarg_t method, sysarg_t arg1, -
uspace/lib/c/generic/io/asprintf.c
r3c7702c0 rcde999a 79 79 * @args Variable argument list 80 80 * 81 * @return Number of characters printed or a negativeerror code.81 * @return Number of characters printed or an error code. 82 82 * 83 83 */ … … 106 106 * @fmt Format string. 107 107 * 108 * @return Number of characters printed or a negativeerror code.108 * @return Number of characters printed or an error code. 109 109 * 110 110 */ -
uspace/lib/c/generic/ipc.c
r3c7702c0 rcde999a 325 325 * @param phandle Handle of the phone to be hung up. 326 326 * 327 * @return Zero on success or a negativeerror code.327 * @return Zero on success or an error code. 328 328 * 329 329 */ -
uspace/lib/c/generic/loader.c
r3c7702c0 rcde999a 84 84 * @param task_id Points to a variable where the ID should be stored. 85 85 * 86 * @return Zero on success or negativeerror code.86 * @return Zero on success or an error code. 87 87 * 88 88 */ … … 113 113 * @param ldr Loader connection structure. 114 114 * 115 * @return Zero on success or negativeerror code.115 * @return Zero on success or an error code. 116 116 * 117 117 */ … … 151 151 * @param file Program file. 152 152 * 153 * @return Zero on success or negativeerror code.153 * @return Zero on success or an error code. 154 154 * 155 155 */ … … 184 184 * @param path Program path. 185 185 * 186 * @return Zero on success or negativeerror code.186 * @return Zero on success or an error code. 187 187 * 188 188 */ … … 217 217 * @param argv NULL-terminated array of pointers to arguments. 218 218 * 219 * @return Zero on success or negativeerror code.219 * @return Zero on success or an error code. 220 220 * 221 221 */ … … 273 273 * @param file The file's descriptor. 274 274 * 275 * @return Zero on success or negativeerror code.275 * @return Zero on success or an error code. 276 276 * 277 277 */ … … 307 307 * @param ldr Loader connection structure. 308 308 * 309 * @return Zero on success or negativeerror code.309 * @return Zero on success or an error code. 310 310 * 311 311 */ … … 330 330 * @param ldr Loader connection structure. 331 331 * 332 * @return Zero on success or negativeerror code.332 * @return Zero on success or an error code. 333 333 * 334 334 */ … … 356 356 * @param ldr Loader connection structure. 357 357 * 358 * @return Zero on success or negativeerror code.358 * @return Zero on success or an error code. 359 359 * 360 360 */ -
uspace/lib/c/generic/loc.c
r3c7702c0 rcde999a 371 371 * @param name Place to store pointer to new string. Caller should 372 372 * free it using free(). 373 * @return EOK on success or negativeerror code373 * @return EOK on success or an error code 374 374 */ 375 375 static int loc_get_name_internal(sysarg_t method, sysarg_t id, char **name) … … 421 421 * @param name Place to store pointer to new string. Caller should 422 422 * free it using free(). 423 * @return EOK on success or negativeerror code423 * @return EOK on success or an error code 424 424 */ 425 425 int loc_category_get_name(category_id_t cat_id, char **name) … … 435 435 * @param name Place to store pointer to new string. Caller should 436 436 * free it using free(). 437 * @return EOK on success or negativeerror code437 * @return EOK on success or an error code 438 438 */ 439 439 int loc_service_get_name(service_id_t svc_id, char **name) … … 449 449 * @param name Place to store pointer to new string. Caller should 450 450 * free it using free(). 451 * @return EOK on success or negativeerror code451 * @return EOK on success or an error code 452 452 */ 453 453 int loc_service_get_server_name(service_id_t svc_id, char **name) … … 503 503 * @param cat_id Place to store ID 504 504 * @param flags IPC_FLAG_BLOCKING to wait for location service to start 505 * @return EOK on success or negativeerror code505 * @return EOK on success or an error code 506 506 */ 507 507 int loc_category_get_id(const char *name, category_id_t *cat_id, … … 613 613 * @param svc_id Service ID 614 614 * @param cat_id Category ID 615 * @return EOK on success or negativeerror code615 * @return EOK on success or an error code 616 616 */ 617 617 int loc_service_add_to_cat(service_id_t svc_id, service_id_t cat_id) … … 790 790 * @param data Place to store pointer to array of IDs 791 791 * @param count Place to store number of IDs 792 * @return EOK on success or negativeerror code792 * @return EOK on success or an error code 793 793 */ 794 794 static int loc_get_ids_internal(sysarg_t method, sysarg_t arg1, … … 836 836 * @param data Place to store pointer to array of IDs 837 837 * @param count Place to store number of IDs 838 * @return EOK on success or negativeerror code838 * @return EOK on success or an error code 839 839 */ 840 840 int loc_category_get_svcs(category_id_t cat_id, service_id_t **data, … … 851 851 * @param data Place to store pointer to array of IDs 852 852 * @param count Place to store number of IDs 853 * @return EOK on success or negativeerror code853 * @return EOK on success or an error code 854 854 */ 855 855 int loc_get_categories(category_id_t **data, size_t *count) -
uspace/lib/c/generic/str.c
r3c7702c0 rcde999a 918 918 * @param src Source utf16 string. 919 919 * 920 * @return EOK, if success, negative otherwise.920 * @return EOK, if success, an error code otherwise. 921 921 */ 922 922 int utf16_to_str(char *dest, size_t size, const uint16_t *src) … … 961 961 * @param src Source string. 962 962 * 963 * @return EOK, if success, negative otherwise.963 * @return EOK, if success, an error code otherwise. 964 964 */ 965 965 int str_to_utf16(uint16_t *dest, size_t dlen, const char *src) -
uspace/lib/c/generic/task.c
r3c7702c0 rcde999a 69 69 * program. 70 70 * 71 * @return Zero on success or negativeerror code.71 * @return Zero on success or an error code. 72 72 */ 73 73 int task_set_name(const char *name) … … 82 82 * @param task_id ID of task to kill. 83 83 * 84 * @return Zero on success or negativeerror code.84 * @return Zero on success or an error code. 85 85 */ 86 86 … … 101 101 * @param argv Command-line arguments. 102 102 * 103 * @return Zero on success or negativeerror code.103 * @return Zero on success or an error code. 104 104 * 105 105 */ … … 143 143 * @param std_err File to use as stderr. 144 144 * 145 * @return Zero on success or negativeerror code.145 * @return Zero on success or an error code. 146 146 * 147 147 */ … … 249 249 * @param ap Command-line arguments. 250 250 * 251 * @return Zero on success or negativeerror code.251 * @return Zero on success or an error code. 252 252 * 253 253 */ … … 287 287 * @param ... Command-line arguments. 288 288 * 289 * @return Zero on success or negativeerror code.289 * @return Zero on success or an error code. 290 290 * 291 291 */ -
uspace/lib/c/generic/time.c
r3c7702c0 rcde999a 954 954 * @param result Structure to store the result to 955 955 * 956 * @return EOK or a negativeerror code956 * @return EOK or an error code 957 957 * 958 958 */ … … 984 984 * ASCTIME_BUF_LEN bytes long. 985 985 * 986 * @return EOK or a negativeerror code.986 * @return EOK or an error code. 987 987 * 988 988 */ … … 1036 1036 * @param result Structure to store the result to. 1037 1037 * 1038 * @return EOK on success or a negativeerror code.1038 * @return EOK on success or an error code. 1039 1039 * 1040 1040 */ … … 1066 1066 * @param result Structure to store the result to. 1067 1067 * 1068 * @return EOK on success or a negativeerror code.1068 * @return EOK on success or an error code. 1069 1069 * 1070 1070 */ … … 1088 1088 * ASCTIME_BUF_LEN bytes long. 1089 1089 * 1090 * @return EOK on success or a negativeerror code.1090 * @return EOK on success or an error code. 1091 1091 * 1092 1092 */ -
uspace/lib/c/generic/uuid.c
r3c7702c0 rcde999a 43 43 * 44 44 * @param uuid Place to store generated UUID 45 * @return EOK on success or negativeerror code45 * @return EOK on success or an error code 46 46 */ 47 47 int uuid_generate(uuid_t *uuid) … … 100 100 * @param endptr Place to store pointer to end of UUID or @c NULL 101 101 * 102 * @return EOK on success or negativeerror code102 * @return EOK on success or an error code 103 103 */ 104 104 int uuid_parse(const char *str, uuid_t *uuid, const char **endptr) -
uspace/lib/c/generic/vbd.c
r3c7702c0 rcde999a 95 95 * @param count Place to store length of array (number of entries) 96 96 * 97 * @return EOK on success or negativeerror code97 * @return EOK on success or an error code 98 98 */ 99 99 int vbd_get_disks(vbd_t *vbd, service_id_t **data, size_t *count) … … 165 165 * @param act_size Place to store actual size of complete data. 166 166 * 167 * @return EOK on success or negativeerror code.167 * @return EOK on success or an error code. 168 168 */ 169 169 static int vbd_get_ids_once(vbd_t *vbd, sysarg_t method, sysarg_t arg1, … … 203 203 * @param data Place to store pointer to array of IDs 204 204 * @param count Place to store number of IDs 205 * @return EOK on success or negativeerror code205 * @return EOK on success or an error code 206 206 */ 207 207 static int vbd_get_ids_internal(vbd_t *vbd, sysarg_t method, sysarg_t arg1, … … 247 247 * @param count Place to store length of array (number of entries) 248 248 * 249 * @return EOK on success or negativeerror code249 * @return EOK on success or an error code 250 250 */ 251 251 int vbd_label_get_parts(vbd_t *vbd, service_id_t disk, … … 332 332 * @param ptype Place to store suggested partition type 333 333 * 334 * @return EOK on success or negativeerror code334 * @return EOK on success or an error code 335 335 */ 336 336 int vbd_suggest_ptype(vbd_t *vbd, service_id_t disk, label_pcnt_t pcnt, -
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, -
uspace/lib/c/generic/vol.c
r3c7702c0 rcde999a 101 101 * @param act_size Place to store actual size of complete data. 102 102 * 103 * @return EOK on success or negativeerror code.103 * @return EOK on success or an error code. 104 104 */ 105 105 static int vol_get_ids_once(vol_t *vol, sysarg_t method, sysarg_t arg1, … … 139 139 * @param data Place to store pointer to array of IDs 140 140 * @param count Place to store number of IDs 141 * @return EOK on success or negativeerror code141 * @return EOK on success or an error code 142 142 */ 143 143 static int vol_get_ids_internal(vol_t *vol, sysarg_t method, sysarg_t arg1, … … 183 183 * @param count Place to store length of array (number of entries) 184 184 * 185 * @return EOK on success or negativeerror code185 * @return EOK on success or an error code 186 186 */ 187 187 int vol_get_parts(vol_t *vol, service_id_t **data, size_t *count)
Note:
See TracChangeset
for help on using the changeset viewer.