Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/trace/trace.c

    r6c34f587 r1c635d6  
    4343#include <mem.h>
    4444#include <str.h>
    45 #include <bool.h>
     45#include <stdbool.h>
    4646#include <loader/loader.h>
    4747#include <io/console.h>
     
    136136        }
    137137
    138         free(task_ldr);
    139138        task_ldr = NULL;
    140139
     
    348347        if ((display_mask & DM_SYSCALL) != 0) {
    349348                /* Print syscall name and arguments */
    350                 printf("%s", syscall_desc[sc_id].name);
    351                 print_sc_args(sc_args, syscall_desc[sc_id].n_args);
     349                if (syscall_desc_defined(sc_id)) {
     350                        printf("%s", syscall_desc[sc_id].name);
     351                        print_sc_args(sc_args, syscall_desc[sc_id].n_args);
     352                }
     353                else {
     354                        printf("unknown_syscall<%d>", sc_id);
     355                        print_sc_args(sc_args, 6);
     356                }
    352357        }
    353358}
     
    372377        if ((display_mask & DM_SYSCALL) != 0) {
    373378                /* Print syscall return value */
    374                 rv_type = syscall_desc[sc_id].rv_type;
     379                if (syscall_desc_defined(sc_id))
     380                        rv_type = syscall_desc[sc_id].rv_type;
     381                else
     382                        rv_type = V_PTR;
    375383                print_sc_retval(sc_rc, rv_type);
    376384        }
     
    497505        ldr = loader_connect();
    498506        if (ldr == NULL)
    499                 return 0;
     507                return NULL;
    500508
    501509        /* Get task ID. */
     
    557565static int cev_fibril(void *arg)
    558566{
     567        cons_event_t event;
     568
    559569        (void) arg;
    560570       
     
    567577                fibril_mutex_unlock(&state_lock);
    568578               
    569                 if (!console_get_kbd_event(console, &cev))
     579                if (!console_get_event(console, &event))
    570580                        return -1;
    571581               
    572                 fibril_mutex_lock(&state_lock);
    573                 cev_valid = true;
    574                 fibril_condvar_broadcast(&state_cv);
    575                 fibril_mutex_unlock(&state_lock);
     582                if (event.type == CEV_KEY) {
     583                        fibril_mutex_lock(&state_lock);
     584                        cev = event.ev.key;
     585                        cev_valid = true;
     586                        fibril_condvar_broadcast(&state_cv);
     587                        fibril_mutex_unlock(&state_lock);
     588                }
    576589        }
    577590}
     
    711724        o = oper_new("stat", 0, arg_def, V_ERRNO, 0, resp_def);
    712725        proto_add_oper(p, VFS_IN_STAT, o);
     726        o = oper_new("statfs", 0, arg_def, V_ERRNO, 0, resp_def);
     727        proto_add_oper(p, VFS_IN_STATFS, o);
    713728
    714729        proto_register(SERVICE_VFS, p);
     
    861876                printf("Waiting for task to exit.\n");
    862877
    863                 rc = task_wait(task_id, &texit, &retval);
     878                rc = task_wait_task_id(task_id, &texit, &retval);
    864879                if (rc != EOK) {
    865880                        printf("Failed waiting for task.\n");
Note: See TracChangeset for help on using the changeset viewer.