Changeset 5a6cc679 in mainline for uspace/lib/c/generic/thread.c


Ignore:
Timestamp:
2018-01-31T02:21:24Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

File:
1 edited

Legend:

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

    r132ab5d1 r5a6cc679  
    105105 * @return Zero on success or a code from @ref errno.h on failure.
    106106 */
    107 int thread_create(void (* function)(void *), void *arg, const char *name,
     107errno_t thread_create(void (* function)(void *), void *arg, const char *name,
    108108    thread_id_t *tid)
    109109{
     
    132132        uarg->uspace_uarg = uarg;
    133133       
    134         int rc = (int) __SYSCALL4(SYS_THREAD_CREATE, (sysarg_t) uarg,
     134        errno_t rc = (errno_t) __SYSCALL4(SYS_THREAD_CREATE, (sysarg_t) uarg,
    135135            (sysarg_t) name, (sysarg_t) str_size(name), (sysarg_t) tid);
    136136       
     
    178178 * @return Thread exit status.
    179179 */
    180 int thread_join(thread_id_t thread)
     180errno_t thread_join(thread_id_t thread)
    181181{
    182182        return 0;
Note: See TracChangeset for help on using the changeset viewer.