Lines Matching refs:call
99 * return real fd for up under mount mp to be accessed by call
104 fsreal(register Mount_t* mp, long call, const char* up)
118 n = sfsprintf(s, sizeof(dev) - 1, "%s %-*s %s%s%-*s pwd=%s%s%s", msgname(call), lz, mp->logical, up, pz ? " physical=" : "", pz, mp->physical ? mp->physical : "", state.pwd, mp->fs->attr, mp->attr);
143 * do fs call
145 * 0 returned if mounted with state.ret call return value
150 fscall(register Mount_t* mp, long call, int ret, ...)
186 switch (MSG_ARG(call, 1))
217 if (!state.kernel && (fs->call & MSG_MASK(call)))
238 if (!(fs->call & MSG_MASK(call)))
244 if (MSG_ARG(call, 1) == MSG_ARG_file)
261 else if (call == MSG_open)
275 if (MSG_ARG(call, 0) == MSG_ARG_file)
284 else if (call == MSG_open)
389 if (MSG_MASK(call) & (MSG_MASK(MSG_close)|MSG_MASK(MSG_dup)))
391 message((-3, "fs: %s: %s: call", fs->special, msgname(call)));
393 if (fs->terse & MSG_MASK(call))
399 switch ((call >> tries) & ((1 << MSG_ARG_TYPE) - 1))
408 call = (call & ~(((1 << MSG_ARG_TYPE) - 1) << tries)) | (MSG_ARG_number << tries);
419 call |= MSG_RETURN;
420 else if (fs->ack & MSG_MASK(call))
421 call |= (fs->flags & FS_INTERACTIVE) ? MSG_RETURN : MSG_ACK;
425 if ((fs->flags & FS_FLUSH) && (call |= MSG_FLUSH) || retry)
432 message((-2, "fs: %s: %s: connect error on try %d", fs->special, msgname(call), tries));
437 switch (MSG_ARG(call, 1))
447 if (MSG_VAR(call) == MSG_VAR_FILE)
457 if (call == MSG_pipe)
480 n = msgvcall(cd, MSG_CHANNEL(state.pid, mp->channel), call, rp, xp, ap);
490 message((-2, "fs: %s: %s: error on try %d", fs->special, msgname(call), tries));
499 if ((state.ret = n) > 0 && (fs->flags & (FS_ACTIVE|FS_INTERACTIVE|FS_MONITOR)) == (FS_ACTIVE|FS_INTERACTIVE|FS_MONITOR) && (fs->ack & MSG_MASK(call)))
508 else message((-3, "fs: %s: %s: interactive ack failed", fs->special, msgname(call)));
514 message((-3, "fs: %s: %s: return: passive fs", fs->special, msgname(call)));
516 else if (fs->ack & MSG_MASK(call))
519 message((-3, "fs: %s: %s: ack: passive fs", fs->special, msgname(call)));