de                509 fs.c             struct dirent de;
de                514 fs.c             for(off = 0; off < dp->size; off += sizeof(de)){
de                515 fs.c               if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
de                517 fs.c               if(de.inum == 0)
de                519 fs.c               if(namecmp(name, de.name) == 0){
de                523 fs.c                 inum = de.inum;
de                536 fs.c             struct dirent de;
de                546 fs.c             for(off = 0; off < dp->size; off += sizeof(de)){
de                547 fs.c               if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
de                549 fs.c               if(de.inum == 0)
de                553 fs.c             strncpy(de.name, name, DIRSIZ);
de                554 fs.c             de.inum = inum;
de                555 fs.c             if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
de                 30 ls.c             struct dirent de;
de                 57 ls.c               while(read(fd, &de, sizeof(de)) == sizeof(de)){
de                 58 ls.c                 if(de.inum == 0)
de                 60 ls.c                 memmove(p, de.name, DIRSIZ);
de                 72 mkfs.c           struct dirent de;
de                120 mkfs.c           bzero(&de, sizeof(de));
de                121 mkfs.c           de.inum = xshort(rootino);
de                122 mkfs.c           strcpy(de.name, ".");
de                123 mkfs.c           iappend(rootino, &de, sizeof(de));
de                125 mkfs.c           bzero(&de, sizeof(de));
de                126 mkfs.c           de.inum = xshort(rootino);
de                127 mkfs.c           strcpy(de.name, "..");
de                128 mkfs.c           iappend(rootino, &de, sizeof(de));
de                147 mkfs.c             bzero(&de, sizeof(de));
de                148 mkfs.c             de.inum = xshort(inum);
de                149 mkfs.c             strncpy(de.name, argv[i], DIRSIZ);
de                150 mkfs.c             iappend(rootino, &de, sizeof(de));
de                169 sysfile.c        struct dirent de;
de                171 sysfile.c        for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){
de                172 sysfile.c          if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
de                174 sysfile.c          if(de.inum != 0)
de                185 sysfile.c        struct dirent de;
de                215 sysfile.c        memset(&de, 0, sizeof(de));
de                216 sysfile.c        if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
de                773 usertests.c      } de;
de                803 usertests.c      while(read(fd, &de, sizeof(de)) > 0){
de                804 usertests.c        if(de.inum == 0)
de                806 usertests.c        if(de.name[0] == 'C' && de.name[2] == '\0'){
de                807 usertests.c          i = de.name[1] - '0';
de                809 usertests.c            printf(1, "concreate weird file %s\n", de.name);
de                813 usertests.c            printf(1, "concreate duplicate file %s\n", de.name);