Changeset 25a179e in mainline for uspace/lib/c/generic/bd.c


Ignore:
Timestamp:
2017-12-20T19:51:45Z (8 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/lib/c/generic/bd.c

    rd4a829e r25a179e  
    9898        }
    9999
    100         sysarg_t retval;
     100        int retval;
    101101        async_wait_for(req, &retval);
    102102
     
    121121        }
    122122
    123         sysarg_t retval;
     123        int retval;
    124124        async_wait_for(req, &retval);
    125125
     
    146146        }
    147147
    148         sysarg_t retval;
     148        int retval;
    149149        async_wait_for(req, &retval);
    150150        if (retval != EOK)
Note: See TracChangeset for help on using the changeset viewer.