filed
struct filedesc filed;
if (!kread(p->p_fd, &filed, sizeof (filed))) {
if (filed.fd_rdir)
vtrans(filed.fd_rdir, &filed.fd_nrdir, RDIR, FREAD, 0);
vtrans(filed.fd_cdir, &filed.fd_ncdir, CDIR, FREAD, 0);
ALLOC_OFILES(filed.fd_lastfile+1);
if (!kread(filed.fd_files, ofiles,
(filed.fd_lastfile+1) * sizeof(struct fdnode))) {
(void *)filed.fd_files, Pid);
for (i = 0; i <= filed.fd_lastfile; i++) {
struct filed *f;
fprintlog(struct filed *f, int flags, const char *msg)
wallmsg(struct filed *f, struct iovec *iov, const int iovlen)
struct filed *f;
struct filed *f;
struct filed *f_next; /* next in linked list */
struct filed *f, *next, **nextp;
*nextp = (struct filed *)calloc(1, sizeof(*f));
(*nextp)->f_next = (struct filed *)calloc(1, sizeof(*f));
f = (struct filed *)calloc(1, sizeof(*f));
cfline(const char *line, struct filed *f, const char *prog, const char *host)
struct filed *f;
static struct filed *Files; /* Log files that we write to */
static struct filed consfile; /* Console */
static void cfline(const char *, struct filed *,
static void fprintlog(struct filed *, int, const char *);
static void wallmsg(struct filed *, struct iovec *, const int iovlen);
struct filed *f;