| | 961 | | | | | 962 | | | | $input_178556 >= ( 8 * bytes_after(&$heap_291245) - 31 ) / 32 | 963 | | (void)open("/dev/null", O_RDONLY, 0); | Problem | | $input_178556 >= ( 8 * bytes_after(&$heap_291245) - 31 ) / 32 |
| | $input_178700 >= ( 8 * bytes_after(&$heap_291446) - 31 ) / 32 | 964 | | (void)open("/dev/null", O_RDONLY, 0); | Problem | | $input_178700 >= ( 8 * bytes_after(&$heap_291446) - 31 ) / 32 |
| | $input_178844 >= ( 8 * bytes_after(&$heap_291641) - 31 ) / 32 | 965 | | (void)open("/dev/null", O_RDONLY, 0); | Problem | | $input_178844 >= ( 8 * bytes_after(&$heap_291641) - 31 ) / 32 |
| | | 966 | | #else | | | 967 | | | | | 968 | | | | | 969 | | | | | 970 | | if (WSAStartup(0x0101, &WSAData) != 0) { | | | 971 | | printf("\nWSAStartup() failed\n"); | | | 972 | | ExitProcess(1); | | | 973 | | } | | | 974 | | setsockopt(INVALID_SOCKET,SOL_SOCKET,SO_OPENTYPE, | | | 975 | | (char *)&nAlert,sizeof(int)); | | | 976 | | osinfo=malloc(sizeof(OSVERSIONINFO)); | | | 977 | | osinfo->dwOSVersionInfoSize = sizeof(OSVERSIONINFO); | | | 978 | | GetVersionEx(osinfo); | | | 979 | | os_is_NT= ( osinfo->dwPlatformId == VER_PLATFORM_WIN32_NT); | | | 980 | | #endif | | | 981 | | | | | 982 | | { | | | 983 | | char *p; | | $input_178988 >= ( 8 * bytes_after(&$heap_291833) - 31 ) / 32 | 984 | | if (p = getenv("PVMDDEBUG")) | Problem | | $input_178988 >= ( 8 * bytes_after(&$heap_291833) - 31 ) / 32 |
| | | 985 | | pvmdebmask = pvmstrtoi(p); | | | 986 | | } | | | 987 | | | | | 988 | | #ifndef WIN32 | | $input_179108 >= ( 8 * bytes_after(&$heap_291993) - 31 ) / 32 | 989 | | if ((pvm_useruid = getuid()) == -1) { | Problem | | $input_179108 >= ( 8 * bytes_after(&$heap_291993) - 31 ) / 32 |
| | | 990 | | pvmlogerror("main() can't getuid()\n"); | | | 991 | | pvmbailout(0); | | | 992 | | } |
| $input_181868 >= ( 8 * bytes_after(&$heap_295527) - 31 ) / 32 | 368 | | | | | | vpvmlogprintf(fmt, ap) | Problem | | $input_181868 >= ( 8 * bytes_after(&$heap_295527) - 31 ) / 32 |
| | | 369 | | | | | | char *fmt; | | | 370 | | | | | | va_list ap; | | | 371 | | | | | | { | | | 372 | | | | | | char vtmp[1024]; | | | 373 | | | | | | char *truncated; | | $input_181892 >= ( 8 * bytes_after(&$heap_295557) - 31 ) / 32 | 374 | | | | | | int cnt = 0; | Problem | | $input_181892 >= ( 8 * bytes_after(&$heap_295557) - 31 ) / 32 |
| | | 375 | | | | | | int cc; | | | 376 | | | | | | | | | 377 | | | | | | #ifdef TIMESTAMPLOG | | | 378 | | | | | | time_t now; | | | 379 | | | | | | struct tm *tmp; | | | 380 | | | | | | | | $input_181916 >= ( 8 * bytes_after(&$heap_295587) - 31 ) / 32 | 381 | | | | | | time(&now); | Problem | | $input_181916 >= ( 8 * bytes_after(&$heap_295587) - 31 ) / 32 |
| | $input_181964 >= ( 8 * bytes_after(&$heap_295647) - 31 ) / 32 | 382 | | | | | | tmp = localtime(&now); | Problem | | $input_181964 >= ( 8 * bytes_after(&$heap_295647) - 31 ) / 32 |
| | | 383 | | | | | | #endif | | | 384 | | | | | | | | | 385 | | | | | | | | | 386 | | | | | | | | | 387 | | | | | | | | | 388 | | | | | | | | | 389 | | | | | | | | $input_182060 >= ( 8 * bytes_after(&$heap_295767) - 31 ) / 32 | 390 | | | | | | cc = vsnprintf(vtmp, sizeof(vtmp), fmt, ap); | Problem | | $input_182060 >= ( 8 * bytes_after(&$heap_295767) - 31 ) / 32 |
| | $input_182252 >= ( 8 * bytes_after(&$heap_295977) - 31 ) / 32 | 391 | | | | | | truncated = ( cc >= 0 && cc < sizeof(vtmp) ) | Problem | | $input_182252 >= ( 8 * bytes_after(&$heap_295977) - 31 ) / 32 |
| | $input_182300 >= ( 8 * bytes_after(&$heap_296037) - 31 ) / 32 | 392 | | | | | | ? "" : "[...]\n"; | Problem | | $input_182300 >= ( 8 * bytes_after(&$heap_296037) - 31 ) / 32 |
| | | 393 | | | | | | | | $input_182348 >= ( 8 * bytes_after(&$heap_296097) - 31 ) / 32 | 394 | | | | | | if (log_how & 1) { | Problem | | $input_182348 >= ( 8 * bytes_after(&$heap_296097) - 31 ) / 32 |
| | $input_182372 >= ( 8 * bytes_after(&$heap_296127) - 31 ) / 32 | 395 | | | | | | if (atnewline) { | Problem | | $input_182372 >= ( 8 * bytes_after(&$heap_296127) - 31 ) / 32 |
| | | 396 | | | | | | if (pvmmytid) | | | 397 | | | | | | fprintf(stderr, "[t%x] ", pvmmytid); | | | 398 | | | | | | else | | | 399 | | | | | | fprintf(stderr, "[pvmd pid%d] ", pvmmyupid); | | | 400 | | | | | | | | | 401 | | | | | | #ifdef TIMESTAMPLOG | | | 402 | | | | | | fprintf(stderr, "%02d/%02d %02d:%02d:%02d ", | | | 403 | | | | | | tmp->tm_mon + 1, | | | 404 | | | | | | tmp->tm_mday, | | | 405 | | | | | | tmp->tm_hour, | | | 406 | | | | | | tmp->tm_min, | | | 407 | | | | | | tmp->tm_sec); | | | 408 | | | | | | #endif | | | 409 | | | | | | } | | | 410 | | | | | | | | $input_182396 >= ( 8 * bytes_after(&$heap_296157) - 31 ) / 32 | 411 | | | | | | cc = fprintf(stderr, "%s%s", vtmp, truncated); | Problem | | $input_182396 >= ( 8 * bytes_after(&$heap_296157) - 31 ) / 32 |
| | $input_182564 >= ( 8 * bytes_after(&$heap_296367) - 31 ) / 32 | 412 | | | | | | cnt = ( cc >= 0 ) ? cnt + cc : cc; | Problem | | $input_182564 >= ( 8 * bytes_after(&$heap_296367) - 31 ) / 32 |
| | $input_182636 >= ( 8 * bytes_after(&$heap_296457) - 31 ) / 32 | 413 | | | | | | fflush(stderr); | Problem | | $input_182636 >= ( 8 * bytes_after(&$heap_296457) - 31 ) / 32 |
| | | 414 | | | | | | } | | | 415 | | | | | | | | $input_182684 >= ( 8 * bytes_after(&$heap_296517) - 31 ) / 32 | 416 | | | | | | if (log_how & 2) { | Problem | | $input_182684 >= ( 8 * bytes_after(&$heap_296517) - 31 ) / 32 |
| | $input_182708 >= ( 8 * bytes_after(&$heap_296547) - 31 ) / 32 | 417 | | | | | | if (log_alrdy < pvmdlogmax) { | Problem | | $input_182708 >= ( 8 * bytes_after(&$heap_296547) - 31 ) / 32 |
| | | 418 | | | | | | if (atnewline) { | | | 419 | | | | | | if (pvmmytid) | | | 420 | | | | | | fprintf(log_ff, "[t%x] ", pvmmytid); | | | 421 | | | | | | else | | | 422 | | | | | | fprintf(log_ff, "[pvmd pid%d] ", pvmmyupid); | | | 423 | | | | | | | | | 424 | | | | | | #ifdef TIMESTAMPLOG | | | 425 | | | | | | fprintf(log_ff, "%02d/%02d %02d:%02d:%02d ", | | | 426 | | | | | | tmp->tm_mon + 1, | | | 427 | | | | | | tmp->tm_mday, | | | | | | | | | ... | | | 434 | | | | | | | | | 435 | | | | | | cc = fprintf(log_ff, "%s%s", vtmp, truncated); | | | 436 | | | | | | cnt = ( cnt >= 0 ) ? ( ( cc >= 0 ) ? cnt + cc : cc ) : cnt; | | | 437 | | | | | | fflush(log_ff); | | | 438 | | | | | | | | | 439 | | | | | | if ((log_alrdy += cnt) >= pvmdlogmax) | | | 440 | | | | | | (void)write(log_fd, toomuch, strlen(toomuch)); | | | 441 | | | | | | } | | | 442 | | | | | | } | | | 443 | | | | | | | | $input_182732 >= ( 8 * bytes_after(&$heap_296577) - 31 ) / 32 | 444 | | | | | | atnewline = (fmt[strlen(fmt) - 1] == '\n') ? 1 : 0; | Problem | | $input_182732 >= ( 8 * bytes_after(&$heap_296577) - 31 ) / 32 |
| | | 445 | | | | | | | | | 446 | | | | | | | | | 447 | | | | | | | | | 448 | | | | | | | | | 449 | | | | | | | | | 450 | | | | | | | | | 451 | | | | | | | | $input_182876 >= ( 8 * bytes_after(&$heap_296757) - 31 ) / 32 | 452 | | | | | | return(cnt); | Problem | | $input_182876 >= ( 8 * bytes_after(&$heap_296757) - 31 ) / 32 |
| | $input_182924 >= ( 8 * bytes_after(&$heap_296817) - 31 ) / 32 | 453 | | | | | | } | Problem | | $input_182924 >= ( 8 * bytes_after(&$heap_296817) - 31 ) / 32 |
|
| $input_183260 >= ( 8 * bytes_after(&$heap_297237) - 31 ) / 32 | 368 | | | | | | vpvmlogprintf(fmt, ap) | Problem | | $input_183260 >= ( 8 * bytes_after(&$heap_297237) - 31 ) / 32 |
| | | 369 | | | | | | char *fmt; | | | 370 | | | | | | va_list ap; | | | 371 | | | | | | { | | | 372 | | | | | | char vtmp[1024]; | | | 373 | | | | | | char *truncated; | | $input_183284 >= ( 8 * bytes_after(&$heap_297267) - 31 ) / 32 | 374 | | | | | | int cnt = 0; | Problem | | $input_183284 >= ( 8 * bytes_after(&$heap_297267) - 31 ) / 32 |
| | | 375 | | | | | | int cc; | | | 376 | | | | | | | | | 377 | | | | | | #ifdef TIMESTAMPLOG | | | 378 | | | | | | time_t now; | | | 379 | | | | | | struct tm *tmp; | | | 380 | | | | | | | | $input_183308 >= ( 8 * bytes_after(&$heap_297297) - 31 ) / 32 | 381 | | | | | | time(&now); | Problem | | $input_183308 >= ( 8 * bytes_after(&$heap_297297) - 31 ) / 32 |
| | $input_183356 >= ( 8 * bytes_after(&$heap_297357) - 31 ) / 32 | 382 | | | | | | tmp = localtime(&now); | Problem | | $input_183356 >= ( 8 * bytes_after(&$heap_297357) - 31 ) / 32 |
| | | 383 | | | | | | #endif | | | 384 | | | | | | | | | 385 | | | | | | | | | 386 | | | | | | | | | 387 | | | | | | | | | 388 | | | | | | | | | 389 | | | | | | | | $input_183452 >= ( 8 * bytes_after(&$heap_297477) - 31 ) / 32 | 390 | | | | | | cc = vsnprintf(vtmp, sizeof(vtmp), fmt, ap); | Problem | | $input_183452 >= ( 8 * bytes_after(&$heap_297477) - 31 ) / 32 |
| | $input_183636 >= ( 8 * bytes_after(&$heap_297687) - 31 ) / 32 | 391 | | | | | | truncated = ( cc >= 0 && cc < sizeof(vtmp) ) | Problem | | $input_183636 >= ( 8 * bytes_after(&$heap_297687) - 31 ) / 32 |
| | $input_183684 >= ( 8 * bytes_after(&$heap_297747) - 31 ) / 32 | 392 | | | | | | ? "" : "[...]\n"; | Problem | | $input_183684 >= ( 8 * bytes_after(&$heap_297747) - 31 ) / 32 |
| | | 393 | | | | | | | | $input_183732 >= ( 8 * bytes_after(&$heap_297807) - 31 ) / 32 | 394 | | | | | | if (log_how & 1) { | Problem | | $input_183732 >= ( 8 * bytes_after(&$heap_297807) - 31 ) / 32 |
| | $input_183756 >= ( 8 * bytes_after(&$heap_297837) - 31 ) / 32 | 395 | | | | | | if (atnewline) { | Problem | | $input_183756 >= ( 8 * bytes_after(&$heap_297837) - 31 ) / 32 |
| | $input_183780 >= ( 8 * bytes_after(&$heap_297867) - 31 ) / 32 | 396 | | | | | | if (pvmmytid) | Problem | | $input_183780 >= ( 8 * bytes_after(&$heap_297867) - 31 ) / 32 |
| | $input_183804 >= ( 8 * bytes_after(&$heap_297897) - 31 ) / 32 | 397 | | | | | | fprintf(stderr, "[t%x] ", pvmmytid); | Problem | | $input_183804 >= ( 8 * bytes_after(&$heap_297897) - 31 ) / 32 |
| | | 398 | | | | | | else | | | 399 | | | | | | fprintf(stderr, "[pvmd pid%d] ", pvmmyupid); | | | 400 | | | | | | | | | 401 | | | | | | #ifdef TIMESTAMPLOG | | $input_184020 >= ( 8 * bytes_after(&$heap_298167) - 31 ) / 32 | 402 | | | | | | fprintf(stderr, "%02d/%02d %02d:%02d:%02d ", | Problem | | $input_184020 >= ( 8 * bytes_after(&$heap_298167) - 31 ) / 32 |
| | $input_183996 >= ( 8 * bytes_after(&$heap_298137) - 31 ) / 32 | 403 | | | | | | tmp->tm_mon + 1, | Problem | | $input_183996 >= ( 8 * bytes_after(&$heap_298137) - 31 ) / 32 |
| | $input_183972 >= ( 8 * bytes_after(&$heap_298107) - 31 ) / 32 | 404 | | | | | | tmp->tm_mday, | Problem | | $input_183972 >= ( 8 * bytes_after(&$heap_298107) - 31 ) / 32 |
| | $input_183948 >= ( 8 * bytes_after(&$heap_298077) - 31 ) / 32 | 405 | | | | | | tmp->tm_hour, | Problem | | $input_183948 >= ( 8 * bytes_after(&$heap_298077) - 31 ) / 32 |
| | $input_183924 >= ( 8 * bytes_after(&$heap_298047) - 31 ) / 32 | 406 | | | | | | tmp->tm_min, | Problem | | $input_183924 >= ( 8 * bytes_after(&$heap_298047) - 31 ) / 32 |
| | $input_183900 >= ( 8 * bytes_after(&$heap_298017) - 31 ) / 32 | 407 | | | | | | tmp->tm_sec); | Problem | | $input_183900 >= ( 8 * bytes_after(&$heap_298017) - 31 ) / 32 |
| | | 408 | | | | | | #endif | | | 409 | | | | | | } | | | 410 | | | | | | | | $input_184092 >= ( 8 * bytes_after(&$heap_298257) - 31 ) / 32 | 411 | | | | | | cc = fprintf(stderr, "%s%s", vtmp, truncated); | Problem | | $input_184092 >= ( 8 * bytes_after(&$heap_298257) - 31 ) / 32 |
| | $input_184260 >= ( 8 * bytes_after(&$heap_298467) - 31 ) / 32 | 412 | | | | | | cnt = ( cc >= 0 ) ? cnt + cc : cc; | Problem | | $input_184260 >= ( 8 * bytes_after(&$heap_298467) - 31 ) / 32 |
| | $input_184332 >= ( 8 * bytes_after(&$heap_298557) - 31 ) / 32 | 413 | | | | | | fflush(stderr); | Problem | | $input_184332 >= ( 8 * bytes_after(&$heap_298557) - 31 ) / 32 |
| | | 414 | | | | | | } | | | 415 | | | | | | | | $input_184380 >= ( 8 * bytes_after(&$heap_298617) - 31 ) / 32 | 416 | | | | | | if (log_how & 2) { | Problem | | $input_184380 >= ( 8 * bytes_after(&$heap_298617) - 31 ) / 32 |
| | $input_184404 >= ( 8 * bytes_after(&$heap_298647) - 31 ) / 32 | 417 | | | | | | if (log_alrdy < pvmdlogmax) { | Problem | | $input_184404 >= ( 8 * bytes_after(&$heap_298647) - 31 ) / 32 |
| | | 418 | | | | | | if (atnewline) { | | | 419 | | | | | | if (pvmmytid) | | | 420 | | | | | | fprintf(log_ff, "[t%x] ", pvmmytid); | | | 421 | | | | | | else | | | 422 | | | | | | fprintf(log_ff, "[pvmd pid%d] ", pvmmyupid); | | | 423 | | | | | | | | | 424 | | | | | | #ifdef TIMESTAMPLOG | | | 425 | | | | | | fprintf(log_ff, "%02d/%02d %02d:%02d:%02d ", | | | 426 | | | | | | tmp->tm_mon + 1, | | | 427 | | | | | | tmp->tm_mday, | | | | | | | | | ... | | | 434 | | | | | | | | | 435 | | | | | | cc = fprintf(log_ff, "%s%s", vtmp, truncated); | | | 436 | | | | | | cnt = ( cnt >= 0 ) ? ( ( cc >= 0 ) ? cnt + cc : cc ) : cnt; | | | 437 | | | | | | fflush(log_ff); | | | 438 | | | | | | | | | 439 | | | | | | if ((log_alrdy += cnt) >= pvmdlogmax) | | | 440 | | | | | | (void)write(log_fd, toomuch, strlen(toomuch)); | | | 441 | | | | | | } | | | 442 | | | | | | } | | | 443 | | | | | | | | $input_184428 >= ( 8 * bytes_after(&$heap_298677) - 31 ) / 32 | 444 | | | | | | atnewline = (fmt[strlen(fmt) - 1] == '\n') ? 1 : 0; | Problem | | $input_184428 >= ( 8 * bytes_after(&$heap_298677) - 31 ) / 32 |
| | | 445 | | | | | | | | | 446 | | | | | | | | | 447 | | | | | | | | | 448 | | | | | | | | | 449 | | | | | | | | | 450 | | | | | | | | | 451 | | | | | | | | $input_184572 >= ( 8 * bytes_after(&$heap_298857) - 31 ) / 32 | 452 | | | | | | return(cnt); | Problem | | $input_184572 >= ( 8 * bytes_after(&$heap_298857) - 31 ) / 32 |
| | $input_184620 >= ( 8 * bytes_after(&$heap_298917) - 31 ) / 32 | 453 | | | | | | } | Problem | | $input_184620 >= ( 8 * bytes_after(&$heap_298917) - 31 ) / 32 |
|
| $input_185364 >= ( 8 * bytes_after(&$heap_299847) - 31 ) / 32 | 368 | | | | | | vpvmlogprintf(fmt, ap) | Problem | | $input_185364 >= ( 8 * bytes_after(&$heap_299847) - 31 ) / 32 |
| | | 369 | | | | | | char *fmt; | | | 370 | | | | | | va_list ap; | | | 371 | | | | | | { | | | 372 | | | | | | char vtmp[1024]; | | | 373 | | | | | | char *truncated; | | $input_185388 >= ( 8 * bytes_after(&$heap_299877) - 31 ) / 32 | 374 | | | | | | int cnt = 0; | Problem | | $input_185388 >= ( 8 * bytes_after(&$heap_299877) - 31 ) / 32 |
| | | 375 | | | | | | int cc; | | | 376 | | | | | | | | | 377 | | | | | | #ifdef TIMESTAMPLOG | | | 378 | | | | | | time_t now; | | | 379 | | | | | | struct tm *tmp; | | | 380 | | | | | | | | $input_185412 >= ( 8 * bytes_after(&$heap_299907) - 31 ) / 32 | 381 | | | | | | time(&now); | Problem | | $input_185412 >= ( 8 * bytes_after(&$heap_299907) - 31 ) / 32 |
| | $input_185460 >= ( 8 * bytes_after(&$heap_299967) - 31 ) / 32 | 382 | | | | | | tmp = localtime(&now); | Problem | | $input_185460 >= ( 8 * bytes_after(&$heap_299967) - 31 ) / 32 |
| | | 383 | | | | | | #endif | | | 384 | | | | | | | | | 385 | | | | | | | | | 386 | | | | | | | | | 387 | | | | | | | | | 388 | | | | | | | | | 389 | | | | | | | | $input_185556 >= ( 8 * bytes_after(&$heap_300087) - 31 ) / 32 | 390 | | | | | | cc = vsnprintf(vtmp, sizeof(vtmp), fmt, ap); | Problem | | $input_185556 >= ( 8 * bytes_after(&$heap_300087) - 31 ) / 32 |
| | $input_185732 >= ( 8 * bytes_after(&$heap_300297) - 31 ) / 32 | 391 | | | | | | truncated = ( cc >= 0 && cc < sizeof(vtmp) ) | Problem | | $input_185732 >= ( 8 * bytes_after(&$heap_300297) - 31 ) / 32 |
| | $input_185780 >= ( 8 * bytes_after(&$heap_300357) - 31 ) / 32 | 392 | | | | | | ? "" : "[...]\n"; | Problem | | $input_185780 >= ( 8 * bytes_after(&$heap_300357) - 31 ) / 32 |
| | | 393 | | | | | | | | $input_185828 >= ( 8 * bytes_after(&$heap_300417) - 31 ) / 32 | 394 | | | | | | if (log_how & 1) { | Problem | | $input_185828 >= ( 8 * bytes_after(&$heap_300417) - 31 ) / 32 |
| | $input_185852 >= ( 8 * bytes_after(&$heap_300447) - 31 ) / 32 | 395 | | | | | | if (atnewline) { | Problem | | $input_185852 >= ( 8 * bytes_after(&$heap_300447) - 31 ) / 32 |
| | $input_185876 >= ( 8 * bytes_after(&$heap_300477) - 31 ) / 32 | 396 | | | | | | if (pvmmytid) | Problem | | $input_185876 >= ( 8 * bytes_after(&$heap_300477) - 31 ) / 32 |
| | $input_185900 >= ( 8 * bytes_after(&$heap_300507) - 31 ) / 32 | 397 | | | | | | fprintf(stderr, "[t%x] ", pvmmytid); | Problem | | $input_185900 >= ( 8 * bytes_after(&$heap_300507) - 31 ) / 32 |
| | | 398 | | | | | | else | | | 399 | | | | | | fprintf(stderr, "[pvmd pid%d] ", pvmmyupid); | | | 400 | | | | | | | | | 401 | | | | | | #ifdef TIMESTAMPLOG | | $input_186116 >= ( 8 * bytes_after(&$heap_300777) - 31 ) / 32 | 402 | | | | | | fprintf(stderr, "%02d/%02d %02d:%02d:%02d ", | Problem | | $input_186116 >= ( 8 * bytes_after(&$heap_300777) - 31 ) / 32 |
| | $input_186092 >= ( 8 * bytes_after(&$heap_300747) - 31 ) / 32 | 403 | | | | | | tmp->tm_mon + 1, | Problem | | $input_186092 >= ( 8 * bytes_after(&$heap_300747) - 31 ) / 32 |
| | $input_186068 >= ( 8 * bytes_after(&$heap_300717) - 31 ) / 32 | 404 | | | | | | tmp->tm_mday, | Problem | | $input_186068 >= ( 8 * bytes_after(&$heap_300717) - 31 ) / 32 |
| | $input_186044 >= ( 8 * bytes_after(&$heap_300687) - 31 ) / 32 | 405 | | | | | | tmp->tm_hour, | Problem | | $input_186044 >= ( 8 * bytes_after(&$heap_300687) - 31 ) / 32 |
| | $input_186020 >= ( 8 * bytes_after(&$heap_300657) - 31 ) / 32 | 406 | | | | | | tmp->tm_min, | Problem | | $input_186020 >= ( 8 * bytes_after(&$heap_300657) - 31 ) / 32 |
| | $input_185996 >= ( 8 * bytes_after(&$heap_300627) - 31 ) / 32 | 407 | | | | | | tmp->tm_sec); | Problem | | $input_185996 >= ( 8 * bytes_after(&$heap_300627) - 31 ) / 32 |
| | | 408 | | | | | | #endif | | | 409 | | | | | | } | | | 410 | | | | | | | | $input_186188 >= ( 8 * bytes_after(&$heap_300867) - 31 ) / 32 | 411 | | | | | | cc = fprintf(stderr, "%s%s", vtmp, truncated); | Problem | | $input_186188 >= ( 8 * bytes_after(&$heap_300867) - 31 ) / 32 |
| | $input_186356 >= ( 8 * bytes_after(&$heap_301077) - 31 ) / 32 | 412 | | | | | | cnt = ( cc >= 0 ) ? cnt + cc : cc; | Problem | | $input_186356 >= ( 8 * bytes_after(&$heap_301077) - 31 ) / 32 |
| | $input_186428 >= ( 8 * bytes_after(&$heap_301167) - 31 ) / 32 | 413 | | | | | | fflush(stderr); | Problem | | $input_186428 >= ( 8 * bytes_after(&$heap_301167) - 31 ) / 32 |
| | | 414 | | | | | | } | | | 415 | | | | | | | | $input_186476 >= ( 8 * bytes_after(&$heap_301227) - 31 ) / 32 | 416 | | | | | | if (log_how & 2) { | Problem | | $input_186476 >= ( 8 * bytes_after(&$heap_301227) - 31 ) / 32 |
| | $input_186500 >= ( 8 * bytes_after(&$heap_301257) - 31 ) / 32 | 417 | | | | | | if (log_alrdy < pvmdlogmax) { | Problem | | $input_186500 >= ( 8 * bytes_after(&$heap_301257) - 31 ) / 32 |
| | | 418 | | | | | | if (atnewline) { | | | 419 | | | | | | if (pvmmytid) | | | 420 | | | | | | fprintf(log_ff, "[t%x] ", pvmmytid); | | | 421 | | | | | | else | | | 422 | | | | | | fprintf(log_ff, "[pvmd pid%d] ", pvmmyupid); | | | 423 | | | | | | | | | 424 | | | | | | #ifdef TIMESTAMPLOG | | | 425 | | | | | | fprintf(log_ff, "%02d/%02d %02d:%02d:%02d ", | | | 426 | | | | | | tmp->tm_mon + 1, | | | 427 | | | | | | tmp->tm_mday, | | | | | | | | | ... | | | 434 | | | | | | | | | 435 | | | | | | cc = fprintf(log_ff, "%s%s", vtmp, truncated); | | | 436 | | | | | | cnt = ( cnt >= 0 ) ? ( ( cc >= 0 ) ? cnt + cc : cc ) : cnt; | | | 437 | | | | | | fflush(log_ff); | | | 438 | | | | | | | | | 439 | | | | | | if ((log_alrdy += cnt) >= pvmdlogmax) | | | 440 | | | | | | (void)write(log_fd, toomuch, strlen(toomuch)); | | | 441 | | | | | | } | | | 442 | | | | | | } | | | 443 | | | | | | | | $input_186524 >= ( 8 * bytes_after(&$heap_301287) - 31 ) / 32 | 444 | | | | | | atnewline = (fmt[strlen(fmt) - 1] == '\n') ? 1 : 0; | Problem | | $input_186524 >= ( 8 * bytes_after(&$heap_301287) - 31 ) / 32 |
| | | 445 | | | | | | | | | 446 | | | | | | | | | 447 | | | | | | | | | 448 | | | | | | | | | 449 | | | | | | | | | 450 | | | | | | | | | 451 | | | | | | | | $input_186668 >= ( 8 * bytes_after(&$heap_301467) - 31 ) / 32 | 452 | | | | | | return(cnt); | Problem | | $input_186668 >= ( 8 * bytes_after(&$heap_301467) - 31 ) / 32 |
| | $input_186716 >= ( 8 * bytes_after(&$heap_301527) - 31 ) / 32 | 453 | | | | | | } | Problem | | $input_186716 >= ( 8 * bytes_after(&$heap_301527) - 31 ) / 32 |
|
| $unknown_10096383 >= ( $unknown_10096385 - 31 ) / 32 | 5501 | | | | hosts->ht_serial = 1; | Problem | | $unknown_10096383 >= ( $unknown_10096385 - 31 ) / 32 |
| | $unknown_10096421 >= ( $unknown_10096423 - 31 ) / 32 | 5502 | | | | hosts->ht_master = mh; | Problem | | $unknown_10096421 >= ( $unknown_10096423 - 31 ) / 32 |
| | $unknown_10096459 >= ( $unknown_10096461 - 31 ) / 32 | 5503 | | | | hosts->ht_cons = mh; | Problem | | $unknown_10096459 >= ( $unknown_10096461 - 31 ) / 32 |
| | $unknown_10096497 >= ( $unknown_10096499 - 31 ) / 32 | 5504 | | | | hosts->ht_local = lh; | Problem | | $unknown_10096497 >= ( $unknown_10096499 - 31 ) / 32 |
| | | 5505 | | | | | | hosts->ht_local >= ( $unknown_10096537 - 31 ) / 32 | 5506 | | | | hp = hd_new(mh); | Problem | | hosts->ht_local >= ( $unknown_10096537 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10096679 - 31 ) / 32 | 5507 | | | | hp->hd_name = STRALLOC("?"); | Problem | | hosts->ht_local >= ( $unknown_10096679 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10097183 - 31 ) / 32 | 5508 | | | | hex_inadport(argv[2], &hp->hd_sad); | Problem | | hosts->ht_local >= ( $unknown_10097183 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10097287 - 31 ) / 32 | 5509 | | | | hp->hd_mtu = atoi(argv[3]); | Problem | | hosts->ht_local >= ( $unknown_10097287 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10097429 - 31 ) / 32 | 5510 | | | | ht_insert(hosts, hp); | Problem | | hosts->ht_local >= ( $unknown_10097429 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10097533 - 31 ) / 32 | 5511 | | | | hd_unref(hp); | Problem | | hosts->ht_local >= ( $unknown_10097533 - 31 ) / 32 |
| | | 5512 | | | | | | hosts->ht_local >= ( $unknown_10097601 - 31 ) / 32 | 5513 | | | | hp = hd_new(0); | Problem | | hosts->ht_local >= ( $unknown_10097601 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10097739 - 31 ) / 32 | 5514 | | | | hp->hd_name = STRALLOC("pvmd'"); | Problem | | hosts->ht_local >= ( $unknown_10097739 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10098211 - 31 ) / 32 | 5515 | | | | hp->hd_arch = STRALLOC(myarchname); | Problem | | hosts->ht_local >= ( $unknown_10098211 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10098681 - 31 ) / 32 | 5516 | | | | hp->hd_mtu = pvmudpmtu; | Problem | | hosts->ht_local >= ( $unknown_10098681 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10098715 - 31 ) / 32 | 5517 | | | | hp->hd_dsig = pvmmydsig; | Problem | | hosts->ht_local >= ( $unknown_10098715 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10098751 - 31 ) / 32 | 5518 | | | | hex_inadport(argv[5], &hp->hd_sad); | Problem | | hosts->ht_local >= ( $unknown_10098751 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10098851 - 31 ) / 32 | 5519 | | | | ht_insert(hosts, hp); | Problem | | hosts->ht_local >= ( $unknown_10098851 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10098949 - 31 ) / 32 | 5520 | | | | hd_unref(hp); | Problem | | hosts->ht_local >= ( $unknown_10098949 - 31 ) / 32 |
| | | 5521 | | | | | | hosts->ht_local >= ( $unknown_10099017 - 31 ) / 32 | 5522 | | | | hp = hd_new(lh); | Problem | | hosts->ht_local >= ( $unknown_10099017 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10099153 - 31 ) / 32 | 5523 | | | | hp->hd_name = STRALLOC(hn); | Problem | | hosts->ht_local >= ( $unknown_10099153 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10099625 - 31 ) / 32 | 5524 | | | | hp->hd_arch = STRALLOC(myarchname); | Problem | | hosts->ht_local >= ( $unknown_10099625 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10100097 - 31 ) / 32 | 5525 | | | | hp->hd_mtu = pvmudpmtu; | Problem | | hosts->ht_local >= ( $unknown_10100097 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10100131 - 31 ) / 32 | 5526 | | | | hp->hd_dsig = pvmmydsig; | Problem | | hosts->ht_local >= ( $unknown_10100131 - 31 ) / 32 |
| | hosts->ht_local >= ( $unknown_10100165 - 31 ) / 32 | 5527 | | | | hex_inadport(argv[5], &hp->hd_sad); | Problem | | hosts->ht_local >= ( $unknown_10100165 - 31 ) / 32 |
| | | 5528 | | | | ht_insert(hosts, hp); | | | 5529 | | | | hd_unref(hp); | | | 5530 | | | | | | | 5531 | | | | if (i = mksocs()) { | | | 5532 | | | | if (i == 2) { | | | 5533 | | | | printf("PvmDupHost\n"); | | | 5534 | | | | fflush(stdout); | | | 5535 | | | | } | | | 5536 | | | | pvmbailout(0); | | | 5537 | | | | } | | | 5538 | | | | | | | 5539 | | | | printf("ddpro<%d> arch<%s> ip<%s> mtu<%d> dsig<%d>\n", | | | 5540 | | | | DDPROTOCOL,
| | | 5541 | | | | myarchname, | | | 5542 | | | | inadport_hex(&hp->hd_sad), | | | 5543 | | | | pvmudpmtu, | | | 5544 | | | | pvmmydsig); | | | 5545 | | | | fflush(stdout); | | | 5546 | | | | | | | 5547 | | | | #ifndef WIN32 | | | 5548 | | | | | | | 5549 | | | | #if !defined(IMA_OS2) && !defined(CYGWIN) | | | 5550 | | | | if (!ms) | | | 5551 | | | | (void)read(0, (char*)&i, 1); | | | 5552 | | | | #endif | | | 5553 | | | | | | | 5554 | | | | if (dof) { | | | 5555 | | | | if (i = fork()) { | | | 5556 | | | | if (i == -1) | | | 5557 | | | | pvmlogperror("slave_config() fork"); | | | 5558 | | | | exit(0); | | | 5559 | | | | } | | | 5560 | | | | | | | 5561 | | | | | | | 5562 | | | | | | | 5563 | | | | for (i = getdtablesize(); --i >= 0; ) | | | 5564 | | | | | | | 5565 | | | | if (i != netsock && i != loclsock && i != log_fd) | | | 5566 | | | | (void)close(i); | | | 5567 | | | | } | | | 5568 | | | | | | | 5569 | | | | | | | 5570 | | | | | | | 5571 | | | | (void)open("/dev/null", O_RDONLY, 0);
| | | 5572 | | | | (void)open("/dev/null", O_WRONLY, 0);
| | | 5573 | | | | (void)dup2(1, 2); | | | 5574 | | | | | | | 5575 | | | | #endif | | | 5576 | | | | | | | 5577 | | | | pvmsetlog(2); | | | 5578 | | | | | | | 5579 | | | | if ((p = getenv("PVM_PATH"))) | | | 5580 | | | | s = STRALLOC(p);
| | | 5581 | | | | else | | | 5582 | | | | s = STRALLOC(DEFBINDIR);
| | | 5583 | | | | epaths = colonsep(varsub(s)); | | | 5584 | | | | PVM_FREE(s);
| | | 5585 | | | | | | | 5586 | | | | s = STRALLOC(DEFDEBUGGER);
| | | 5587 | | | | debugger = varsub(s); | | | 5588 | | | | PVM_FREE(s);
| | | 5589 | | | | | | | 5590 | | | | if ((s = getenv("PVM_WD"))) | | | 5591 | | | | p = STRALLOC(s);
| | | 5592 | | | | else | | | 5593 | | | | p = STRALLOC(pvmgethome());
| | | 5594 | | | | s = varsub(p); | | | 5595 | | | | if (chdir(s) == -1) | | | 5596 | | | | pvmlogperror(s); | | | 5597 | | | | PVM_FREE(p);
| | | 5598 | | | | PVM_FREE(s);
| | | 5599 | | | | | | | 5600 | | | | runstate = PVMDSTARTUP;
| | | 5601 | | | | | | | 5602 | | | | return 0; | | hosts->ht_local >= ( 8 * bytes_after(hosts->ht_hosts) - 31 ) / 32 | 5603 | | | | } | Problem | | hosts->ht_local >= ( 8 * bytes_after(hosts->ht_hosts) - 31 ) / 32 |
|
| | 1123 | | | | | 1124 | | else | | | 1125 | | master_config(name, argc, argv); | | | 1126 | | | | | 1127 | | #if TTYDIS & 8
| | | 1128 | | setsid(); | | | 1129 | | #endif | | | 1130 | | #if TTYDIS & 4
| | | 1131 | | setpgid(0, 0); | | | 1132 | | #endif | | | 1133 | | #if TTYDIS & 2
| | | 1134 | | setpgrp(0, 0); | | | 1135 | | #endif | | | 1136 | | #if TTYDIS & 1
| | | 1137 | | if ((i = open("/dev/tty", O_RDWR, 0)) != -1) { | | | 1138 | | (void)ioctl(i, TIOCNOTTY, 0); | | | 1139 | | (void)close(i); | | | 1140 | | } | | | 1141 | | #endif | | | 1142 | | | | | 1143 | | myhostpart = hosts->ht_local << (ffs(tidhmask) - 1); | | | 1144 | | pvmmytid = myhostpart | TIDPVMD;
| | | 1145 | | | | | 1146 | | ndead = 1000; | | | 1147 | | | | | 1148 | | | | | 1149 | | | | | 1150 | | deads = TALLOC(ndead, struct deaddata, "dead");
| | | 1151 | | BZERO((char*)deads, ndead * sizeof(struct deaddata));
| | | 1152 | | | | | 1153 | | #ifndef WIN32 | | | 1154 | | | | | 1155 | | | | | 1156 | | #ifndef IMA_I860 | | | 1157 | | #ifdef SYSVSIGNAL | | | 1158 | | #ifndef IMA_BEOSCYLD | | | 1159 | | (void)signal(SIGCLD, reap);
| | | 1160 | | #endif | | | 1161 | | #ifdef IMA_SUNMP | | | 1162 | | sigset(SIGCLD, reap); | | | 1163 | | #endif | | | 1164 | | #else | | | 1165 | | (void)signal(SIGCHLD, reap); | | | 1166 | | #endif | | | 1167 | | #endif | | | 1168 | | | | | 1169 | | #endif | | | 1170 | | | | | 1171 | | if (signal(SIGINT, SIG_IGN) != SIG_IGN)
| | | 1172 | | #ifdef WIN32 | | | 1173 | | (void)signal(SIGINT, (void*) catch); | | | 1174 | | #else | | | 1175 | | (void)signal(SIGINT, catch);
| | | 1176 | | #endif | | | 1177 | | | | | 1178 | | if (signal(SIGTERM, SIG_IGN) != SIG_IGN)
| | | 1179 | | #ifdef WIN32 | | | 1180 | | (void)signal(SIGTERM, (void *) catch); | | | 1181 | | #else | | | 1182 | | (void)signal(SIGTERM, catch);
| | | 1183 | | #endif | | | 1184 | | | | | 1185 | | #ifndef WIN32 | | | 1186 | | (void)signal(SIGHUP, SIG_IGN);
| | | 1187 | | (void)signal(SIGPIPE, SIG_IGN);
| | | 1188 | | #endif | | | 1189 | | | | | 1190 | | #ifndef WIN32 | | | 1191 | | (void)signal(SIGFPE, evilsig);
| | | 1192 | | (void)signal(SIGILL, evilsig);
| | | 1193 | | #else | | | 1194 | | (void)signal(SIGFPE, (void *)evilsig); | | | 1195 | | (void)signal(SIGILL, (void *)evilsig); | | | 1196 | | #endif | | | 1197 | | | | | 1198 | | #ifdef SIGBUS
| | | 1199 | | (void)signal(SIGBUS, evilsig);
| | | 1200 | | #endif | | | 1201 | | | | | 1202 | | #ifndef WIN32 | | | 1203 | | (void)signal(SIGSEGV, evilsig);
| | | 1204 | | #else | | | 1205 | | (void)signal(SIGSEGV, (void *)evilsig); | | | 1206 | | #endif | | | 1207 | | | | | 1208 | | #ifdef SIGSYS
| | | 1209 | | (void)signal(SIGSYS, evilsig);
| | | 1210 | | #endif | | | 1211 | | | | | 1212 | | #ifdef SIGDANGER | | | 1213 | | (void)signal(SIGDANGER, biteme); | | | 1214 | | #endif | | | 1215 | | | | | 1216 | | #ifdef STATISTICS | | | 1217 | | reset_statistics(); | | | 1218 | | #endif | | | 1219 | | | | | 1220 | | task_init(); | | | 1221 | | wait_init(myhostpart, TIDLOCAL);
| | | 1222 | | mb_init(); | | | 1223 | | ppi_init(); | | | 1224 | | | | | 1225 | | opq = pk_new(0); | | | 1226 | | opq->pk_tlink = opq->pk_trlink = opq; | | | 1227 | | | | | 1228 | | | | | 1229 | | | | | 1230 | | if (!slavemode) { | | | 1231 | | printf("%s\n", getenv("PVMSOCK")); | | | 1232 | | fflush(stdout); | | | 1233 | | } | | | 1234 | | | | | 1235 | | | | | 1236 | | | | | 1237 | | if (!slavemode && filehosts) { | | | 1238 | | struct hostd *hp; | | | 1239 | | int hh; | | | 1240 | | int n = 0; | | | 1241 | | | | | 1242 | | for (hh = filehosts->ht_last; hh >= 1; hh--) | | | 1243 | | if ((hp = filehosts->ht_hosts[hh]) && !(hp->hd_flag & HF_NOSTART))
| | | 1244 | | n++; | | | 1245 | | if (n) { | | | 1246 | | addmesg = mesg_new(0); | | | 1247 | | addmesg->m_tag = DM_ADD;
| | | 1248 | | pkint(addmesg, n); | | | 1249 | | for (hh = 1; hh <= filehosts->ht_last; hh++) | | | 1250 | | if ((hp = filehosts->ht_hosts[hh]) && !(hp->hd_flag & HF_NOSTART))
| | | 1251 | | pkstr(addmesg, hp->hd_name); | | | 1252 | | addmesg->m_dst = TIDPVMD;
| | | 1253 | | } | | | 1254 | | } | | | 1255 | | |
|