Lines Matching defs:name
22 const char *mode[3], *rfm[3], *name[3];
37 name[0] = name[1] = name[2] = 0;
54 name[IN_FD] = ++p;
56 name[IN_FD] = (*iargv)[++i];
67 name[which] = ++p;
69 name[which] = (*iargv)[++i];
81 if (name[IN_FD])
82 if (!freopen(name[IN_FD], mode[IN_FD], stdin))
83 lerrsf("failed to redirect `stdin' from \"%s\"", name[IN_FD]);
84 if (name[OUT_FD])
85 if (!freopen(name[OUT_FD], mode[OUT_FD], stdout,
87 lerrsf("failed to redirect `stdout' to \"%s\"", name[OUT_FD]);
88 if (name[ERR_FD]) /* likely won't see message if this fails; oh well... */
89 if (!freopen(name[ERR_FD], mode[ERR_FD], stderr,
91 lerrsf("failed to redirect `stderr' to \"%s\"", name[ERR_FD]);
122 unless it ended up as the whole name */