Changeset 2292 in kBuild
- Timestamp:
- Feb 28, 2009 4:46:25 AM (16 years ago)
- Location:
- trunk/src/kash
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/Makefile.kmk
r2291 r2292 32 32 PROGRAMS += kash 33 33 kash_TEMPLATE = BIN 34 kash_ASTOOL = YASM 34 35 kash_DEFS = lint SHELL SMALL 35 36 kash_DEFS += SH_STUB_MODE # for the time being. … … 50 51 HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME 51 52 kash_INCS = $(PATH_kash) . # (the last is because of error.h) 53 kash_ASFLAGS.win = -g cv8 54 kash_ASFLAGS.win.x86 = -f win32 55 kash_ASFLAGS.win.amd64 = -f win64 52 56 if "$(USER)" == "bird" && "$(KBUILD_TARGET)" != "win" 53 57 kash_CFLAGS += -std=gnu99 … … 96 100 kash_SOURCES.win = \ 97 101 sys_signame.c \ 98 strlcpy.c 102 strlcpy.c \ 103 shfork-win.c \ 104 shforkA-win.asm 99 105 kash_SOURCES.solaris = \ 100 106 sys_signame.c \ -
trunk/src/kash/main.c
r2286 r2292 101 101 102 102 int 103 #if K_OS == K_OS_WINDOWS 104 real_main(int argc, char **argv, char **envp) 105 #else 103 106 main(int argc, char **argv, char **envp) 107 #endif 104 108 { 105 109 shinstance *psh; -
trunk/src/kash/shheap.c
r2291 r2292 29 29 * Header Files * 30 30 *******************************************************************************/ 31 #include "shheap.h" 31 32 #include <string.h> 32 33 #include <stdlib.h> -
trunk/src/kash/shheap.h
r2291 r2292 1 1 /* $Id$ */ 2 2 /** @file 3 * The shell heap methods.3 * The shell memory heap methods. 4 4 */ 5 5 … … 32 32 33 33 /* heap */ 34 int shheap_init(void); 34 35 void *sh_malloc(shinstance *, size_t); 35 36 void *sh_calloc(shinstance *, size_t, size_t); -
trunk/src/kash/shinstance.c
r2291 r2292 39 39 #endif 40 40 #include "shinstance.h" 41 42 #if K_OS == K_OS_WINDOWS 43 extern pid_t shfork_do_it(void); /* shforkA-win.asm */ 44 #endif 41 45 42 46 … … 872 876 pid = -1; 873 877 874 #elif defined(SH_STUB_MODE) || defined(SH_FORKED_MODE) 875 # ifdef _MSC_VER 876 # ifdef SH_FORKED_MODE 877 /** @todo */ 878 *(char *)1 = 0x1; 879 # else 878 #elif K_OS == K_OS_WINDOWS //&& defined(SH_FORKED_MODE) 879 pid = shfork_do_it(); 880 881 #elif defined(SH_STUB_MODE) || defined(SH_FORKED_MODE) 882 # ifdef _MSC_VER 880 883 pid = -1; 881 884 errno = ENOSYS; 882 # endif883 885 # else 884 886 pid = fork();
Note:
See TracChangeset
for help on using the changeset viewer.