| | 2476 | | dm_taskack(hp, mp) | | | 2477 | | struct hostd *hp; | | | 2478 | | struct pmsg *mp; | | | 2479 | | { | | | 2480 | | struct waitc *wp; | | | 2481 | | struct pmsg *mp2; | | | 2482 | | int i; | | | 2483 | | char *p; | | | 2484 | | | | | 2485 | | if (!(wp = wait_get(hp, mp, WT_TASK)))
| | | 2486 | | return 0; | | | 2487 | | | | | 2488 | | | | | 2489 | | | | | 2490 | | mp2 = wp->wa_mesg; | | | 2491 | | while (!upkint(mp, &i)) { | | | 2492 | | pkint(mp2, i); | | | 2493 | | upkint(mp, &i); | | | 2494 | | pkint(mp2, i); | | | 2495 | | upkint(mp, &i); | | | 2496 | | pkint(mp2, i); | | | 2497 | | upkint(mp, &i); | | | 2498 | | pkint(mp2, i); |
| | 274 | | | | upkstralloc(mp, ss) | | | 275 | | | | struct pmsg *mp; | | | 276 | | | | char **ss; | | | 277 | | | | { | | | 278 | | | | int cc; | | | 279 | | | | int l; | | | 280 | | | | | | | 281 | | | | if (!(cc = (mp->m_codef->dec_int) (mp, (void*)&l, 1, 1, sizeof(int)))) { | | | 282 | | | | if (l <= 0) | | | 283 | | | | cc = PvmNoData;
| | | 284 | | | | else { | | | 285 | | | | *ss = TALLOC(l, char, "ustr");
| | | 286 | | | | if ((cc = (mp->m_codef->dec_byte) (mp, (void*)*ss, l, 1, 1)) < 0) { | | | 287 | | | | PVM_FREE(*ss);
| | | 288 | | | | *ss = 0; | | | 289 | | | | } | | | 290 | | | | } | | | 291 | | | | } | | | 292 | | | | return cc; | | p <= 4095 | 293 | | | | } |
|