type 9 kernel/elf.h ushort type; type 26 kernel/elf.h uint32 type; type 63 kernel/exec.c if (ph.type != ELF_PROG_LOAD) type 73 kernel/file.c f->type = FD_NONE; type 76 kernel/file.c if (ff.type == FD_PIPE) { type 78 kernel/file.c } else if (ff.type == FD_INODE || ff.type == FD_DEVICE) { type 93 kernel/file.c if (f->type == FD_INODE || f->type == FD_DEVICE) { type 114 kernel/file.c if (f->type == FD_PIPE) { type 116 kernel/file.c } else if (f->type == FD_DEVICE) { type 120 kernel/file.c } else if (f->type == FD_INODE) { type 142 kernel/file.c if (f->type == FD_PIPE) { type 144 kernel/file.c } else if (f->type == FD_DEVICE) { type 148 kernel/file.c } else if (f->type == FD_INODE) { type 2 kernel/file.h enum { FD_NONE, FD_PIPE, FD_INODE, FD_DEVICE } type; type 24 kernel/file.h short type; // copy of disk inode type 201 kernel/fs.c ialloc(uint dev, short type) type 210 kernel/fs.c if (dip->type == 0) { // a free inode type 212 kernel/fs.c dip->type = type; type 235 kernel/fs.c dip->type = ip->type; type 308 kernel/fs.c ip->type = dip->type; type 316 kernel/fs.c if (ip->type == 0) type 337 kernel/fs.c dip->type = 0; type 395 kernel/fs.c if (dip->type != 0 && dip->nlink == 0) { // is an orphaned inode type 500 kernel/fs.c st->type = ip->type; type 597 kernel/fs.c if (dp->type != T_DIR) type 703 kernel/fs.c if (ip->type != T_DIR) { type 33 kernel/fs.h short type; // File type type 38 kernel/pipe.c (*f0)->type = FD_PIPE; type 42 kernel/pipe.c (*f1)->type = FD_PIPE; type 8 kernel/stat.h short type; // Type of file type 139 kernel/sysfile.c if (ip->type == T_DIR) { type 230 kernel/sysfile.c if (ip->type == T_DIR && !isdirempty(ip)) { type 238 kernel/sysfile.c if (ip->type == T_DIR) { type 259 kernel/sysfile.c create(char *path, short type, short major, short minor) type 275 kernel/sysfile.c if (type == T_DIR && dp->nlink >= NLINK_MAX) { type 283 kernel/sysfile.c if (type == T_FILE && (ip->type == T_FILE || ip->type == T_DEVICE)) type 289 kernel/sysfile.c if ((ip = ialloc(dp->dev, type)) == 0) { type 300 kernel/sysfile.c if (type == T_DIR) { // Create . and .. entries. type 309 kernel/sysfile.c if (type == T_DIR) { type 355 kernel/sysfile.c if (ip->type == T_DIR && omode != O_RDONLY) { type 362 kernel/sysfile.c if (ip->type == T_DEVICE && (ip->major < 0 || ip->major >= NDEV)) { type 376 kernel/sysfile.c if (ip->type == T_DEVICE) { type 377 kernel/sysfile.c f->type = FD_DEVICE; type 380 kernel/sysfile.c f->type = FD_INODE; type 387 kernel/sysfile.c if ((omode & O_TRUNC) && ip->type == T_FILE) { type 446 kernel/sysfile.c if (ip->type != T_DIR) { type 96 kernel/virtio.h uint32 type; // VIRTIO_BLK_T_IN or ..._OUT type 244 kernel/virtio_disk.c buf0->type = VIRTIO_BLK_T_OUT; // write the disk type 246 kernel/virtio_disk.c buf0->type = VIRTIO_BLK_T_IN; // read the disk type 45 mkfs/mkfs.c uint ialloc(ushort type); type 227 mkfs/mkfs.c ialloc(ushort type) type 233 mkfs/mkfs.c din.type = xshort(type); type 46 user/ls.c switch (st.type) { type 49 user/ls.c printf("%s %d %d %d\n", fmtname(path), st.type, st.ino, (int)st.size); type 69 user/ls.c printf("%s %d %d %d\n", fmtname(buf), st.type, st.ino, (int)st.size); type 17 user/sh.c int type; type 21 user/sh.c int type; type 27 user/sh.c int type; type 36 user/sh.c int type; type 42 user/sh.c int type; type 48 user/sh.c int type; type 71 user/sh.c switch (cmd->type) { type 208 user/sh.c cmd->type = EXEC; type 219 user/sh.c cmd->type = REDIR; type 235 user/sh.c cmd->type = PIPE; type 248 user/sh.c cmd->type = LIST; type 261 user/sh.c cmd->type = BACK; type 468 user/sh.c switch (cmd->type) { type 2770 user/usertests.c if (st.type != T_DIR) {