Changeset 444 for trunk/user/ksh/ksh.c


Ignore:
Timestamp:
May 16, 2018, 8:31:35 PM (6 years ago)
Author:
satin@…
Message:

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/ksh/ksh.c

    r442 r444  
    1010#include <stdlib.h>
    1111#include <string.h>
    12 #include <shared_syscalls.h>
     12#include <sys/wait.h>
     13#include <signal.h>
     14#include <unistd.h>
     15#include <almos-mkh.h>
    1316
    1417#define CMD_MAX_SIZE   (256)    // max number of characters in one command
     
    425428    {
    426429        // CHILD process exec NEW process
    427         ret_exec = exec( pathname , NULL , NULL );
     430        ret_exec = execve( pathname , NULL , NULL );
    428431
    429432        // this is only executed in case of exec failure
Note: See TracChangeset for help on using the changeset viewer.