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

    r492 r506  
    3636#include <rpc.h>
    3737
     38#include <syscalls.h>
    3839
    3940////////////////////////////////////////////////i//////////////////////////////////////
     
    162163// TODO : the args & envs arguments are not supported yet : both must be NULL  [AG]
    163164/////////////////////////////////////////////////////////////////////////////////////////
    164 int sys_exec( char  * pathname,    // .elf file pathname
    165               char ** args,         // process arguments
    166               char ** envs )        // environment variables
     165int sys_exec( const char  * pathname, // .elf file pathname
     166              char ** args,           // process arguments
     167              char ** envs )          // environment variables
    167168{
    168169    exec_info_t   exec_info;        // structure to pass to process_make_exec()
Note: See TracChangeset for help on using the changeset viewer.