mail.c:461: e = recvp(w->cevent); mail.c:484: e2 = recvp(w->cevent); mail.c:486: ea = recvp(w->cevent); mail.c:488: recvp(w->cevent); mail.c:512: e2 = recvp(w->cevent); mesg.c:384: mesgmenu0(w, mbox, mbox->name, "", 0, w->body, 0, !shortmenu); mesg.c:395: w->data = winopenfile(w, "data"); mesg.c:397: Binit(b, w->data, OWRITE); mesg.c:405: close(w->addr); mesg.c:406: close(w->data); mesg.c:407: w->addr = -1; mesg.c:408: w->data = -1; mesg.c:442: if(w->data < 0) mesg.c:443: w->data = winopenfile(w, "data"); mesg.c:447: write(w->data, deleted, 10); mesg.c:449: close(w->data); mesg.c:450: close(w->addr); mesg.c:451: w->addr = w->data = -1; mesg.c:463: if(w->data < 0) mesg.c:464: w->data = winopenfile(w, "data"); mesg.c:468: write(w->data, "", 0); mesg.c:470: close(w->data); mesg.c:471: close(w->addr); mesg.c:472: w->addr = w->data = -1; mesg.c:481: if(w->data < 0) mesg.c:482: w->data = winopenfile(w, "data"); mesg.c:485: write(w->data, "", 0); mesg.c:487: close(w->data); mesg.c:488: close(w->addr); mesg.c:489: w->addr = w->data = -1; mesg.c:499: if(w->data < 0) mesg.c:500: w->data = winopenfile(w, "data"); mesg.c:503: write(w->data, mark, strlen(mark)); mesg.c:505: close(w->data); mesg.c:506: close(w->addr); mesg.c:507: w->addr = w->data = -1; mesg.c:582: n = read(m->w->data, all, 512); mesg.c:662: chanfree(m->w->cevent); mesg.c:727: if(pread(w->addr, buf, 24, 0) != 24) mesg.c:830: e = recvp(w->cevent); mesg.c:851: e2 = recvp(w->cevent); mesg.c:855: ea = recvp(w->cevent); mesg.c:856: recvp(w->cevent); mesg.c:880: e2 = recvp(w->cevent); mesg.c:937: Bprint(m->w->body, "%s: %s\n", header, value); mesg.c:975: Bprint(w->body, "\tcp %s%sbody%s %q\n", rootdir, name, ext(m->type), dest); mesg.c:978: Bprint(w->body, "\tfile is %s%sbody%s\n", rootdir, name, ext(m->type)); mesg.c:1010: Bprint(w->body, "From: %s\n", m->from); mesg.c:1015: printheader(dir, w->body, extraheaders); mesg.c:1017: printheader(dir, w->body, okheaders); mesg.c:1018: printheader(dir, w->body, extraheaders); mesg.c:1020: Bprint(w->body, "\n"); mesg.c:1053: Bprint(w->body, "\n===> %s (%s) [%s]\n", strchr(name, '/')+1, mp->type, mp->disposition); mesg.c:1056: printheader(subdir, w->body, okheaders); mesg.c:1057: printheader(subdir, w->body, extraheaders); mesg.c:1240: if(m->w->data < 0) mesg.c:1241: m->w->data = winopenfile(m->w, "data"); mesg.c:1242: write(m->w->data, "", 0); mesg.c:1267: ctlprint(m->w->ctl, "show\n"); reply.c:93: ctlprint(r->w->ctl, "cleartag"); reply.c:94: ctlprint(r->w->ctl, "menu\n"); reply.c:100: Bprint(r->w->body, "%s\n", to); reply.c:102: Bprint(r->w->body, "%s: %s\n", a->name, a->value); reply.c:109: Bprint(r->w->body, "To: %s\n", m->replyto); reply.c:112: Bprint(r->w->body, "To: %s\n", m->from); reply.c:114: Bprint(r->w->body, "To: %s\n", m->to); reply.c:116: Bprint(r->w->body, "CC: %s\n", m->cc); reply.c:124: Bprint(r->w->body, "%s%s\n", t, m->subject); reply.c:127: Bprint(r->w->body, "Include: %sraw\n", dir); reply.c:131: Bprint(r->w->body, "\n"); reply.c:133: Bprint(r->w->body, "\n"); reply.c:135: quote(m, r->w->body, dir, quotetext); win.c:15: w->ctl = open("/mnt/wsys/new/ctl", ORDWR|OCEXEC); win.c:16: if(w->ctl<0 || read(w->ctl, buf, 12)!=12) win.c:18: ctlprint(w->ctl, "noscroll\n"); win.c:19: w->id = atoi(buf); win.c:20: w->event = winopenfile(w, "event"); win.c:21: w->addr = -1; /* will be opened when needed */ win.c:22: w->body = nil; win.c:23: w->data = -1; win.c:24: w->cevent = chancreate(sizeof(Event*), 0); win.c:32: ctlprint(w->ctl, "dumpdir %s\n", dir); win.c:34: ctlprint(w->ctl, "dump %s\n", cmd); win.c:47: wingetevent(w, &w->e[i]); win.c:48: sendp(w->cevent, &w->e[i]); win.c:58: sprint(buf, "/mnt/wsys/%d/%s", w->id, f); win.c:85: ctlprint(w->ctl, "name %s\n", s); win.c:93: sprint(buf, "/mnt/wsys/%d/body", w->id); win.c:94: w->body = Bopen(buf, mode|OCEXEC); win.c:95: if(w->body == nil) win.c:102: if(w->body != nil){ win.c:103: Bterm(w->body); win.c:104: w->body = nil; win.c:111: if(w->body == nil) win.c:113: if(Bwrite(w->body, s, n) != n) win.c:120: if(w->nbuf == 0){ win.c:121: w->nbuf = read(w->event, w->buf, sizeof w->buf); win.c:122: if(w->nbuf <= 0){ win.c:126: w->bufp = w->buf; win.c:128: w->nbuf--; win.c:129: return *w->bufp++; win.c:190: fprint(w->event, "%c%c%d %d\n", e->c1, e->c2, e->q0, e->q1); win.c:199: if(w->addr < 0) win.c:200: w->addr = winopenfile(w, "addr"); win.c:201: if(w->data < 0) win.c:202: w->data = winopenfile(w, "data"); win.c:206: if(write(w->addr, buf, n) != n) win.c:208: n = read(w->data, buf, sizeof buf); win.c:228: if(w->addr >= 0){ win.c:229: close(w->addr); win.c:230: w->addr = -1; win.c:232: if(w->body != nil){ win.c:233: Bterm(w->body); win.c:234: w->body = nil; win.c:236: if(w->data >= 0){ win.c:237: close(w->data); win.c:238: w->data = -1; win.c:247: write(w->ctl, "delete\n", 7); win.c:248: else if(write(w->ctl, "del\n", 4) != 4) win.c:252: close(w->ctl); win.c:253: w->ctl = -1; win.c:254: close(w->event); win.c:255: w->event = -1; win.c:262: if(w->body) win.c:263: Bflush(w->body); win.c:264: ctlprint(w->ctl, "clean\n"); win.c:270: if(w->addr < 0) win.c:271: w->addr = winopenfile(w, "addr"); win.c:272: if(write(w->addr, addr, strlen(addr)) < 0){ win.c:284: ctlprint(w->ctl, "dot=addr\n"); win.c:296: if(w->body != nil) win.c:307: m = Bread(w->body, s+n, na-n);