Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/task.c

    rcde999a rb7fd2a0  
    7171 * @return Zero on success or an error code.
    7272 */
    73 int task_set_name(const char *name)
     73errno_t task_set_name(const char *name)
    7474{
    7575        assert(name);
    7676       
    77         return (int) __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, str_size(name));
     77        return (errno_t) __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, str_size(name));
    7878}
    7979
     
    8585 */
    8686
    87 int task_kill(task_id_t task_id)
    88 {
    89         return (int) __SYSCALL1(SYS_TASK_KILL, (sysarg_t) &task_id);
     87errno_t task_kill(task_id_t task_id)
     88{
     89        return (errno_t) __SYSCALL1(SYS_TASK_KILL, (sysarg_t) &task_id);
    9090}
    9191
     
    104104 *
    105105 */
    106 int task_spawnv(task_id_t *id, task_wait_t *wait, const char *path,
     106errno_t task_spawnv(task_id_t *id, task_wait_t *wait, const char *path,
    107107    const char *const args[])
    108108{
     
    146146 *
    147147 */
    148 int task_spawnvf(task_id_t *id, task_wait_t *wait, const char *path,
     148errno_t task_spawnvf(task_id_t *id, task_wait_t *wait, const char *path,
    149149    const char *const args[], int fd_stdin, int fd_stdout, int fd_stderr)
    150150{
     
    158158        /* Get task ID. */
    159159        task_id_t task_id;
    160         int rc = loader_get_task_id(ldr, &task_id);
     160        errno_t rc = loader_get_task_id(ldr, &task_id);
    161161        if (rc != EOK)
    162162                goto error;
     
    252252 *
    253253 */
    254 int task_spawn(task_id_t *task_id, task_wait_t *wait, const char *path,
     254errno_t task_spawn(task_id_t *task_id, task_wait_t *wait, const char *path,
    255255    int cnt, va_list ap)
    256256{
     
    269269       
    270270        /* Spawn task. */
    271         int rc = task_spawnv(task_id, wait, path, arglist);
     271        errno_t rc = task_spawnv(task_id, wait, path, arglist);
    272272       
    273273        /* Free argument list. */
     
    290290 *
    291291 */
    292 int task_spawnl(task_id_t *task_id, task_wait_t *wait, const char *path, ...)
     292errno_t task_spawnl(task_id_t *task_id, task_wait_t *wait, const char *path, ...)
    293293{
    294294        /* Count the number of arguments. */
     
    306306       
    307307        va_start(ap, path);
    308         int rc = task_spawn(task_id, wait, path, cnt, ap);
     308        errno_t rc = task_spawn(task_id, wait, path, cnt, ap);
    309309        va_end(ap);
    310310       
     
    323323 * @return EOK on success, else error code.
    324324 */
    325 int task_setup_wait(task_id_t id, task_wait_t *wait)
     325errno_t task_setup_wait(task_id_t id, task_wait_t *wait)
    326326{
    327327        async_sess_t *sess_ns = ns_session_get();
     
    364364 * @return EOK on success, else error code.
    365365 */
    366 int task_wait(task_wait_t *wait, task_exit_t *texit, int *retval)
     366errno_t task_wait(task_wait_t *wait, task_exit_t *texit, int *retval)
    367367{
    368368        assert(texit);
    369369        assert(retval);
    370370
    371         int rc;
     371        errno_t rc;
    372372        async_wait_for(wait->aid, &rc);
    373373
     
    394394 * @return EOK on success, else error code.
    395395 */
    396 int task_wait_task_id(task_id_t id, task_exit_t *texit, int *retval)
     396errno_t task_wait_task_id(task_id_t id, task_exit_t *texit, int *retval)
    397397{
    398398        task_wait_t wait;
    399         int rc = task_setup_wait(id, &wait);
     399        errno_t rc = task_setup_wait(id, &wait);
    400400        if (rc != EOK)
    401401                return rc;
     
    404404}
    405405
    406 int task_retval(int val)
     406errno_t task_retval(int val)
    407407{
    408408        async_sess_t *sess_ns = ns_session_get();
     
    411411
    412412        async_exch_t *exch = async_exchange_begin(sess_ns);
    413         int rc = (int) async_req_1_0(exch, NS_RETVAL, val);
     413        errno_t rc = (errno_t) async_req_1_0(exch, NS_RETVAL, val);
    414414        async_exchange_end(exch);
    415415       
Note: See TracChangeset for help on using the changeset viewer.