| | 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; | | s <= 4095 | 293 | | | | } |
| | 2000 | | if (chdir(s2) == -1) | | | 2001 | | pvmlogperror(s2); | | | 2002 | | PVM_FREE(s);
| | | 2003 | | PVM_FREE(s2);
| | | 2004 | | break; | | | 2005 | | | | | 2006 | | case DM_SLCONF_SCHED:
| | | 2007 | | if (pvmdebmask & (PDMSCHED|PDMSTARTUP)) {
| | | 2008 | | pvmlogprintf("dm_slconf() sched<t%x>\n", pvmschedtid); | | | 2009 | | } | | | 2010 | | pvmschedtid = pvmxtoi(s); | | | 2011 | | break; | | | 2012 | | | | | 2013 | | case DM_SLCONF_TRACE: {
| | | 2014 | | Pvmtmask tmask; | | | 2015 | | int ttid, tctx, ttag, otid, octx, otag, tbuf, topt; | | | 2016 | | if (pvmdebmask & (PDMTRACE|PDMSTARTUP)) {
| | | 2017 | | pvmlogprintf("dm_slconf() tracer<t%x>\n", | | | 2018 | | pvmtracer.trctid); | | | 2019 | | } | | | 2020 | | if (sscanf(s, "%x %d %d %x %d %d %d %d %s", | | | 2021 | | &ttid, &tctx, &ttag, &otid, &octx, &otag, | | | 2022 | | &tbuf, &topt, tmask) != 9) { | | | 2023 | | pvmlogprintf("dm_slconf() bogus string<%s>\n", s); | | | 2024 | | } | | | 2025 | | else { | | | 2026 | | pvmtracer.trctid = ttid; | | | 2027 | | pvmtracer.trcctx = tctx; | | | 2028 | | pvmtracer.trctag = ttag; | | | 2029 | | pvmtracer.outtid = otid; | | | 2030 | | pvmtracer.outctx = octx; | | | 2031 | | pvmtracer.outtag = otag; | | | 2032 | | pvmtracer.trcbuf = tbuf; | | | 2033 | | pvmtracer.trcopt = topt; | | | 2034 | | BCOPY(tmask,pvmtracer.tmask,TEV_MASK_LENGTH);
| | | 2035 | | } | | | 2036 | | break; | | | 2037 | | } | | | 2038 | | | | | 2039 | | default: | | | 2040 | | pvmlogprintf("dm_slconf() ? type %d val <%s>\n", t, s); | | | 2041 | | PVM_FREE(s);
| | | 2042 | | break; |
|