Changeset a53ed3a in mainline for kernel/generic/src/proc


Ignore:
Timestamp:
2018-01-13T03:15:30Z (7 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:
36df27eb, 50f19b7
Parents:
b7fd2a0
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-13 03:15:24)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-13 03:15:30)
Message:

Change (rc != 0) to (rc != EOK), where appropriate.

Location:
kernel/generic/src/proc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/program.c

    rb7fd2a0 ra53ed3a  
    233233        char namebuf[TASK_NAME_BUFLEN];
    234234        errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len);
    235         if (rc != 0)
     235        if (rc != EOK)
    236236                return (sys_errno_t) rc;
    237237       
     
    241241        program_t prg;
    242242        rc = program_create_loader(&prg, namebuf);
    243         if (rc != 0)
     243        if (rc != EOK)
    244244                return rc;
    245245       
  • kernel/generic/src/proc/task.c

    rb7fd2a0 ra53ed3a  
    394394       
    395395        errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len);
    396         if (rc != 0)
     396        if (rc != EOK)
    397397                return (sys_errno_t) rc;
    398398       
     
    430430        task_id_t taskid;
    431431        errno_t rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(taskid));
    432         if (rc != 0)
     432        if (rc != EOK)
    433433                return (sys_errno_t) rc;
    434434       
  • kernel/generic/src/proc/thread.c

    rb7fd2a0 ra53ed3a  
    938938        char namebuf[THREAD_NAME_BUFLEN];
    939939        errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len);
    940         if (rc != 0)
     940        if (rc != EOK)
    941941                return (sys_errno_t) rc;
    942942       
     
    951951       
    952952        rc = copy_from_uspace(kernel_uarg, uspace_uarg, sizeof(uspace_arg_t));
    953         if (rc != 0) {
     953        if (rc != EOK) {
    954954                free(kernel_uarg);
    955955                return (sys_errno_t) rc;
     
    962962                        rc = copy_to_uspace(uspace_thread_id, &thread->tid,
    963963                            sizeof(thread->tid));
    964                         if (rc != 0) {
     964                        if (rc != EOK) {
    965965                                /*
    966966                                 * We have encountered a failure, but the thread
Note: See TracChangeset for help on using the changeset viewer.