de 555 kernel/fs.c struct dirent de; de 560 kernel/fs.c for(off = 0; off < dp->size; off += sizeof(de)){ de 561 kernel/fs.c if(readi(dp, 0, (uint64)&de, off, sizeof(de)) != sizeof(de)) de 563 kernel/fs.c if(de.inum == 0) de 565 kernel/fs.c if(namecmp(name, de.name) == 0){ de 569 kernel/fs.c inum = de.inum; de 583 kernel/fs.c struct dirent de; de 593 kernel/fs.c for(off = 0; off < dp->size; off += sizeof(de)){ de 594 kernel/fs.c if(readi(dp, 0, (uint64)&de, off, sizeof(de)) != sizeof(de)) de 596 kernel/fs.c if(de.inum == 0) de 600 kernel/fs.c strncpy(de.name, name, DIRSIZ); de 601 kernel/fs.c de.inum = inum; de 602 kernel/fs.c if(writei(dp, 0, (uint64)&de, off, sizeof(de)) != sizeof(de)) de 177 kernel/sysfile.c struct dirent de; de 179 kernel/sysfile.c for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ de 180 kernel/sysfile.c if(readi(dp, 0, (uint64)&de, off, sizeof(de)) != sizeof(de)) de 182 kernel/sysfile.c if(de.inum != 0) de 192 kernel/sysfile.c struct dirent de; de 222 kernel/sysfile.c memset(&de, 0, sizeof(de)); de 223 kernel/sysfile.c if(writei(dp, 0, (uint64)&de, off, sizeof(de)) != sizeof(de)) de 73 mkfs/mkfs.c struct dirent de; de 120 mkfs/mkfs.c bzero(&de, sizeof(de)); de 121 mkfs/mkfs.c de.inum = xshort(rootino); de 122 mkfs/mkfs.c strcpy(de.name, "."); de 123 mkfs/mkfs.c iappend(rootino, &de, sizeof(de)); de 125 mkfs/mkfs.c bzero(&de, sizeof(de)); de 126 mkfs/mkfs.c de.inum = xshort(rootino); de 127 mkfs/mkfs.c strcpy(de.name, ".."); de 128 mkfs/mkfs.c iappend(rootino, &de, sizeof(de)); de 154 mkfs/mkfs.c bzero(&de, sizeof(de)); de 155 mkfs/mkfs.c de.inum = xshort(inum); de 156 mkfs/mkfs.c strncpy(de.name, shortname, DIRSIZ); de 157 mkfs/mkfs.c iappend(rootino, &de, sizeof(de)); de 31 user/ls.c struct dirent de; de 59 user/ls.c while(read(fd, &de, sizeof(de)) == sizeof(de)){ de 60 user/ls.c if(de.inum == 0) de 62 user/ls.c memmove(p, de.name, DIRSIZ); de 1405 user/usertests.c } de; de 1438 user/usertests.c while(read(fd, &de, sizeof(de)) > 0){ de 1439 user/usertests.c if(de.inum == 0) de 1441 user/usertests.c if(de.name[0] == 'C' && de.name[2] == '\0'){ de 1442 user/usertests.c i = de.name[1] - '0'; de 1444 user/usertests.c printf("%s: concreate weird file %s\n", s, de.name); de 1448 user/usertests.c printf("%s: concreate duplicate file %s\n", s, de.name);