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_pipe.c

    r473 r506  
    2828#include <printk.h>
    2929
     30#include <syscalls.h>
     31
    3032//////////////////////////////////////
    31 int sys_pipe ( uint32_t * file_fd[2] )
     33int sys_pipe ( uint32_t file_fd[2] )
    3234{
    33     thread_t * this = CURRENT_THREAD;
    34 
    3535    printk("\n[ERROR] in %d : not implemented yet\n", __FUNCTION__, file_fd );
    36     return -1;
     36    return ENOSYS;
    3737}
Note: See TracChangeset for help on using the changeset viewer.