Changeset 803 in kBuild
- Timestamp:
- Jan 25, 2007 12:49:28 AM (18 years ago)
- Location:
- trunk/src/gmake
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/glob/fnmatch.c
r503 r803 120 120 whose names are inconsistent. */ 121 121 122 # if !defined _LIBC && !defined getenv 122 # if !defined _LIBC && !defined getenv && !defined _MSC_VER 123 123 extern char *getenv (); 124 124 # endif -
trunk/src/gmake/glob/glob.c
r507 r803 188 188 # ifndef __SASC 189 189 # ifdef WINDOWS32 190 # include <malloc.h> 190 191 static void * 191 192 my_realloc (void *p, unsigned int n) -
trunk/src/gmake/job.c
r751 r803 180 180 181 181 #ifndef HAVE_UNISTD_H 182 # ifndef _MSC_VER 182 183 extern int dup2 (); 183 184 extern int execve (); 184 185 extern void _exit (); 186 # endif 185 187 # ifndef VMS 186 188 extern int geteuid (); … … 574 576 # else 575 577 status = (WAIT_T)completed_child->status; 576 # endif 578 # endif 577 579 } 578 580 else … … 763 765 if (!dontcare) 764 766 #ifdef KMK 765 { 767 { 766 768 child_error (c->file->name, exit_code, exit_sig, coredump, 0); 767 769 if (( c->file->cmds->lines_flags[c->command_line - 1] … … 772 774 #else 773 775 child_error (c->file->name, exit_code, exit_sig, coredump, 0); 774 #endif 776 #endif 775 777 776 778 c->file->update_status = 2; … … 1072 1074 #else 1073 1075 |= flags & COMMANDS_RECURSE; 1074 #endif 1076 #endif 1075 1077 1076 1078 /* Figure out an argument list from this command line. */ … … 1540 1542 if (c->file->command_flags & COMMANDS_NOTPARALLEL) 1541 1543 { 1542 DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s') [start_waiting_job]\n"), 1544 DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s') [start_waiting_job]\n"), 1543 1545 not_parallel, not_parallel + 1, c->file, c->file->name)); 1544 1546 assert(not_parallel >= 0); … … 1549 1551 /* If we are running at least one job already and the load average 1550 1552 is too high, make this one wait. */ 1551 if (!c->remote 1553 if (!c->remote 1552 1554 #ifdef CONFIG_WITH_EXTENDED_NOTPARALLEL 1553 1555 && ((job_slots_used > 0 && (not_parallel > 0 || load_too_high ())) … … 1888 1890 else if (not_parallel > 0) 1889 1891 { 1890 /* wait for all live children to finish and then continue 1892 /* wait for all live children to finish and then continue 1891 1893 with the not-parallel child(s). FIXME: this loop could be better? */ 1892 1894 while (file->command_state == cs_running … … 2048 2050 #ifdef CONFIG_WITH_EXTENDED_NOTPARALLEL 2049 2051 /* If it's a not-parallel job, we've already counted it once 2050 when it was queued in start_waiting_job, so decrement 2052 when it was queued in start_waiting_job, so decrement 2051 2053 before sending it to start_waiting_job again. */ 2052 2054 if (job->file->command_flags & COMMANDS_NOTPARALLEL) 2053 2055 { 2054 DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s') [start_waiting_jobs]\n"), 2056 DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s') [start_waiting_jobs]\n"), 2055 2057 not_parallel, not_parallel - 1, job->file, job->file->name)); 2056 2058 assert(not_parallel > 0); … … 2926 2928 #ifdef KMK /* see test in Makefile.kmk, required on windows. */ 2927 2929 if (!batch_mode_shell) 2928 #endif 2930 #endif 2929 2931 *(ap++) = '\\'; 2930 2932 *(ap++) = '\n'; … … 3231 3233 3232 3234 #ifdef CONFIG_WITH_KMK_BUILTIN 3233 /* If it's a kmk_builtin command, make sure we're treated like a 3235 /* If it's a kmk_builtin command, make sure we're treated like a 3234 3236 unix shell and and don't get batch files. */ 3235 if ( ( !unixy_shell 3237 if ( ( !unixy_shell 3236 3238 || batch_mode_shell 3237 3239 # ifdef WINDOWS32 3238 3240 || no_default_sh_exe 3239 # endif 3241 # endif 3240 3242 ) 3241 3243 && !strncmp(line, "kmk_builtin_", sizeof("kmk_builtin_") - 1)) … … 3246 3248 int saved_no_default_sh_exe = no_default_sh_exe; 3247 3249 no_default_sh_exe = 0; 3248 # endif 3250 # endif 3249 3251 unixy_shell = 1; 3250 3252 batch_mode_shell = 0; -
trunk/src/gmake/kmkbuiltin.c
r785 r803 35 35 #include "kmkbuiltin.h" 36 36 37 #ifndef _MSC_VER 37 38 extern char **environ; 39 #endif 38 40 39 41 int kmk_builtin_command(const char *pszCmd) -
trunk/src/gmake/main.c
r783 r803 72 72 #endif 73 73 74 #if ndef HAVE_UNISTD_H74 #if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) 75 75 extern int chdir (); 76 76 #endif … … 1005 1005 #endif 1006 1006 1007 #ifndef _MSC_VER 1007 1008 extern char *mktemp PARAMS ((char *template)); 1009 #endif 1008 1010 extern int mkstemp PARAMS ((char *template)); 1009 1011 -
trunk/src/gmake/make.h
r591 r803 494 494 495 495 #ifdef HAVE_GETCWD 496 # if !defined(VMS) && !defined(__DECC) 496 # if !defined(VMS) && !defined(__DECC) && !defined(_MSC_VER) 497 497 extern char *getcwd (); 498 498 # endif … … 505 505 extern const struct floc **expanding_var; 506 506 507 #if !defined(_MSC_VER) 507 508 extern char **environ; 509 #endif 508 510 509 511 extern int just_print_flag, silent_flag, ignore_errors_flag, keep_going_flag;
Note:
See TracChangeset
for help on using the changeset viewer.