Changeset 3480 in kBuild
- Timestamp:
- Sep 21, 2020 11:20:56 AM (4 years ago)
- Location:
- trunk/src/kash
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/exec.c
r3477 r3480 168 168 * Check if 'path' is an absolute (starts with root) path or not. 169 169 */ 170 K_INLINE i sabspath(const char *path)170 K_INLINE int isabspath(const char *path) 171 171 { 172 172 #if K_OS == K_OS_WINDOWS || K_OS == K_OS_OS2 … … 187 187 * Checks if the filename include a path or not. 188 188 */ 189 K_INLINE haspath(const char *name)189 K_INLINE int haspath(const char *name) 190 190 { 191 191 #if K_OS == K_OS_WINDOWS || K_OS == K_OS_OS2 … … 659 659 int idx; 660 660 int prev; 661 int norehashoncd = 1;662 661 char *fullname; 663 662 int e; … … 847 846 cmdp->cmdtype = CMDNORMAL; 848 847 cmdp->param.n.index = idx; 848 #ifdef PC_EXE_EXTS 849 849 cmdp->param.n.suffix = suffix; 850 #else 851 cmdp->param.n.suffix = 0; 852 #endif 850 853 INTON; 851 854 goto success; -
trunk/src/kash/jobs.c
r3438 r3480 756 756 } 757 757 jp = psh->jobtab + psh->njobs; 758 for (i = 4 ; --i >= 0 ; psh->jobtab[psh->njobs++].used = 0) ;758 for (i = 4 ; --i >= 0 ; psh->jobtab[psh->njobs++].used = 0) { /*empty*/ } 759 759 INTON; 760 760 break; … … 887 887 #endif 888 888 889 staticshpid889 STATIC shpid 890 890 forkparent(shinstance *psh, struct job *jp, union node *n, int mode, shpid pid) 891 891 { … … 914 914 } 915 915 916 staticvoid916 STATIC void 917 917 forkchild(shinstance *psh, shpid pgrp, union node *n, int mode) 918 918 { -
trunk/src/kash/memalloc.c
r3477 r3480 334 334 /*kHlpAssert(end[-1] == '\0'); - not if it's followed by ungrabstrackstr(), sigh. */ 335 335 kHlpAssert(SHELL_ALIGN((uintptr_t)pstart) == (uintptr_t)pstart); 336 kHlpAssert(stackblocksize(psh) - psh->sstrnleft >= nbytes);336 kHlpAssert(stackblocksize(psh) - psh->sstrnleft >= (ssize_t)nbytes); 337 337 338 338 nbytes = SHELL_ALIGN(nbytes); … … 589 589 } 590 590 591 #endif KASH_SEPARATE_PARSER_ALLOCATOR591 #endif /* KASH_SEPARATE_PARSER_ALLOCATOR */ 592 592 593 593 -
trunk/src/kash/mkinit.sh
r1233 r3480 154 154 done 155 155 echo "#include \"shinstance.h\"" 156 echo "#include \"nodes.h\"" 156 157 157 158 echo -
trunk/src/kash/redir.c
r3477 r3480 68 68 #define PIPESIZE SHFILE_PIPE_SIZE 69 69 70 71 MKINIT72 70 73 71 //MKINIT struct redirtab *redirlist; -
trunk/src/kash/shinstance.c
r3477 r3480 626 626 #else 627 627 psh->pid = getpid(); 628 psh->pgid = getpgid( );628 psh->pgid = getpgid(0); 629 629 #endif 630 630 … … 2241 2241 if (pid == 0 || psh->pid == pid) 2242 2242 { 2243 shpidpgid = psh->pgid;2243 pgid = psh->pgid; 2244 2244 #ifndef _MSC_VER 2245 2245 kHlpAssert(pgid == getpgrp()); -
trunk/src/kash/shinstance.h
r3468 r3480 79 79 struct shsubshellstatus *next; /**< Next free one on the free chain. */ 80 80 } shsubshellstatus; 81 #else 82 struct shsubshellstatus; 81 83 #endif 82 84
Note:
See TracChangeset
for help on using the changeset viewer.