Changeset 444 for trunk/user/ksh


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

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

Location:
trunk/user/ksh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/ksh/Makefile

    r440 r444  
    1010OBJS = build/ksh.o
    1111
    12 INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE)
     12INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE)
    1313
    1414compile: dirs build/ksh.elf
    1515build/ksh.elf : $(OBJS) ksh.ld
    16         $(LD) -o $@ -T ksh.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -lc -lpthread
     16        $(LD) -o $@ -T ksh.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lpthread -lc -lalmos-mkh -lc -lpthread -lc
    1717        $(DU) -D $@ > $@.txt
    1818
  • 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.