Changeset 444 for trunk/user/ksh
- Timestamp:
- May 16, 2018, 8:31:35 PM (7 years ago)
- Location:
- trunk/user/ksh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/ksh/Makefile
r440 r444 10 10 OBJS = build/ksh.o 11 11 12 INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE) 12 INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE) 13 13 14 14 compile: dirs build/ksh.elf 15 15 build/ksh.elf : $(OBJS) ksh.ld 16 $(LD) -o $@ -T ksh.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) - lc -lpthread16 $(LD) -o $@ -T ksh.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lpthread -lc -lalmos-mkh -lc -lpthread -lc 17 17 $(DU) -D $@ > $@.txt 18 18 -
trunk/user/ksh/ksh.c
r442 r444 10 10 #include <stdlib.h> 11 11 #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> 13 16 14 17 #define CMD_MAX_SIZE (256) // max number of characters in one command … … 425 428 { 426 429 // CHILD process exec NEW process 427 ret_exec = exec ( pathname , NULL , NULL );430 ret_exec = execve( pathname , NULL , NULL ); 428 431 429 432 // this is only executed in case of exec failure
Note: See TracChangeset
for help on using the changeset viewer.