user/lib/libsystem/src/sys/task.c
/**
 * Returns the current task's handle.
 */
Returns the current task's handle.
Returns the current task ' s handle .
int TaskGetHandle(uintptr_t *outHandle) {
    intptr_t err = __do_syscall0(SYS_TASK_GET_HANDLE);
    if(outHandle && err > 0) {
        *outHandle = err;
    }
    return (err < 0) ? err : 0;
}
int TaskGetHandle ( uintptr_t * outHandle ) { intptr_t err = __do_syscall0 ( SYS_TASK_GET_HANDLE ) ; if ( outHandle && err > 0 ) { * outHandle = err ; } return ( err < 0 ) ? err : 0 ; }
Returns the current task's handle.
Returns the current task ' s handle .