Changeset 25a179e in mainline for uspace/srv/vfs/vfs_ops.c


Ignore:
Timestamp:
2017-12-20T19:51:45Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f96b6c8
Parents:
d4a829e
Message:

IPC return values are always errno constants. Adjust types to reflect that.

In principle, IPC server is not allowed to return non-errno values via
the "main" return value, because kernel interprets it (e.g. EHANGUP).
It's still possible to return arbitrary additional return values alongside EOK,
which are not interpreted in normal communication.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_ops.c

    rd4a829e r25a179e  
    152152            &answer);
    153153        /* Send the mount options */
    154         sysarg_t rc = async_data_write_start(exch, options, str_size(options));
     154        int rc = async_data_write_start(exch, options, str_size(options));
    155155        if (rc != EOK) {
    156156                async_forget(msg);
     
    192192{
    193193        fs_handle_t fs_handle = 0;
    194         sysarg_t rc;
     194        int rc;
    195195        int retval;
    196196       
     
    398398        }
    399399       
    400         sysarg_t rc;
     400        int rc;
    401401        async_wait_for(msg, &rc);
    402402       
     
    677677        vfs_exchange_release(fs_exch);
    678678       
    679         sysarg_t rc;
     679        int rc;
    680680        async_wait_for(msg, &rc);
    681681       
     
    689689{
    690690        async_exch_t *exch = vfs_exchange_grab(fs_handle);
    691         sysarg_t rc = async_req_4_0(exch, VFS_OUT_TRUNCATE,
     691        int rc = async_req_4_0(exch, VFS_OUT_TRUNCATE,
    692692            (sysarg_t) service_id, (sysarg_t) index, LOWER32(size),
    693693            UPPER32(size));
Note: See TracChangeset for help on using the changeset viewer.