Changeset 444 for trunk/user/init
- Timestamp:
- May 16, 2018, 8:31:35 PM (7 years ago)
- Location:
- trunk/user/init
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/init/Makefile
r440 r444 11 11 OBJS = build/init.o 12 12 13 INCLUDES = -I. \ 14 -I../.. \ 15 -I$(LIBC_INCLUDE)/ \ 16 -I$(LIBPTHREAD_INCLUDE) 13 INCLUDES = -I. \ 14 -I../.. \ 15 -I$(LIBC_INCLUDE)/ \ 16 -I$(LIBPTHREAD_INCLUDE) \ 17 -I$(LIBALMOSMKH_INCLUDE) \ 18 -I$(SHARED_INCLUDE) 17 19 18 20 compile : dirs build/init.elf 19 21 build/init.elf : $(OBJS) init.ld 20 $(LD) -o $@ -T init.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) - lc -lpthread22 $(LD) -o $@ -T init.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lc -lpthread -lalmos-mkh -lpthread -lc 21 23 $(DU) -D $@ > $@.txt 22 24 -
trunk/user/init/init.c
r442 r444 13 13 14 14 #include <hard_config.h> 15 15 #include <unistd.h> 16 16 #include <stdlib.h> 17 17 #include <stdio.h> 18 18 #include <pthread.h> 19 #include <almos-mkh.h> 20 #include <assert.h> 21 #include <sys/wait.h> 19 22 20 23 #define DEBUG_PROCESS_INIT 0 … … 54 57 { 55 58 // CHILD[i] process exec process KSH[i] 56 ret_exec = exec ( "/bin/user/ksh.elf" , NULL , NULL );59 ret_exec = execve( "/bin/user/ksh.elf" , NULL , NULL ); 57 60 58 61 if ( ret_exec ) // error in exec … … 139 142 { 140 143 // CHILD process exec process KSH 141 ret_exec = exec ( "/bin/user/ksh.elf" , NULL , NULL );144 ret_exec = execve( "/bin/user/ksh.elf" , NULL , NULL ); 142 145 143 146 if ( ret_exec ) // error in exec
Note: See TracChangeset
for help on using the changeset viewer.