Ignore:
Timestamp:
Aug 25, 2018, 6:29:34 PM (6 years ago)
Author:
viala@…
Message:

[syscalls] add interface in implementation.

Add const where possible, fix protoypes to follow interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_signal.c

    r473 r506  
    2828#include <printk.h>
    2929
     30#include <syscalls.h>
     31
    3032//////////////////////////////////
    3133int sys_signal( uint32_t   sig_id,
    3234                void     * handler )
    33 { 
    34         thread_t  * this    = CURRENT_THREAD;
     35{
     36    thread_t  * this    = CURRENT_THREAD;
    3537    process_t * process = this->process;
    3638
    3739    printk("\n[ERROR] in %s : thread %x in process %x / not implemented yet\n",
    3840    __FUNCTION__, this->trdid, process->pid, sig_id, handler );
    39     return -1;
     41    return ENOSYS;
    4042}
    4143
Note: See TracChangeset for help on using the changeset viewer.