Changeset 444 for trunk/user
- Timestamp:
- May 16, 2018, 8:31:35 PM (7 years ago)
- Location:
- trunk/user
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/idbg/Makefile
r442 r444 11 11 OBJS = build/idbg.o 12 12 13 INCLUDES = -I. -I$(LIBC_INCLUDE) 13 INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE) -I$(LIBPTHREAD_INCLUDE) 14 14 15 15 compile: dirs build/idbg.elf 16 16 17 17 build/idbg.elf : $(OBJS) idbg.ld 18 $(LD) -o $@ -T idbg.ld $(OBJS) -nostdlib -L$(LIBC) - lc18 $(LD) -o $@ -T idbg.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lpthread -lc -lalmos-mkh -lc -lpthread -lc -lalmos-mkh -lpthread -lc 19 19 $(DU) -D $@ > $@.txt 20 20 -
trunk/user/idbg/idbg.c
r442 r444 11 11 #include <stdlib.h> 12 12 #include <stdio.h> 13 #include < shared_syscalls.h>13 #include <almos-mkh.h> 14 14 15 15 /////////// -
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 -
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 -
trunk/user/pgcd/Makefile
r440 r444 11 11 OBJS = build/pgcd.o 12 12 13 INCLUDES = -I. -I$(LIBC_INCLUDE) 13 INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE) -I$(LIBPTHREAD_INCLUDE) 14 14 15 15 compile: dirs build/pgcd.elf 16 16 17 17 build/pgcd.elf : $(OBJS) pgcd.ld 18 $(LD) -o $@ -T pgcd.ld $(OBJS) -nostdlib -L$(LIBC) - lc18 $(LD) -o $@ -T pgcd.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBALMOSMKH) -L$(LIBPTHREAD) -lalmos-mkh -lc -lalmos-mkh -lpthread -lc 19 19 $(DU) -D $@ > $@.txt 20 20 21 21 build/pgcd.o : pgcd.c 22 $(CC) $(INCLUDES) -L$(LIBC) $(CFLAGS) -c -o $@ $< 22 $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< 23 $(DU) -D $@ > $@.txt 23 24 24 25 dirs: -
trunk/user/pgcd/pgcd.c
r442 r444 10 10 #include <stdlib.h> 11 11 #include <stdio.h> 12 12 #include <almos-mkh.h> 13 13 14 14 /////////// -
trunk/user/sort/Makefile
r440 r444 11 11 OBJS = build/sort.o 12 12 13 INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE) 13 INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE) 14 14 15 15 compile: dirs build/sort.elf 16 16 17 17 build/sort.elf : $(OBJS) sort.ld 18 $(LD) -o $@ -T sort.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) - lc -lpthread18 $(LD) -o $@ -T sort.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lpthread -lalmos-mkh -lc 19 19 $(DU) -D $@ > $@.txt 20 20 -
trunk/user/sort/sort.c
r442 r444 24 24 #include <stdio.h> 25 25 #include <stdlib.h> 26 #include <malloc.h>27 26 #include <pthread.h> 27 #include <almos-mkh.h> 28 28 29 29 #define ARRAY_LENGTH 0x400 // 1024 values
Note: See TracChangeset
for help on using the changeset viewer.