name               87 exec.c           safestrcpy(proc->name, last, sizeof(proc->name));
name              506 fs.c           dirlookup(struct inode *dp, char *name, uint *poff)
name              519 fs.c               if(namecmp(name, de.name) == 0){
name              533 fs.c           dirlink(struct inode *dp, char *name, uint inum)
name              540 fs.c             if((ip = dirlookup(dp, name, 0)) != 0){
name              553 fs.c             strncpy(de.name, name, DIRSIZ);
name              577 fs.c           skipelem(char *path, char *name)
name              591 fs.c               memmove(name, s, DIRSIZ);
name              593 fs.c               memmove(name, s, len);
name              594 fs.c               name[len] = 0;
name              606 fs.c           namex(char *path, int nameiparent, char *name)
name              615 fs.c             while((path = skipelem(path, name)) != 0){
name              626 fs.c               if((next = dirlookup(ip, name, 0)) == 0){
name              643 fs.c             char name[DIRSIZ];
name              644 fs.c             return namex(path, 0, name);
name              648 fs.c           nameiparent(char *path, char *name)
name              650 fs.c             return namex(path, 1, name);
name               54 fs.h             char name[DIRSIZ];
name               60 ls.c                 memmove(p, de.name, DIRSIZ);
name              122 mkfs.c           strcpy(de.name, ".");
name              127 mkfs.c           strcpy(de.name, "..");
name              149 mkfs.c             strncpy(de.name, argv[i], DIRSIZ);
name               99 proc.c           safestrcpy(p->name, "initcode", sizeof(p->name));
name              157 proc.c           safestrcpy(np->name, proc->name, sizeof(proc->name));
name              239 proc.c                 p->name[0] = 0;
name              458 proc.c             cprintf("%d %s %s", p->pid, state, p->name);
name               68 proc.h           char name[16];               // Process name (debugging)
name               13 spinlock.c     initlock(struct spinlock *lk, char *name)
name               15 spinlock.c       lk->name = name;
name                6 spinlock.h       char *name;        // Name of lock.
name              136 syscall.c                  proc->pid, proc->name, num);
name              118 sysfile.c        char name[DIRSIZ], *new, *old;
name              141 sysfile.c        if((dp = nameiparent(new, name)) == 0)
name              144 sysfile.c        if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){
name              186 sysfile.c        char name[DIRSIZ], *path;
name              193 sysfile.c        if((dp = nameiparent(path, name)) == 0){
name              201 sysfile.c        if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0)
name              204 sysfile.c        if((ip = dirlookup(dp, name, &off)) == 0)
name              243 sysfile.c        char name[DIRSIZ];
name              245 sysfile.c        if((dp = nameiparent(path, name)) == 0)
name              249 sysfile.c        if((ip = dirlookup(dp, name, &off)) != 0){
name              275 sysfile.c        if(dirlink(dp, name, ip->inum) < 0)
name               92 trap.c                     proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, 
name               12 usertests.c    char name[3];
name              251 usertests.c      name[0] = 'a';
name              252 usertests.c      name[2] = '\0';
name              254 usertests.c        name[1] = '0' + i;
name              255 usertests.c        fd = open(name, O_CREATE|O_RDWR);
name              258 usertests.c      name[0] = 'a';
name              259 usertests.c      name[2] = '\0';
name              261 usertests.c        name[1] = '0' + i;
name              262 usertests.c        unlink(name);
name              588 usertests.c      char name[32];
name              600 usertests.c          name[0] = 'p' + pi;
name              601 usertests.c          name[2] = '\0';
name              603 usertests.c            name[1] = '0' + i;
name              604 usertests.c            fd = open(name, O_CREATE | O_RDWR);
name              611 usertests.c              name[1] = '0' + (i / 2);
name              612 usertests.c              if(unlink(name) < 0){
name              626 usertests.c      name[0] = name[1] = name[2] = 0;
name              629 usertests.c          name[0] = 'p' + pi;
name              630 usertests.c          name[1] = '0' + i;
name              631 usertests.c          fd = open(name, 0);
name              633 usertests.c            printf(1, "oops createdelete %s didn't exist\n", name);
name              636 usertests.c            printf(1, "oops createdelete %s did exist\n", name);
name              646 usertests.c          name[0] = 'p' + i;
name              647 usertests.c          name[1] = '0' + i;
name              648 usertests.c          unlink(name);
name              772 usertests.c        char name[14];
name              806 usertests.c        if(de.name[0] == 'C' && de.name[2] == '\0'){
name              807 usertests.c          i = de.name[1] - '0';
name              809 usertests.c            printf(1, "concreate weird file %s\n", de.name);
name              813 usertests.c            printf(1, "concreate duplicate file %s\n", de.name);
name              896 usertests.c      char name[10];
name              909 usertests.c        name[0] = 'x';
name              910 usertests.c        name[1] = '0' + (i / 64);
name              911 usertests.c        name[2] = '0' + (i % 64);
name              912 usertests.c        name[3] = '\0';
name              913 usertests.c        if(link("bd", name) != 0){
name              921 usertests.c        name[0] = 'x';
name              922 usertests.c        name[1] = '0' + (i / 64);
name              923 usertests.c        name[2] = '0' + (i % 64);
name              924 usertests.c        name[3] = '\0';
name              925 usertests.c        if(unlink(name) != 0){
name             1656 usertests.c        char name[64];
name             1657 usertests.c        name[0] = 'f';
name             1658 usertests.c        name[1] = '0' + nfiles / 1000;
name             1659 usertests.c        name[2] = '0' + (nfiles % 1000) / 100;
name             1660 usertests.c        name[3] = '0' + (nfiles % 100) / 10;
name             1661 usertests.c        name[4] = '0' + (nfiles % 10);
name             1662 usertests.c        name[5] = '\0';
name             1663 usertests.c        printf(1, "writing %s\n", name);
name             1664 usertests.c        int fd = open(name, O_CREATE|O_RDWR);
name             1666 usertests.c          printf(1, "open %s failed\n", name);
name             1684 usertests.c        char name[64];
name             1685 usertests.c        name[0] = 'f';
name             1686 usertests.c        name[1] = '0' + nfiles / 1000;
name             1687 usertests.c        name[2] = '0' + (nfiles % 1000) / 100;
name             1688 usertests.c        name[3] = '0' + (nfiles % 100) / 10;
name             1689 usertests.c        name[4] = '0' + (nfiles % 10);
name             1690 usertests.c        name[5] = '\0';
name             1691 usertests.c        unlink(name);
name                8 wc.c           wc(int fd, char *name)
name               32 wc.c             printf(1, "%d %d %d %s\n", l, w, c, name);