Print this page
make: unifdef SUN5_0 (defined)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/bin/misc.cc
          +++ new/usr/src/cmd/make/bin/misc.cc
↓ open down ↓ 156 lines elided ↑ open up ↑
 157  157          (void) vfprintf(stderr, message, args);
 158  158          (void) fprintf(stderr, "\n");
 159  159          va_end(args);
 160  160          if (report_pwd) {
 161  161                  (void) fprintf(stderr,
 162  162                                 catgets(catd, 1, 156, "Current working directory %s\n"),
 163  163                                 get_current_path());
 164  164          }
 165  165          (void) fflush(stderr);
 166  166          if (fatal_in_progress) {
 167      -#if defined(SUN5_0) || defined(HP_UX) || defined(linux)
 168  167                  exit_status = 1;
 169      -#endif
 170  168                  exit(1);
 171  169          }
 172  170          fatal_in_progress = true;
 173  171  #ifdef TEAMWARE_MAKE_CMN
 174  172          /* Let all parallel children finish */
 175  173          if ((dmake_mode_type == parallel_mode) &&
 176  174              (parallel_process_cnt > 0)) {
 177  175                  (void) fprintf(stderr,
 178  176                                 catgets(catd, 1, 157, "Waiting for %d %s to finish\n"),
 179  177                                 parallel_process_cnt,
↓ open down ↓ 13 lines elided ↑ open up ↑
 193  191                  await_parallel(true);
 194  192  #endif
 195  193                  finish_children(false);
 196  194          }
 197  195  #endif
 198  196  
 199  197  #if defined (TEAMWARE_MAKE_CMN) && defined (MAXJOBS_ADJUST_RFE4694000)
 200  198          job_adjust_fini();
 201  199  #endif
 202  200  
 203      -#if defined(SUN5_0) || defined(HP_UX) || defined(linux)
 204  201          exit_status = 1;
 205      -#endif
 206  202          exit(1);
 207  203  }
 208  204  
 209  205  /*
 210  206   *      warning(format, args...)
 211  207   *
 212  208   *      Print a message and continue.
 213  209   *
 214  210   *      Parameters:
 215  211   *              format          printf type format string
↓ open down ↓ 67 lines elided ↑ open up ↑
 283  279   *
 284  280   *      Global variables used:
 285  281   */
 286  282  char *
 287  283  get_current_path(void)
 288  284  {
 289  285          char                    pwd[(MAXPATHLEN * MB_LEN_MAX)];
 290  286          static char             *current_path;
 291  287  
 292  288          if (current_path == NULL) {
 293      -#if defined(SUN5_0) || defined(HP_UX) || defined(linux)
 294  289                  getcwd(pwd, sizeof(pwd));
 295      -#else
 296      -                (void) getwd(pwd);
 297      -#endif
 298  290                  if (pwd[0] == (int) nul_char) {
 299  291                          pwd[0] = (int) slash_char;
 300  292                          pwd[1] = (int) nul_char;
 301  293  #ifdef DISTRIBUTED
 302  294                          current_path = strdup(pwd);
 303  295                  } else if (IS_EQUALN(pwd, NOCATGETS("/tmp_mnt"), 8)) {
 304  296                          current_path = strdup(pwd + 8);
 305  297                  } else {
 306  298                          current_path = strdup(pwd);
 307  299                  }
↓ open down ↓ 419 lines elided ↑ open up ↑
 727  719          suffixes_name->special_reader = suffixes_special;
 728  720  
 729  721          /* The value of $$ is $ */
 730  722          (void) SETVAR(dollar, dollar, false);
 731  723          dollar->dollar = false;
 732  724  
 733  725          /* Set the value of $(SHELL) */
 734  726          #ifdef HP_UX
 735  727          MBSTOWCS(wcs_buffer, NOCATGETS("/bin/posix/sh"));
 736  728          #else
 737      -        #if defined(SUN5_0)
 738  729          if (posix) {
 739  730            MBSTOWCS(wcs_buffer, NOCATGETS("/usr/xpg4/bin/sh"));
 740  731          } else {
 741  732            MBSTOWCS(wcs_buffer, NOCATGETS("/bin/sh"));
 742  733          }
 743      -        #else  /* ^SUN5_0 */
 744      -        MBSTOWCS(wcs_buffer, NOCATGETS("/bin/sh"));
 745      -        #endif /* ^SUN5_0 */
 746  734          #endif
 747  735          (void) SETVAR(shell_name, GETNAME(wcs_buffer, FIND_LENGTH), false);
 748  736  
 749  737          /*
 750  738           * Use " FORCE" to simulate a FRC dependency for :: type
 751  739           * targets with no dependencies.
 752  740           */
 753  741          (void) append_prop(force, line_prop);
 754  742          force->stat.time = file_max_time;
 755  743  
↓ open down ↓ 247 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX